Package miopia :: Package analyzer :: Module BackOff :: Class BackOff
[hide private]
[frames] | no frames]

Class BackOff

source code

object --+
         |
        BackOff

This class manages the generalisations (a.k.a as back-off) which make possible to represent tokens as more abstract concepts.

Instance Methods [hide private]
 
__init__(self, dictionary)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
back_off(self, token_info, type_back_off) source code

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

Class Variables [hide private]
  NGRAM_BACK_OFF_DELIMITER = '-'
  EMPTY_TOKEN = 'EMPTY_TOKEN'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dictionary)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
Overrides: object.__init__

back_off(self, token_info, type_back_off)

source code 
Parameters: