Update README.md
Browse files
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(“
|
53 |
-
model = CamembertModel.from_pretrained(“
|
54 |
model.eval()
|
55 |
```
|
56 |
|
57 |
Filling masks using pipeline :
|
58 |
```python
|
59 |
-
model_fill_mask = pipeline(“fill-mask”, model=”
|
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},
|