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

Method test_apply_morphological_rules

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

Source from the content-addressed store, hash-verified

328 print "pattern.text._suffix_rules()"
329
330 def test_apply_morphological_rules(self):
331 # Assert part-of-speech tag for unknown tokens (Brill's lexical rules).
332 v = self._test_morphological_rules(function=en.lexicon.morphology.apply)
333 self.assertTrue(v[0] > 0.85) # NN
334 self.assertTrue(v[1] > 0.19) # VB
335 self.assertTrue(v[2] > 0.65) # JJ
336 self.assertTrue(v[3] > 0.59) # RB
337 print "pattern.en.lexicon.morphology.apply()"
338
339 def test_apply_context_rules(self):
340 # Assert part-of-speech tags based on word context.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected