Our product is a full text processing pipeline from data preparation to extracting the most relevant information and analysis utilizing precise, focused AI that has built-in human understanding. Text Analytics provides foundational linguistic analysis for identifying languages and relating words. The result is enriched and normalized text for high-speed search and processing without translation.
Text Analytics extracts events and entities — people, organizations, and places — from unstructured text and adds the structure of associating those entities into events that deliver only the necessary information for near real-time decision making. Accompanying tools shorten the process of training AI models to recognize domain-specific events.
The product delivers a multitude of ways to sharpen and expand search results. Semantic similarity expands search beyond keywords to words with the same meaning, even in other languages. Sentiment analysis and topic extraction help filter results to what’s relevant.
- Analytics Cloud Sign Up
There are breaking changes between the C# Binding and the Dotnet Binding. In order to improve concurrency each endpoint is now its own class and requires an api object in order to execute a call. Additionally, required parameters are enforced in the constructor, while optional parameters are provided through a builder pattern.
Example (C# Binding):
Scene: On-Premise retrieval of entities
stringalturl="localhost:1234/rest/v1";CAPIapi=newCAPI(apikey,alturl);// C# sets the url parameter at the api level, affecting all endpoints until resetapi.SetUrlParameter("output","rosette");stringentities_text_data=@"The Securities and Exchange Commission today announced the leadership of the agency’s trial unit. Bridget Fitzpatrick has been named Chief Litigation Counsel of the SEC and David Gottesman will continue to serve as the agency’s Deputy Chief Litigation Counsel. Since December 2016, Ms. Fitzpatrick and Mr. Gottesman have served as Co-Acting Chief Litigation Counsel. In that role, they were jointly responsible for supervising the trial unit at the agency’s Washington D.C. headquarters as well as coordinating with litigators in the SEC’s 11 regional offices around the country.";EntitiesResponseresponse=api.Entity(entities_text_data,null,null,null,"social-media");foreach(KeyValuePair<string,string>hinresponse.Headers){Console.WriteLine(string.Format("{0}:{1}",h.Key,h.Value));}Console.WriteLine(response.ToString());Dotnet Binding:
stringaltUrl="localhost:1234/rest/v1";// The alternate URL is set via a method, rather than through the constructorRosetteAPIapi=newRosetteAPI(apiKey).UseAlternateURL(altUrl);stringentities_text_data=@"The Securities and Exchange Commission today announced the leadership of the agency’s trial unit. Bridget Fitzpatrick has been named Chief Litigation Counsel of the SEC and David Gottesman will continue to serve as the agency’s Deputy Chief Litigation Counsel. Since December 2016, Ms. Fitzpatrick and Mr. Gottesman have served as Co-Acting Chief Litigation Counsel. In that role, they were jointly responsible for supervising the trial unit at the agency’s Washington D.C. headquarters as well as coordinating with litigators in the SEC’s 11 regional offices around the country.";// Create the endpoint. Note that the url parameters are set for the endpoint only, so other endpoints// are not affected.EntitiesEndpointendpoint=newEntitiesEndpoint(entities_text_data).SetGenre("social-media").SetUrlParameter("output","rosette");RosetteResponseresponse=endpoint.Call(api);// Print out the response headersforeach(KeyValuePair<string,string>hinresponse.Headers){Console.WriteLine(string.Format("{0}:{1}",h.Key,h.Value));}// Print out the content in JSON format. The Content property returns an IDictionary.Console.WriteLine(response.ContentAsJson(pretty:true));usingRosette.Api.Client;usingRosette.Api.Client.Endpoints;usingRosette.Api.Client.Models;ApiClientapi=new("YOUR_API_KEY");stringtext=@"The Securities and Exchange Commission today announced the leadership of the agency's trial unit. Bridget Fitzpatrick has been named Chief Litigation Counsel of the SEC.";Entitiesendpoint=newEntities(text).SetGenre("social-media");Responseresponse=endpoint.Call(api);foreach(KeyValuePair<string,string>hinresponse.Headers){Console.WriteLine($"{h.Key}:{h.Value}");}Console.WriteLine(response.ContentAsJson(pretty:true));usingRosette.Api.Client;usingRosette.Api.Client.Endpoints;usingRosette.Api.Client.Models;ApiClientapi=new("YOUR_API_KEY");stringtext_data1=@"The Securities and Exchange Commission today announced the leadership of the agency’s trial unit. Bridget Fitzpatrick has been named Chief Litigation Counsel of the SEC and David Gottesman will continue to serve as the agency’s Deputy Chief Litigation Counsel.";stringtext_data2=@"Since December 2016, Ms. Fitzpatrick and Mr. Gottesman have served as Co-Acting Chief Litigation Counsel.";stringtext_data3=@"In that role, they were jointly responsible for supervising the trial unit at the agency’s Washington D.C. headquarters as well as coordinating with litigators in the SEC’s 11 regional offices around the country.";string[]texts=new[]{text_data1,text_data2,text_data3};usingvarcts=newCancellationTokenSource(TimeSpan.FromSeconds(30));Task<Response>[]tasks=texts.Select(text =>newEntities(text).SetGenre("social-media").CallAsync(api,cts.Token)).ToArray();Response[]responses=awaitTask.WhenAll(tasks);foreach(varresponseinresponses){Console.WriteLine(response.ContentAsJson(pretty:true));}View the documentation
Packing the build will breate a nupkg file that can be used when running the examples. This is the same file that is published to NuGet
From the root directory of the source tree, dotnet pack. Note the output directory if you want to run examples against it later. It will be something like rosette_api/bin/Debug.
TODO: Coming soon
The easiest way to build and test the source and run the examples against it is to use rosette/docker-dotnet
- cd to the root of the dotnet source
docker run --rm -it -e <your api key> -v $(PWD):/source rosette/docker-dotnet
If you would like to run against an alternate URL, add -e <alternate url> before the -v
If you would prefer the manual approach, install dotnet on your computer and reference the following:
From the root directory of the source tree, dotnet build. Note that .NET 10 SDK is a prerequisite for building the source.
From the root directory of the source tree, dotnet test tests/tests.csproj
View small example programs for each Analytics endpoint in the examples directory.