private static async Task <Response <ExtractKeyPhrasesResultCollection> > CreateKeyPhraseResponseAsync(Response response, IDictionary <string, int> idToIndexMap, CancellationToken cancellation)
        {
            ExtractKeyPhrasesResultCollection result = await TextAnalyticsServiceSerializer.DeserializeKeyPhraseResponseAsync(response.ContentStream, idToIndexMap, cancellation).ConfigureAwait(false);

            return(Response.FromValue(result, response));
        }
コード例 #2
0
 public ExtractKeyPhrasesResultCollectionDebugView(ExtractKeyPhrasesResultCollection collection)
 {
     BaseCollection = collection;
 }
コード例 #3
0
 /// <summary>
 /// Successful action.
 /// </summary>
 internal ExtractKeyPhrasesActionResult(ExtractKeyPhrasesResultCollection result, DateTimeOffset completedOn)
     : base(completedOn)
 {
     _documentsResults = result;
 }
コード例 #4
0
 internal ExtractKeyPhrasesActionResult(ExtractKeyPhrasesResultCollection result, DateTimeOffset completedOn, TextAnalyticsErrorInternal error) : base(completedOn, error)
 {
     Result = result;
 }