LanguageDetector:PHP类可从任何自由文本中检测语言

上传者: 42127369 | 上传时间: 2023-04-06 15:17:02 | 文件大小: 492KB | 文件类型: ZIP
语言检测器 PHP类可从任何自由文本中检测语言。 它遵循描述的方法,将给定的文本标记为 (在执行此步骤之前,我们先清除空白)。 然后,我们对tokens进行排序,并与语言model进行比较。 这个怎么运作 我们需要的第一件事是一个language model (看起来像),用于在分类时将文本与之进行比较。 这一过程必须任何事之前完成的,它可以用类似的脚本生成。 // register the autoloader require 'lib/LanguageDetector/autoload.php' ; // it could use a little bit of memory, but it's fine // because this process runs once. ini_set ( 'memory_limit' , '1G' ); // we load the con

文件下载

资源详情

[{"title":"( 99 个子文件 492KB ) LanguageDetector:PHP类可从任何自由文本中检测语言","children":[{"title":"LanguageDetector-master","children":[{"title":"composer.json <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"phpunit.xml <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"example","children":[{"title":"classify.php <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"datafile.ses <span style='color:#111;'> 470.74KB </span>","children":null,"spread":false},{"title":"datafile.php <span style='color:#111;'> 693.93KB </span>","children":null,"spread":false},{"title":"samples","children":[{"title":"guarani <span style='color:#111;'> 18.55KB </span>","children":null,"spread":false},{"title":"italian <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false},{"title":"latin <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"albanian <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"danish <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"french <span style='color:#111;'> 5.08KB </span>","children":null,"spread":false},{"title":"esperanto <span style='color:#111;'> 13.67KB </span>","children":null,"spread":false},{"title":"euskara <span style='color:#111;'> 13.73KB </span>","children":null,"spread":false},{"title":"norwegian <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"estonian <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false},{"title":"spanish <span style='color:#111;'> 5.05KB </span>","children":null,"spread":false},{"title":"hebrew <span style='color:#111;'> 21.06KB </span>","children":null,"spread":false},{"title":"welsh <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"catalan <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"swedish <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"dutch <span style='color:#111;'> 4.89KB </span>","children":null,"spread":false},{"title":"portuguese <span style='color:#111;'> 5.05KB </span>","children":null,"spread":false},{"title":"romanian <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false},{"title":"ladino <span style='color:#111;'> 7.28KB </span>","children":null,"spread":false},{"title":"german <span style='color:#111;'> 68.12KB </span>","children":null,"spread":false},{"title":"english <span style='color:#111;'> 8.93KB </span>","children":null,"spread":false},{"title":"finnish <span style='color:#111;'> 5.12KB </span>","children":null,"spread":false},{"title":"irish <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"datafile.json <span style='color:#111;'> 313.41KB </span>","children":null,"spread":false},{"title":"learn.php <span style='color:#111;'> 750B </span>","children":null,"spread":false}],"spread":true},{"title":"tests","children":[{"title":"bootstrap.php <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"AssertTest.php <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"assert","children":[{"title":"italian","children":[{"title":"3.txt <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 691B </span>","children":null,"spread":false}],"spread":true},{"title":"latin","children":[{"title":"3.txt <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 630B </span>","children":null,"spread":false},{"title":"4.txt <span style='color:#111;'> 747B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 964B </span>","children":null,"spread":false}],"spread":true},{"title":"french","children":[{"title":"3.txt <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"4.txt <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 768B </span>","children":null,"spread":false}],"spread":true},{"title":"arabic","children":[{"title":"2.txt <span style='color:#111;'> 54B </span>","children":null,"spread":false}],"spread":true},{"title":"esperanto","children":[{"title":"3.txt <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 462B </span>","children":null,"spread":false}],"spread":true},{"title":"euskara","children":[{"title":"2.txt <span style='color:#111;'> 688B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"spanish","children":[{"title":"3.txt <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false}],"spread":false},{"title":"hebrew","children":[{"title":"2.txt <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 711B </span>","children":null,"spread":false}],"spread":false},{"title":"catalan","children":[{"title":"3.txt <span style='color:#111;'> 904B </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"4.txt <span style='color:#111;'> 416B </span>","children":null,"spread":false},{"title":"5.txt <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 772B </span>","children":null,"spread":false}],"spread":false},{"title":"dutch","children":[{"title":"2.txt <span style='color:#111;'> 968B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 836B </span>","children":null,"spread":false}],"spread":false},{"title":"portuguese","children":[{"title":"3.txt <span style='color:#111;'> 266B </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 417B </span>","children":null,"spread":false},{"title":"4.txt <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"ladino","children":[{"title":"1.txt <span style='color:#111;'> 934B </span>","children":null,"spread":false}],"spread":false},{"title":"german","children":[{"title":"3.txt <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"7.txt <span style='color:#111;'> 509B </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"6.txt <span style='color:#111;'> 311B </span>","children":null,"spread":false},{"title":"4.txt <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"5.txt <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 326B </span>","children":null,"spread":false}],"spread":false},{"title":"english","children":[{"title":"3.txt <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"7.txt <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"6.txt <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"4.txt <span style='color:#111;'> 930B </span>","children":null,"spread":false},{"title":"5.txt <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false}],"spread":false},{"title":"finnish","children":[{"title":"1.txt <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 21B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"LanguageDetector","children":[{"title":"Config.php <span style='color:#111;'> 4.15KB </span>","children":null,"spread":false},{"title":"Detect.php <span style='color:#111;'> 6.71KB </span>","children":null,"spread":false},{"title":"Format","children":[{"title":"AbstractFileFormat.php <span style='color:#111;'> 304B </span>","children":null,"spread":false},{"title":"PHP.php <span style='color:#111;'> 3.24KB </span>","children":null,"spread":false},{"title":"SES.php <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"JSON.php <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false}],"spread":true},{"title":"AbstractFormat.php <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"DistanceInterface.php <span style='color:#111;'> 2.91KB </span>","children":null,"spread":false},{"title":"autoload.php <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"Distance","children":[{"title":"OutOfPlace.php <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false}],"spread":false},{"title":"Sort","children":[{"title":"PageRank.php <span style='color:#111;'> 6.85KB </span>","children":null,"spread":false},{"title":"SortInterface.php <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"Sum.php <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"Learn.php <span style='color:#111;'> 4.68KB </span>","children":null,"spread":false},{"title":"NGramParser.php <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明