Skip to content

Comments

MAINT: Edge Case with Word Selection Converters#1257

Merged
rlundeen2 merged 1 commit intoAzure:mainfrom
rlundeen2:users/rlundeen/2025_12_15_selective_strategy
Dec 15, 2025
Merged

MAINT: Edge Case with Word Selection Converters#1257
rlundeen2 merged 1 commit intoAzure:mainfrom
rlundeen2:users/rlundeen/2025_12_15_selective_strategy

Conversation

@rlundeen2
Copy link
Contributor

@rlundeen2 rlundeen2 commented Dec 15, 2025

When SelectiveTextConverter with a WordSelectionStrategy selection_strategy wraps a WordLevelConverter that has a non-default word_selection_strategy, the WLC's strategy becomes meaningless because STC passes words one at a time.

This PR raises an exception to prevent this confusing scenario.

Copy link
Contributor

@romanlutz romanlutz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rlundeen2 rlundeen2 merged commit 2cc66b2 into Azure:main Dec 15, 2025
20 checks passed
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.

2 participants