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
Somehow looking up the synsets for a word changes the underlying dictionary while iterating over it.
>>> import wn
>>> w = wn.WordNet()
>>> for word in w.words(lang='eng'):
... w.synsets(word, pos='n')
...
[]
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 184, in all_lemma_names
for lemma_name in _lemma_pos_offset_map:
RuntimeError: dictionary changed size during iteration
The text was updated successfully, but these errors were encountered:
Somehow looking up the synsets for a word changes the underlying dictionary while iterating over it.
The text was updated successfully, but these errors were encountered: