Cyrile commited on
Commit
88a38c2
1 Parent(s): 3794045

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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 CamembertModel, CamembertTokenizer
53
 
54
- tokenizer = CamembertTokenizer.from_pretrained("cmarkea/distilcamembert-base")
55
- model = CamembertModel.from_pretrained("cmarkea/distilcamembert-base")
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
  ```