MCPcopy Index your code
hub / github.com/clips/pattern / test_chunk_conjunctions

Method test_chunk_conjunctions

test/test_en.py:645–649  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected