class documentation

class PorterTest(unittest.TestCase): (source)

View In Hierarchy

Undocumented

Method test_lowercase_option Test for improvement on https://github.com/nltk/nltk/issues/2507
Method test_oed_bug Test for bug https://github.com/nltk/nltk/issues/1581
Method test_vocabulary_martin_mode Tests all words from the test vocabulary provided by M Porter
Method test_vocabulary_nltk_mode Undocumented
Method test_vocabulary_original_mode Undocumented
Method _test_against_expected_output Undocumented
Method _vocabulary Undocumented
def test_lowercase_option(self): (source)

Test for improvement on https://github.com/nltk/nltk/issues/2507

Ensures that stems are lowercased when to_lowercase=True

def test_oed_bug(self): (source)

Test for bug https://github.com/nltk/nltk/issues/1581

Ensures that 'oed' can be stemmed without throwing an error.

def test_vocabulary_martin_mode(self): (source)

Tests all words from the test vocabulary provided by M Porter

The sample vocabulary and output were sourced from:
http://tartarus.org/martin/PorterStemmer/voc.txt http://tartarus.org/martin/PorterStemmer/output.txt

and are linked to from the Porter Stemmer algorithm's homepage at

http://tartarus.org/martin/PorterStemmer/
def test_vocabulary_nltk_mode(self): (source)

Undocumented

def test_vocabulary_original_mode(self): (source)

Undocumented

def _test_against_expected_output(self, stemmer_mode, expected_stems): (source)

Undocumented

def _vocabulary(self): (source)

Undocumented