Take log for Idf value