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

Method test_find_labels

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

Source from the content-addressed store, hash-verified

393 print "pattern.en.parser.find_chunks()"
394
395 def test_find_labels(self):
396 # Assert relation tag annotation (SBJ/OBJ).
397 v = en.parser.find_labels([
398 ["", "", "NP"], ["", "", "NP"],
399 ["", "", "VP"], ["", "", "VP"],
400 ["", "", "NP"]])
401 self.assertEqual(v, [
402 ["", "", "NP", "NP-SBJ-1"], ["", "", "NP", "NP-SBJ-1"],
403 ["", "", "VP", "VP-1"], ["", "", "VP", "VP-1"],
404 ["", "", "NP", "NP-OBJ-1"]])
405 print "pattern.en.parser.find_labels()"
406
407 def test_find_prepositions(self):
408 # Assert preposition tag annotation (PP + NP).

Callers

nothing calls this directly

Calls 1

find_labelsMethod · 0.80

Tested by

no test coverage detected