Jean-Baptiste commited on
Commit
13ee076
1 Parent(s): 9a44ab5

Update README.md

Browse files

Correcting example

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