Skip to content
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

Entity & Relation Extractions #1

Open
1181103589 opened this issue Sep 9, 2023 · 3 comments
Open

Entity & Relation Extractions #1

1181103589 opened this issue Sep 9, 2023 · 3 comments

Comments

@1181103589
Copy link

First of all, thank you very much for your work and I am very interested in it. However, I am not sure of how to perform the entity extraction and relation extraction as the data pre-processing steps. Do you have any codes to perform it, or it should be done manually. I would appreciate if you could release the pre-processed data, as well as the generation codes.

@MyLittleChange
Copy link
Collaborator

MyLittleChange commented Sep 11, 2023

Hi, thank you for your interests. We use several tools for entity extraction and relation extraction. For entity extraction, you may refer to AllenNLP NER. For relation extraction, we mainly use OpenNRE. Here's an example for extracting relations on the WebQA test set, making sure to update the corresponding file paths in the python file:

python ./event_extraction/get_opennre_relation_test.py

@1181103589
Copy link
Author

Hi, thanks for your reply, but I am still in doubt of how to construct the entities file as WebQA_entities_dic and WebQA_fact_ws_test for MMQA dataset, do you have any codes or scripts to produce those entites files?

@skyrise-l
Copy link

I am confused about how to obtain the entity of the image. Could you provide the specific processing code for extracting the image entity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants