EvanD commited on
Commit
846f590
1 Parent(s): 9c8f6ab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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, grouped_entities=True)
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)