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

Method test_named_entity_recognition

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

Source from the content-addressed store, hash-verified

440 print "pattern.en.parser.find_lemmata()"
441
442 def test_named_entity_recognition(self):
443 # Assert named entities.
444 v = en.parser.parse("Arnold Schwarzenegger is cool.", chunks=False)
445 self.assertEqual(v,
446 "Arnold/NNP-PERS Schwarzenegger/NNP-PERS is/VBZ cool/JJ ./."
447 )
448 print "pattern.en.parser.entities.apply()"
449
450 def test_parse(self):
451 # Assert parsed output with Penn Treebank II tags (slash-formatted).

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected