Clean the text for NLP project
Project description
nlp_text_cleaner
About
This is a project developed to create a utility module for text cleaning/pre processing required in NLP projects
Installation
pip install nlp-text-cleaner
Usage
import nlp_text_cleaner as cleaner
cleaned_text = cleaner.apply_stemming("I played Cricket")
There are following methods present for text cleaning.
split_into_sentences : A method to split text into sentences
split_into_words : A method to split text into words
lower_case_text : A method to convert text to lower case
remove_punctuation : A method to remove punctuations in a text
remove_unicode : A method to remove unicode characters in a text
remove_leading_trailing_whitespaces : A method to remove white spaces at the begining or end of text
remove_duplicate_whitespaces : A method to remove consecutive white spaces
detect_language : A method to detect language of text
correct_grammar : A method to correct spelling mistakes in a text
remove_stopwords : A method to remove stopwords from text
apply_stemming : A method to apply stemming on text
apply_lammatization : A method to apply lemmatization on text
remove_hashtags : A method to remove hashtags in a text
remove_hyperlinks : A method to remove hyperlinks in a text
clean_html_code : A method to remove html entities like ' ,& ,< etc/
replace_contraction : A method to sreplace contractions like n't,'ll etc
get_pos_tags : A method to get POS tags of text
You can use above methods as per requirement of a use case.However,there are some default methods also and you can use them directly:
clean_single_sentence : A default method to clean single sentence
clean_paragraph_to_sentences : A default method to get cleaned sentences from a paragraph
clean_paragraph : A default method to clean complete paragraph
Contributing
Please create a Pull request for any change.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nlp_text_cleaner-1.0.2.tar.gz.
File metadata
- Download URL: nlp_text_cleaner-1.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a3bd4533ac729d433524c357d83e783f3e42bfee5ea50045c1d812e709c294f
|
|
| MD5 |
2960e267c47a96539ba325d2b2c41253
|
|
| BLAKE2b-256 |
4e8798783dca9d553958d36b89787727101a519a4c59237f78f9d89add4b3145
|
File details
Details for the file nlp_text_cleaner-1.0.2-py3-none-any.whl.
File metadata
- Download URL: nlp_text_cleaner-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b03aac035a51554ed13e36e98b486082f61edef61d89fb0f51644396a0d0ee7d
|
|
| MD5 |
9ece3a72c458528baf447a8f33372eb3
|
|
| BLAKE2b-256 |
f3aeefe941b5b58c51649715694288524d6942fa9e5421f74bd52066f089d57e
|