System Info
I encountered a TypeError when following a tutorial for the NER pipeline. It seems that the grouped_entities parameter, which was previously deprecated, has now been fully removed in the current version of transformers
This is the given code (https://huggingface.co/learn/llm-course/chapter1/3) in NER section
from transformers import pipeline
ner_pipeline = pipeline("ner", grouped_entities=True)
TypeError: TokenClassificationPipeline._sanitize_parameters() got an unexpected keyword argument 'grouped_entities'
This one is working:
from transformers import pipeline
ner_pipeline = pipeline("ner", aggregation_strategy="simple")
Who can help?
No response
Information
Tasks
Reproduction
In this website https://huggingface.co/learn/llm-course/chapter1/3 under Named entity recognition section
This code is given as an example. This rises (TypeError: TokenClassificationPipeline._sanitize_parameters() got an unexpected keyword argument 'grouped_entities')
from transformers import pipeline
ner = pipeline("ner", grouped_entities=True)
ner("My name is Sylvain and I work at Hugging Face in Brooklyn.")
Expected behavior
from transformers import pipeline
ner_pipeline = pipeline("ner", grouped_entities=True)
from transformers import pipeline
ner_pipeline = pipeline("ner", aggregation_strategy="simple")
grouped_entities should be changed to aggregation_strategy
System Info
I encountered a TypeError when following a tutorial for the NER pipeline. It seems that the grouped_entities parameter, which was previously deprecated, has now been fully removed in the current version of transformers
This is the given code (https://huggingface.co/learn/llm-course/chapter1/3) in NER section
from transformers import pipeline
ner_pipeline = pipeline("ner", grouped_entities=True)
TypeError: TokenClassificationPipeline._sanitize_parameters() got an unexpected keyword argument 'grouped_entities'
This one is working:
from transformers import pipeline
ner_pipeline = pipeline("ner", aggregation_strategy="simple")
Who can help?
No response
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
In this website https://huggingface.co/learn/llm-course/chapter1/3 under Named entity recognition section
This code is given as an example. This rises (TypeError: TokenClassificationPipeline._sanitize_parameters() got an unexpected keyword argument 'grouped_entities')
from transformers import pipeline
ner = pipeline("ner", grouped_entities=True)
ner("My name is Sylvain and I work at Hugging Face in Brooklyn.")
Expected behavior
from transformers import pipeline
ner_pipeline = pipeline("ner", grouped_entities=True)
from transformers import pipeline
ner_pipeline = pipeline("ner", aggregation_strategy="simple")
grouped_entities should be changed to aggregation_strategy