Fumigate text
Project description
Fumigate
A small demo library to help in NLP's most tedious task, text cleaning.
Installation pip install fumigate
#Get started
How to fumigate(clean) your text data
1. from fumigate import Fumes
2. Instantiate a Fumes object
fumes = Fumes()
3. Call the purge method to clean everything.
result = fumes.purge(<text>)
4. Call the clean method to clean specific things from the methods available.
## methods is a list containing one or multiple methods available for fumigation.
result = fumes.clean(<text>, methods=["url" | "sym" | "num" | "emo"], extract=False)
# if extract=True returns tuple with removed characters/strings
result, garbage = fumes.clean(<text>, methods=["url" | "sym" | "num" | "emo"], extract=True)
5. Call the stem method for stemming.
result = fumes.stem(<text>)
6. Call the lemm method for lemmatizing.
result = fumes.lemm(<text>)
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
fumigate-0.1.8.tar.gz
(3.2 kB
view details)
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 fumigate-0.1.8.tar.gz.
File metadata
- Download URL: fumigate-0.1.8.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
563e9080aa2fc8050044869dadbe243f92889de62a7087619bdce4044f9a2e9a
|
|
| MD5 |
caefed000e8b9dade9b2f0835ec296ce
|
|
| BLAKE2b-256 |
3f3cea136a4b3af31a794cfda840aefaa80ac19390cf74147bf6de52304e50f9
|
File details
Details for the file fumigate-0.1.8-py3-none-any.whl.
File metadata
- Download URL: fumigate-0.1.8-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e453fcdcbb2480d31cae161ea24e586afbf008504a33249f12cf01f54ae6d45c
|
|
| MD5 |
04420e98647431161e489e42a52a2443
|
|
| BLAKE2b-256 |
d21d5c163f64ce8c1a785b2f59e450f74b871882b85f1969531e5899dda6d6c5
|