C# 클래스 Microsoft.ProjectOxford.EntityLinking.EntityLinkingServiceClient

The EntityLinking service client proxy implementation.
상속: IEntityLinkingServiceClient
파일 보기 프로젝트 열기: Microsoft/ProjectOxford-ClientSDK

공개 메소드들

메소드 설명
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