Updated README.md via fastc
Browse files
README.md
CHANGED
|
@@ -1,25 +1,21 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
- en
|
| 4 |
-
- es
|
| 5 |
-
- ko
|
| 6 |
-
- zh
|
| 7 |
tags:
|
| 8 |
- fastc
|
| 9 |
-
|
| 10 |
-
base_model: intfloat/multilingual-e5-large-instruct
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
```bash
|
| 15 |
pip install fastc
|
| 16 |
```
|
| 17 |
|
| 18 |
## Model Inference
|
| 19 |
```python
|
| 20 |
-
from fastc import
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 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 |
```
|