SkitCon commited on
Commit
cb4ce57
·
verified ·
1 Parent(s): 7f59eaa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -31,7 +31,7 @@ model = BartForConditionalGeneration.from_pretrained("SkitCon/gec-spanish-BARTO-
31
 
32
  input_sentences = ["Yo va al tienda.", "Espero que tú ganas."]
33
 
34
- tokenized_text = tokenizer(input_sentences, return_tensors="pt")
35
 
36
  input_ids = tokenized_text["input_ids"].squeeze()
37
  attention_mask = tokenized_text["attention_mask"].squeeze()
 
31
 
32
  input_sentences = ["Yo va al tienda.", "Espero que tú ganas."]
33
 
34
+ tokenized_text = tokenizer(input_sentences, max_length=128, padding="max_length", truncation=True, return_tensors="pt")
35
 
36
  input_ids = tokenized_text["input_ids"].squeeze()
37
  attention_mask = tokenized_text["attention_mask"].squeeze()