A generic Tf-Idf utility with example code that works on n-grams extracted from a text document.