dice-group / Palmetto

Palmetto is a quality measuring tool for topics
GNU Affero General Public License v3.0
209 stars 36 forks source link

The python interface is broken! #65

Closed A11en0 closed 2 years ago

A11en0 commented 2 years ago

When I use the python interface demo example to test it in python3, it shows:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/allen/.miniconda3/envs/nlp/lib/python3.7/site-packages/palmettopy/palmetto.py", line 104, in get_coherence       
    return self._get_coherence(words, coherence_type)
  File "/home/allen/.miniconda3/envs/nlp/lib/python3.7/site-packages/palmettopy/palmetto.py", line 91, in _get_coherence       
    coherence = self._request_by_service(words, coherence_type)
  File "/home/allen/.miniconda3/envs/nlp/lib/python3.7/site-packages/palmettopy/palmetto.py", line 29, in _request_by_service  
    raise EndpointDown(request_uri)
palmettopy.exceptions.EndpointDown: http://palmetto.aksw.org/palmetto-webapp/service/cp?words=cake%20apple%20banana%20cherry%20chocolate
MichaelRoeder commented 2 years ago

The interface isn't broken. However, our server has some issues at the moment. We are working on bringing the service back online.

A11en0 commented 2 years ago

Thanks for your quick reply. I follow the instruction to build a local backend server with a maven project and have the python interface run success. But it just can handle the topic word maximum 10, but I need to calculate 15 topic words, how to utilize it?

MichaelRoeder commented 2 years ago

You can configure it in your local files :slightly_smiling_face: https://github.com/dice-group/Palmetto/blob/master/webApp/src/main/resources/palmetto.properties#L4

A11en0 commented 2 years ago

thanks, wonderful jobs you have!

Michael Röder @.***>于2021年10月20日 周三下午11:05写道:

You can configure it in your local files 🙂

https://github.com/dice-group/Palmetto/blob/master/webApp/src/main/resources/palmetto.properties#L4

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dice-group/Palmetto/issues/65#issuecomment-947758698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIC2Q4DR7G7TD6BIUFPMLKDUH3LDRANCNFSM5GJKE6NQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MichaelRoeder commented 2 years ago

Thanks for your feedback.

The web service should be back as well.