CoolFace
Modelpublic

Derur/lang-detect-models

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Model Card

Text language classification models!

Example:

python
from fast_langdetect import detect, detect_multilingual, LangDetector, LangDetectConfig
config = LangDetectConfig(allow_fallback=False,  custom_model_path="./fasttext/lid.218e.bin") # lid.176.ftz / lid.176.bin / lid.218e.bin
detector = LangDetector(config)
result = detector.detect("Hello world!")
print(result)