Package nltk :: Package corpus :: Package reader :: Module wordlist :: Class WordListCorpusReader
[hide private]
[frames] | no frames]

Class WordListCorpusReader

source code

      object --+    
               |    
api.CorpusReader --+
                   |
                  WordListCorpusReader

List of words, one per line. Blank lines are ignored.

Instance Methods [hide private]
 
words(self, files=None) source code
 
raw(self, files=None) source code

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

Inherited from api.CorpusReader (private): _get_root

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

    Deprecated since 0.8
 
read(*args, **kwargs) source code
 
listed(*args, **kwargs) source code
    Deprecated since 0.9.1

Inherited from api.CorpusReader: filenames

Inherited from api.CorpusReader (private): _get_items

Instance Variables [hide private]

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

Properties [hide private]

Inherited from api.CorpusReader: root

Inherited from object: __class__

    Deprecated since 0.9.1

Inherited from api.CorpusReader: items

Method Details [hide private]

read(*args, **kwargs)

source code 
Decorators:
  • @deprecated("Use .raw() or .words() instead.")

Deprecated: Use .raw() or .words() instead.

listed(*args, **kwargs)

source code 
Decorators:
  • @deprecated("Use .words() instead.")

Deprecated: Use .words() instead.