| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/ |
| sim_dict.h | 48 struct TState; 49 typedef const TState * PState; 50 struct TState { 52 std::map<TSIMChar, TState>* follow; 53 TState(TSIMWordId wid=SIM_ID_NOT_WORD) : word_id(wid), follow(NULL) { } 55 typedef std::map<TSIMChar, TState> Map_Type; 61 void close(){ freeSubTree(m_root); m_root = TState(); } 63 const TState* getRoot() const { return &m_root; } 64 int matchLongest(const CSIMDict::TState* root, CSIMDict::PState & result, const TWCHAR* str); 66 static const TState* step(const CSIMDict::TState* root, TWCHAR wch) [all...] |
| slm.h | 62 * -# Add a basic type TState in Language model, a state is pair of\n 65 * double transfer(TState& history, unsigned int wid, TState& result); 80 union TState{ 81 TState(const TState& b) : m_all(b.m_all) { } 82 TState(unsigned level=0, unsigned idx=0) { anony.m_Level=level; anony.m_Idx=idx; } 84 inline TState& operator++() { ++anony.m_Idx; return *this; } 92 inline bool operator==(const TState & b) const { return m_all == b.m_all; } 93 inline bool operator< (const TState & b) const { return unsigned(*this) < unsigned(b); [all...] |
| slm.cpp | 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) 278 return TState(pl->bol(), pl->bon()) [all...] |
| sim_dict.cpp | 44 void CSIMDict::freeSubTree(CSIMDict::TState& root) 55 const CSIMDict::TState* CSIMDict::step(const CSIMDict::TState* root, TWCHAR wch) 65 int CSIMDict::matchLongest(const CSIMDict::TState* root, CSIMDict::PState & result, const TWCHAR* str) 132 TState* ps = &m_root; 150 ps = &(map[ch] = TState(nodeId)); 155 void CSIMDict::InnerPrint(FILE* fp, wstring & wstr, const TState* pnode)
|
| /nv-g11n/inputmethod/sunpinyin2/src/slm/ |
| sim_dict.h | 48 struct TState; 49 typedef const TState * PState; 50 struct TState { 52 std::map<TSIMChar, TState>* follow; 53 TState(TSIMWordId wid=SIM_ID_NOT_WORD) : word_id(wid), follow(NULL) { } 55 typedef std::map<TSIMChar, TState> Map_Type; 61 void close(){ freeSubTree(m_root); m_root = TState(); } 63 const TState* getRoot() const { return &m_root; } 64 int matchLongest(const CSIMDict::TState* root, CSIMDict::PState & result, const TWCHAR* str); 66 static const TState* step(const CSIMDict::TState* root, TWCHAR wch) [all...] |
| slm.h | 62 * -# Add a basic type TState in Language model, a state is pair of\n 65 * double transfer(TState& history, unsigned int wid, TState& result); 80 union TState{ 81 TState(const TState& b) : m_all(b.m_all) { } 82 TState(unsigned level=0, unsigned idx=0) { anony.m_Level=level; anony.m_Idx=idx; } 84 inline TState& operator++() { ++anony.m_Idx; return *this; } 92 inline bool operator==(const TState & b) const { return m_all == b.m_all; } 93 inline bool operator< (const TState & b) const { return unsigned(*this) < unsigned(b); [all...] |
| slm.cpp | 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) 284 return TState(pl->bol(), pl->bon()) [all...] |
| sim_dict.cpp | 44 void CSIMDict::freeSubTree(CSIMDict::TState& root) 55 const CSIMDict::TState* CSIMDict::step(const CSIMDict::TState* root, TWCHAR wch) 65 int CSIMDict::matchLongest(const CSIMDict::TState* root, CSIMDict::PState & result, const TWCHAR* str) 132 TState* ps = &m_root; 150 ps = &(map[ch] = TState(nodeId)); 155 void CSIMDict::InnerPrint(FILE* fp, wstring & wstr, const TState* pnode)
|
| /nv-g11n/inputmethod/sunpinyin/ime/src/slm/ |
| slm.h | 62 * -# Add a basic type TState in Language model, a state is pair of\n 65 * double transfer(TState& history, unsigned int wid, TState& result); 80 union TState{ 81 TState(const TState& b) : m_all(b.m_all) { } 82 TState(unsigned level=0, unsigned idx=0) { anony.m_Level=level; anony.m_Idx=idx; } 84 inline TState& operator++() { ++anony.m_Idx; return *this; } 92 inline bool operator==(const TState & b) const { return m_all == b.m_all; } 93 inline bool operator< (const TState & b) const { return unsigned(*this) < unsigned(b); [all...] |
| slm.cpp | 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) 276 return TState(pl->bol(), pl->bon()) [all...] |
| /nv-g11n/inputmethod/sunpinyin/slm/src/lexicon/ |
| genPYT.cpp | 72 CThreadSlm::TState st(0,0); 79 CThreadSlm::TState st(0,0);
|
| /nv-g11n/inputmethod/sunpinyin2/src/lexicon/ |
| genPYT.cpp | 68 CThreadSlm::TState st(0,0); 75 CThreadSlm::TState st(0,0);
|
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/slmseg/ |
| slmseg.cpp | 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; 221 const CSIMDict::TState* pstate; 238 const CSIMDict::TState* pds = s_dict->getRoot(); 253 * Lattice head should have one state, with its TState using slm's root. its 265 lattice[0].m_states[CThreadSlm::TState()] = TLatticeStateValue(0.0, NULL, CThreadSlm::TState()); 268 const CSIMDict::TState* pstate [all...] |
| /nv-g11n/inputmethod/sunpinyin2/src/slm/slmseg/ |
| slmseg.cpp | 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; 221 const CSIMDict::TState* pstate; 238 const CSIMDict::TState* pds = s_dict->getRoot(); 253 * Lattice head should have one state, with its TState using slm's root. its 265 lattice[0].m_states[CThreadSlm::TState()] = TLatticeStateValue(0.0, NULL, CThreadSlm::TState()); 268 const CSIMDict::TState* pstate [all...] |
| /nv-g11n/inputmethod/sunpinyin/ime/src/ |
| lattice_builder.h | 137 typedef CThreadSlm::TState CLmState;
|
| lattice_states.h | 54 typedef CThreadSlm::TState CStateKey;
|
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/tslminfo/ |
| tslminfo.cpp | 63 typedef std::vector<TState> iterator; 81 getNodePtr(TState s); 116 it.push_back(TState(i, 0)); 122 CIterateThreadSlm::getNodePtr(TState s)
|
| /nv-g11n/inputmethod/sunpinyin2/src/slm/tslminfo/ |
| tslminfo.cpp | 63 typedef std::vector<TState> iterator; 81 getNodePtr(TState s); 116 it.push_back(TState(i, 0)); 122 CIterateThreadSlm::getNodePtr(TState s)
|
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/getWordFreq/ |
| getWordFreq.cpp | 109 CThreadSlm::TState st;
|
| /nv-g11n/inputmethod/sunpinyin2/src/slm/getWordFreq/ |
| getWordFreq.cpp | 109 CThreadSlm::TState st;
|
| /nv-g11n/inputmethod/sunpinyin2/src/ime-core/ |
| lattice_states.h | 57 typedef CThreadSlm::TState CSlmState;
|
| /nv-g11n/inputmethod/sunpinyin/slm/src/slm/mmseg/ |
| mmseg.cpp | 189 const CSIMDict::TState* pstate; 220 const CSIMDict::TState* pstate;
|
| /nv-g11n/inputmethod/sunpinyin2/src/slm/mmseg/ |
| mmseg.cpp | 189 const CSIMDict::TState* pstate; 220 const CSIMDict::TState* pstate;
|
| /nv-g11n/inputmethod/sunpinyin/slm/python/ |
| pyslm.pyx | 38 ctypedef union CThreadSlm_TState "CThreadSlm::TState":
|
| /nv-g11n/inputmethod/sunpinyin2/python/ |
| pyslm.pyx | 38 ctypedef union CThreadSlm_TState "CThreadSlm::TState":
|