Closed binkjakub closed 2 years ago
cc @NielsRogge
+1 to this
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
Feature request
Microsoft's unilim repository, which originally implements all
LayoutLM
models, contains implementation of the model for relation extraction with Biaffine Attention Classifier, namelyLayoutLMv2ForRelationExtraction
. However, this class wasn't included intransfromers
, due to unknown reasons. Therefore, the implementation for relation extractionLayoutLMv2ForRelationExtraction
should be included to extend current LayoutLMv2 and LayoutXLM.Motivation
This repository should implement all tasks included in papers (LayoutLMv2, LayoutXLM) and unilim repository, thus this missing part should be added to
transformers
. It would enable users to easily reproduce entire paper as well as convenient use of relation extraction in their downstream applications.Your contribution
If there are no obstacles unknown to me, I could try to move the implementation from unilim to transformers.