Derur commited on
Commit
d115e14
·
verified ·
1 Parent(s): 3471c95

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - "multilingual"
4
+ pipeline_tag: text-classification
5
+ library_name: fasttext, fast_langdetect
6
+ ---
7
+ Text language classification models!
8
+
9
+ Example:
10
+
11
+ ```python
12
+ from fast_langdetect import detect, detect_multilingual, LangDetector, LangDetectConfig
13
+ config = LangDetectConfig(allow_fallback=False, custom_model_path="./fasttext/lid.218e.bin") # lid.176.ftz / lid.176.bin / lid.218e.bin
14
+ detector = LangDetector(config)
15
+ result = detector.detect("Hello world!")
16
+ print(result)
17
+ ```