undertheseanlp/radar-1
0
Radar-1
Radar-1 is a language detection model developed by UnderTheSea NLP.
Model Description
- Model Type: Language Detection (Text Classification)
- Task: Identify the language of input text
- Language: Multilingual
- License: Apache 2.0
Supported Languages
Installation
pip install undertheseaUsage
from underthesea import lang_detect
text = "Xin chào, tôi là người Việt Nam"
language = lang_detect(text)
print(language) # viAPI
from radar import RadarLangDetector, detect
# Quick detection
lang = detect("Hello world")
print(lang) # en
# With confidence scores
detector = RadarLangDetector.load("models/radar-1")
result = detector.predict("Xin chào Việt Nam")
print(result.lang) # vi
print(result.score) # 0.98Training
python src/train.pyTechnical Report
See TECHNICAL_REPORT.md for detailed methodology and evaluation.
