Skip to content

FIX: Include word selection strategy in RandomTranslationConverter identifier - #3371

Open
Manohar Paturi (ManoharPaturi) wants to merge 4 commits into
microsoft:mainfrom
ManoharPaturi:fix/random-translation-identifier
Open

Manohar Paturi (ManoharPaturi) wants to merge 4 commits into
microsoft:mainfrom
ManoharPaturi:fix/random-translation-identifier

Conversation

@ManoharPaturi

Copy link
Copy Markdown
Contributor

Description

Fixes #3370

RandomTranslationConverter inherits from both LLMGenericTextConverter and WordLevelConverter, but its _build_identifier method previously called only super()._build_identifier(). That resolved to LLMGenericTextConverter and bypassed WordLevelConverter._build_identifier(), leaving word_selection_strategy, word_selection_strategy_params, and word_split_separator absent from the identifier parameters. This change explicitly merges identifier parameters from both base classes so that converters configured with distinct selection strategies produce distinct identifiers.

Tests and Documentation

Added unit tests in test_random_translation_converter.py verifying that word selection strategy and strategy parameters appear in the identifier parameters, and that converters with different strategies produce distinct identifier hashes.

No documentation change needed, so I did not run JupyText.

…entifier

Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026

This branch has not been deployed

No deployments
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.

BUG: RandomTranslationConverter identifier omits word selection strategy

2 participants