matteo commited on
Commit
ae5e64d
1 Parent(s): a33a444

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -2,6 +2,7 @@
2
  language:
3
  - it
4
  pipeline_tag: translation
 
5
  ---
6
 
7
  To initialize the model:
@@ -16,5 +17,4 @@ To generate text using the model:
16
 
17
  tokenizer = MBart50TokenizerFast.from_pretrained("facebook/mbart-large-50", src_lang="it_IT", tgt_lang="it_IT")
18
  input = tokenizer("I was here yesterday to studying",text_target="I was here yesterday to study", return_tensors='pt')
19
- output = hidden_states = model.generate(input["input_ids"],attention_mask=input["attention_mask"],forced_bos_token_id=tokenizer_it.lang_code_to_id["it_IT"])
20
-
 
2
  language:
3
  - it
4
  pipeline_tag: translation
5
+ license: mit
6
  ---
7
 
8
  To initialize the model:
 
17
 
18
  tokenizer = MBart50TokenizerFast.from_pretrained("facebook/mbart-large-50", src_lang="it_IT", tgt_lang="it_IT")
19
  input = tokenizer("I was here yesterday to studying",text_target="I was here yesterday to study", return_tensors='pt')
20
+ output = hidden_states = model.generate(input["input_ids"],attention_mask=input["attention_mask"],forced_bos_token_id=tokenizer_it.lang_code_to_id["it_IT"])