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

REST service not working #1

Closed
sntcristian opened this issue Apr 14, 2022 · 1 comment
Closed

REST service not working #1

sntcristian opened this issue Apr 14, 2022 · 1 comment

Comments

@sntcristian
Copy link

Hi,

I tried to run a REST service with the docker image that you make available. However, I do not receive any result when I try to disambiguate even simple sentences.

Example:

resp = requests.post(url="http://127.0.0.1:22002/", data='[{"text":"Bob Dylan is a famous singer."}]')

The json result is

[{'text': 'Bob Dylan is a singer.', 'disambiguated_entities': []}]

@poccio
Copy link
Collaborator

poccio commented Apr 17, 2022

This is a known issue that arises from our pre-computed mention inventory. Mostly for simplicity in this first release, we computed it only on the AIDA-CoNLL dataset, but this resulted in an inventory that is just too small (it covers only ~6k mentions).

I just uploaded a few more comprehensive new ones and updated the README with the corresponding links. I also updated both the HuggingFace Space demo and the docker image (poccio/extend:1.0.1). Your query is now correctly handled. For instance, using poccio/extend:1.0.1, the json result I get is:

[{'text': 'Bob Dylan is a famous singer.', 'disambiguated_entities': [{'char_start': 0, 'char_end': 9, 'mention': 'Bob Dylan', 'entity': 'Bob Dylan'}]}]

@edobobo edobobo closed this as completed Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants