A text PREprocessor for TWeets in the ITAlian language
Project description
PreTwITA
PreTwITA is an open source Preprocessor for Tweets in the ITAlian language written in Python. The purpose of such library is to provide the user with language-specific tools for text cleaning (i.e. the process of preparing raw text for Natural Language Processing).
Included features
- correction of most common italian abbreviations (e.g. xk replaced with perché)
- remove urls
- remove emojis
- remove emoticons
- remove mentions
- remove hashtags
- remove twitter reserved words (i.e. 'rt' and 'fav')
- remove stopwords
- an option to define additional stopwords
- remove punctuation
- remove numbers
- an option to avoid removing dates in yyyy format
- remove multiple spaces
- tokenization
Usage
For usage and tips, please refer to the demo.ipynb file
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 pretwita-0.1.1.tar.gz.
File metadata
- Download URL: pretwita-0.1.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64dfa728baa4b9b623022c4eda5f6073718edf6985971d0fe2e157ffaf293db4
|
|
| MD5 |
f86d4b73c38aa2a77d20c9cec4dc32af
|
|
| BLAKE2b-256 |
3b8060e9772cffb7af3cb9b7c8dd7a3ce9d96fd49783e2bc9afbd74958e46aca
|
File details
Details for the file pretwita-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pretwita-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08477ecd2ee58ca184f9738fb1a8a98d80b42b46d84ccb7f83dbcdd6b4f8ad82
|
|
| MD5 |
b412fe52247d1092b107233141d6e510
|
|
| BLAKE2b-256 |
ae32f12beb02f6af01b012f941f55afffbaac985e5302d5041207f1b63ab5eac
|