Fixed getWeight--now it returns TFIDF value instead of 0