File size: 557 Bytes
eebc358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ab305f4
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
language:
- ar
- bg
- de
- el
- en
- es
- fr
- hi
- it
- ja
- nl
- pl
- pt
- ru
- sw
- th
- tr
- ur
- vi
- zh
tags:
- fastc
license: mit
datasets:
- papluca/language-identification
base_model: intfloat/multilingual-e5-large-instruct
---

## Install FastC
```bash
pip install fastc
```

## Model Inference
```python
from fastc import SentenceClassifier

classifier = SentenceClassifier('braindao/e5-large-instruct-language-identifier-infused-papluca-fastc')
scores = classifier.predict_one('How are you today?')
language = max(scores, key=scores.get)
```