Instructions to use fse/fasttext-crawl-subwords-300 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fse
How to use fse/fasttext-crawl-subwords-300 with fse:
pip install "fse<2"
from fse import SIF, IndexedList, Vectors vectors = Vectors.from_pretrained("fasttext-crawl-subwords-300") model = SIF(vectors) sentences = IndexedList([["hello", "world"], ["fast", "sentence", "embeddings"]]) model.train(sentences) vector = model.sv[0] - fastText
How to use fse/fasttext-crawl-subwords-300 with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("fse/fasttext-crawl-subwords-300", "model.bin")) - Notebooks
- Google Colab
- Kaggle
Ctrl+K