Update README.md
Browse files
README.md
CHANGED
@@ -49,10 +49,10 @@ How to use DistilCamemBERT
|
|
49 |
|
50 |
Load DistilCamemBERT and its sub-word tokenizer :
|
51 |
```python
|
52 |
-
from transformers import
|
53 |
|
54 |
-
tokenizer =
|
55 |
-
model =
|
56 |
model.eval()
|
57 |
...
|
58 |
```
|
|
|
49 |
|
50 |
Load DistilCamemBERT and its sub-word tokenizer :
|
51 |
```python
|
52 |
+
from transformers import AutoTokenizer, AutoModel
|
53 |
|
54 |
+
tokenizer = AutoTokenizer.from_pretrained("cmarkea/distilcamembert-base")
|
55 |
+
model = AutoModel.from_pretrained("cmarkea/distilcamembert-base")
|
56 |
model.eval()
|
57 |
...
|
58 |
```
|