brunneis commited on
Commit
e9f9cd4
1 Parent(s): 2db4389

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
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
+ ```