Package nltk :: Package corpus :: Package reader :: Module cmudict :: Class CMUDictCorpusReader
[hide private]
[frames] | no frames]

type CMUDictCorpusReader

source code

      object --+    
               |    
api.CorpusReader --+
                   |
                  CMUDictCorpusReader

Instance Methods [hide private]
 
entries(self)
Returns: the cmudict lexicon as a list of entries containing (word, transcriptions) tuples.
source code
 
raw(self)
Returns: the cmudict lexicon as a raw string.
source code
 
words(self)
Returns: a list of all words defined in the cmudict lexicon.
source code
 
dict(self)
Returns: the cmudict lexicon as a dictionary, whose keys are lowercase words and whose values are lists of pronunciations.
source code

Inherited from api.CorpusReader: __init__, __repr__, abspath, abspaths, encoding, fileids, open, readme

Inherited from api.CorpusReader (private): _get_root

    Deprecated since 0.9.7

Inherited from api.CorpusReader: files

    Deprecated since 0.9.1

Inherited from api.CorpusReader: items

Inherited from api.CorpusReader (private): _get_items

Instance Variables [hide private]

Inherited from api.CorpusReader (private): _encoding, _fileids, _root

Properties [hide private]

Inherited from api.CorpusReader: root

Method Details [hide private]

entries(self)

source code 
Returns:
the cmudict lexicon as a list of entries containing (word, transcriptions) tuples.

raw(self)

source code 
Returns:
the cmudict lexicon as a raw string.

words(self)

source code 
Returns:
a list of all words defined in the cmudict lexicon.

dict(self)

source code 
Returns:
the cmudict lexicon as a dictionary, whose keys are lowercase words and whose values are lists of pronunciations.