Closed evanmiltenburg closed 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'}