def ks(self, num_ngrams):
        # type (int) -> [int]
        """
        Provide a k for each ngram in the field value.
        :param num_ngrams: number of ngrams in the field value
        :return: [ k, ... ] a k value for each of num_ngrams such that the sum is exactly num_bits
        """
        if self.num_bits:
            k = int(self.num_bits / num_ngrams)
            residue = self.num_bits % num_ngrams
            return ([k + 1] * residue) + ([k] * (num_ngrams - residue))
        else:
            return [self.k if self.k else 0] * num_ngrams
Provide a k for each ngram in the field value.
        :param num_ngrams: number of ngrams in the field value
        :return: [ k, ... ] a k value for each of num_ngrams such that the sum is exactly num_bits