node.js下用的自然语言处理工具:natural
jopen
10年前
node.js下用的自然语言处理工具,目前支持的操作有Tokenizing, stemming, classification, phonetics, tf-idf, WordNet, string similarity等。
var natural = require('natural'), tokenizer = new natural.WordTokenizer(); console.log(tokenizer.tokenize("your dog has fleas.")); // [ 'your', 'dog', 'has', 'fleas' ]