def METHOD_NAME(self, *args):
    self.reset()
    tokens = chain(*args)
    # filter(None, <>) -- to filter empty tokens
    self.freqs = Counter(filter(None, flatten_str_batch(tokens)))
    for special_token in self.special_tokens:
        self._t2i[special_token] = self.count
        self._i2t.append(special_token)
        self.count += 1
    for token, freq in self.freqs.most_common()[:self._max_tokens]:
        if token in self.special_tokens:
            continue
        if freq >= self._min_freq:
            self._t2i[token] = self.count
            self._i2t.append(token)
            self.count += 1