CTranslate2
CTranslate2 copied to clipboard
Constrained beam search like Fairseq
Hi, can someone help, how to get started with implementing unordered constrained beam search from Fairseq. https://github.com/facebookresearch/fairseq/blob/main/examples/constrained_decoding/README.md
What part of decoding code should I tweak, what are the important steps in decoding?