unilm
unilm copied to clipboard
[layoutreader] How to avoid duplicate order prediction
Hello, when I using Layoutreader for order prediction, it will predict some duplicated boxes. For example, the number of input boxes is 55, there are 22 boxes are duplicated, and only 33 different boxes remains. I have already set --forbid_duplicate_ngrams to be true. Could you please give me some advice? Thank you.
Hi @lcy0604,
Thanks for your interest in our paper. Unfortunately, I didn't apply any tricks to avoid duplicate order prediction. I would recommend you use the conditional masking approach, which is to add masks on the words that are already predicted when predicting the next work.