public final class ExtractKeyPhraseResult extends TextAnalyticsResult
ExtractKeyPhraseResult
model.Constructor and Description |
---|
ExtractKeyPhraseResult(String id,
TextDocumentStatistics textDocumentStatistics,
TextAnalyticsError error,
KeyPhrasesCollection keyPhrases)
Create a
ExtractKeyPhraseResult model that describes extracted key phrases result. |
Modifier and Type | Method and Description |
---|---|
KeyPhrasesCollection |
getKeyPhrases()
Get a
KeyPhrasesCollection contains a list of key phrases and warnings. |
getError, getId, getStatistics, isError
public ExtractKeyPhraseResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, KeyPhrasesCollection keyPhrases)
ExtractKeyPhraseResult
model that describes extracted key phrases result.id
- Unique, non-empty document identifier.textDocumentStatistics
- The text document statistics.error
- The document error.keyPhrases
- A KeyPhrasesCollection
contains a list of key phrases and warnings.public KeyPhrasesCollection getKeyPhrases()
KeyPhrasesCollection
contains a list of key phrases and warnings.KeyPhrasesCollection
contains a list of key phrases and warnings.TextAnalyticsException
- if result has isError
equals to true and when a non-error property
was accessed.Copyright © 2021 Microsoft Corporation. All rights reserved.