a python library to clean tweets fetched from the Twitter API.
Project description
CleanTweet version 0.1.1
CleanTweet helps in Natural Language Processing tasks especially
in the area of preprocessing and cleaning your data fetched
from the Twitter API Backend.
Installation
pip install cleantweet
Get Started
How to clean your Twitter Object:
Example 1: If the text file containing the Twitter JSON Data is
in the same directory as project files.
from cleantweet import CleanTweet
Instantiate the CleanTwitter Object
data = CleanTweet('sample_text.txt')
Call the clean method
print(data.clean())
Example 2: When the above is not the case.
from cleantweet import CleanTweet
import the os module
import os
Instantiate the CleanTwitter Object
data = CleanTweet(os.path.join('./nameoffolder', 'sampling.txt'))
Call the clean method
print(data.clean())
In this first version, the method clean() would only preprocess
and clean the Twitter Object's default parameters which are
the id and text.
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
Hashes for cleantweet-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e11274bc385aa6ceae6e0caba15948d6c4c9ea2577bea970bd7faea4c9fc81e2 |
|
MD5 | 071ceb85b9752585bb02a2b866e722e3 |
|
BLAKE2b-256 | 9e3684038deb256263de877f3b3afebf797fa404373da25e4f4b2069675e4c02 |