unilm icon indicating copy to clipboard operation
unilm copied to clipboard

some questions about SER and RE task inference

Open githublsk opened this issue 2 years ago • 2 comments

Hi wolfshow, I have a question on the belowing: I using Chinese document for layoutxlm downstream RE task following below steps: step1: finetuning a SER model with Chinese document; step2:finetuning a RE model on SER model trained by step 1; When I do inference, I should get SER result by SER model trained by step 1; then feed the SER results to RE model trained by step 2, is it right for this inference process? in this situation, to complete the RE task, I should use two models trained by step 1 and step 2?

githublsk avatar Jun 09 '22 10:06 githublsk

@githublsk The RE model is often trained with keys and values with ground truth labels. So, basically, you need two models to finish the SER and RE tasks.

wolfshow avatar Jun 13 '22 13:06 wolfshow

@githublsk The RE model is often trained with keys and values with ground truth labels. So, basically, you need two models to finish the SER and RE tasks.

Thank you @wolfshow, when do inference, should I use SER model to get keys and values, and then use RE model to get the linking relation with keys and values outputed by SER model?

githublsk avatar Jun 14 '22 07:06 githublsk