-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve relation extraction #37
Comments
Have you looked at the FUNSD dataset? The original version of the dataset contains relation labels, relating questions (i.e. field names) to answers (i.e field values). This seems to be similar to your idea here. |
@logan-markewich, |
LiLT already uses boxes to learn (and the FUNSD dataset has boxes as well), so I'm not sure what you mean 🤔 |
@logan-markewich, |
Hi there @tuongtranegs @logan-markewich @NielsRogge @NielsRogge, I'm wondering if Hugging Face's Transformers library includes support for relation extraction using LiLT. I'm interested in fine-tuning a pre-trained model for relation extraction, but I'm not sure if the library provides this functionality. Could someone please let me know if relation extraction is supported in Hugging Face's Transformers library, and if so, which pre-trained models are recommended for this task? Thanks! |
@sudheer997 relation extraction isn't really supported by huggingface. If you want to support it, I suggest using the LiLT model and adding a relation extraction head to it. |
@tuongtranegs can you please share the inference code? I am getting an error while initializing the tokenizer. |
Hi @jpWang , thanks for your repo,
I have used it for my project: extract keys and values in complicated layout document types
Examples: The outputs of RE model: Q1 -> A2, Q2->A2, Q3 -> A1
I have an idea to improve the RE model as below:
As I know that the RE is based on the semantics of language to learn -> relation classification
From my point of view, they can be learned on position (position embedding) + semantics of language to improve relation classification
To take the good result as bellow:
What do you think about my idea?
The text was updated successfully, but these errors were encountered: