We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46cbb6a commit 84b5511Copy full SHA for 84b5511
classla/models/pos/postprocessor.py
@@ -198,6 +198,8 @@ def convert_feats(self, feats_string):
198
199
def extract_lexicon_data(self, lexicon):
200
""" Creates hypothesis dictionary from lexicon. """
201
+ if lexicon is None:
202
+ raise Exception("You have to re-download Slovenian models. You can do this by using the following command: classla.download('sl')")
203
for key in lexicon:
204
if key[1] in self.xpos_vocab:
205
self.hypothesis_dictionary_xpos.setdefault(key[0].lower(), []).append(key[1])
0 commit comments