Last active
October 15, 2018 18:56
-
-
Save backupbrain/18c1900a5c8ea8b31df1294e6f910fff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tokenizer.prototype.getTokenLines = function(text) { | |
lines = text.split("\n"); | |
tokenLines = []; | |
for (var lineId = 0; lineId < lines.length; lineId++) { | |
line = lines[lineId]; | |
tokens = line.split(" "); | |
tokenLines.push(tokens); | |
} | |
return tokenLines; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment