Class ExtractKeyPhraseResult

java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsResult
com.azure.ai.textanalytics.models.ExtractKeyPhraseResult

public final class ExtractKeyPhraseResult extends TextAnalyticsResult
  • Constructor Details

  • Method Details

    • getKeyPhrases

      public KeyPhrasesCollection getKeyPhrases()
      Gets a KeyPhrasesCollection contains a list of key phrases and warnings.
      Returns:
      A KeyPhrasesCollection contains a list of key phrases and warnings.
      Throws:
      TextAnalyticsException - if result has isError equals to true and when a non-error property was accessed.
    • getDetectedLanguage

      public DetectedLanguage getDetectedLanguage()
      Get the detectedLanguage property: If 'language' is set to 'auto' for the document in the request this field will contain an object of the language detected for this document.
      Returns:
      the detectedLanguage value.