huggingface / huggingface/course
pipeline("ner", grouped_entities=True) raises TypeError - deprecated param
Open
Beginner friendly
- Dominant language
- MDX
- Stars
- 4.2k
- Forks
- 1.4k
- Avg merge
- 13m
- Merged PRs (30d)
- 1
Description
Page: chapter1/3
The example code uses grouped_entities=True which throws:
TypeError: TokenClassificationPipeline._sanitize_parameters() got an unexpected keyword argument 'grouped_entities'
Fix: replace with aggregation_strategy="simple" (current transformers API)
Contributor guide
No contributing guide indexed for this repository
Research direction
Open the example on page chapter1/3 and inspect the pipeline("ner", grouped_entities=True) call. Update the example to use the current aggregation_strategy="simple" parameter, then verify the documented code no longer uses the deprecated argument.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100