rosette-api / csharp Goto Github PK
View Code? Open in Web Editor NEWRosette API Client Library for C#
License: Other
Rosette API Client Library for C#
License: Other
Greetings -
Quick note to let you know that the nuget installation of the rosette API client fails with an error messaging saying:
Failed to add reference to 'System.IO'. Please make sure it is in the Global Assembly Cache
.
I don't believe there is a System.IO.dll
assembly in the .NET Framework that one can even add as a reference. It certainly is not found anywhere in the GAC. There is a System.IO
namespace but I think it is in the System.dll
assembly.
This is in a C# project targeting the .NET Framework 4.6.1
.
Thanks
Hi Rosette,
I'm testing your API from .Net and I'm wondering if this result as expected/correct:
Rosette returns two entities, the second being "Peter." I didn't expect the trailing "." dot.
Is this expected behavior?
Kind regards,
Peter Rakké
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"}
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)
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}
Are there plans to make this .NET Standard or Core compatible.
According to your NuGet page, this code is only compatible up to .NET Framework 4.5.
I'm looking at the Entity extraction features right now.
It seems the only ways to pass options right now are
Would it be possible to pass either a complete request (JSON, including content and options) or to pass the options per call (say another overload of the Entity method maybe?) as an argument?
I am in a Class Library project (targeting the .NET Framework 4.6.1
) and already referencing System.Net.Http 4.3.2
(a nuget package).
But the Rosette C# Client is throwing this exception:
System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.