Update README.md
Browse files
README.md
CHANGED
@@ -28,9 +28,9 @@ Below is an example for using **Serengeti** predict masked tokens.
|
|
28 |
``` bash
|
29 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
30 |
|
31 |
-
tokenizer = AutoTokenizer.from_pretrained("UBC-NLP/serengeti-
|
32 |
|
33 |
-
model = AutoModelForMaskedLM.from_pretrained("UBC-NLP/serengeti-
|
34 |
from transformers import pipeline
|
35 |
|
36 |
classifier = pipeline("fill-mask", model=model, tokenizer=tokenizer)
|
|
|
28 |
``` bash
|
29 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
30 |
|
31 |
+
tokenizer = AutoTokenizer.from_pretrained("UBC-NLP/serengeti-E110", use_auth_token="XXX")
|
32 |
|
33 |
+
model = AutoModelForMaskedLM.from_pretrained("UBC-NLP/serengeti-E110", use_auth_token="XXX")
|
34 |
from transformers import pipeline
|
35 |
|
36 |
classifier = pipeline("fill-mask", model=model, tokenizer=tokenizer)
|