public KeyPhraseCollectionDebugView(KeyPhraseCollection collection)
 {
     BaseCollection = collection;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="TextAnalytics.ExtractKeyPhrasesResult"/> for mocking purposes.
 /// </summary>
 /// <param name="id">Sets the <see cref="TextAnalyticsResult.Id"/> property.</param>
 /// <param name="statistics">Sets the <see cref="TextAnalyticsResult.Statistics"/> property.</param>
 /// <param name="keyPhrases">Sets the <see cref="ExtractKeyPhrasesResult.KeyPhrases"/> property.</param>
 /// <returns>A new instance of <see cref="TextAnalytics.ExtractKeyPhrasesResult"/> for mocking purposes.</returns>
 public static ExtractKeyPhrasesResult ExtractKeyPhrasesResult(string id, TextDocumentStatistics statistics, KeyPhraseCollection keyPhrases)
 {
     return(new ExtractKeyPhrasesResult(id, statistics, keyPhrases));
 }
 internal ExtractKeyPhrasesResult(string id, TextDocumentStatistics statistics, KeyPhraseCollection keyPhrases)
     : base(id, statistics)
 {
     _keyPhrases = keyPhrases;
 }