Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? #37

Open
teohsinyee opened this issue Apr 12, 2022 · 2 comments

Comments

@teohsinyee
Copy link

Run this:

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(...)?
@corscheid
Copy link

corscheid commented Jun 24, 2022

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?)

EDIT: See #31

@yaserabdelaziz
Copy link

See #31 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants