Skip to main content

Play with text data

Project description

textslack

A text cleaning pipeline to perform text cleaning, along with additional functionalities for sentiment, pos extraction, and word count.

After pip install, please follow the below step to access the functionalities:

  • from textslack.textslack import TextSlack
  • slack = TextSlack()

Below are the key functionalities currently available in the all the versions:

  1. transform(text): normalises and cleans unstructured text
  2. extract_nouns(text): cleans text to keep only nouns
  3. extract_verbs(text): cleans text to keep only verbs
  4. extract_adjectives(text): cleans text to keep only adjectives
  5. extract_adverbs(text): cleans text to keep only adverbs
  6. sentiment(text): returns a string as sentiment
  7. word_occurances(word, text): returns frequency of a word mentioned in the text

v.0.1.5 updates:

  1. transform method can now be used on a list and an entire pandas dataframe column.

  2. textslack can perform basic text cleaning for some non-english languages as well, just pass the language while creating the object as shown below.

    slack = TextSlack(lang='spanish')

Please refer the below medium article for a detailed explanation of textslack functionalities. https://medium.com/analytics-vidhya/text-processing-made-easy-with-textslack-4214ae6bc67a

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

textslack-0.1.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

textslack-0.1.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file textslack-0.1.5.tar.gz.

File metadata

  • Download URL: textslack-0.1.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.6

File hashes

Hashes for textslack-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6334ad1996057c0bfb58c1926d1d0435c2e9f018757bda5718702241582f142a
MD5 2dc81f7c630f7b85934dc9a0138e14c8
BLAKE2b-256 5c7891fc5f53f4c081dc15eda1c71bd5a341940382fda46dac8a364768fad03b

See more details on using hashes here.

File details

Details for the file textslack-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: textslack-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.6

File hashes

Hashes for textslack-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8a0393c5c7d0469a58c83d69a0a05d53fb015da0410accf0a5621c1365703fef
MD5 62ee9f37018a0a09efd61fede096d5f4
BLAKE2b-256 f337811f3305b0a0ad4e834bf283f8ca39ac7560fda6754650fa3d7dbda8d63f

See more details on using hashes here.

Supported by

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