Lines Matching defs:DictTrie
20 #include "../include/dicttrie.h"
28 DictTrie::DictTrie() {
47 DictTrie::~DictTrie() {
51 void DictTrie::free_resource(bool free_dict_list) {
86 inline size_t DictTrie::get_son_offset(const LmaNodeGE1 *node) {
90 inline size_t DictTrie::get_homo_idx_buf_offset(const LmaNodeGE1 *node) {
95 inline LemmaIdType DictTrie::get_lemma_id(size_t id_offset) {
104 bool DictTrie::build_dict(const char* fn_raw, const char* fn_validhzs) {
112 bool DictTrie::save_dict(FILE *fp) {
143 bool DictTrie::save_dict(const char *filename) {
168 bool DictTrie::load_dict(FILE *fp) {
244 bool DictTrie::load_dict(const char *filename, LemmaIdType start_id,
276 bool DictTrie::load_dict_fd(int sys_fd, long start_offset,
315 size_t DictTrie::fill_lpi_buffer(LmaPsbItem lpi_items[], size_t lpi_max,
333 size_t DictTrie::fill_lpi_buffer(LmaPsbItem lpi_items[], size_t lpi_max,
351 void DictTrie::reset_milestones(uint16 from_step, MileStoneHandle from_handle) {
365 MileStoneHandle DictTrie::extend_dict(MileStoneHandle from_handle,
386 MileStoneHandle DictTrie::extend_dict0(MileStoneHandle from_handle,
444 MileStoneHandle DictTrie::extend_dict1(MileStoneHandle from_handle,
521 MileStoneHandle DictTrie::extend_dict2(MileStoneHandle from_handle,
598 bool DictTrie::try_extend(const uint16 *splids, uint16 splid_num,
663 size_t DictTrie::get_lpis(const uint16* splid_str, uint16 splid_str_len,
848 uint16 DictTrie::get_lemma_str(LemmaIdType id_lemma, char16 *str_buf,
853 uint16 DictTrie::get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
894 void DictTrie::set_total_lemma_count_of_others(size_t count) {
899 void DictTrie::convert_to_hanzis(char16 *str, uint16 str_len) {
903 void DictTrie::convert_to_scis_ids(char16 *str, uint16 str_len) {
907 LemmaIdType DictTrie::get_lemma_id(const char16 lemma_str[], uint16 lemma_len) {
914 size_t DictTrie::predict_top_lmas(size_t his_len, NPredictItem *npre_items,
937 size_t DictTrie::predict(const char16 *last_hzs, uint16 hzs_len,