def get_hashed_counts(seq, ngrams, hash_size):
  """Returns hash bucket counts for ngrams in sequence."""
  return collections.Counter(
      [mm3hash(ng, hash_size) for ng in get_ngrams(seq, ngrams)])
Returns hash bucket counts for ngrams in sequence.
language/labs/drkit/search_utils.py