cltl / OpenDutchWordnet

This repo provides a python module to work with Open Dutch WordNet. It was created using python 3.4.
Other
64 stars 15 forks source link

Can only find hyperonym relations #3

Closed evanmiltenburg closed 9 years ago

evanmiltenburg commented 9 years ago
s = set()
for synset in instance.synsets_get_generator():
    for relation in synset.get_all_relations():
        s.add(r.get_reltype())

print(s)
{'has_hyperonym'}