| /nv-g11n/inputmethod/sunpinyin/ime/src/ |
| imi_data.h | 61 CThreadSlm* 77 CThreadSlm *m_pLM;
|
| /nv-g11n/inputmethod/sunpinyin2/src/ime-core/ |
| imi_data.h | 61 CThreadSlm* 77 CThreadSlm *m_pLM;
|
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/tslmpack/ |
| arpa_conv.h | 54 TNodeLevels& nodeLevels, CThreadSlm::TLeaf*& leafLevel);
|
| common.h | 46 typedef std::vector<CThreadSlm::TNode> TNodeLevel; 47 typedef std::vector<CThreadSlm::TLeaf> TLeafLevel; 48 typedef std::vector<CThreadSlm::TNode*> TNodeLevels;
|
| arpa_conv.cpp | 42 // convert CArpaSlm::TLeaf to CThreadSlm::TLeaf 58 CThreadSlm::TLeaf operator()(const CArpaSlm::TLeaf& leaf) { 59 CThreadSlm::TLeaf tleaf; 89 // convert CArpaSlm::TNode to CThreadSlm::TNode 109 CThreadSlm::TNode operator()(const CArpaSlm::TNode& node) { 110 CThreadSlm::TNode tnode; 137 TNodeLevels& nodeLevels, CThreadSlm::TLeaf*& leafLevel) 146 node_levels[lvl] = new CThreadSlm::TNode[len+1]; 149 memset(&node_levels[lvl][len], 0, sizeof(CThreadSlm::TNode)); 155 CThreadSlm::TLeaf* leaf_level = new CThreadSlm::TLeaf[len+1] [all...] |
| slmpack.cpp | 179 vc(pr_eff, pr_values, pr_map, pr_table, (1 << CThreadSlm::BITS_PR)); 190 vc(bow_eff, bow_values, bow_map, bow_table, (1 << CThreadSlm::BITS_BOW)); 243 const TNodeLevels& levels, const CThreadSlm::TLeaf* lastLevel) 258 for (int i = 0, sz = pr_table.size(); i < (1 << CThreadSlm::BITS_PR); ++i) { 267 for (int i = 0, sz = bow_table.size(); i < (1 << CThreadSlm::BITS_BOW); ++i) { 277 fwrite(levels[lvl], sizeof(CThreadSlm::TNode), slm.getLevelSize(lvl)+1, fp); 280 fwrite(lastLevel, sizeof(CThreadSlm::TLeaf), slm.getLevelSize(N)+1, fp); 289 TNodeLevels& levels, CThreadSlm::TLeaf* lastLevel) 330 CThreadSlm::TLeaf* lastLevel;
|
| /nv-g11n/inputmethod/sunpinyin2/src/slm/tslmpack/ |
| arpa_conv.h | 54 TNodeLevels& nodeLevels, CThreadSlm::TLeaf*& leafLevel);
|
| common.h | 46 typedef std::vector<CThreadSlm::TNode> TNodeLevel; 47 typedef std::vector<CThreadSlm::TLeaf> TLeafLevel; 48 typedef std::vector<CThreadSlm::TNode*> TNodeLevels;
|
| arpa_conv.cpp | 42 // convert CArpaSlm::TLeaf to CThreadSlm::TLeaf 58 CThreadSlm::TLeaf operator()(const CArpaSlm::TLeaf& leaf) { 59 CThreadSlm::TLeaf tleaf; 89 // convert CArpaSlm::TNode to CThreadSlm::TNode 109 CThreadSlm::TNode operator()(const CArpaSlm::TNode& node) { 110 CThreadSlm::TNode tnode; 137 TNodeLevels& nodeLevels, CThreadSlm::TLeaf*& leafLevel) 146 node_levels[lvl] = new CThreadSlm::TNode[len+1]; 149 memset(&node_levels[lvl][len], 0, sizeof(CThreadSlm::TNode)); 155 CThreadSlm::TLeaf* leaf_level = new CThreadSlm::TLeaf[len+1] [all...] |
| slmpack.cpp | 179 vc(pr_eff, pr_values, pr_map, pr_table, (1 << CThreadSlm::BITS_PR)); 190 vc(bow_eff, bow_values, bow_map, bow_table, (1 << CThreadSlm::BITS_BOW)); 243 const TNodeLevels& levels, const CThreadSlm::TLeaf* lastLevel) 258 for (int i = 0, sz = pr_table.size(); i < (1 << CThreadSlm::BITS_PR); ++i) { 267 for (int i = 0, sz = bow_table.size(); i < (1 << CThreadSlm::BITS_BOW); ++i) { 277 fwrite(levels[lvl], sizeof(CThreadSlm::TNode), slm.getLevelSize(lvl)+1, fp); 280 fwrite(lastLevel, sizeof(CThreadSlm::TLeaf), slm.getLevelSize(N)+1, fp); 289 TNodeLevels& levels, CThreadSlm::TLeaf* lastLevel) 330 CThreadSlm::TLeaf* lastLevel;
|
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/tslmendian/ |
| slm_file.h | 56 // TODO: may need consolidate this class with CThreadSlm 96 CThreadSlm::TNode* m_nodes; 98 CThreadSlm::TLeaf* m_leafs;
|
| slm_file.cpp | 41 * - pr_table() : float * 1<<CThreadSlm::BITS_PR # padding with 0.0F 42 * - bow_table() : float * 1 <<CThreadSlm::BITS_BOW # padding with 0.0F 43 * - node[0][] : CThreadSlm::TNode * slm.getLevelSize(0) 44 * - node[1][] : CThreadSlm::TNode * slm.getLevelSize(1) 46 * - node[N-1][] : CThreadSlm::TNode * slm.getLevelSize(N-1) 47 * - leaf[] : CThreadSlm::TLeaf * slm.getLevelSize(N) 66 typedef CThreadSlm::TNode TNode; 67 typedef CThreadSlm::TLeaf TLeaf; 83 // byte order reversed CThreadSlm::TLeaf small-endian presentation on big-endian machine 97 CThreadSlm::TLeaf leaf_betole(const CThreadSlm::TLeaf& v [all...] |
| /nv-g11n/inputmethod/sunpinyin2/src/slm/tslmendian/ |
| slm_file.h | 56 // TODO: may need consolidate this class with CThreadSlm 96 CThreadSlm::TNode* m_nodes; 98 CThreadSlm::TLeaf* m_leafs;
|
| slm_file.cpp | 41 * - pr_table() : float * 1<<CThreadSlm::BITS_PR # padding with 0.0F 42 * - bow_table() : float * 1 <<CThreadSlm::BITS_BOW # padding with 0.0F 43 * - node[0][] : CThreadSlm::TNode * slm.getLevelSize(0) 44 * - node[1][] : CThreadSlm::TNode * slm.getLevelSize(1) 46 * - node[N-1][] : CThreadSlm::TNode * slm.getLevelSize(N-1) 47 * - leaf[N-1][] : CThreadSlm::TLeaf * slm.getLevelSize(N) 66 typedef CThreadSlm::TNode TNode; 67 typedef CThreadSlm::TLeaf TLeaf; 83 // byte order reversed CThreadSlm::TLeaf small-endian presentation on big-endian machine 97 CThreadSlm::TLeaf leaf_betole(const CThreadSlm::TLeaf& v [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/src/lexicon/ |
| genPYT.cpp | 66 CThreadSlm m_Model; 72 CThreadSlm::TState st(0,0); 79 CThreadSlm::TState st(0,0);
|
| /nv-g11n/inputmethod/sunpinyin2/src/lexicon/ |
| genPYT.cpp | 62 CThreadSlm m_Model; 68 CThreadSlm::TState st(0,0); 75 CThreadSlm::TState st(0,0);
|
| /nv-g11n/inputmethod/sunpinyin/ime/src/slm/ |
| slm.cpp | 57 CThreadSlm::load(const char* fname, bool MMap) 126 CThreadSlm::free() 172 CThreadSlm::rawTransfer(TState history, unsigned int wid, TState& result) 232 CThreadSlm::transferNegLog(TState history, unsigned int wid, TState& result) 242 CThreadSlm::transfer(TState history, unsigned int wid, TState& result) 252 CThreadSlm::lastWordId(TState st) 271 CThreadSlm::TState 272 CThreadSlm::history_state_of(TState st) 286 CThreadSlm::TState& 287 CThreadSlm::historify(TState& st [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/ |
| slm.cpp | 57 CThreadSlm::load(const char* fname, bool MMap) 126 CThreadSlm::free() 174 CThreadSlm::rawTransfer(TState history, unsigned int wid, TState& result) 234 CThreadSlm::transferNegLog(TState history, unsigned int wid, TState& result) 244 CThreadSlm::transfer(TState history, unsigned int wid, TState& result) 254 CThreadSlm::lastWordId(TState st) 273 CThreadSlm::TState 274 CThreadSlm::history_state_of(TState st) 288 CThreadSlm::TState& 289 CThreadSlm::historify(TState& st [all...] |
| /nv-g11n/inputmethod/sunpinyin2/src/slm/ |
| slm.cpp | 57 CThreadSlm::load(const char* fname, bool MMap) 132 CThreadSlm::free() 180 CThreadSlm::rawTransfer(TState history, unsigned int wid, TState& result) 240 CThreadSlm::transferNegLog(TState history, unsigned int wid, TState& result) 250 CThreadSlm::transfer(TState history, unsigned int wid, TState& result) 260 CThreadSlm::lastWordId(TState st) 279 CThreadSlm::TState 280 CThreadSlm::history_state_of(TState st) 294 CThreadSlm::TState& 295 CThreadSlm::historify(TState& st [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/getWordFreq/ |
| getWordFreq.cpp | 98 tagFile(FILE *fp, CThreadSlm& slm) 109 CThreadSlm::TState st; 145 CThreadSlm slm;
|
| /nv-g11n/inputmethod/sunpinyin2/src/slm/getWordFreq/ |
| getWordFreq.cpp | 98 tagFile(FILE *fp, CThreadSlm& slm) 109 CThreadSlm::TState st; 145 CThreadSlm slm;
|
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/slmseg/ |
| slmseg.cpp | 79 static CThreadSlm *s_tslm = NULL; 198 CThreadSlm::TState m_btstate; 200 TLatticeStateValue(double pr=0.0, TLatticeWord* btword=NULL, CThreadSlm::TState btstate = CThreadSlm::TState()) 204 typedef std::map<CThreadSlm::TState, TLatticeStateValue> TLatticeColumnStates; 265 lattice[0].m_states[CThreadSlm::TState()] = TLatticeStateValue(0.0, NULL, CThreadSlm::TState()); 300 CThreadSlm::TState his = itss->first; 324 CThreadSlm::TState btstate = its->second.m_btstate; 406 s_tslm = new CThreadSlm(); [all...] |
| /nv-g11n/inputmethod/sunpinyin2/src/slm/slmseg/ |
| slmseg.cpp | 79 static CThreadSlm *s_tslm = NULL; 198 CThreadSlm::TState m_btstate; 200 TLatticeStateValue(double pr=0.0, TLatticeWord* btword=NULL, CThreadSlm::TState btstate = CThreadSlm::TState()) 204 typedef std::map<CThreadSlm::TState, TLatticeStateValue> TLatticeColumnStates; 265 lattice[0].m_states[CThreadSlm::TState()] = TLatticeStateValue(0.0, NULL, CThreadSlm::TState()); 300 CThreadSlm::TState his = itss->first; 324 CThreadSlm::TState btstate = its->second.m_btstate; 406 s_tslm = new CThreadSlm(); [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/python/ |
| pyslm.pyx | 38 ctypedef union CThreadSlm_TState "CThreadSlm::TState": 44 ctypedef struct CThreadSlm "CThreadSlm": 54 CThreadSlm *new_CThreadSlm "new CThreadSlm" () 55 void del_CThreadSlm "delete" (CThreadSlm *slm) 80 cdef CThreadSlm *thisptr
|
| /nv-g11n/inputmethod/sunpinyin2/python/ |
| pyslm.pyx | 38 ctypedef union CThreadSlm_TState "CThreadSlm::TState": 44 ctypedef struct CThreadSlm "CThreadSlm": 54 CThreadSlm *new_CThreadSlm "new CThreadSlm" () 55 void del_CThreadSlm "delete" (CThreadSlm *slm) 80 cdef CThreadSlm *thisptr
|