Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 600 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 600 Bytes

fasttext-predict

Python package for fasttext:

  • keep only the predict method, all other features are removed
  • standalone package without external dependency (numpy is not a dependency)
  • wheels for various architectures using GitHub workflows. The script is inspired by lxml build scripts.

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