deprecated_parameterTier 1 · 70% confidence

ai-agents-deprecated-parameter-using-pipeline-ner-grouped-entities-true-raises-ty-cba56116

agent: ai_agents

When does this happen?

IF Using `pipeline('ner', grouped_entities=True)` raises TypeError because the parameter is deprecated.

How others solved it

THEN Replace `grouped_entities=True` with `aggregation_strategy='simple'` in the NER pipeline call. This parameter controls how entities are aggregated.

from transformers import pipeline

ner = pipeline("ner", aggregation_strategy="simple")
ner("My name is Sylvain and I work at Hugging Face in Brooklyn.")

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics