Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Entity Fishing Service Randomly not Yielding Wiki Link  #159

@ndenStanford

Description

@ndenStanford

Hello,

I have deployed an entity fish solution following the instruction here in Kubernetes. I noticed that the service could yield a matched wiki entity most time. For example

curl -X POST "http://localhost:8090/service/disambiguate" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"text\": \"I live in London.\", \"mentions\": [\"wikipedia\"], \"entities\": [{\"rawName\": \"London\"}]}"

would yield the following result

{"software": "entity-fishing", "version": "0.0.6", "date": "2023-04-23T13:45:39.073228Z", "runtime": 20, "nbest": false, "text": "I live in London.", "language": {"lang":"en", "conf": 0.93565452097313}, "entities": [{ "rawName" : "London", "confidence_score":0.4563, "wikipediaExternalRef": 17867, "wikidataId" : "Q84", "domains" : [ "Administration", "Nautical", "Transport", "Vehicles" ]  }, { "rawName" : "London", "offsetStart" : 10, "offsetEnd" : 16, "confidence_score":0.4563, "wikipediaExternalRef": 17867, "wikidataId" : "Q84", "domains" : [ "Administration", "Nautical", "Transport", "Vehicles" ]  }]}root@entity-fish-docker-v1-7558fdd645-zgvkr:/opt/entity-fishing# curl -X POST "http://localhost:8090/service/disambiguate" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"text\": \"I live in London.\", \"mentions\": [\"wikipedia\"], \"entities\": [{\"rawName\": \"London\"}]}"

However, the service would sometimes silently fail and output the result below without matched Wiki id using the exact same input.

{"software": "entity-fishing", "version": "0.0.6", "date": "2023-04-23T13:45:46.841258Z", "runtime": 5, "nbest": false, "text": "I live in London.", "language": {"lang":"it", "conf": 0.5714275927461994}}

Is there a way I can prevent this silence failure or at least know when it will happen? Any recommendation is greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions