Package nltk :: Package corpus :: Package reader :: Module ppattach :: Class PPAttachmentCorpusReader
[hide private]
[frames] | no frames]

Class PPAttachmentCorpusReader

source code

      object --+    
               |    
api.CorpusReader --+
                   |
                  PPAttachmentCorpusReader

sentence_id verb noun1 preposition noun2 attachment

Instance Methods [hide private]
 
attachments(self, files) source code
 
tuples(self, files) source code
 
raw(self, files=None) source code
 
_read_tuple_block(self, stream) source code
 
_read_obj_block(self, stream) 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
    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 .tuples() or .raw() or .attachments() instead.")

Deprecated: Use .tuples() or .raw() or .attachments() instead.