Skip to content

BUG: RandomTranslationConverter identifier omits word selection strategy #3370

Closed

Description

Description
RandomTranslationConverter inherits from both LLMGenericTextConverter and WordLevelConverter, allowing callers to configure a custom word selection strategy like WordPositionSelectionStrategy or WordProportionSelectionStrategy. However, RandomTranslationConverter._build_identifier only invokes super()._build_identifier(), which resolves to LLMGenericTextConverter._build_identifier and completely bypasses WordLevelConverter._build_identifier. Consequently, the converter identifier drops word_selection_strategy, word_selection_strategy_params, and word_split_separator from its parameters. Instances configured with different word selection strategies produce identical identifier hashes, breaking component tracking and cache deduplication.

Expected behavior
RandomTranslationConverter._build_identifier should combine parameters from both LLMGenericTextConverter and WordLevelConverter so that the converter identifier accurately reflects the chosen word selection strategy and strategy parameters.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions