Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ from transformers import pipeline
|
|
22 |
tokenizer = AutoTokenizer.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|
23 |
ner_model = AutoModelForTokenClassification.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|
24 |
|
25 |
-
nlp = pipeline("ner", model=ner_model, tokenizer=tokenizer,
|
26 |
example = "George Washington ging naar Washington"
|
27 |
|
28 |
ner_results = nlp(example)
|
|
|
22 |
tokenizer = AutoTokenizer.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|
23 |
ner_model = AutoModelForTokenClassification.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|
24 |
|
25 |
+
nlp = pipeline("ner", model=ner_model, tokenizer=tokenizer, aggregation_strategy="simple")
|
26 |
example = "George Washington ging naar Washington"
|
27 |
|
28 |
ner_results = nlp(example)
|