Updated text2ngram script and added ForwardTokenizer.