Commit ·
30f9407
1
Parent(s): be4da2a
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- he
|
| 5 |
+
library_name: fasttext
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
language detection of the English and Hebrew (only Romanized, - Hebrew script language detection is trivial)
|
| 9 |
+
|
| 10 |
+
```python
|
| 11 |
+
|
| 12 |
+
import fasttext as ft
|
| 13 |
+
|
| 14 |
+
model = ft.load_model("model_lang_detection.bin")
|
| 15 |
+
model.predict("tachles")
|
| 16 |
+
#(('__label__he',), array([0.92569]))
|
| 17 |
+
```
|