diff options
Diffstat (limited to 'src/pinyin.h')
-rw-r--r-- | src/pinyin.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h index 7163435..bf3898a 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -234,6 +234,18 @@ bool pinyin_guess_sentence_with_prefix(pinyin_instance_t * instance, const char * prefix); /** + * pinyin_guess_predicted_candidates: + * @instance: the pinyin instance. + * @prefix: the prefix before the predicted candidates. + * @returns: whether the predicted candidates are guessed successfully. + * + * Guess the predicted candidates after the prefix word. + * + */ +bool pinyin_guess_predicted_candidates(pinyin_instance_t * instance, + const char * prefix); + +/** * pinyin_phrase_segment: * @instance: the pinyin instance. * @sentence: the utf-8 sentence to be segmented. @@ -388,6 +400,18 @@ int pinyin_choose_candidate(pinyin_instance_t * instance, lookup_candidate_t * candidate); /** + * pinyin_choose_predicted_candidate: + * @instance: the pinyin instance. + * @candidate: the selected candidate. + * @returns: whether the self-learning is successful. + * + * Choose a predicted candidate. + * + */ +bool pinyin_choose_predicted_candidate(pinyin_instance_t * instance, + lookup_candidate_t * candidate); + +/** * pinyin_clear_constraint: * @instance: the pinyin instance. * @offset: the offset in the pinyin keys. |