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