brunneis commited on
Commit
21ef888
1 Parent(s): 0097213

Updated README.md via fastc

Browse files
Files changed (1) hide show
  1. README.md +8 -12
README.md CHANGED
@@ -1,25 +1,21 @@
1
  ---
2
- language:
3
- - en
4
- - es
5
- - ko
6
- - zh
7
  tags:
8
  - fastc
9
- license: mit
10
- base_model: intfloat/multilingual-e5-large-instruct
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/e5-large-instruct-language-identifier-en-es-ko-zh-fastc')
23
- scores = classifier.predict_one('How are you today?')
24
- language = max(scores, key=scores.get)
25
  ```
 
1
  ---
2
+ base_model: intfloat/multilingual-e5-large-instruct
 
 
 
 
3
  tags:
4
  - fastc
5
+ - fastc-2.0
 
6
  ---
7
 
8
+ # e5-large-instruct-language-identifier-en-es-ko-zh-fastc
9
+
10
+ ## Install fastc
11
  ```bash
12
  pip install fastc
13
  ```
14
 
15
  ## Model Inference
16
  ```python
17
+ from fastc import Fastc
18
 
19
+ model = Fastc('braindao/e5-large-instruct-language-identifier-en-es-ko-zh-fastc')
20
+ label = model.predict_one(text)['label']
 
21
  ```