码迷,mamicode.com
首页 >  
搜索关键字:wordsplit    ( 1个结果
给定字典做分词
最近需要用到分词,无聊写个算法。。。算法:给定一个字典和一句话,做分词;Target:输入词典,输出所有可能的分词结果思路:dfs加速:首先判断是不是这句话里所有的词在字典中都有(validate)// // Wordsplit.cpp // // Target: Find all possible splitting of a sentence given a dictionary di...
分类:其他好文   时间:2014-08-16 23:50:11    阅读次数:314
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!