Using entity relation extraction to establish an entity hierarchy #11128
Unanswered
F1nalLap
asked this question in
Help: Model Advice
Replies: 1 comment 2 replies
-
What is the If so I don't think it makes sense to train a model for that. The relation is defined simply by the kind of piece, so you can just write rules for it, and besides the piece names there's no information in your input text that you could derive the information from. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I’m looking to extract entity relations in spacy. For my use-case, I want to label two types of relations from text involving chess matches. I wish to relate a PERSON entity to a CHESS_PIECE entity with the relation label ‘CONTROLS_PIECE’’ and label the hierarchy of CHESS_PIECE values as ‘VALUE_ABOVE’.
For example:
Bobby Fischer moved white knight to a3. Garry Kasparov moved dark pawn to b6.
Entity Links:
(Bobby Fischer, white knight, ‘CONTROLS_PIECE’)
(Garry Kasparov, dark pawn, ‘CONTROLS_PIECE’)
(white knight, dark pawn, ‘VALUE_ABOVE’)
So far I have a custom NER that can recognize people and chess pieces. I’ve been using the rel_component tutorial (https://www.youtube.com/watch?v=8HL-Ap5_Axo) as a starting point and have annotated some relevant examples, however the model does not seem to be learning how to assign the ‘VALUE_ABOVE’ relation. Outside of annotating more data, is there a way I can improve the component’s ability to recognize this relation? If this is above the capabilities of the relation component, should I try to use a matcher instead?
Beta Was this translation helpful? Give feedback.
All reactions