扫一扫分享
这这个非常受欢迎的库提供“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() }
仅供个人学习参考/导航指引使用,具体请以第三方网站说明为准,本站不提供任何专业建议。如果地址失效或描述有误,请联系站长反馈~感谢您的理解与支持!
手机预览