Skip to main content

a hyper fast natural language proccesing module

Project description

how to use:

sentiment analysis:

from i_rly_like_lemons import sentiment

1: get_sentence_sentiment("your sentence here")   <--   returns a single number which is the sentence's sentiment.

2: get_text_sentiment("i really like lemons, however pineapples are also good. and this is another sentence.")   <---   returns a list of all sentiments from the sentences.

meaning extraction:

from i_rly_like_lemons import meaning

1: word_to_index("word")   <---   returns the "meaning index" of a single word.

2: index_to_word(912873)   <---   gets the "meaning index" of a word, and translates the index into the word.

3: sentence_to_index("your sentence here")   <---   gets a sentence and returns the list of all meaning indexe's of the words inside.

4: index_to_sentence([129038, 238745, 39874,... 93824])   <---   gets a list of meaning indexe's and returns a sentence.

keyword detection:

from i_rly_like_lemons import keywords

1: detect_keywords("your sentence here")   <---   will get a text prompt and return a list with all the keywords that it found.

extras:

from i_rly_like_lemons import extras

1: cleanup("you,r co<<rupte///d [tex]t he.re")   <---   will get text and clean it up from unwanted characters (all special characters).

2: split_with_multiple_seperators("|", ",", " ", text = "this|is,a test")   <--- just like normal split(" ") command but supports multiple seperators.

3: rephrase([238094, 78245, 879435, 38490], 2)   <--- takes in a meaning list (from meaning extraction) and randomizes them with the "strength" value.

4: compare("word1", "werd2")   <--- gets two strings and returns the % of their match: 0% > no matching characters, 100% > identical strings.

5: autocorrect_word("misspled")   <--- gets a word and autocorrects it

6: autocorrect_text("ths si a misppled txte")   <--- gets a wrond text and autocorrects it

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i_rly_like_lemons-1.1.12.tar.gz (63.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

i_rly_like_lemons-1.1.12-py3-none-any.whl (63.1 kB view details)

Uploaded Python 3

File details

Details for the file i_rly_like_lemons-1.1.12.tar.gz.

File metadata

  • Download URL: i_rly_like_lemons-1.1.12.tar.gz
  • Upload date:
  • Size: 63.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for i_rly_like_lemons-1.1.12.tar.gz
Algorithm Hash digest
SHA256 273a88568b4f0836a96cbbcef983265c69df646bb4f731c57110565a6ac80dba
MD5 3495d5a634513dcbfbf3191da4569b46
BLAKE2b-256 9033fb69cccbeab410767ed231b497f0546d89212c556e0931b7952b31756c65

See more details on using hashes here.

File details

Details for the file i_rly_like_lemons-1.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for i_rly_like_lemons-1.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ccb0c2c1dc08885090acc36fdc36f0c30544522cf9ebc34efffd4b64e4e0372e
MD5 28f91a705bfc2b04b2927ffb3cb90f84
BLAKE2b-256 489fb37b5479c5ea518ee59e2753e00a241b9807026416cb48350ffe81911974

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page