stephbuon / posextract

Grammatical information extraction methods designed for the analysis of historical and contemporary textual corpora.
MIT License
3 stars 0 forks source link

Why Does This Sentence Print Funny #92

Closed stephbuon closed 2 years ago

stephbuon commented 2 years ago

Input:


sent = 'The declaration marked an escalation in the ongoing clashes between the SPLA, the Murle, and the Lou Nuer in Jonglei and Upper Nile, which began when armed Murle fighters under the influence of George Athors South Sudan Democratic Movement launched a cattle raid against the Lou Nuer in Jonglei state.'

grammatical_triples.extract(sent)

Output:

possible TripleExtraction(subject_negdat=None, subject=which, neg_adverb=None, aux_verb=None, verb=launched, poa=None, object_negdat=None, object_adjectives=None, object=raid, object_prep=None, object_prep_noun=None)
declaration marked escalation
which launched raid
Murle fighters launched raid
stephbuon commented 2 years ago

same thing:

sent = 'The present building, which retains a gothic air, was built between the end of the 16th century and the first quarter of the 17th century.'

And:

sent = 'Though Bells career appeared to be headed in the right direction, drawing attention of the blues fans around the world as a young prodigy of the blues, he battled emotional problems and drug abuse for many years, which kept him away from performing on regular basis.'

out = grammatical_triples.extract(sent)
stephbuon commented 2 years ago

Don't automatically print extracted triples

sent = 'A legal challenge was filed against the congressional and legislative maps, predicting that the state legislature would not draw valid maps and would malapportion the districts.'

out = grammatical_triples.extract(sent)