Update README.md
Browse files
README.md
CHANGED
@@ -28,24 +28,16 @@ datasets:
|
|
28 |
base_model: intfloat/multilingual-e5-large-instruct
|
29 |
---
|
30 |
|
31 |
-
##
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
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 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|