fenchri / edge-oriented-graph

Source code for the EMNLP 2019 paper: "Connecting the Dots: Document-level Relation Extraction with Edge-oriented Graphs"
Other
145 stars 17 forks source link

Some questions about intra-sentences or inter-sentences #22

Closed wenzitracyliu closed 3 years ago

wenzitracyliu commented 3 years ago

Hello, I used your model to run on the document, but I don't know how to get the results of intra-sentence classification or inter-sentence classification. Could you tell me how to do that? Do you use intra-sentences to train your model and only test on the intra-sentence?

fenchri commented 3 years ago

Hi, thanks for your interest in the model!

The model is trained simultaneously on both intra- and inter-sentence pairs. An inter-sentence pair is defined when there is no mention of this pair in the same sentence. I have an evaluation script that can be used to report the performance on intra- and inter-sentence pairs separately. There is information about how to use it in the README. Was this what you needed?

wenzitracyliu commented 3 years ago

Thanks, I see.