bool CIMIContext::buildLattice(IPySegmentor *segmentor, bool doSearch) { m_pPySegmentor = segmentor; return _buildLattice(segmentor->getSegments(), segmentor->updatedFrom() + 1, doSearch); }
void CIMIContext::deleteCandidateByWID(unsigned wid) { if (wid > INI_USRDEF_WID) { m_pHistory->forget(wid); m_pUserDict->removeWord(wid); _buildLattice(m_pPySegmentor->getSegments()); } }
void CIMIContext::deleteCandidate (CCandidate &candi) { unsigned wid = candi.m_wordId; if (wid > INI_USRDEF_WID) { m_pHistory->forget (wid); m_pUserDict->removeWord (wid); _buildLattice (m_pPySegmentor->getSegments(), candi.m_start+1); } }