This project is based on the inspiration from the paper, "Matching the Blanks: Distributional Similarity for Relation Learning" published in ACL 2019.
Before zeroing on this approach, I had considered two other approaches for this project. Below are them, with their papers:
- LEVERAGING SEMANTIC PARSING FOR RELATION LINKING OVER KNOWLEDGE BASES
- Transition words based link prediction
Download all the models from this link
- Run Python main.py
Python: 3.6+ Spacy: 2.1.8+ Pytorch: 1.7.0+
The following steps are involved in the process of creation of graphs:
- Masking the entities extracted based on Spacy's dependency Parsing and POS tagging linguistic features from the reddit dumps.
- Fine tuning on the Semeval 2010 relation extraction paper.
- Based on spacy's linguistic features, we can automatically annotate and infer the relationship between the extracted entities using the pretrained model.
Training Stages:
- The objective here is that given a relation pair, predict a relation type from a fixed dictionary of relation types. For ex: "Cause-Effect" is one among the fixed dictionary of relation types from the SemEval 2010 Task 8.
--contd...