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

Class YCOEParseCorpusReader

source code

                    object --+            
                             |            
              api.CorpusReader --+        
                                 |        
           util.SyntaxCorpusReader --+    
                                     |    
bracket_parse.BracketParseCorpusReader --+
                                         |
                                        YCOEParseCorpusReader

Specialized version of the standard bracket parse corpus reader that strips out (CODE ...) and (ID ...) nodes.

Instance Methods [hide private]
 
_parse(self, t) source code

Inherited from bracket_parse.BracketParseCorpusReader: __init__

Inherited from util.SyntaxCorpusReader: parsed_sents, raw, sents, 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__

    Block Readers
    Deprecated since 0.8

Inherited from util.SyntaxCorpusReader: parsed, 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]

_parse(self, t)

source code 
Overrides: bracket_parse.BracketParseCorpusReader._parse