微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

compromise

编程之家收集整理的这个编程导航主要介绍了compromise编程之家,现在分享给大家,也给大家做个参考。

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) #Determiner lazer') ){

fireLazer()

} else {

dontFire()

}

网站地址:http://compromise.cool

GitHub:https://github.com/spencermountain/compromise

网站描述:开源的,基于 JavaScript 的自然语言处理库

compromise

官方网站:http://compromise.cool

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。