- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
一种改进了的前向匹配算法(perl实现)(An improved forward matching algorithm (Perl Implementation))
一种改进了的前向匹配算法(perl实现)(An improved forward matching algorithm (Perl Implementation)) An improved forward matching algorithm (Perl).Txt20 if you try to find a good, good will find you; if you try to respect others, you will also get the respect of others; if you try to help others, you will get the help of others. Life is like an echo, you send it back to what what, you reap what you sow, what you give is what you get. An improved forward matching algorithm (Perl) 2009-12-04 18:22 In fact, I want to say now, there is no one can use the GBK word mody! With traditional Chinese jam. UTF-8 thesaurus structure CEDICT the fucking too complicated... The dynamic adjustment of the size of the maxlen, the maximum length of the maxlen= containing the cutting out of the first word of the word. First we do some preprocessing on the list, create a new vocabulary, containing only the first word and maximum length. # /usr/bin/perl! Use strict; Use warnings; Open (IN, dict.txt) || die open this file: $Cannot!; Open (OUT, subdict.txt) || die open this file: $Cannot!; My $test; My $temp; My%hash; My%w; My $word; My $key; My $value; My @words=IN; Chomp (@words); Foreach $word (@words) { $hash{$word}=length ($word); } Foreach $temp (keys%hash) { If (exists $w{substr ($temp, 0,2) {}) If ($w{substr ($temp, 0,2) {}$hash{$temp}) $w{substr ($temp, 0,2)}=$hash{$temp}; } } $w{substr ($temp, 0,2)}=$hash{$temp}; } Foreach $temp (keys%w) { Print OUT $temp. \n.$w{$temp}. \n; } Close IN; Close OUT; Then we can use the vocabulary and vocabulary together, we. # /usr/bin/perl! Use strict; Use warnings; ################### read #################### Thesaurus Open (DICT, dict.txt) || die Cannot open this file: $#!; open the thesaurus Open (SUBDICT, subdict.txt) || die Cannot open this file: $#!; open vocabulary My%dict; My%subdict; My @words=DICT; # reading list My $word; Chomp (@words); Foreach $word (@words) { $dict{$word}=1; # read hash table } @words=SUBDICT; Chomp (@words); My $i; # loop variable For
您可能关注的文档
- 薛氏姊妹二女同夫(Xue's sister with her husband and two daughters).doc
- 薰衣草使用方法(Lavender usage).doc
- 蛇咬急救(A first aid).doc
- 蜈蚣的繁殖过程.txt(The propagation process of centipede.Txt).doc
- 血、尿、腹水ⅲ型前胶原肽联合检测在肝脏疾病中的诊断价值(Diagnostic value of combined detection of procollagen and peptide in blood, urine and ascites in liver diseases).doc
- 血压高吃什么食物好(High blood pressure, what to eat good food).doc
- 血气分析(blood gas analysis).doc
- 血液学专业单词(Hematology major words).doc
- 西交《药理学》在线作业(West to the Pharmacology online homework).doc
- 西医内科毕业考(Western medicine graduation examination).doc
- 一种求解条件非线性最优扰动的快速算法及其在台风目标观 …(A fast algorithm for solving conditional nonlinear optimal disturbances and its application in typhoon target...).doc
- 一片冰心在玉壶 上句_百度知道(In the words _ okho a pure and noble character of Baidu know).doc
- 一种离散系统线性二次型最优控制的算法设计(Algorithm design of linear two order optimal control for discrete systems).doc
- 一汽大众-奥迪a4遥控钥匙手工匹配操作方法(FAW Volkswagen - Audi A4 remote control keys manual matching method of operation).doc
- 一种独特的英语自学方法!(A unique method of learning English by yourself!).doc
- 一种锁定相位编程可调全数字锁相环设计(Design of locked phase programmable adjustable full digital phase locked loop).doc
- 一穴速查恶性肿瘤 (2014-09-29(A quick point of malignant tumor (2014-09-29).doc
- 一种新颖的密封铅酸蓄电池充电器的设计(Design of a novel charger for sealed lead-acid batteries).doc
- 一站到底 题目20120705(A stop to the end of the title 20120705).doc
- 一站到底 题目20120712(A stop to the end of the title 20120712).doc
有哪些信誉好的足球投注网站
文档评论(0)