OKR
OKR copied to clipboard
prefix "A" for Predicate in props_wrapper output
Got this output from props_wrapper, for the sentence: 'Several people killed or injured in an explosion at a church in northern Nigeria , officials say .'
Notice a predicate named "A3". This causes a bug downstream.
{'Entities': {'A1': ('people', (1,)), 'A2': ('officials', (15,)), 'A3': ('or', (4,)), 'A4': ('explosion', (7,)), 'A5': ('Nigeria', (13,)), 'A6': ('Several', (0,)), 'A7': ('church', (10,))}, 'Predicates': {'A3': {'Arguments': ['A4'], 'Bare predicate': ('injured in', (4, 5)), 'Head': {'Lemma': u'injure', 'POS': 'VBN', 'Surface': ('injured', [4])}, 'Template': 'injured in {A4}'}, 'P1': {'Arguments': ['A1'], 'Bare predicate': ('killed or injured', (2, 3, 4)), 'Head': {'Lemma': u'kill', 'POS': 'VBN', 'Surface': ('killed', [2])}, 'Template': '{A1} killed or injured'}, 'P2': {'Arguments': ['A2', 'A3'], 'Bare predicate': ('say', (16,)), 'Head': {'Lemma': 'say', 'POS': 'VBP', 'Surface': ('say', [16])}, 'Template': '{A3} {A2} say'}, 'P3': {'Arguments': ['A5'], 'Bare predicate': ('northern', (12,)), 'Head': {'Lemma': '', 'POS': 'JJ', 'Surface': ('northern', [12])}, 'Template': 'northern {A5}'}, 'P4': {'Arguments': ('A6', 'A1'), 'Bare predicate': ('IMPLICIT', (-1,)), 'Head': {'Lemma': 'IMPLICIT', 'POS': 'IMPLICIT', 'Surface': 'IMPLICIT'}, 'Template': '{A6} {A1}'}, 'P5': {'Arguments': ('A3', 'A4'), 'Bare predicate': ('IMPLICIT', (-1,)), 'Head': {'Lemma': 'IMPLICIT', 'POS': 'IMPLICIT', 'Surface': 'IMPLICIT'}, 'Template': '{A3} {A4}'}, 'P6': {'Arguments': ('A4', 'A7'), 'Bare predicate': ('IMPLICIT', (-1,)), 'Head': {'Lemma': 'IMPLICIT', 'POS': 'IMPLICIT', 'Surface': 'IMPLICIT'}, 'Template': '{A4} {A7}'}, 'P7': {'Arguments': ('A7', 'A5'), 'Bare predicate': ('IMPLICIT', (-1,)), 'Head': {'Lemma': 'IMPLICIT', 'POS': 'IMPLICIT', 'Surface': 'IMPLICIT'}, 'Template': '{A7} {A5}'}}, 'Sentence': 'Several people killed or injured in an explosion at a church in northern Nigeria , officials say .'}
This may be caused by the coordination. I'll take a look.