Home | Trees | Indices | Help |
|
---|
|
object --+ | ContextChangeDetector
Detect context change.
A context change can occure when some special characters appear in the buffers:
It is important to detect context change because some operations such as n-gram learning from input or suggested words suppression have to be carried out upon context changes.
![]() |
Class Hierarchy for ContextChangeDetector |
|
|||
|
|||
|
|||
boolean |
|
||
list |
|
||
Inherited from |
|
|||
Inherited from |
|
ContextChangeDetector creator.
|
Move the monitored scope according to the string length.
|
Check if the context has changed. To determine if a context change occure or not it is important to scan the input left buffer and the monitored scope. A change occure if:
|
Return the (part of the) token(s) appearing after a change. When a change occure it is necessary to retrieve the characters forming (partial) tokens which have been inputed AFTER the change and this is what this method do. Weither a change occure or not is determined by self.context_change().
Note: If no change have been registered yet then the leftBuffer is returned. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 14 21:07:50 2015 | http://epydoc.sourceforge.net |