unilm icon indicating copy to clipboard operation
unilm copied to clipboard

[layoutreader] How to avoid duplicate order prediction

Open lcy0604 opened this issue 2 years ago • 1 comments

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.

lcy0604 avatar Aug 02 '22 02:08 lcy0604

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.

zlwang-cs avatar Aug 15 '22 02:08 zlwang-cs