tipy :: prdct :: Predictor :: Class Predictor
[hide private]
[frames] | no frames]

Class Predictor

source code

object --+
         |
        Predictor
Known Subclasses:

Base class for predictors.

Class Hierarchy for Predictor
Class Hierarchy for Predictor

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__init__(self, config, contextMonitor)
Predictor creator.
source code
 
predict(self, maxPartialPredictionSize, stopList) source code
 
learn(self, text) source code

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

Class Variables [hide private]
  __abstractmethods__ = frozenset(['learn', 'predict'])
  _abc_cache = <_weakrefset.WeakSet object at 0x7f2a42360550>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7f2a423...
  _abc_negative_cache_version = 39
  _abc_registry = <_weakrefset.WeakSet object at 0x7f2a42360490>
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, config, contextMonitor)
(Constructor)

source code 

Predictor creator.

Parameters:
  • config (Configuration) - The config is used to retrieve the predictor settings from the config file.
  • contextMonitor (ContextMonitor) - The contextMonitor is needed because it allow the predictor to get the input buffers tokens.
Overrides: object.__init__

predict(self, maxPartialPredictionSize, stopList)

source code 
Decorators:
  • @abstractmethod

learn(self, text)

source code 
Decorators:
  • @abstractmethod

Class Variable Details [hide private]

_abc_negative_cache

Value:
<_weakrefset.WeakSet object at 0x7f2a423605d0>