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

Class 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, 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

Inherited from tagged.TaggedCorpusReader: read, tagged, tokenized

    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]

__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.
  • files - A list or regexp specifying the files in this corpus.
Overrides: tagged.TaggedCorpusReader.__init__
(inherited documentation)