cardiffnlp/tweetnlp

TweetNLP for all the NLP enthusiasts working on Twitter! The Python library tweetnlp provides a collection of useful tools to analyze/understand tweets such as sentiment analysis, emoji prediction, and named entity recognition, powered by state-of-the-art language models specialised on Twitter.

58
/ 100
Established

Built on Hugging Face transformers, TweetNLP wraps pre-trained models fine-tuned specifically for social media text and offers both single-label and multi-label classification variants for tasks like topic detection and sentiment analysis. The library provides unified dataset loading compatible with Hugging Face Datasets, enabling seamless model fine-tuning workflows. Beyond the core tasks, it supports multilingual sentiment analysis and structured output with confidence probabilities for each prediction.

382 stars and 827 monthly downloads. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 0 / 25
Adoption 17 / 25
Maturity 25 / 25
Community 16 / 25

How are scores calculated?

Stars

382

Forks

36

Language

Python

License

MIT

Last pushed

Apr 02, 2025

Monthly downloads

827

Commits (30d)

0

Dependencies

9

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/cardiffnlp/tweetnlp"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.