chunkipy.language_detectors.fasttext_language_detector
Classes
|
Detect language codes using a FastText language identification model. |
- class chunkipy.language_detectors.fasttext_language_detector.FastTextLanguageDetector(model_path, label_prefix='__label__')[source]
Bases:
BaseLanguageDetectorDetect language codes using a FastText language identification model.
The detector expects a path to a model compatible with the FastText Python bindings, such as Facebook’s
lid.176.bin.