One Step Python Package to preprocess text data for NLP tasks. This package is designed to clean, transform, and standardize text data, making it an ideal choice for applications in natural language processing, text analysis, and data cleaning.
pip install nlptextprep
from nlptextprep import preprocess_text
text = "This is a sample text containing a #hashtag, 100+ @mention in 70% , (4 - 2)/7 and line breaks in https://botpenguin.com .\nCheck it out!"
cleaned_text = preprocess_text(text)
print(cleaned_text)
You can find the package on PyPI at: https://pypi.org/project/nlptextprep/
This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.