Skip to content

Batch Detect Key Phrases

comprehend_batch_detect_key_phrases R Documentation

Detects the key noun phrases found in a batch of documents

Description

Detects the key noun phrases found in a batch of documents.

Usage

comprehend_batch_detect_key_phrases(TextList, LanguageCode)

Arguments

TextList

[required] A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

LanguageCode

[required] The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

Value

A list with the following syntax:

list(
  ResultList = list(
    list(
      Index = 123,
      KeyPhrases = list(
        list(
          Score = 123.0,
          Text = "string",
          BeginOffset = 123,
          EndOffset = 123
        )
      )
    )
  ),
  ErrorList = list(
    list(
      Index = 123,
      ErrorCode = "string",
      ErrorMessage = "string"
    )
  )
)

Request syntax

svc$batch_detect_key_phrases(
  TextList = list(
    "string"
  ),
  LanguageCode = "en"|"es"|"fr"|"de"|"it"|"pt"|"ar"|"hi"|"ja"|"ko"|"zh"|"zh-TW"
)