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

Not work for Russian language #29

Open
zabihimayvan opened this issue Jun 22, 2018 · 7 comments
Open

Not work for Russian language #29

zabihimayvan opened this issue Jun 22, 2018 · 7 comments

Comments

@zabihimayvan
Copy link

I tried to use spotlight for Russian language. I set the Host to both "http://api.dbpedia-spotlight.org/ru/annotate" and "http://model.dbpedia-spotlight.org/ru/annotate", but non of them works! I received the error below:
http://api.dbpedia-spotlight.org/ru/annotate Traceback (most recent call last): File "/.../testing.py", line 47, in <module> annot = get_annotations(text) File "/.../testing.py", line 12, in get_annotations confidence=0.4, support=20) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spotlight/__init__.py", line 192, in annotate pydict = _post_request(address, payload, filters, headers) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spotlight/__init__.py", line 51, in _post_request response.raise_for_status() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/models.py", line 939, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 502 Server Error: Proxy Error for url: http://api.dbpedia-spotlight.org/ru/annotate
I would be appreciative if you help me figure out how to solve it.

@sandroacoelho
Copy link
Collaborator

Hi @zabihimayvan ,

Our online instances was selected considering DBpedia branches that are online - we have noticed that http://ru.dbpedia.org is not available since 2017 :(
Btw, you can run it locally using docker

docker run -d -p 2227:80 dbpedia/spotlight-russian spotlight.sh

and then use it http://localhost:2227/rest/annotate?text=Москва

All the best,

@zabihimayvan
Copy link
Author

Thank you very much for your response. Actually, I had some problems in setting my local machine as the server when I wanted to use Dbpedia locally. So, I am using it online. Is there any way to have an online address (endpoint) for Russian language?
Thank you in advance :).

@mgns
Copy link

mgns commented Jun 25, 2018

Setting up spotlight using the docker image is really straightforward. The DOCKER_HOST might be different from localhost when using docker-machine.

@Gautamshahi
Copy link

Hi zabihimayvan, How did you install it? Do you have Jar file?

@zabihimayvan
Copy link
Author

zabihimayvan commented Jul 24, 2018 via email

@Gautamshahi
Copy link

Gautamshahi commented Jul 25, 2018 via email

@sandroacoelho
Copy link
Collaborator

Hi @zabihimayvan

Could you, please, provide us some log to help you?

@Gautamshahi

I totally understand your point but is not fair criticize without to provide a solution. I was paying for years a server to keep these endpoints available online and from I remember, you never asked how you could help on it. Remember: You have what you can pay for.

Best,

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

No branches or pull requests

4 participants