diff --git a/stanza/models/common/vocab.py b/stanza/models/common/vocab.py index 66c42fc861..4f77542d15 100644 --- a/stanza/models/common/vocab.py +++ b/stanza/models/common/vocab.py @@ -29,7 +29,7 @@ def __init__(self, data=None, lang="", idx=0, cutoff=0, lower=False): self.state_attrs = ['lang', 'idx', 'cutoff', 'lower', '_unit2id', '_id2unit'] def build_vocab(self): - raise NotImplementedError() + raise NotImplementedError("This BaseVocab does not have build_vocab implemented. This method should create _id2unit and _unit2id") def state_dict(self): """ Returns a dictionary containing all states that are necessary to recover