274 void* past_stream_cb_arg,
276 void* future_stream_cb_arg,
280 void* past_stream_cb_arg,
282 void* future_stream_cb_arg,
311 const char* variable,
315 const char* variable,
PredictorRegistry * predictorRegistry
std::vector< std::string > predict()
Obtain a prediction.
bool context_change() const
Returns true if a context change occured.
PresageCallback * callback(PresageCallback *callback)
Callback getter/setter.
presage_error_code_t presage_save_config(presage_t prsg)
struct _presage * presage_t
presage_error_code_t presage_new_with_config(_presage_callback_get_past_stream past, void *past_stream_cb_arg, _presage_callback_get_future_stream future_stream_cb, void *future_stream_cb_arg, const char *config, presage_t *result)
void presage_free_string_array(char **str)
void presage_free(presage_t prsg)
Presage(PresageCallback *callback)
presage_error_code_t presage_config_set(presage_t prsg, const char *variable, const char *value)
presage_error_code_t presage_predict(presage_t prsg, char ***result)
presage_error_code_t presage_new(_presage_callback_get_past_stream past_stream_cb, void *past_stream_cb_arg, _presage_callback_get_future_stream future_stream_cb, void *future_stream_cb_arg, presage_t *result)
PredictorActivator * predictorActivator
ContextTracker * contextTracker
void learn(const std::string text) const
Learn from text offline.
std::string config(const std::string variable) const
Gets the value of specified configuration variable.
presage_error_code_t presage_prefix(presage_t prsg, char **result)
presage_error_code_t presage_context_change(presage_t prsg, int *result)
void save_config() const
Save current configuration to file.
presage_error_code_t presage_context(presage_t prsg, char **result)
std::string prefix() const
Returns the current prefix.
ProfileManager * profileManager
const char *(* _presage_callback_get_future_stream)(void *)
Presage, the intelligent predictive text entry platform.
Configuration * configuration
std::string context() const
Returns the text entered so far.
presage_error_code_t presage_config(presage_t prsg, const char *variable, char **result)
void presage_free_string(char *str)
presage_error_code_t presage_learn(presage_t prsg, const char *text)
Tracks user interaction and context.
const char *(* _presage_callback_get_past_stream)(void *)
presage_error_code_t presage_completion(presage_t prsg, const char *token, char **result)
std::string completion(std::string str)
Request presage to return the completion string for the given predicted token.