kermitt2 / entity-fishing

A machine learning tool for fishing entities

Home Page:http://nerd.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No Swedish results? What API endpoint address with local docker image?

robertsilen opened this issue · comments

I'm not getting any results (Wikidata Q-codes) with Swedish text, and the language set to Swedish at the moment. I'm accessing the default demo server through spacyfishing in python. I have also tried setting the API end point to http://nerd.huma-num.fr/nerd/service, but that didn't help.

I also tried running entity-fishing locally with a docker image on MacOS. It works fine with language set to Swedish through the browser at http://localhost:8090/ , but I can't figure out what the local api address is for spacyfishing. What should I set it to?

The entity-fishing docker documentation (https://nerd.readthedocs.io/en/latest/docker.html) mentions web services documentation (https://grobid.readthedocs.io/en/latest/Grobid-service/) that indirectly suggests the grobid API is at http://localhost:8070/api/ , but that doesn't work.

Thanks for any help!

Hello @robertsilen

Sorry for the late answer. The local endpoint is http://localhost:8090/service/
So if you indicate:

nlp.add_pipe("entityfishing", config={"api_ef_base": "http://localhost:8090/service/"})

it should work.