Package miopia :: Package preprocessor :: Module InterjectionPreProcessor :: Class InterjectionPreProcessor
[hide private]
[frames] | no frames]

Class InterjectionPreProcessor

source code

                             object --+        
                                      |        
            PreProcessorI.PreProcessorI --+    
                                          |    
PreProcessorDecorator.PreProcessorDecorator --+
                                              |
                                             InterjectionPreProcessor

classdocs

Instance Methods [hide private]
 
__init__(self, component, lang='es')
Constructor
source code
 
preprocess(self, text) source code
 
_normalize_laughs(self, text) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  laugh_consonant = 'j'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, component, lang='es')
(Constructor)

source code 

Constructor

Overrides: object.__init__

preprocess(self, text)

source code 
Parameters:
  • text - A String. @return A processed string with normalised laughs
Overrides: PreProcessorI.PreProcessorI.preprocess