Example 1: TF_IDF on Tokenized Training Document Set Example 2: TF_IDF on Tokenized Test Set The examples tokenize the document sets with the function nGram_stub, but alternatively, you can use the function TextTokenizer_stub.