C# Класс Microsoft.ProjectOxford.EntityLinking.EntityLinkingServiceClient

The EntityLinking service client proxy implementation.
Наследование: IEntityLinkingServiceClient
Показать файл Открыть проект

Открытые методы

Метод Описание
EntityLinkingServiceClient ( HttpClient httpClient, string subscriptionKey ) : System

Initializes a new instance of the EntityLinkingServiceClient class, with a client-supplied HttpClient object. Intended primarily for testing.

EntityLinkingServiceClient ( HttpClient httpClient, string subscriptionKey, string apiRoot ) : System

Initializes a new instance of the EntityLinkingServiceClient class, with a client-supplied HttpClient object. Intended primarily for testing.

EntityLinkingServiceClient ( string subscriptionKey ) : System

Initializes a new instance of the EntityLinkingServiceClient class.

EntityLinkingServiceClient ( string subscriptionKey, string apiRoot ) : System

Initializes a new instance of the EntityLinkingServiceClient class.

LinkAsync ( string text, string selection = "", int offset ) : Task

Linking entities in a text.

Приватные методы

Метод Описание
SendRequestAsync ( string requestBody, string selection, int offset ) : Task

Helper method executing the REST request.

Описание методов

EntityLinkingServiceClient() публичный Метод

Initializes a new instance of the EntityLinkingServiceClient class, with a client-supplied HttpClient object. Intended primarily for testing.
public EntityLinkingServiceClient ( HttpClient httpClient, string subscriptionKey ) : System
httpClient System.Net.Http.HttpClient the HttpClient object
subscriptionKey string The subscription key.
Результат System

EntityLinkingServiceClient() публичный Метод

Initializes a new instance of the EntityLinkingServiceClient class, with a client-supplied HttpClient object. Intended primarily for testing.
public EntityLinkingServiceClient ( HttpClient httpClient, string subscriptionKey, string apiRoot ) : System
httpClient System.Net.Http.HttpClient the HttpClient object
subscriptionKey string The subscription key.
apiRoot string
Результат System

EntityLinkingServiceClient() публичный Метод

Initializes a new instance of the EntityLinkingServiceClient class.
public EntityLinkingServiceClient ( string subscriptionKey ) : System
subscriptionKey string The subscription key.
Результат System

EntityLinkingServiceClient() публичный Метод

Initializes a new instance of the EntityLinkingServiceClient class.
public EntityLinkingServiceClient ( string subscriptionKey, string apiRoot ) : System
subscriptionKey string The subscription key.
apiRoot string Host name of the service URL, without the trailing slash.
Результат System

LinkAsync() публичный Метод

Linking entities in a text.
public LinkAsync ( string text, string selection = "", int offset ) : Task
text string the text.
selection string the specific word or phrase within the text that is to be entity linked. If not specified, the service will try to recognize and identify all the entities within the input text.
offset int the location (in offset by characters) of the selected word or phrase within the input text. Used to distinguish when there are multiple instances of the same words or phrases within the input text. Only valid when the selection is specified.
Результат Task