chunkipy.language_detectors
Public language detector classes exposed by chunkipy.language_detectors.
- class chunkipy.language_detectors.BaseLanguageDetector[source]
Bases:
ABCBase class for strategies that detect the language of a text.
- class chunkipy.language_detectors.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.
- class chunkipy.language_detectors.LangdetectLanguageDetector[source]
Bases:
BaseLanguageDetectorDetect language codes using the optional
langdetectdependency.
Modules