Corrected syntax error in TD-IDF-calculation