public virtual async Task <EntityLink[]> LinkAsync(string text, string selection = "", int offset = 0)
        {
            var qs       = GetLinkQuerystring(selection, offset);
            var response = await RepositoryClient.SendTextPostAsync(ApiKeys.EntityLinking, $"{ApiKeys.EntityLinkingEndpoint}{qs}", text);

            return(JsonConvert.DeserializeObject <EntityLink[]>(response));
        }
Ejemplo n.º 2
0
        public virtual async Task ResetEnrollmentsAsync(Guid id)
        {
            var response = await RepositoryClient.SendTextPostAsync(ApiKeys.SpeakerRecognition, $"{ApiKeys.SpeakerRecognition}identificationProfiles/{id.ToString("D")}/reset", "");

            return;
        }
Ejemplo n.º 3
0
        public virtual async Task <DetectLanguageResponse> DetectLanguageAsync(string text)
        {
            var response = await RepositoryClient.SendTextPostAsync(ApiKeys.ContentModerator, $"{ApiKeys.ContentModeratorEndpoint}{moderatorUrl}/ProcessText/DetectLanguage", text);

            return(JsonConvert.DeserializeObject <DetectLanguageResponse>(response));
        }