peterindia.net

NLP Models for Sentiment Analysis

A hand-verified directory of NLP models and libraries for sentiment analysis — from classic lexicon and rule-based tools to modern transformer-based language models.

15Models & tools listed
01

NLTK TweetTokenizer

NLTK's TweetTokenizer is explicitly designed for social media text, and is capable of handling hashtags, mentions, and emojis.

Visit site
02

TextBlob

A Python library providing a simple API for diving into NLP tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, and translation.

Visit site
03

spaCy

spaCy excels at large-scale information extraction tasks, with support for 75+ languages and production-ready text classification pipelines.

Visit site
04

Pattern

Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis, and visualization.

Visit site
05

Gensim

An open-source library for unsupervised topic modeling, document indexing, retrieval by similarity, and other natural language processing functionalities.

Visit site
06

VADER

Valence Aware Dictionary and sEntiment Reasoner — a lexicon and rule-based sentiment analysis tool specifically attuned to social media sentiments, and works well on other domains too.

Visit site
07

pysentiment

A library for sentiment analysis in a dictionary framework, bundling the Harvard IV-4 and Loughran-McDonald financial sentiment dictionaries.

Visit site
08

Polyglot

A natural language pipeline that supports massive multilingual applications, including sentiment analysis across 136 languages.

Visit site
09

Flair

Applies state-of-the-art NLP models to your text, such as named entity recognition (NER), sentiment analysis, and part-of-speech tagging (PoS), with special support for biomedical data.

Visit site
10

BERT

Bidirectional Encoder Representations from Transformers (BERT) is a Machine Learning (ML) model for natural language processing, including sentiment analysis.

Visit site
11

GPT-2

Generative Pre-Training model by OpenAI, performing both unsupervised and supervised learning to learn text representations for NLP downstream tasks. Repository archived by OpenAI in April 2026; code remains accessible read-only.

Visit site
12

Transformer-XL

A pre-trained language model that can be fine-tuned for a variety of tasks, including sentiment analysis. Moved: no longer documented in the latest stable Transformers release; URL updated to the "main" version of the docs.

Visit site
13

XLNet

A general-purpose autoregressive pre-trained language model, usable for sentiment analysis and other downstream NLP tasks.

Visit site
14

RoBERTa

A robustly optimized BERT pretraining approach from Meta AI, achieving strong results on downstream classification and sentiment tasks. Now hosted under the FacebookAI namespace on Hugging Face.

Visit site
15

DistilBERT

A small, fast, cheap, and light Transformer model trained by distilling BERT base, retaining over 95% of BERT's performance at 60% of the size.

Visit site