Package nltk :: Package corpus :: Package reader :: Module string_category :: Class StringCategoryCorpusReader
[hide private]
[frames] | no frames]

type StringCategoryCorpusReader

source code

      object --+    
               |    
api.CorpusReader --+
                   |
                  StringCategoryCorpusReader

Instance Methods [hide private]
 
__init__(self, root, fileids, delimiter=' ', encoding=None) source code
 
tuples(self, fileids=None) source code
 
raw(self, fileids=None)
Returns: the text contents of the given fileids, as a single string.
source code
 
_read_tuple_block(self, stream) source code

Inherited from api.CorpusReader: __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]

__init__(self, root, fileids, delimiter=' ', encoding=None)
(Constructor)

source code 
Parameters:
  • root - The root directory for this corpus.
  • fileids - A list or regexp specifying the fileids in this corpus.
  • delimiter - Field delimiter
Overrides: api.CorpusReader.__init__

raw(self, fileids=None)

source code 
Returns:
the text contents of the given fileids, as a single string.