The function "tfidf.idf" uses Collection.defaultdict.