Closed fengyh3 closed 3 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.
Hi, Endpoint is again down, could you please look into it? Thanks in advance.
I just checked the demo and it is working. Can you please try again?
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.
@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.
@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?
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:
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😄
can you please elaborate how to deploy palmetto locally for python?
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
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.
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
The server has been down for a long time.