Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ar
|
4 |
+
- bg
|
5 |
+
- de
|
6 |
+
- el
|
7 |
+
- en
|
8 |
+
- es
|
9 |
+
- fr
|
10 |
+
- hi
|
11 |
+
- it
|
12 |
+
- ja
|
13 |
+
- nl
|
14 |
+
- pl
|
15 |
+
- pt
|
16 |
+
- ru
|
17 |
+
- sw
|
18 |
+
- th
|
19 |
+
- tr
|
20 |
+
- ur
|
21 |
+
- vi
|
22 |
+
- zh
|
23 |
+
tags:
|
24 |
+
- fastc
|
25 |
+
license: mit
|
26 |
+
datasets:
|
27 |
+
- papluca/language-identification
|
28 |
+
base_model: deepset/tinyroberta-6l-768d
|
29 |
+
---
|
30 |
+
|
31 |
+
## Install FastC
|
32 |
+
```bash
|
33 |
+
pip install fastc
|
34 |
+
```
|
35 |
+
|
36 |
+
## Model Inference
|
37 |
+
```python
|
38 |
+
from fastc import SentenceClassifier
|
39 |
+
|
40 |
+
classifier = SentenceClassifier('braindao/tinyroberta-6l-768d-language-identifier-infused-papluca-fastc')
|
41 |
+
scores = classifier.predict_one('How are you today?')
|
42 |
+
language = max(scores, key=scores.get)
|
43 |
+
```
|