termFrequency method

  1. @override
int termFrequency(
  1. String term
)
override

The word frequency for the term.

Implementation

@override
int termFrequency(String term) {
  assert(terms.contains(term), 'The term is not in the keywords.');
  final i = terms.indexOf(term);
  final row = coOccurrenceGraph[term] as List<int>;
  return row[i];
}