(self)
| 643 | print "pattern.en.Chunk" |
| 644 | |
| 645 | def test_chunk_conjunctions(self): |
| 646 | # Assert list of conjunct/disjunct chunks ("black cat" AND "white cat"). |
| 647 | v = en.Sentence(en.parse("black cat and white cat")) |
| 648 | self.assertEqual(v.chunk[0].conjunctions, [(v.chunk[1], en.AND)]) |
| 649 | print "pattern.en.Chunk.conjunctions()" |
| 650 | |
| 651 | def test_chunk_modifiers(self): |
| 652 | # Assert list of nearby adjectives and adverbs with no role, for VP. |