Closed stephbuon closed 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)
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)
Input:
Output: