searxng / fasttext-predict

fasttext with wheels and no external dependency, but only the predict method (<1MB)
MIT License
11 stars 5 forks source link
fasttext language-detection language-identification python

fasttext-predict

Python package for fasttext:

Usage

pip install fasttext-predict
import fasttext
model = fasttext.load_model('lid.176.ftz')
result = model.predict('Fondant au chocolat et tarte aux myrtilles')

See https://fasttext.cc/docs/en/language-identification.html