Practical overview
When it fits
Use BERTweet when a project needs a pretrained language model oriented toward English tweets and can prepare raw tweets using the repository's normalization guidance.
Who it is for
- Researchers building language-processing workflows for English tweets.
- Developers preparing tweet text for classification, named-entity recognition or irony detection.
Documented uses
- Create model representations from normalized English tweet text.
- Build downstream sentiment or other text-classification workflows.
- Explore named-entity recognition and irony detection on tweet text.
- Normalize mentions, URLs and emoji consistently before tokenization.
Requirements & limits
The repository is public and MIT-licensed.
- The repository lists multiple checkpoints: base models with a maximum length of 128 and a large model with a maximum length of 512.
- COVID-19-specific base checkpoints were further pretrained on a corpus of 23 million COVID-19 English tweets.
- The project documents use with Transformers and fairseq; its Transformers example loads a model and tokenizer and returns model features.
- TweetNormalizer guidance specifies emoji package versions 0.5.4 or 0.6.0.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare raw tweets and tokenize them with Transformers
Normalize raw English tweets and convert one normalized tweet into model input IDs.
Before you start
- Python environment with PyTorch and Transformers installed.
- Install NLTK and emoji version 0.5.4 or 0.6.0 for TweetNormalizer.
Steps
Install Transformers and tokenizers as described in the repository.
Install NLTK and emoji 0.5.4 or 0.6.0.
Load a BERTweet tokenizer with AutoTokenizer.from_pretrained.
Pass raw tweet text through normalizeTweet, then encode the normalized text with the tokenizer.
Expected outcome
A tokenized input representation prepared for a BERTweet model.
Guide limitations
- The repository warns that newer emoji package versions use updated emoji charts that do not match the preprocessing used for pretraining.
- The documented example prepares model input; it does not provide a complete downstream classifier.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 October 2026
- Original website title
- VinAIResearch/BERTweet · Official homepage title · retained in its source language

