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

Wikidata links missing from some entities, salience score from all #91

Closed
darklajid opened this issue Jan 8, 2019 · 2 comments
Closed

Comments

@darklajid
Copy link

Using the latest version of the API and my test key, I send a document to the Entity extraction endpoint.

I enable all features (testing coverage, evaluating Rosette atm) using

entitiesCAPI.SetOption("calculateConfidence", true);
entitiesCAPI.SetOption("calculateSalience", true);
entitiesCAPI.SetOption("includeDBpediaType", true);
entitiesCAPI.SetOption("linkEntities", true);

Results include

{"mention":"JAPAN","normalized":"JAPAN","entityId":"T5","type":"LOCATION","count":8,"confidence":0.85243988}
{"mention":"SWITZERLAND","normalized":"Switzerland","entityId":"Q39","type":"LOCATION","count":4,"confidence":0.93196756,"dbpediaType":"Place/PopulatedPlace/Country"}
  1. Why a temporary ID for Japan? I have a lot more entities with a T ID (say, Tokyo, some more examples of nonworking results below)

  2. Why no salience score for any value?

More missing wikidata links in my samples:

{"mention":"TOKYO","normalized":"TOKYO","entityId":"T10","type":"LOCATION","count":3,"confidence":0.95691532}
{"mention":"FRIBOURG","normalized":"FRIBOURG","entityId":"T13","type":"LOCATION","count":1,"confidence":0.18674469}
@darklajid
Copy link
Author

Digging a bit it seems that https://github.com/rosette-api/csharp/blob/develop/rosette_api/EntitiesResponse.cs doesn't have any notion of salience. Using the raw Rest API I can get these values, but this c-sharp wrapper fails to expose the field?

@seth-mg
Copy link
Contributor

seth-mg commented Feb 8, 2019

Hi @darklajid
We released a new version of the binding, 1.12.2, that includes mention offsets, linking confidence and salience in the response data for /entities and /sentiment calls.

Thanks for reporting this.

@seth-mg seth-mg closed this as completed Feb 8, 2019
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

2 participants