def METHOD_NAME(self, tokens, freqs):
    self.freqs = Counter()
    self.freqs.update(dict(zip(tokens, freqs)))
    for token, freq in zip(tokens, freqs):
        if freq >= self._min_freq or token in self.special_tokens:
            self._t2i[token] = self.count
            self._i2t.append(token)
            self.count += 1