@classmethod
def load_state_dict(cls, state_dict):
    """ Returns a new Vocab instance constructed from a state dict. """
    new = cls()
    for attr, value in state_dict.items():
        setattr(new, attr, value)
    return new
