wkiri / MTE

Mars Target Encyclopedia
Apache License 2.0
5 stars 0 forks source link

add support for event type Contains relation #20 #37

Closed stevenlujpl closed 3 years ago

stevenlujpl commented 3 years ago

@wkiri This is the PR to merge the changes I made for event type Contains relation into the master branch. I modified two files - brat_annotation_sqlite.py and jsre_labeling_corenlp_and_brat.py. For the changes in annotation_sqlite.py, I added code to parse Event type contains relations to BratAnnotation objects. For the changes in jsre_labeling_corenlp_and_brat.py, I added code to convert the Event type contains relations to Relation type contains relations.

Please let me know if you have suggestions or questions. I will keep this PR open until you have an opportunity to look at the trained model and the changes made in the scripts. Thanks.