sagorsarker
commited on
Commit
•
75f727e
1
Parent(s):
c0196e1
Update README.md
Browse files
README.md
CHANGED
@@ -23,7 +23,7 @@ from transformers import pipeline
|
|
23 |
tokenizer = AutoTokenizer.from_pretrained("sagorsarker/mbert-bengali-ner")
|
24 |
model = AutoModelForTokenClassification.from_pretrained("sagorsarker/mbert-bengali-ner")
|
25 |
|
26 |
-
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
27 |
example = "আমি জাহিদ এবং আমি ঢাকায় বাস করি।"
|
28 |
|
29 |
ner_results = nlp(example)
|
|
|
23 |
tokenizer = AutoTokenizer.from_pretrained("sagorsarker/mbert-bengali-ner")
|
24 |
model = AutoModelForTokenClassification.from_pretrained("sagorsarker/mbert-bengali-ner")
|
25 |
|
26 |
+
nlp = pipeline("ner", model=model, tokenizer=tokenizer, grouped_entities=True)
|
27 |
example = "আমি জাহিদ এবং আমি ঢাকায় বাস করি।"
|
28 |
|
29 |
ner_results = nlp(example)
|