-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
lare edited this page Jan 13, 2025
·
16 revisions
In this short example, we will be looking at cleaning a body of text mined from an API, to prepare your text for further processing and feature engineering like Sentiment Analysis etc. With cleantweet, it is easy to clean a body of text with just a few lines of code:
!pip install cleantweet
import cleantweet as clt
data = clt.CleanTweet('mini corpus for testing')
data = data.clean()
print(data)