def METHOD_NAME(self):
    """Get a frequency table for sub-sampling.
    """
    t = 0.0001
    f = np.array(list(self.word2freq.values())) / self.token_count
    self.discards = np.sqrt(t / f) + (t / f)