compromise

编程之家收集整理的这个编程导航主要介绍了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

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

相关文章

johnny-five,Bocoup 的 JavaScript 机器和物联网编程框架
WePY,一款让小程序支持组件化开发的框架
Deep playground,神经网络的交互式可视化,使用d3.js和TypeS...
ShareDB,用于并发编辑系统的前端数据库
RxJS,RxJS 是使用 Observables 的响应式编程的库
egg-react-ssr,最小而美的Egg + React + SSR 服务端渲染应用...