HITsz-TMG / SKURG

Apache License 2.0
11 stars 0 forks source link

Entity & Relation Extractions #1

Open 1181103589 opened 10 months ago

1181103589 commented 10 months ago

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 commented 10 months ago

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 commented 9 months ago

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?