You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling WordNet.words() without an argument raises an error (although not the one expected; see #22):
>>> import wn
>>> w = wn.WordNet()
>>> next(w.words())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/goodmami/postdoc/wnsd/env/lib/python3.8/site-packages/wn/__init__.py", line 189, in all_lemma_names
self._load_lang_data(lang)
File "/home/goodmami/postdoc/wnsd/env/lib/python3.8/site-packages/wn/omw.py", line 79, in _load_lang_data
raise WordNetError("Language is not supported.")
NameError: name 'WordNetError' is not defined
The initial problem is that the default value of the lang parameter is 'lang':
Calling
WordNet.words()
without an argument raises an error (although not the one expected; see #22):The initial problem is that the default value of the
lang
parameter is'lang'
:wordnet/wn/__init__.py
Line 193 in 4adcbae
This should probably be
'eng'
to be consistent with the other methods.The text was updated successfully, but these errors were encountered: