This shouldn't be computed each time we want to query for a token. The idf should be computed in the constructor and saved in a member variable.