Update README.md
Browse files
README.md
CHANGED
@@ -8,13 +8,18 @@ inference: false
|
|
8 |
---
|
9 |
|
10 |
# Description
|
11 |
-
Finetuned [facebook/nllb-200-3.3B](https://huggingface.co/facebook/nllb-200-3.3B) model to translate between Spanish ("spa_Latn") and
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
# Example
|
14 |
```python
|
15 |
-
from transformers import
|
16 |
|
17 |
-
tokenizer =
|
18 |
model = AutoModelForSeq2SeqLM.from_pretrained("CenIA/nllb-200-3.3B-spa-arn", use_auth_token="HF_TOKEN")
|
19 |
|
20 |
def translate(sentence: str, translate_from="spa_Latn", translate_to="quy_Latn") -> str:
|
|
|
8 |
---
|
9 |
|
10 |
# Description
|
11 |
+
Finetuned [facebook/nllb-200-3.3B](https://huggingface.co/facebook/nllb-200-3.3B) model to translate between Spanish ("spa_Latn") and Mapuzungún.
|
12 |
+
We support the following languages/graphemaries:
|
13 |
+
- Spanish (**spa_Latn**)
|
14 |
+
- Azümchefe (**quy_Latn**)
|
15 |
+
- Ragileo (**nso_Latn**)
|
16 |
+
- Unificado (**fra_Latn**)
|
17 |
|
18 |
# Example
|
19 |
```python
|
20 |
+
from transformers import NllbTokenizerFast, AutoModelForSeq2SeqLM
|
21 |
|
22 |
+
tokenizer = NllbTokenizerFast.from_pretrained("CenIA/nllb-200-3.3B-spa-arn", use_auth_token="HF_TOKEN")
|
23 |
model = AutoModelForSeq2SeqLM.from_pretrained("CenIA/nllb-200-3.3B-spa-arn", use_auth_token="HF_TOKEN")
|
24 |
|
25 |
def translate(sentence: str, translate_from="spa_Latn", translate_to="quy_Latn") -> str:
|