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
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)"
The text was updated successfully, but these errors were encountered:
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)"
The text was updated successfully, but these errors were encountered: