petros commited on
Commit
ba2892b
·
1 Parent(s): bd659e7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -80,11 +80,11 @@ print(tokenizer_cypriot.convert_ids_to_tokens(outputs[0, 2].max(0)[1].item())) #
80
 
81
  # ================ EXAMPLE 2 ================
82
  text_2 = 'Eίσαι μια [MASK].'
83
- input_ids = tokenizer_greek.encode(text_2)
84
- print(tokenizer_greek.convert_ids_to_tokens(input_ids)) #['[CLS]', 'eισ', '##αι', 'μια', '[MASK]', '.', '[SEP]']
85
 
86
- outputs = lm_model_greek(torch.tensor([input_ids]))[0]
87
- print(tokenizer_greek.convert_ids_to_tokens(outputs[0, 3].max(0)[1].item())) # χαρα
88
 
89
  ```
90
 
 
80
 
81
  # ================ EXAMPLE 2 ================
82
  text_2 = 'Eίσαι μια [MASK].'
83
+ input_ids = tokenizer_cypriot.encode(text_2)
84
+ print(tokenizer_cypriot.convert_ids_to_tokens(input_ids)) #['[CLS]', 'eισ', '##αι', 'μια', '[MASK]', '.', '[SEP]']
85
 
86
+ outputs = lm_model_cypriot(torch.tensor([input_ids]))[0]
87
+ print(tokenizer_cypriot.convert_ids_to_tokens(outputs[0, 4].max(0)[1].item())) # χαρα
88
 
89
  ```
90