idFtMap method
Returns a hashmap of term to inverse document frequency of the term.
The parameter collectionSize
is the total number of documents in the
collection.
Implementation
Map<String, double> idFtMap(int collectionSize) =>
map((key, value) => MapEntry(key, log(collectionSize / value)));