Update README.md
Browse files
README.md
CHANGED
@@ -60,8 +60,8 @@ You can use this model with Transformers *pipeline* for NER.
|
|
60 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
61 |
from transformers import pipeline
|
62 |
|
63 |
-
tokenizer = AutoTokenizer.from_pretrained("Tirendaz/roberta-
|
64 |
-
model = AutoModelForTokenClassification.from_pretrained("Tirendaz/roberta-
|
65 |
|
66 |
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
67 |
example = "My name is Wolfgang and I live in Berlin"
|
|
|
60 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
61 |
from transformers import pipeline
|
62 |
|
63 |
+
tokenizer = AutoTokenizer.from_pretrained("Tirendaz/multilingual-xlm-roberta-for-ner")
|
64 |
+
model = AutoModelForTokenClassification.from_pretrained("Tirendaz/multilingual-xlm-roberta-for-ner")
|
65 |
|
66 |
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
67 |
example = "My name is Wolfgang and I live in Berlin"
|