def freq(self, word):
        if self._total == 0:
            return 0
        return self._counts.get(word, 0) / float(self._total)
dataset/ETHPy150Open Pinafore/qb/clm/lm_wrapper.py/DistCounter.freq/original