added tfidf for triples