If you run the 'obj.get_sememes_by_word', you will get a TypeError:
TypeError: unsupported operand type(s) for |=: 'set' and 'list'
"res = set()
sememe_x = self.get_sememe(x, strict=strict)
for s_x in sememe_x:
res |= s_x.get_senses()
return list(res)"
You need add set() to s_x.get_senses().
"res = set()
sememe_x = self.get_sememe(x, strict=strict)
for s_x in sememe_x:
res |= set(s_x.get_senses())
return list(res)"