Package nltk :: Package corpus :: Package reader :: Module nps_chat :: Class NPSChatCorpusReader
[hide private]
[frames] | no frames]

Class NPSChatCorpusReader

source code

         object --+        
                  |        
   api.CorpusReader --+    
                      |    
xmldocs.XMLCorpusReader --+
                          |
                         NPSChatCorpusReader

Instance Methods [hide private]
 
__init__(self, root, files, wrap_etree=False, tag_mapping_function=None) source code
 
xml_posts(self, files=None) source code
 
posts(self, files=None) source code
 
tagged_posts(self, files=None, simplify_tags=False) source code
 
words(self, files=None) source code
 
tagged_words(self, files=None, simplify_tags=False) source code
 
_wrap_elt(self, elt, handler) source code
 
_elt_to_words(self, elt, handler) source code
 
_elt_to_tagged_words(self, elt, handler, simplify_tags=False) source code

Inherited from xmldocs.XMLCorpusReader: raw, xml

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 xmldocs.XMLCorpusReader: read

    Deprecated since 0.9.1

Inherited from api.CorpusReader: filenames

Inherited from api.CorpusReader (private): _get_items

Static Methods [hide private]
 
_simplify_username(word) source code
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, files, wrap_etree=False, tag_mapping_function=None)
(Constructor)

source code 
Overrides: xmldocs.XMLCorpusReader.__init__