Skip to content

Commit 84b5511

Browse files
committed
Added correct notification for redownloading Slovenian models
1 parent 46cbb6a commit 84b5511

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classla/models/pos/postprocessor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ def convert_feats(self, feats_string):
198198

199199
def extract_lexicon_data(self, lexicon):
200200
""" 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')")
201203
for key in lexicon:
202204
if key[1] in self.xpos_vocab:
203205
self.hypothesis_dictionary_xpos.setdefault(key[0].lower(), []).append(key[1])

0 commit comments

Comments
 (0)