Package nltk :: Package corpus :: Package reader :: Module ycoe :: Class YCOETaggedCorpusReader
[hide private]
[frames] | no frames]

type YCOETaggedCorpusReader

source code

           object --+        
                    |        
     api.CorpusReader --+    
                        |    
tagged.TaggedCorpusReader --+
                            |
                           YCOETaggedCorpusReader

Instance Methods [hide private]
 
__init__(self, root, items, encoding=None)
Construct a new Tagged Corpus reader for a set of documents located at the given root directory.
source code

Inherited from tagged.TaggedCorpusReader: paras, raw, sents, tagged_paras, tagged_sents, tagged_words, words

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, items, encoding=None)
(Constructor)

source code 

Construct a new Tagged Corpus reader for a set of documents located at the given root directory. Example usage:

>>> root = '/...path to corpus.../'
>>> reader = TaggedCorpusReader(root, '.*', '.txt')
Parameters:
  • root - The root directory for this corpus.
  • fileids - A list or regexp specifying the fileids in this corpus.
Overrides: api.CorpusReader.__init__
(inherited documentation)