dice-group / Palmetto

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

EndPointDown #30

Closed fengyh3 closed 3 years ago

fengyh3 commented 4 years ago

The server has been down for a long time.

MichaelRoeder commented 4 years ago

Sorry for the delay. We are currently in a summer break :sun_with_face: :beach_umbrella:

I have restarted the service. Please try it again.

ghoshmainak commented 4 years ago

Hi, Endpoint is again down, could you please look into it? Thanks in advance.

MichaelRoeder commented 4 years ago

I just checked the demo and it is working. Can you please try again?

ghoshmainak commented 4 years ago

I was using python client, there, it still shows endpoint down, but If I directly call your API, then it works. I would also like to know if there is a way to increase maxword number by invoking API.

MichaelRoeder commented 4 years ago

@earthquakesan is it possible that the python client has a small issue there?

No, unfortunately this is not possible. However, you can download the library as well as the data and run the service locally. In this case, you can configure the maximum number of words as you like.

ngc7023 commented 4 years ago

@munailisa Hello, I am using python client as well. When I run the demo, it still shows palmettopy.exceptions.EndpointDown. Have you solved this problem?

MichaelRoeder commented 4 years ago

The timeout seems to be too low (5 sec at the moment, see https://github.com/earthquakesan/palmetto-py/blob/master/palmettopy/palmetto.py#L29). If the service is stressed, it may take more time than that which leads to an exception in the client.

Solution: clone the python client repository and increase the timeout OR deploy palmetto locally. If it is only used by a single client, it should be faster than our service :wink:

ngc7023 commented 4 years ago

The timeout seems to be too low (5 sec at the moment, see https://github.com/earthquakesan/palmetto-py/blob/master/palmettopy/palmetto.py#L29). If the service is stressed, it may take more time than that which leads to an exception in the client.

Solution: clone the python client repository and increase the timeout OR deploy palmetto locally. If it is only used by a single client, it should be faster than our service 😉

@MichaelRoeder It works! Thanks😄

itsmoosa commented 4 years ago

can you please elaborate how to deploy palmetto locally for python?

fengyh3 commented 4 years ago

can you please elaborate how to deploy palmetto locally for python?

you can download the palmetto library and then use java command: java -jar palmetto-0.1.0-jar-with-dependencies.jar <some-path>/wikipedia_bd <coherence> <topics-file> i think this is a simple way to use it locally because it just need to download java envirnment. more information you can see this website: https://github.com/dice-group/Palmetto/wiki/How-Palmetto-can-be-used

itsmoosa commented 4 years ago

can you please elaborate how to deploy palmetto locally for python?

you can download the palmetto library and then use java command: java -jar palmetto-0.1.0-jar-with-dependencies.jar <some-path>/wikipedia_bd <coherence> <topics-file> i think this is a simple way to use it locally because it just need to download java envirnment. more information you can see this website: https://github.com/dice-group/Palmetto/wiki/How-Palmetto-can-be-used

Thanks for the reply...Actually I am interested to use Palmetto in Python only... Your suggestion is with reference to Java. Can we run it locally in Python ? please help out.

MichaelRoeder commented 4 years ago

Palmetto is programmed in Java. If you want to use it from within a Python program, you can use the Python client. However, it is simply calling a Palmetto service which you would have to start as well. I added a description how you can execute your own service, locally, at https://github.com/dice-group/Palmetto/wiki/How-Palmetto-can-be-used#local-palmetto-service