Ghanvert commited on
Commit
cc30d18
·
verified ·
1 Parent(s): 70533d2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
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 Mapuzungun ("quy_Latn").
 
 
 
 
 
12
 
13
  # Example
14
  ```python
15
- from transformers import NllbTokenizer, AutoModelForSeq2SeqLM
16
 
17
- tokenizer = NllbTokenizer.from_pretrained("CenIA/nllb-200-3.3B-spa-arn", use_auth_token="HF_TOKEN")
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: