Babelscape / rebel

REBEL is a seq2seq model that simplifies Relation Extraction (EMNLP 2021).
502 stars 73 forks source link

surfaceform of the REDFM predicate #77

Closed edchengg closed 6 months ago

edchengg commented 6 months ago

I was trying to download the REDFM data but found the relation annotation is like below:

[ { "subject": { "uri": "Q787163", "surfaceform": "Haemimont Games", "type": "ORG", "start": 643, "end": 658 }, "predicate": 0, "object": { "uri": "Q219", "surfaceform": "bulgarischen", "type": "LOC", "start": 625, "end": 637 } } ]

what is the surfaceform of predicate 0 or others?

edchengg commented 6 months ago

datasets.ClassLabel(num_classes=32, names=['country', 'place of birth', 'spouse', 'country of citizenship', 'instance of', 'capital', 'child', 'shares border with', 'author', 'director', 'occupation', 'founded by', 'league', 'owned by', 'genre', 'named after', 'follows', 'headquarters location', 'cast member', 'manufacturer', 'located in or next to body of water', 'location', 'part of', 'mouth of the watercourse', 'member of', 'sport', 'characters', 'participant', 'notable work', 'replaces', 'sibling', 'inception']

oh, i found it in the .py file.