fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

How to intervene the translation result according to the dictionary

Open Amy234543 opened this issue 2 years ago • 1 comments

How to intervene the translation result according to the dictionary?

I have a dictionary, and I want to translate some words into the corresponding professional terms of the dictionary. Does this function have been implemented

Amy234543 avatar Aug 11 '22 08:08 Amy234543

Yes, look for "constrained decoding"

erip avatar Aug 11 '22 12:08 erip