#90 · Primary category: Foundation Models
bpemb
Pre-trained subword embeddings in 275 languages, based on Byte-Pair Encoding (BPE)
Project last updated:10/01/24
GitHub Stars
1.2K
Forks
100
Contributors
7
License
MIT
Why we included this project
BPEmb saves neural NLP projects the work of assembling their own subword pipeline: it ships a Byte-Pair Encoding segmenter and pretrained embeddings for 275 languages, trained on Wikipedia. You load a model by language code and dimensionality, and the library downloads the right files and returns embeddings as a gensim KeyedVectors object, so it drops into existing vector workflows without a custom format. The vocabulary-size setting is the main thing to think about before choosing a model. Smaller vocabularies split words into more subwords, which helps with morphology and out-of-vocabulary tokens, while larger ones keep frequent words whole. That tradeoff, plus the language coverage, makes it handy for multilingual classification, sequence labeling, or translation systems that want subword-aware inputs without training embeddings from scratch.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MiniCPM-V
A Pocket-Sized MLLM for Ultra-Efficient Image and Video Understanding on Your Phone
generative-models
Generative Models by Stability AI
unilm
Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities