def reset(self):
    """Reset the set of symbols allowed, but keep the same vocabulary size."""
    self._symbol_list = []
    self._next_id = 0
    self._id_dict = {}
Reset the set of symbols allowed, but keep the same vocabulary size.
language/nql/nql/symbol.py