BERTugues
BERTugues is a text embedding model for Brazilian Portuguese trained exclusively on Portuguese data.
Visit the GitHub repository for tutorials and examples

BERTugues was pre-trained following the original BERT paper objectives—Masked Language Modeling (MLM) and Next Sentence Prediction (NSP)—for 1 million steps on over 20 GB of Portuguese text from BrWAC and Wikipedia, with key improvements:
- Cleaner vocabulary: removed thousands of rare East Asian/special tokens unused in Portuguese before training the tokenizer.
- 😀 Emoji support: added common emojis to the tokenizer, improving downstream performance on social and sentiment tasks.
- Quality filtering: filtered low-quality BrWAC texts using heuristics from Google’s Gopher paper.
Tokenizer Link to heading
Replacing rarely used tokens reduced the average number of split words per text on ASSIN2 from 3.8 (BERTimbau) and 7.4 (Multilingual BERT) down to 3.0.

Benchmarks Link to heading
Evaluated on Portuguese movie review classification (IMDB PT-BR) and legal text similarity (JurisBERT), outperforming Multilingual BERT and competing closely with BERTimbau.