phraseTf.add(totalPhraseTf);
phraseTfByDocumentList.add(IntMapUtils.flatten(phraseTfByDocument));
totalPhraseTf = nextSubstring.frequency;
mostFrequentOriginal = nextSubstring;
phraseTfByDocument.clear();
phraseTfByDocument.putAll(nextSubstring.tfByDocument);
}
}
// Add the last substring