Best Text Classifiers for Sentiment Analysis in 2026: fasttext-language-identification

Rankings Last updated  14 min read By Q4KM

Quick Answer

fasttext-language-identification (facebook) is the top pick as of September 2026 under the required recency ordering, based on its March 6, 2023 Hugging Face publication date [1]. In order, the ranking is fasttext-language-identification (facebook), roberta-base-go_emotions (SamLowe), roberta-hate-speech-dynabench-r4-target (facebook), twitter-roberta-base-sentiment-latest (cardiffnlp), finbert (ProsusAI), distilbert-base-uncased-finetuned-sst-2-english (distilbert), deberta-xlarge-mnli (microsoft), and deberta-large-mnli (microsoft) [1][14].

Key Takeaways

How do local text classifiers compare on specifications and sentiment benchmarks?

Model Org Params Quant/VRAM Released (date) License Key benchmark (date)
fasttext-language-identification facebook — — First published on Hugging Face: 2023-03-06 [1] CC-BY-NC-4.0 [1] no public benchmark yet
roberta-base-go_emotions SamLowe 125M [14] F32 weights: 0.5 GB [14]; VRAM: not published First published on Hugging Face: 2022-09-15 [14] MIT [14] no public benchmark yet
roberta-hate-speech-dynabench-r4-target facebook 125M [6] F32 weights: 0.5 GB [6]; VRAM: not published First published on Hugging Face: 2022-06-10 [6] — no public benchmark yet
twitter-roberta-base-sentiment-latest cardiffnlp — — First published on Hugging Face: 2022-03-15 [12] CC-BY-4.0 [12] no public benchmark yet
finbert ProsusAI — — First published on Hugging Face: 2022-03-02 [8] — no public benchmark yet
distilbert-base-uncased-finetuned-sst-2-english distilbert 67M [10] F32 weights: 0.3 GB [10]; VRAM: not published First published on Hugging Face: 2022-03-02 [10] Apache-2.0 [10] no public benchmark yet
deberta-xlarge-mnli microsoft — — First published on Hugging Face: 2022-03-02 [3] MIT [3] no public benchmark yet
deberta-large-mnli microsoft — — First published on Hugging Face: 2022-03-02 [5] MIT [5] no public benchmark yet

Which text classifiers should you consider for local sentiment analysis?

1. fasttext-language-identification

fasttext-language-identification by facebook ranks first under “newest release first, then downloads,” based on its Hugging Face publication date of March 6, 2023.[1] The family has too few recent releases, so the ranking includes the newest available candidates rather than meeting the requested recency window.[1][14] Its position reflects publication order, not demonstrated sentiment accuracy: no public benchmark yet.

Language identification is its appropriate role in a sentiment workflow: use it to identify the language before applying a separate sentiment classifier.[1] The model recorded 319,635 downloads over the preceding 30 days as of September 25, 2026; popularity does not establish sentiment quality.[1]

Parameter count, context length and weight size are unspecified here. A concrete local hardware recommendation therefore remains unverified; measure memory use in your intended runtime before choosing hardware. The licensing caveat is explicit: Creative Commons Attribution-NonCommercial 4.0 restricts commercial use.[1]

2. roberta-base-go_emotions

roberta-base-go_emotions from SamLowe ranks second under the prescribed ordering, “newest release first, then downloads”: its Hugging Face publication date falls after the remaining entries and before facebook’s fasttext-language-identification.[14][1][6][12][8][10][3][5] The model was first published on September 15, 2022,[14] so its position reflects the available older releases, rather than demonstrated superiority in sentiment analysis.

The model has 125 million parameters, a context length of 514 tokens, and a listed F32 weight size of 0.5 GB.[14] Those weights provide a starting point for local hardware planning, but do not establish total runtime memory requirements. A specific RAM capacity or GPU recommendation cannot be supported by the available specifications.

Consider it for local classification experiments where its MIT license suits your deployment requirements.[14] For sentiment analysis, evaluate it on representative examples before adoption. The key caveat is no public benchmark yet in this ranking; its placement does not establish sentiment accuracy.

3. roberta-hate-speech-dynabench-r4-target

roberta-hate-speech-dynabench-r4-target by facebook ranks third under the newest-release-first ordering, with downloads used only to break date ties; its Hugging Face publication date is June 10, 2022.[6] The position reflects chronology, not demonstrated sentiment accuracy: no public benchmark yet establishes its standing against the other candidates.

The model has 125 million parameters, a context length of 514 tokens, and F32 weights totaling 0.5 GB.[6] For local hardware planning, that weight footprint is only a starting point: loading and inference also require memory. Runtime RAM requirements and a validated GPU configuration are unspecified, so the weight size alone does not establish whether your machine can run it.

The appropriate use is hate-speech detection, matching the associated work on dynamically generated datasets for online hate detection.[7] The caveat for sentiment analysis is task mismatch: hate detection should not be treated as an interchangeable measure of sentiment.[7]

4. twitter-roberta-base-sentiment-latest

twitter-roberta-base-sentiment-latest by cardiffnlp ranks here under the ordering rule “newest release first, then downloads,” with no public benchmark yet. Its first Hugging Face publication was March 15, 2022, so it is an established option rather than a recent release.[12] Its associated paper is “TimeLMs: Diachronic Language Models from Twitter.”[13]

The model has a context length of 514 tokens and uses the CC-BY-4.0 license.[12] Consider it for sentiment classification of Twitter text, with evaluation examples drawn from the language and topics your application actually encounters. The Twitter focus of the associated work makes that a sensible starting point, without establishing comparative sentiment accuracy.[13]

Local deployment requires a memory check on your intended hardware: a verified weight footprint, RAM requirement and GPU recommendation are unavailable for this entry. Measure memory use and latency with representative inputs before choosing hardware. The main caveat is the absence of a public benchmark supporting its position as a sentiment-quality ranking.

5. finbert

finbert by ProsusAI ranks fifth under the ordering rule: newest release first, then downloads—not demonstrated sentiment accuracy.[8] First published on Hugging Face on March 2, 2022, it is an established pick outside the recency window.[8] Its 5,019,923 downloads over the preceding 30 days, as of September 25, 2026, determine its position among candidates sharing that publication date.[8]

Financial sentiment analysis is its intended use, making finance-focused text the practical starting point for evaluation.[9] The context length is 512 tokens; longer documents require a chunking or truncation policy.[8] Sentiment performance remains unranked: no public benchmark yet.

Local hardware requirements remain unverified for this entry. A specific GPU or RAM capacity cannot be recommended without a confirmed weight footprint and runtime measurements. Before deployment, measure memory use with representative inputs and confirm the license terms. Download volume does not establish accuracy on your financial text.

6. distilbert-base-uncased-finetuned-sst-2-english

distilbert-base-uncased-finetuned-sst-2-english by distilbert ranks here under the ordering rule “newest release first, then downloads.” First published on Hugging Face on 2022-03-02, it recorded 3,489,259 downloads over the last 30 days as of 2026-09-25.[10] Among candidates sharing that publication date, its downloads place it behind ProsusAI’s finbert and ahead of Microsoft’s deberta-xlarge-mnli and deberta-large-mnli.[8][10][3][5] Popularity breaks that tie; it does not establish sentiment accuracy.

The model has 67M parameters, a context length of 512 tokens and an F32 weight file of 0.3 GB, with an Apache-2.0 license.[10] For local deployment, treat the weight file as a storage figure, not a complete memory budget. A specific CPU, GPU or RAM requirement is not established here.

Consider it for local English sentiment classification when its context limit and license match your application.[10] The accuracy caveat is straightforward: no public benchmark yet establishes its position against these candidates. Evaluate it on representative labeled text before deployment.

7. deberta-xlarge-mnli

deberta-xlarge-mnli by microsoft ranks here under the ordering rule: newest release first, then downloads. Hugging Face first publication was 2022-03-02, with 242,210 downloads in the reporting window [3]. Its download count places it ahead of microsoft’s deberta-large-mnli, which shares that publication date [3][5]. Sentiment analysis status: no public benchmark yet.

The model has a context length of 512 tokens and an MIT license [3]. A useful evaluation case is a local classification workflow where permissive licensing matters and inputs fit that context limit. Evaluate sentiment predictions against labeled examples from your application before choosing it for deployment.

Local hardware requirements remain unspecified: no parameter count, weight size or measured runtime memory accompanies this entry. A particular GPU or RAM capacity therefore cannot be recommended reliably. Measure memory use with your intended runtime and batch settings. The central caveat is that this position does not establish sentiment accuracy.

8. deberta-large-mnli

deberta-large-mnli from microsoft ranks eighth under the ordering rule: newest release first, then downloads.[1][14][6][12][8][10][3][5] Its first Hugging Face publication date is March 2, 2022, matching microsoft’s deberta-xlarge-mnli, but its 173,058 downloads trail that model’s 242,210 over the preceding 30 days as of September 25, 2026.[3][5] The position reflects publication timing and adoption, with no public benchmark yet establishing comparative sentiment performance.

The model has a context length of 512 tokens and an MIT license.[5] A verified weight footprint, GPU requirement, and system-RAM requirement are unavailable for this entry. Local deployment therefore needs a memory check using your intended runtime and workload before you commit hardware; the context limit alone cannot establish whether the model fits.

For sentiment analysis, use deberta-large-mnli as a candidate for task-specific evaluation. The practical caveat is the missing public sentiment benchmark: validate classification quality on representative labeled text before deploying it.

Which classifiers target sentiment rather than language identification, hate speech or emotion?

The direct sentiment candidates are ProsusAI’s finbert (ProsusAI), cardiffnlp’s twitter-roberta-base-sentiment-latest (cardiffnlp), and distilbert’s distilbert-base-uncased-finetuned-sst-2-english (distilbert).[8][12][10] Keep those separate from classifiers targeting language identification, hate speech, emotions or natural language inference.

ProsusAI’s FinBERT targets financial sentiment, making its intended task relevant when evaluating financial text.[9] cardiffnlp’s model targets sentiment in Twitter text, while distilbert’s model identifies its English SST-2 fine-tuning task in its full name.[12][10] Choose an evaluation set that matches your documents before selecting among them; task alignment alone does not establish accuracy on your workload.

facebook’s fasttext-language-identification (facebook) targets language identification, and facebook’s roberta-hate-speech-dynabench-r4-target (facebook) targets hate speech.[1][6][7] SamLowe’s roberta-base-go_emotions (SamLowe) targets emotions.[14] Keep their outputs distinct from sentiment labels when designing an application. A language, hate-speech or emotion classification should not silently become a sentiment judgment.

Microsoft’s deberta-xlarge-mnli (microsoft) and deberta-large-mnli (microsoft) are MNLI candidates, rather than explicitly sentiment-fine-tuned checkpoints.[3][5] Evaluate any proposed sentiment use separately from the direct sentiment candidates.

For local deployment, task fit and licensing need separate checks. The distilbert sentiment checkpoint carries Apache-2.0,[10] and the cardiffnlp sentiment checkpoint carries CC-BY-4.0.[12] Confirm FinBERT’s license before adoption. Start with the direct sentiment candidates, define the labels your application needs, and compare their predictions on representative text.

What hardware requirements can you estimate from the published model weights?

Published model weights give a starting point for estimating memory: the listed F32 weights occupy 0.3 GB for the DistilBERT checkpoint and 0.5 GB for each of the RoBERTa checkpoints with published weight sizes.[10][6][14] Those sizes alone do not establish total system RAM or GPU VRAM requirements.

The distilbert organization’s distilbert-base-uncased-finetuned-sst-2-english (distilbert) has 67 million parameters and 0.3 GB of F32 weights.[10] Facebook’s roberta-hate-speech-dynabench-r4-target (facebook) and SamLowe’s roberta-base-go_emotions (SamLowe) each have 125 million parameters and 0.5 GB of F32 weights.[6][14] Use those figures as weight-storage baselines when planning a local deployment.

For hypothetical quantized storage, the DistilBERT checkpoint’s 67 million parameters imply approximately 33.5 MB, estimated (params x 0.5 bytes).[10] Each listed RoBERTa checkpoint’s 125 million parameters implies approximately 62.5 MB, estimated (params x 0.5 bytes).[6][14] Those calculations describe parameter storage only; they do not establish that a compatible quantized checkpoint is available.

A hardware budget must also accommodate runtime allocations, intermediate tensors and input batches. Measure peak memory with your intended runtime, sequence lengths and batch settings before selecting hardware. The published weight sizes do not justify a specific GPU recommendation or a fixed RAM requirement, and no weight-size estimate is established here for the remaining candidates.

Which licenses apply to local text classifiers?

Local text classifiers in this comparison carry MIT, Apache-2.0, CC-BY-4.0 or CC-BY-NC-4.0 licenses, depending on the model; a license is not identified for every entry.[1][3][5][6][8][10][12][14] Check the exact repository’s license before adopting a model for your application.

Microsoft’s deberta-xlarge-mnli (microsoft) and deberta-large-mnli (microsoft) both list MIT licenses.[3][5] SamLowe’s roberta-base-go_emotions (SamLowe) also lists MIT.[14] Keep the license check attached to the specific model you download, including when you substitute another classifier during development.

The distilbert organization’s distilbert-base-uncased-finetuned-sst-2-english (distilbert) lists Apache-2.0.[10] Record that license alongside the repository identifier in your deployment documentation so a later model change prompts another review.

The cardiffnlp organization’s twitter-roberta-base-sentiment-latest (cardiffnlp) lists CC-BY-4.0, while Facebook’s fasttext-language-identification (facebook) lists CC-BY-NC-4.0.[12][1] Treat those as distinct licenses when reviewing your intended use; do not carry a licensing decision from one repository to the other.

A license is not specified in this comparison for Facebook’s roberta-hate-speech-dynabench-r4-target (facebook) or ProsusAI’s finbert (ProsusAI).[6][8] Verify the applicable terms before deployment or redistribution. For any local installation, review the license against your intended use, retain the relevant notices, and document the decision with the model artifact.

Frequently Asked Questions

Which classifier ranks first, and does that mean it is better at sentiment analysis?

facebook’s fasttext-language-identification (facebook) ranks first because its Hugging Face publication date is the newest in the candidate set: 2023-03-06.[1][14][6][12][8][10][3][5] The family has too few releases within the last 12 months, so the newest available candidates are listed instead.[1][14][6][12][8][10][3][5] Its benchmark status is “no public benchmark yet.” The position reflects publication recency; it does not establish superior sentiment accuracy.

How are the classifiers selected and ranked?

Ranking note: this ranking admits only text classifiers (label a text; Hugging Face pipeline tag: text-classification) from labs with a published paper or leaderboard record, or other publishers above 10,000 downloads in the last 30 days; rerankers, process-reward models and embedding models are excluded.[1][2][14] No public benchmark scores any candidate, so the ordering is newest release first, then downloads. Popularity breaks ties; model size does not determine position.

Which models count as established picks?

The established picks are ProsusAI’s finbert (ProsusAI), distilbert’s distilbert-base-uncased-finetuned-sst-2-english (distilbert), and cardiffnlp’s twitter-roberta-base-sentiment-latest (cardiffnlp): the candidate set’s three most-downloaded models.[8][10][12] Their established status permits inclusion despite age, but never grants first place through that exemption. The same ordering rule applies: publication recency comes before downloads. Download counts indicate adoption, not measured sentiment accuracy; each retains the status “no public benchmark yet.”

How much memory do I need to run these classifiers locally?

distilbert’s distilbert-base-uncased-finetuned-sst-2-english (distilbert) lists F32 weights of 0.3 GB.[10] SamLowe’s roberta-base-go_emotions (SamLowe) and facebook’s roberta-hate-speech-dynabench-r4-target (facebook) each list F32 weights of 0.5 GB.[14][6] Weight storage alone does not establish total runtime memory or a guaranteed GPU fit. Measure peak memory with your intended sequence length and batch size before choosing hardware; avoid treating those weight figures as complete RAM requirements.

Which licenses should I check before deploying a classifier?

Microsoft’s deberta-xlarge-mnli (microsoft) and deberta-large-mnli (microsoft) use MIT, as does SamLowe’s roberta-base-go_emotions (SamLowe).[3][5][14] distilbert’s distilbert-base-uncased-finetuned-sst-2-english (distilbert) uses Apache-2.0.[10] cardiffnlp’s twitter-roberta-base-sentiment-latest (cardiffnlp) uses CC-BY-4.0, while facebook’s fasttext-language-identification (facebook) uses CC-BY-NC-4.0.[12][1] Check the applicable license terms against your intended deployment before adopting a model. Keep license review separate from accuracy evaluation: a license does not establish sentiment performance.

Which classifier should I evaluate for financial sentiment?

Start your evaluation with ProsusAI’s finbert (ProsusAI), associated with “FinBERT: Financial Sentiment Analysis with Pre-trained Language Models.”[9] Its listed context length is 512 tokens.[8] Public comparative benchmark status remains “no public benchmark yet,” so a ranking position cannot settle suitability. Build a labeled sample of your financial text, inspect errors by sentiment label, and measure runtime on your deployment hardware before selecting it.

Sources

  1. facebook/fasttext-language-identification model card (Hugging Face) — 2026-09-25 · fasttext-language-identification on Q4KM
  2. Enriching Word Vectors with Subword Information — 2016-07-15
  3. microsoft/deberta-xlarge-mnli model card (Hugging Face) — 2026-09-25 · deberta-xlarge-mnli on Q4KM
  4. DeBERTa: Decoding-enhanced BERT with Disentangled Attention — 2020-06-05
  5. microsoft/deberta-large-mnli model card (Hugging Face) — 2026-09-25 · deberta-large-mnli on Q4KM
  6. facebook/roberta-hate-speech-dynabench-r4-target model card (Hugging Face) — 2026-09-25 · roberta-hate-speech-dynabench-r4-target on Q4KM
  7. Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detection — 2020-12-31
  8. ProsusAI/finbert model card (Hugging Face) — 2026-09-25 · finbert on Q4KM
  9. FinBERT: Financial Sentiment Analysis with Pre-trained Language Models — 2019-08-27
  10. distilbert/distilbert-base-uncased-finetuned-sst-2-english model card (Hugging Face) — 2026-09-25 · distilbert-base-uncased-finetuned-sst-2-english on Q4KM
  11. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter — 2019-10-02
  12. cardiffnlp/twitter-roberta-base-sentiment-latest model card (Hugging Face) — 2026-09-25 · twitter-roberta-base-sentiment-latest on Q4KM
  13. TimeLMs: Diachronic Language Models from Twitter — 2022-02-08
  14. SamLowe/roberta-base-go_emotions model card (Hugging Face) — 2026-09-25 · roberta-base-go_emotions on Q4KM

Get these models on a hard drive

Skip the downloads. Browse our catalog of 985+ commercially-licensed AI models, available pre-loaded on high-speed drives.

Browse Model Catalog