Skip to content

prefix "A" for Predicate in props_wrapper output #50

Description

@kleinay

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 .'}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions