compromise 介绍
这这个非常受欢迎的库提供“JavaScript中适度的自然语言处理”。这是非常基本和直接的,甚至可以编译成 一个 小 文件 。出于某种原因,其适度的“足够好”的 方法 使其成为几乎任何需要基本NLP的应用程序的主要候选者。
save yourself from? regex-whackamole :
nlp(entireNovel).sentences().if('the #Adjective of times').out()
// "it was the blurst of times"
move things around:
nlp('she sells seashells by the seashore.').sentences().toFutureTense().out()
// 'she will sell seashells...'
respond to text input:
if( doc.has('^simon says (shoot|fire) #Deter mine r lazer') ){
fireLazer()
} else {
dontFire()
}
网站地址 : http://compromise.cool
GitHub: https://github.com/spencermountain/compromise
网站描述: 开源的,基于 JavaScript 的自然语言处理库
compromise官方网站
官方网站: http://compromise.cool
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did175583