Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
- es
|
5 |
+
- gl
|
6 |
+
- ko
|
7 |
+
- zh
|
8 |
+
tags:
|
9 |
+
- fastc
|
10 |
+
license: mit
|
11 |
+
base_model: deepset/tinyroberta-6l-768d
|
12 |
+
---
|
13 |
+
|
14 |
+
## Install FastC
|
15 |
+
```bash
|
16 |
+
pip install fastc
|
17 |
+
```
|
18 |
+
|
19 |
+
## Model Inference
|
20 |
+
```python
|
21 |
+
from fastc import SentenceClassifier
|
22 |
+
|
23 |
+
classifier = SentenceClassifier('braindao/tinyroberta-6l-768d-language-identifier-infused-en-es-gl-ko-zh-fastc')
|
24 |
+
scores = classifier.predict_one('Como te atopas?')
|
25 |
+
language = max(scores, key=scores.get)
|
26 |
+
```
|