brunneis commited on
Commit
ab305f4
1 Parent(s): eebc358

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -21
README.md CHANGED
@@ -28,24 +28,16 @@ datasets:
28
  base_model: intfloat/multilingual-e5-large-instruct
29
  ---
30
 
31
- ## Supported Languages
32
- - Arabic (ar)
33
- - Bulgarian (bg)
34
- - German (de)
35
- - Greek (el)
36
- - English (en)
37
- - Spanish (es)
38
- - French (fr)
39
- - Hindi (hi)
40
- - Italian (it)
41
- - Japanese (ja)
42
- - Dutch (nl)
43
- - Polish (pl)
44
- - Portuguese (pt)
45
- - Russian (ru)
46
- - Swahili (sw)
47
- - Thai (th)
48
- - Turkish (tr)
49
- - Urdu (ur)
50
- - Vietnamese (vi)
51
- - Chinese (zh)
 
28
  base_model: intfloat/multilingual-e5-large-instruct
29
  ---
30
 
31
+ ## Install FastC
32
+ ```bash
33
+ pip install fastc
34
+ ```
35
+
36
+ ## Model Inference
37
+ ```python
38
+ from fastc import SentenceClassifier
39
+
40
+ classifier = SentenceClassifier('braindao/e5-large-instruct-language-identifier-infused-papluca-fastc')
41
+ scores = classifier.predict_one('How are you today?')
42
+ language = max(scores, key=scores.get)
43
+ ```