Skip to content

Instantly share code, notes, and snippets.

@RinatValiullov
Created November 29, 2019 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RinatValiullov/45a1e6afd835412a34e9cce9bdbd611e to your computer and use it in GitHub Desktop.
Save RinatValiullov/45a1e6afd835412a34e9cce9bdbd611e to your computer and use it in GitHub Desktop.
For translation of article "Natural language processing for Node.js" - https://bit.ly/2QZsts1
// index.js
var natural = require('natural');
var tokenizer = new natural.WordTokenizer();
console.log(tokenizer.tokenize("The quick brown fox jumps over the lazy dog"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment