private static async Task <Response <RecognizeLinkedEntitiesResultCollection> > CreateLinkedEntityResponseAsync(Response response, IDictionary <string, int> idToIndexMap, CancellationToken cancellation) { RecognizeLinkedEntitiesResultCollection result = await TextAnalyticsServiceSerializer.DeserializeLinkedEntityResponseAsync(response.ContentStream, idToIndexMap, cancellation).ConfigureAwait(false); return(Response.FromValue(result, response)); }
private static async Task <Response <ExtractLinkedEntitiesResultCollection> > CreateLinkedEntityResponseAsync(Response response, CancellationToken cancellation) { ExtractLinkedEntitiesResultCollection result = await TextAnalyticsServiceSerializer.DeserializeLinkedEntityResponseAsync(response.ContentStream, cancellation).ConfigureAwait(false); return(Response.FromValue(result, response)); }