hdaSprachtechnologie / odenet

Open German WordNet
Creative Commons Attribution Share Alike 4.0 International
87 stars 30 forks source link

Small bug in hyponyms code: #43

Closed JanEnglerIW closed 1 year ago

JanEnglerIW commented 1 year ago

Hello, there is a small bug when using hyperonyms.

File odenet_class.py:163, in hypernyms_word(word) 161 hyp_list = [] 162 for sense in senses: --> 163 (ili,definition,de_definition, relations, words,ili_list) = check_synset(sense[1]) 164 for relation in relations: 165 if relation[0] == "hypernym":

ValueError: too many values to unpack (expected 6)

Line 163 should be: (ili,en_definition,de_definition, relations, words, ili_synsets,de_example) = check_synset(sense[1])

Regards Jan

hdaSprachtechnologie commented 1 year ago

Thank you very much! I solved it now.

Best, Melanie