You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run some sample data to explore the phrase extraction pieces. I'm using the following data:
{'abc123': {'meta': {'date': '20010101'},
'sents': {0: {'content': u'At least 37 people are dead after Islamist radical group Boko Haram assaulted a town in northeastern Nigeria .',
'parsed': u'(ROOT (S (NP (QP (IN AT ) (JJS LEAST ) (CD 37 ) ) (NNS PEOPLE ) ) (VP (VBP ARE ) (ADJP (JJ DEAD ) ) (SBAR (IN AFTER ) (S (NP (JJ ISLAMIST ) (JJ RADICAL ) (NN GROUP ) (NNP BOKO ) (NNP HARAM ) ) (VP (VBD ASSAULTED ) (NP (NP (DT A ) (NN TOWN ) ) (PP (IN IN ) (NP (JJ NORTHEASTERN ) (NNP NIGERIA ) ) ) ) ) ) ) ) (. . ) ) )'}}}}
{'abc123': {'meta': {'date': '20010101',
u'verbs': {u'nouns': [([u' PEOPLE'], [u'~PPL'], [[u'~']]),
([u' ISLAMIST', u' BOKO HARAM'],
[u'NGAREBMUS'],
[[u'~'], (u'NGAREB', [])]),
([u' NIGERIA'], [u'NGA'], [(u'NGA', [])])]}},
'sents': {0: {'content': u'At least 37 people are dead after Islamist radical group Boko Haram assaulted a town in northeastern Nigeria .',
'parsed': u'(ROOT (S (NP (QP (IN AT ) (JJS LEAST ) (CD 37 ) ) (NNS PEOPLE ) ) (VP (VBP ARE ) (ADJP (JJ DEAD ) ) (SBAR (IN AFTER ) (S (NP (JJ ISLAMIST ) (JJ RADICAL ) (NN GROUP ) (NNP BOKO ) (NNP HARAM ) ) (VP (VBD ASSAULTED ) (NP (NP (DT A ) (NN TOWN ) ) (PP (IN IN ) (NP (JJ NORTHEASTERN ) (NNP NIGERIA ) ) ) ) ) ) ) ) (. . ) ) )'}}}}
There are a couple issues here:
The nested meta, verbs, nouns construct is incorrect.
It's unclear what, exactly, is associated with what. For example, it isn't clear what the [[u'~'], (u'NGAREB', [])]) construct refers to in the sentence.
This isn't relevant to this issue, but it should also be noted that this sentence doesn't code an event even though PETR is clearly identifying potential source and target actors and "assaulted" should be a relevant verb.
Trying to run some sample data to explore the phrase extraction pieces. I'm using the following data:
I then run it through the
do_coding
routine:Which yields the following updated dictionary:
There are a couple issues here:
meta
,verbs
,nouns
construct is incorrect.[[u'~'], (u'NGAREB', [])])
construct refers to in the sentence.This isn't relevant to this issue, but it should also be noted that this sentence doesn't code an event even though PETR is clearly identifying potential source and target actors and "assaulted" should be a relevant verb.
cc @philip-schrodt @ahalterman
The text was updated successfully, but these errors were encountered: