Skip to content

Instantly share code, notes, and snippets.

@syzer
Created April 8, 2015 18:51
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 syzer/0de000098c15482d52ba to your computer and use it in GitHub Desktop.
Save syzer/0de000098c15482d52ba to your computer and use it in GitHub Desktop.
train
function train(fileName, splitter) {
var parts = fs.readFileSync(fileName).toString().split(splitter).map(function (el) {
return _.prepare(el).split(' ');
});
return mergeBig(parts);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment