2010年4月7日
摘要: 中文分词,先做机械分词部分:用MM算法。由于初学Python所以可以多借鉴网上已有代码step1:能过step2:优化 阅读全文
posted @ 2010-04-07 21:37 finallyly 阅读(283) 评论(2) 推荐(0) 编辑
摘要: C#出来MYSQL的方法和处理MSSQL方法过程类似,只不过相应命令的前缀SQL换做了MySql下面的代码写下来做备忘C# 操作MySql数据库Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicstaticvoidInsertIntoData... 阅读全文
posted @ 2010-04-07 19:24 finallyly 阅读(17519) 评论(1) 推荐(0) 编辑
摘要: 资料见:http://en.wikipedia.org/wiki/Viterbi_algorithm代码如下C:Python26MyViterbiMyViterbi.pyCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#-*-coding:cp936-... 阅读全文
posted @ 2010-04-07 09:30 finallyly 阅读(4376) 评论(2) 推荐(0) 编辑
摘要: 1.<beautiful data>中的例子,由于没有中文语料库,故用英文串代替,思路一样(如将finallylast)切分成['finally','last']2.代码切分模块代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->importoperatordefsegment(text):"Returnalistofwordsthatisthebestsegmentationoftex 阅读全文
posted @ 2010-04-07 09:23 finallyly 阅读(3066) 评论(5) 推荐(0) 编辑