You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: RandomTranslationConverter identifier omits word selection strategy #3370
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.
Activity