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

Method test_chunk_modifiers

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

Source from the content-addressed store, hash-verified

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.
653 v = en.Sentence(en.parse("Perhaps you should go."))
654 self.assertEqual(v.chunk[2].modifiers, [v.chunk[0]]) # should <=> perhaps
655 print "pattern.en.Chunk.modifiers"
656
657 def test_pnp(self):
658 # Assert PNP chunk ("with a fork").

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected