Skip to content

fix: replace deprecated grouped_entities with aggregation_strategy#1200

Open
dhruvildarji wants to merge 3 commits intohuggingface:mainfrom
dhruvildarji:grouped-entities-deprecated
Open

fix: replace deprecated grouped_entities with aggregation_strategy#1200
dhruvildarji wants to merge 3 commits intohuggingface:mainfrom
dhruvildarji:grouped-entities-deprecated

Conversation

@dhruvildarji
Copy link

Fixes the deprecation of grouped_entities=True parameter in TokenClassificationPipeline (removed in recent transformers versions). Replaced with aggregation_strategy="simple".

Also fixes a Svelte build syntax error in quiz files across 12 languages where aggregation_strategy="simple" inside <code> tags in double-quoted JS strings was causing parse failures — replaced inner double quotes with &quot; HTML entities.

Changes:

  • chapters/en/chapter1/3.mdx — replace grouped_entities=True with aggregation_strategy="simple"
  • chapters/de/chapter1/10.mdx and 11 other language quiz files — fix unescaped " in Svelte explain strings

ddarji1409 and others added 3 commits February 22, 2026 23:17
The `grouped_entities=True` parameter was removed from `TokenClassificationPipeline`.
Replace all occurrences across all language chapters and subtitles with the
current equivalent: `aggregation_strategy="simple"`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lure

Escape double quotes inside <code> tags using \&quot; to prevent
Svelte parser errors during documentation build. Fixes en, te, pt,
and my translations.
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants