huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
134.72k stars 26.94k forks source link

LayoutLMv2ForRelationExtraction is missing in transformers #18091

Closed binkjakub closed 2 years ago

binkjakub commented 2 years ago

Feature request

Microsoft's unilim repository, which originally implements all LayoutLM models, contains implementation of the model for relation extraction with Biaffine Attention Classifier, namely LayoutLMv2ForRelationExtraction. However, this class wasn't included in transfromers, due to unknown reasons. Therefore, the implementation for relation extraction LayoutLMv2ForRelationExtraction 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.

LysandreJik commented 2 years ago

cc @NielsRogge

sijunhe commented 2 years ago

+1 to this

github-actions[bot] commented 2 years ago

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.