wink-tokenizer
Versatile tokenizer that automatically tags each token with its type


Tokenize sentences and also automatically tag each token as either word, email, twitter handle, or more using wink-tokenizer
. It is a part of wink — a growing family of high quality packages for Statistical Analysis, Natural Language Processing and Machine Learning in NodeJS.
Installation
Use npm to install:
npm install wink-tokenizer --save
Example
var tokenizer = require( 'wink-tokenizer' );
var myTokenizer = tokenizer();
var s = '@superman: hit me up on my email r2d2@gmail.com, 2 of us plan party🎉 tom at 3pm:) #fun';
myTokenizer.tokenize( s );
Documentation
For detailed API docs, check out http://winkjs.org/wink-tokenizer/ URL!
Need Help?
If you spot a bug and the same has not yet been reported, raise a new issue or consider fixing it and sending a pull request.
Copyright & License
wink-tokenizer is copyright 2017 GRAYPE Systems Private Limited.
It is licensed under the under the terms of the GNU Affero General Public License as published by the Free
Software Foundation, version 3 of the License.