Skip to main content

Clean and prepare text for modeling with machine learning

Project description

Nlpcleaner Build Status

Clean and prepare text for modeling with machine learning.

  • lower all
  • strip all
  • remove numbers
  • remove symbols
  • remove url
  • strip html tags
  • remove stopwords by detected language
  • lemming or stemming

Usage

from nlpcleaner import TextCleaner
TextCleaner(txt).clean()

Tests

pipenv install .
python setup.py test

Push on PyPi

python setup.py sdist
pip install twine
twine upload dist/*

TODO

  • Add tests to cover different cases and languages;
  • check performances

Project details


Download files

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

Files for nlpcleaner, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size nlpcleaner-0.1.9.tar.gz (18.3 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page