Commit
·
13ee076
1
Parent(s):
9a44ab5
Update README.md
Browse filesCorrecting example
README.md
CHANGED
|
@@ -29,7 +29,7 @@ model = AutoModelForTokenClassification.from_pretrained("Jean-Baptiste/roberta-t
|
|
| 29 |
|
| 30 |
from transformers import pipeline
|
| 31 |
|
| 32 |
-
nlp = pipeline('ner', model=model, tokenizer=tokenizer,
|
| 33 |
|
| 34 |
nlp("I am going to buy 100 shares of cake tomorrow")
|
| 35 |
[{'entity_group': 'TICKER',
|
|
|
|
| 29 |
|
| 30 |
from transformers import pipeline
|
| 31 |
|
| 32 |
+
nlp = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")
|
| 33 |
|
| 34 |
nlp("I am going to buy 100 shares of cake tomorrow")
|
| 35 |
[{'entity_group': 'TICKER',
|