module documentation

Unit tests for nltk.classify. See also: nltk/test/classify.doctest

Function assert_classifier_correct Undocumented
Function test_megam Undocumented
Function test_tadm Undocumented
Constant RESULTS Undocumented
Constant TEST Undocumented
Constant TRAIN Undocumented
def assert_classifier_correct(algorithm): (source)

Undocumented

def test_megam(): (source)

Undocumented

def test_tadm(): (source)

Undocumented

RESULTS: list = (source)

Undocumented

Value
[(0.16, 0.84), (0.46, 0.54), (0.41, 0.59), (0.76, 0.24)]

Undocumented

Value
[dict(a=1, b=0, c=1),
 dict(a=1, b=0, c=0),
 dict(a=0, b=1, c=1),
 dict(a=0, b=1, c=0)]

Undocumented

Value
[(dict(a=1, b=1, c=1), 'y'),
 (dict(a=1, b=1, c=1), 'x'),
 (dict(a=1, b=1, c=0), 'y'),
 (dict(a=0, b=1, c=1), 'x'),
 (dict(a=0, b=1, c=1), 'y'),
 (dict(a=0, b=0, c=1), 'y'),
 (dict(a=0, b=1, c=0), 'x'),
...