relation extraction

Dear Ines,

I have done a refined NER using prodigy, It works good. I want to provide training data for relation extraction, dows prodigy offer something for that? do you have any idea how can priovide tuple including (N1, relation,N2) many thanks!

Relation extraction support is currently fairly limited. You can use the dep view, as shown here: , so long as you have a way of proposing the arcs.

Another alternative is, if your relation structures are very limited (e.g. you know you can only have up to three relations in a sentence), and you know you can identify the anchors (e.g. they're always entities), you could use the text categoriser. You would have one category per relation structure, e.g. one category would be "1 buys 2", and another category would be "2 buys 1". You'd label a sentence like Google bought YouTube as 1 buys 2, and a sentence like YouTube was sold to Google as 2 buys 1.

1 Like

thank you very much for your exact and relevant responses. basically for this kind of dep, I need training data? I could not find the documentation. the next question is that where is the text categorizer?