brunneis commited on
Commit
367d57e
1 Parent(s): 7e50b1b

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
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: intfloat/multilingual-e5-large-instruct
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/e5-large-instruct-language-identifier-en-es-gl-ko-zh-fastc')
24
+ scores = classifier.predict_one('How are you today?')
25
+ language = max(scores, key=scores.get)
26
+ ```