const PresageCallback * context_tracker_callback
std::string blankspaceChars
static const char * LOGGER
ContextChangeDetector * contextChangeDetector
void learn(const std::string &text) const
Learn from text.
void set_online_learning(const std::string &value)
PredictorRegistry * predictorRegistry
bool isBlankspaceChar(const char) const
static const char * ONLINE_LEARNING
std::string toString() const
std::string getControlChars() const
std::string getBlankspaceChars() const
std::string getPastStream() const
void set_lowercase_mode(const std::string &value)
const PresageCallback * callback(const PresageCallback *callback)
bool isControlChar(const char) const
bool isCompletionValid(const std::string &) const
std::string getSeparatorChars() const
void set_sliding_window_size(const std::string &value)
std::string getFutureStream() const
ContextTracker(Configuration *config, PredictorRegistry *predictorRegistry, PresageCallback *callback, const char[]=DEFAULT_WORD_CHARS, const char[]=DEFAULT_SEPARATOR_CHARS, const char[]=DEFAULT_BLANKSPACE_CHARS, const char[]=DEFAULT_CONTROL_CHARS)
std::string getExtraTokenToLearn(const int index, const std::vector< std::string > &change) const
static const char * SLIDING_WINDOW_SIZE
static const char * LOWERCASE_MODE
Dispatcher< ContextTracker > dispatcher
bool isWordChar(const char) const
void set_logger(const std::string &value)
Tracks user interaction and context.
std::string separatorChars
std::string getPrefix() const
bool isSeparatorChar(const char) const
std::string getWordChars() const
std::string getToken(const int) const