public List <string> CutForSearch(string sentence, bool hmm = true) { var words = new JiebaImports.JiebaWords(); JiebaImports.jieba_cut_for_search(JiebaContext, sentence, ref words, hmm); var ret = JiebaImports.JiebaWords2StringList(ref words); JiebaImports.jieba_words_free(ref words); return(ret); }
public List <string> CutAll(string sentence) { var words = new JiebaImports.JiebaWords(); JiebaImports.jieba_cut_all(JiebaContext, sentence, ref words); var ret = JiebaImports.JiebaWords2StringList(ref words); JiebaImports.jieba_words_free(ref words); return(ret); }