289 void* past_stream_cb_arg,
291 void* future_stream_cb_arg,
295 void* past_stream_cb_arg,
297 void* future_stream_cb_arg,
333 const char* variable,
337 const char* variable,
std::string config(const std::string variable) const
Gets the value of specified configuration variable.
PredictorRegistry * predictorRegistry
presage_error_code_t presage_predict_with_filter(presage_t prsg, const char **filter, presage_prediction_t *result)
std::vector< std::string > predict()
Obtain a prediction.
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
presage_suggestion_t * presage_prediction_t
presage_error_code_t presage_prefix(presage_t prsg, char **result)
std::string version() const
Returns presage release version.
bool context_change() const
Returns true if a context change occured.
presage_error_code_t presage_context_change(presage_t prsg, int *result)
presage_error_code_t presage_context(presage_t prsg, char **result)
ProfileManager * profileManager
presage_error_code_t presage_version(presage_t prsg, char **result)
const char *(* _presage_callback_get_future_stream)(void *)
Presage, the intelligent predictive text entry platform.
std::string prefix() const
Returns the current prefix.
Configuration * configuration
presage_error_code_t presage_config(presage_t prsg, const char *variable, char **result)
std::string context() const
Returns the text entered so far.
void save_config() const
Save current configuration to file.
void presage_free_string(char *str)
presage_error_code_t presage_learn(presage_t prsg, const char *text)
Tracks user interaction and context.
void learn(const std::string text) const
Learn from text offline.
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.
void presage_free_prediction(presage_prediction_t prediction)