141 std::vector<std::string>
predict()
noexcept(
false);
156 std::multimap<double, std::string>
predict(std::vector<std::string> filter)
noexcept(
false);
170 void learn(
const std::string text)
const noexcept(
false);
193 std::string
completion(std::string str)
noexcept(
false);
199 std::string
context()
const noexcept(
false);
212 std::string
prefix()
const noexcept(
false);
221 std::string
config(
const std::string variable)
const noexcept(
false);
230 void config(
const std::string variable,
const std::string value)
const noexcept(
false);
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,
Tracks user interaction and context.
Presage, the intelligent predictive text entry platform.
PresageCallback * callback(PresageCallback *callback) noexcept(false)
Callback getter/setter.
std::string context() const noexcept(false)
Returns the text entered so far.
Configuration * configuration
std::string completion(std::string str) noexcept(false)
Request presage to return the completion string for the given predicted token.
std::string prefix() const noexcept(false)
Returns the current prefix.
std::string config(const std::string variable) const noexcept(false)
Gets the value of specified configuration variable.
std::vector< std::string > predict() noexcept(false)
Obtain a prediction.
bool context_change() const noexcept(false)
Returns true if a context change occured.
ContextTracker * contextTracker
PredictorRegistry * predictorRegistry
Presage(PresageCallback *callback) noexcept(false)
void learn(const std::string text) const noexcept(false)
Learn from text offline.
void save_config() const noexcept(false)
Save current configuration to file.
ProfileManager * profileManager
PredictorActivator * predictorActivator
const char *(* _presage_callback_get_past_stream)(void *)
const char *(* _presage_callback_get_future_stream)(void *)
presage_error_code_t presage_prefix(presage_t prsg, char **result)
presage_error_code_t presage_context(presage_t prsg, char **result)
presage_error_code_t presage_completion(presage_t prsg, const char *token, char **result)
struct _presage * presage_t
presage_error_code_t presage_predict(presage_t prsg, char ***result)
presage_error_code_t presage_learn(presage_t prsg, const char *text)
void presage_free_string_array(char **str)
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)
presage_error_code_t presage_config_set(presage_t prsg, const char *variable, const char *value)
presage_error_code_t presage_context_change(presage_t prsg, int *result)
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)
presage_error_code_t presage_config(presage_t prsg, const char *variable, char **result)
void presage_free(presage_t prsg)
void presage_free_string(char *str)
presage_error_code_t presage_save_config(presage_t prsg)