Cyrile commited on
Commit
a6d9bdb
1 Parent(s): 37a1570

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -49,14 +49,14 @@ Load CamemBERT and its sub-word tokenizer :
49
  ```python
50
  from transformers import CamembertModel, CamembertTokenizer
51
 
52
- tokeinzer = CamembertTokenizer.from_pretrained(“Arkea/distilcamembert-base”)
53
- model = CamembertModel.from_pretrained(“Arkea/distilcamembert-base”)
54
  model.eval()
55
  ```
56
 
57
  Filling masks using pipeline :
58
  ```python
59
- model_fill_mask = pipeline(“fill-mask”, model=”Arkea/distilcamembert-base”, tokenizer=”Arkea/distilcamembert-base”)
60
  result = model_fill_mask(“Le camembert est <mask>  :)”)
61
  #results
62
  #[{'sequence': '<s> Le camembert est délicieux :)</s>', 'score': 0.3878222405910492, 'token': 7200},
 
49
  ```python
50
  from transformers import CamembertModel, CamembertTokenizer
51
 
52
+ tokeinzer = CamembertTokenizer.from_pretrained(“cmarkea/distilcamembert-base”)
53
+ model = CamembertModel.from_pretrained(“cmarkea/distilcamembert-base”)
54
  model.eval()
55
  ```
56
 
57
  Filling masks using pipeline :
58
  ```python
59
+ model_fill_mask = pipeline(“fill-mask”, model=”cmarkea/distilcamembert-base”, tokenizer=”cmarkea/distilcamembert-base”)
60
  result = model_fill_mask(“Le camembert est <mask>  :)”)
61
  #results
62
  #[{'sequence': '<s> Le camembert est délicieux :)</s>', 'score': 0.3878222405910492, 'token': 7200},