Rule based approach for relation extraction using NLP - RelEx (Rule-based)
Our rule-based approach determines whether a relation exists between two entities utilizing the co-location information between them. We use a Breadth-First Search algorithm (BFS) to find the selected entity’s closest occurrence on either side of other entities. For each entity, we traverse both sides until the selected entity’s closest occurrence is found based on the provided span values of the entities. We explore four traversal mechanisms: traverse left side only, traverse right side only, traverse left first then right and vice versa.