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
from sematch.semantic.similarity import WordNetSimilarity
wns = WordNetSimilarity()
print(wns.word_similarity('dog', 'cat', 'li'))
It returned errors:
Traceback (most recent call last):
File "d:\resume-parsing-private\sematch_test.py", line 1, in <module>
from sematch.semantic.similarity import WordNetSimilarity
File "C:\Users\sin-yee.teoh\AppData\Local\Programs\Python\Python310\lib\site-packages\sematch\semantic\similarity.py", line 25, in <module>
from sematch.semantic.sparql import EntityFeatures, StatSPARQL
File "C:\Users\sin-yee.teoh\AppData\Local\Programs\Python\Python310\lib\site-packages\sematch\semantic\sparql.py", line 36
print query
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
The text was updated successfully, but these errors were encountered:
Looks like this module is still on Python 2.7
Those of us on Python 3.x are out of luck, it seems.
(Unless someone wants to create a PR of converting this whole thing to Python 3.x if it hasn't been done already?)
Run this:
It returned errors:
The text was updated successfully, but these errors were encountered: