Home
last modified time | relevance | path

Searched refs:LemmaIdType (Results 1 – 25 of 25) sorted by relevance

/OK3568_Linux_fs/app/forlinx/DWKeyboard/include/pinyin/include/
H A Ddicttrie.h104 inline LemmaIdType get_lemma_id(size_t id_offset);
142 bool try_extend(const uint16 *splids, uint16 splid_num, LemmaIdType id_lemma);
177 bool load_dict(const char *filename, LemmaIdType start_id,
178 LemmaIdType end_id);
180 LemmaIdType start_id, LemmaIdType end_id);
194 uint16 get_lemma_str(LemmaIdType id_lemma, char16 *str_buf, uint16 str_max);
196 uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
203 LemmaIdType put_lemma(char16 /*lemma_str*/[], uint16 /*splids*/[], in put_lemma()
206 LemmaIdType update_lemma(LemmaIdType /*lemma_id*/, int16 /*delta_count*/, in update_lemma() argument
209 LemmaIdType get_lemma_id(char16 /*lemma_str*/[], uint16 /*splids*/[], in get_lemma_id()
[all …]
H A Datomdictbase.h64 virtual bool load_dict(const char *file_name, LemmaIdType start_id,
65 LemmaIdType end_id) = 0;
150 virtual uint16 get_lemma_str(LemmaIdType id_lemma, char16 *str_buf,
165 virtual uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
194 virtual LemmaIdType put_lemma(char16 lemma_str[], uint16 splids[],
206 virtual LemmaIdType update_lemma(LemmaIdType lemma_id, int16 delta_count,
217 virtual LemmaIdType get_lemma_id(char16 lemma_str[], uint16 splids[],
226 virtual LmaScoreType get_lemma_score(LemmaIdType lemma_id) = 0;
245 virtual bool remove_lemma(LemmaIdType lemma_id) = 0;
H A Duserdict.h41 bool load_dict(const char *file_name, LemmaIdType start_id,
42 LemmaIdType end_id);
57 uint16 get_lemma_str(LemmaIdType id_lemma, char16* str_buf,
60 uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
68 LemmaIdType put_lemma(char16 lemma_str[], uint16 splids[],
71 LemmaIdType update_lemma(LemmaIdType lemma_id, int16 delta_count,
74 LemmaIdType get_lemma_id(char16 lemma_str[], uint16 splids[],
77 LmaScoreType get_lemma_score(LemmaIdType lemma_id);
82 bool remove_lemma(LemmaIdType lemma_id);
101 LemmaIdType put_lemma_no_sync(char16 lemma_str[], uint16 splids[],
[all …]
H A Ddictdef.h65 typedef size_t LemmaIdType; typedef
81 const LemmaIdType kSysDictIdEnd = 500000;
84 const LemmaIdType kUserDictIdStart = 500001;
87 const LemmaIdType kUserDictIdEnd = 600000;
141 LemmaIdType idx_by_py;
142 LemmaIdType idx_by_hz;
H A Dsearchutility.h111 bool is_system_lemma(LemmaIdType lma_id);
112 bool is_user_lemma(LemmaIdType lma_id);
113 bool is_composing_lemma(LemmaIdType lma_id);
H A Ddictbuilder.h59 LemmaIdType *homo_idx_buf_;
106 void id_to_charbuf(unsigned char *buf, LemmaIdType id);
123 LemmaIdType sort_lemmas_by_hz();
H A Dmatrixsearch.h58 LemmaIdType id;
209 LemmaIdType lma_id_[kMaxRowNum];
293 uint16 get_lemma_str(LemmaIdType id_lemma, char16 *str_buf, uint16 str_max);
295 uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
H A Dngram.h79 float get_uni_psb(LemmaIdType lma_id);
91 LemmaIdType next_idx_unused);
H A Ddictlist.h94 uint16 get_lemma_str(LemmaIdType id_hz, char16 *str_buf, uint16 str_max);
116 LemmaIdType get_lemma_id(const char16 *str, uint16 str_len);
/OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/include/
H A Ddicttrie.h104 inline LemmaIdType get_lemma_id(size_t id_offset);
142 bool try_extend(const uint16 *splids, uint16 splid_num, LemmaIdType id_lemma);
177 bool load_dict(const char *filename, LemmaIdType start_id,
178 LemmaIdType end_id);
180 LemmaIdType start_id, LemmaIdType end_id);
194 uint16 get_lemma_str(LemmaIdType id_lemma, char16 *str_buf, uint16 str_max);
196 uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
203 LemmaIdType put_lemma(char16 /*lemma_str*/[], uint16 /*splids*/[], in put_lemma()
206 LemmaIdType update_lemma(LemmaIdType /*lemma_id*/, int16 /*delta_count*/, in update_lemma() argument
209 LemmaIdType get_lemma_id(char16 /*lemma_str*/[], uint16 /*splids*/[], in get_lemma_id()
[all …]
H A Datomdictbase.h64 virtual bool load_dict(const char *file_name, LemmaIdType start_id,
65 LemmaIdType end_id) = 0;
150 virtual uint16 get_lemma_str(LemmaIdType id_lemma, char16 *str_buf,
165 virtual uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
194 virtual LemmaIdType put_lemma(char16 lemma_str[], uint16 splids[],
206 virtual LemmaIdType update_lemma(LemmaIdType lemma_id, int16 delta_count,
217 virtual LemmaIdType get_lemma_id(char16 lemma_str[], uint16 splids[],
226 virtual LmaScoreType get_lemma_score(LemmaIdType lemma_id) = 0;
245 virtual bool remove_lemma(LemmaIdType lemma_id) = 0;
H A Duserdict.h41 bool load_dict(const char *file_name, LemmaIdType start_id,
42 LemmaIdType end_id);
57 uint16 get_lemma_str(LemmaIdType id_lemma, char16* str_buf,
60 uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
68 LemmaIdType put_lemma(char16 lemma_str[], uint16 splids[],
71 LemmaIdType update_lemma(LemmaIdType lemma_id, int16 delta_count,
74 LemmaIdType get_lemma_id(char16 lemma_str[], uint16 splids[],
77 LmaScoreType get_lemma_score(LemmaIdType lemma_id);
82 bool remove_lemma(LemmaIdType lemma_id);
101 LemmaIdType put_lemma_no_sync(char16 lemma_str[], uint16 splids[],
[all …]
H A Ddictdef.h65 typedef size_t LemmaIdType; typedef
81 const LemmaIdType kSysDictIdEnd = 500000;
84 const LemmaIdType kUserDictIdStart = 500001;
87 const LemmaIdType kUserDictIdEnd = 600000;
141 LemmaIdType idx_by_py;
142 LemmaIdType idx_by_hz;
H A Dsearchutility.h111 bool is_system_lemma(LemmaIdType lma_id);
112 bool is_user_lemma(LemmaIdType lma_id);
113 bool is_composing_lemma(LemmaIdType lma_id);
H A Ddictbuilder.h59 LemmaIdType *homo_idx_buf_;
106 void id_to_charbuf(unsigned char *buf, LemmaIdType id);
123 LemmaIdType sort_lemmas_by_hz();
H A Dmatrixsearch.h58 LemmaIdType id;
209 LemmaIdType lma_id_[kMaxRowNum];
293 uint16 get_lemma_str(LemmaIdType id_lemma, char16 *str_buf, uint16 str_max);
295 uint16 get_lemma_splids(LemmaIdType id_lemma, uint16 *splids,
H A Dngram.h79 float get_uni_psb(LemmaIdType lma_id);
91 LemmaIdType next_idx_unused);
H A Ddictlist.h94 uint16 get_lemma_str(LemmaIdType id_hz, char16 *str_buf, uint16 str_max);
116 LemmaIdType get_lemma_id(const char16 *str, uint16 str_len);
/OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/share/
H A Ddicttrie.cpp95 inline LemmaIdType DictTrie::get_lemma_id(size_t id_offset) { in get_lemma_id()
96 LemmaIdType id = 0; in get_lemma_id()
243 bool DictTrie::load_dict(const char *filename, LemmaIdType start_id, in load_dict()
244 LemmaIdType end_id) { in load_dict()
276 long length, LemmaIdType start_id, in load_dict_fd()
277 LemmaIdType end_id) { in load_dict_fd()
598 LemmaIdType id_lemma) { in try_extend()
643 LemmaIdType id_this = get_lemma_id(node_le0->homo_idx_buf_off + homo_pos); in try_extend()
847 uint16 DictTrie::get_lemma_str(LemmaIdType id_lemma, char16 *str_buf, in get_lemma_str()
852 uint16 DictTrie::get_lemma_splids(LemmaIdType id_lemma, uint16 *splids, in get_lemma_splids()
[all …]
H A Duserdict.cpp235 inline LemmaIdType UserDict::get_max_lemma_id() { in get_max_lemma_id()
241 inline bool UserDict::is_valid_lemma_id(LemmaIdType id) { in is_valid_lemma_id()
283 bool UserDict::load_dict(const char *file_name, LemmaIdType start_id, in load_dict()
284 LemmaIdType end_id) { in load_dict()
641 uint16 UserDict::get_lemma_str(LemmaIdType id_lemma, char16* str_buf, in _get_lpis()
659 uint16 UserDict::get_lemma_splids(LemmaIdType id_lemma, uint16 *splids, in _get_lpis()
888 LemmaIdType UserDict::get_lemma_id(char16 lemma_str[], uint16 splids[], in _get_lpis()
898 LmaScoreType UserDict::get_lemma_score(LemmaIdType lemma_id) { in _get_lpis()
914 int UserDict::_get_lemma_score(LemmaIdType lemma_id) { in _get_lpis()
1007 bool UserDict::remove_lemma(LemmaIdType lemma_id) { in _get_lpis()
[all …]
H A Dsearchutility.cpp23 bool is_system_lemma(LemmaIdType lma_id) { in is_system_lemma()
27 bool is_user_lemma(LemmaIdType lma_id) { in is_user_lemma()
31 bool is_composing_lemma(LemmaIdType lma_id) { in is_composing_lemma()
H A Ddictbuilder.cpp199 homo_idx_buf_ = new LemmaIdType[lemma_num_]; in alloc_resource()
215 memset(homo_idx_buf_, 0, sizeof(LemmaIdType) * lemma_num_); in alloc_resource()
621 LemmaIdType idx = in build_dict()
640 void DictBuilder::id_to_charbuf(unsigned char *buf, LemmaIdType id) { in id_to_charbuf()
679 LemmaIdType DictBuilder::sort_lemmas_by_hz() { in sort_lemmas_by_hz()
686 LemmaIdType idx_max = 1; in sort_lemmas_by_hz()
886 LemmaIdType* idx_buf = homo_idx_buf_ + homo_idx_num_eq1_ + in construct_subset()
955 LemmaIdType* idx_buf = homo_idx_buf_ + homo_idx_num_eq1_ + in construct_subset()
H A Dngram.cpp229 float NGram::get_uni_psb(LemmaIdType lma_id) { in get_uni_psb()
245 LemmaIdType next_idx_unused) { in build_unigram()
256 LemmaIdType idx_now = 0; in build_unigram()
H A Ddictlist.cpp286 uint16 DictList::get_lemma_str(LemmaIdType id_lemma, char16 *str_buf, in get_lemma_str()
348 LemmaIdType DictList::get_lemma_id(const char16 *str, uint16 str_len) { in get_lemma_id()
358 return static_cast<LemmaIdType> in get_lemma_id()
H A Dmatrixsearch.cpp645 LemmaIdType id = lpi_items_[cand_id].id; in get_candidate()
686 LemmaIdType lma_id = lma_id_[pos]; in add_lma_to_userdict()
838 LemmaIdType id_chosen = lpi_items_[cand_id].id; in choose()
1641 LemmaIdType idxs[kMaxRowNum]; in get_candidate0()
1803 uint16 MatrixSearch::get_lemma_str(LemmaIdType id_lemma, char16 *str_buf, in get_lemma_str()
1830 uint16 MatrixSearch::get_lemma_splids(LemmaIdType id_lemma, uint16 *splids, in get_lemma_splids()