Open philip-schrodt opened 6 years ago
The errors are caused by the prepositions that has an 'obl' relation with the verbs. I fixed the errors.
Can you add these sentences to the test cases? Once they're in and the test cases are passing, we can close this issue.
The following records all cause a crash on File "/UniversalPetrarch/PETRgraph.py", line 1544, in get_verb_code lowermatch = match_lower(patternDictPath, verb, target) File "/UniversalPetrarch/PETRgraph.py", line 1424, in match_lower temptargetmatch = match_noun(path, np) File "/UniversalPetrarch/PETRgraph.py", line 1246, in match_noun if np.npIDs[0] == noun_phrase.npIDs[1]: IndexError: list index out of range
The only way I can bypass them is eliminating the primary verb (e.g. TALK, STRIKE, MEET, CAME) rather than a pattern but it looks like what they have in common is an ADP (WITH, FROM) linked immediately to that verb.