@datafire/amazonaws_comprehend

5.0.0 • Public • Published

@datafire/amazonaws_comprehend

Client library for Amazon Comprehend

Installation and Usage

npm install --save @datafire/amazonaws_comprehend
let amazonaws_comprehend = require('@datafire/amazonaws_comprehend').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

amazonaws_comprehend.BatchDetectDominantLanguage({
  "TextList": []
}).then(data => {
  console.log(data);
});

Description

Amazon Comprehend is an AWS service for gaining insight into the content of documents. Use these actions to determine the topics contained in your documents, the topics they discuss, the predominant sentiment expressed in them, the predominant language used, and more.

Actions

BatchDetectDominantLanguage

amazonaws_comprehend.BatchDetectDominantLanguage({
  "TextList": []
}, context)

Input

Output

BatchDetectEntities

amazonaws_comprehend.BatchDetectEntities({
  "TextList": [],
  "LanguageCode": ""
}, context)

Input

Output

BatchDetectKeyPhrases

amazonaws_comprehend.BatchDetectKeyPhrases({
  "TextList": [],
  "LanguageCode": ""
}, context)

Input

Output

BatchDetectSentiment

amazonaws_comprehend.BatchDetectSentiment({
  "TextList": [],
  "LanguageCode": ""
}, context)

Input

Output

DescribeTopicsDetectionJob

amazonaws_comprehend.DescribeTopicsDetectionJob({
  "JobId": ""
}, context)

Input

  • input object

Output

DetectDominantLanguage

amazonaws_comprehend.DetectDominantLanguage({
  "Text": ""
}, context)

Input

  • input object

Output

DetectEntities

amazonaws_comprehend.DetectEntities({
  "Text": "",
  "LanguageCode": ""
}, context)

Input

Output

DetectKeyPhrases

amazonaws_comprehend.DetectKeyPhrases({
  "Text": "",
  "LanguageCode": ""
}, context)

Input

Output

DetectSentiment

amazonaws_comprehend.DetectSentiment({
  "Text": "",
  "LanguageCode": ""
}, context)

Input

Output

ListTopicsDetectionJobs

amazonaws_comprehend.ListTopicsDetectionJobs({}, context)

Input

Output

StartTopicsDetectionJob

amazonaws_comprehend.StartTopicsDetectionJob({
  "InputDataConfig": {
    "S3Uri": ""
  },
  "OutputDataConfig": {
    "S3Uri": ""
  },
  "DataAccessRoleArn": ""
}, context)

Input

Output

Definitions

AnyLengthString

  • AnyLengthString string

BatchDetectDominantLanguageItemResult

  • BatchDetectDominantLanguageItemResult object: The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

BatchDetectDominantLanguageRequest

  • BatchDetectDominantLanguageRequest object

BatchDetectDominantLanguageResponse

BatchDetectEntitiesItemResult

  • BatchDetectEntitiesItemResult object: The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

BatchDetectEntitiesRequest

  • BatchDetectEntitiesRequest object

BatchDetectEntitiesResponse

BatchDetectKeyPhrasesItemResult

  • BatchDetectKeyPhrasesItemResult object: The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

BatchDetectKeyPhrasesRequest

  • BatchDetectKeyPhrasesRequest object

BatchDetectKeyPhrasesResponse

BatchDetectSentimentItemResult

  • BatchDetectSentimentItemResult object: The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.

BatchDetectSentimentRequest

  • BatchDetectSentimentRequest object

BatchDetectSentimentResponse

BatchItemError

  • BatchItemError object: Describes an error that occurred while processing a document in a batch. The operation returns on BatchItemError object for each document that contained an error.

BatchItemErrorList

BatchSizeLimitExceededException

  • BatchSizeLimitExceededException object: The number of documents in the request exceeds the limit of 25. Try your request again with fewer documents.

ClientRequestTokenString

  • ClientRequestTokenString string

DescribeTopicsDetectionJobRequest

  • DescribeTopicsDetectionJobRequest object

DescribeTopicsDetectionJobResponse

DetectDominantLanguageRequest

  • DetectDominantLanguageRequest object

DetectDominantLanguageResponse

DetectEntitiesRequest

DetectEntitiesResponse

DetectKeyPhrasesRequest

DetectKeyPhrasesResponse

DetectSentimentRequest

DetectSentimentResponse

DominantLanguage

  • DominantLanguage object: Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

Entity

EntityType

  • EntityType string (values: PERSON, LOCATION, ORGANIZATION, COMMERCIAL_ITEM, EVENT, DATE, QUANTITY, TITLE, OTHER)

Float

  • Float number

IamRoleArn

  • IamRoleArn string

InputDataConfig

  • InputDataConfig object: The input properties for a topic detection job.

InputFormat

  • InputFormat string (values: ONE_DOC_PER_FILE, ONE_DOC_PER_LINE)

Integer

  • Integer integer

InternalServerException

  • InternalServerException object: An internal server error occurred. Retry your request.

InvalidFilterException

  • InvalidFilterException object: The filter specified for the ListTopicDetectionJobs operation is invalid. Specify a different filter.

InvalidRequestException

  • InvalidRequestException object: The request is invalid.

JobId

  • JobId string

JobName

  • JobName string

JobNotFoundException

  • JobNotFoundException object: The specified job was not found. Check the job ID and try again.

JobStatus

  • JobStatus string (values: SUBMITTED, IN_PROGRESS, COMPLETED, FAILED)

KeyPhrase

LanguageCode

  • LanguageCode string (values: en, es)

ListOfDetectDominantLanguageResult

ListOfDetectEntitiesResult

ListOfDetectKeyPhrasesResult

ListOfDetectSentimentResult

ListOfDominantLanguages

ListOfEntities

  • ListOfEntities array

ListOfKeyPhrases

ListTopicsDetectionJobsRequest

ListTopicsDetectionJobsResponse

MaxResultsInteger

  • MaxResultsInteger integer

NumberOfTopicsInteger

  • NumberOfTopicsInteger integer

OutputDataConfig

  • OutputDataConfig object:

    Provides configuration parameters for the output of topic detection jobs.

S3Uri

  • S3Uri string

SentimentScore

  • SentimentScore object: Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.

SentimentType

  • SentimentType string (values: POSITIVE, NEGATIVE, NEUTRAL, MIXED)

StartTopicsDetectionJobRequest

StartTopicsDetectionJobResponse

  • StartTopicsDetectionJobResponse object

String

  • String string

StringList

  • StringList array

TextSizeLimitExceededException

  • TextSizeLimitExceededException object: The size of the input text exceeds the limit. Use a smaller document.

Timestamp

  • Timestamp string

TooManyRequestsException

  • TooManyRequestsException object: The number of requests exceeds the limit. Resubmit your request later.

TopicsDetectionJobFilter

  • TopicsDetectionJobFilter object: Provides information for filtering topic detection jobs. For more information, see .

TopicsDetectionJobProperties

TopicsDetectionJobPropertiesList

UnsupportedLanguageException

  • UnsupportedLanguageException object: Amazon Comprehend can't process the language of the input text. For all APIs except DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of languages, see how-languages

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/amazonaws_comprehend

Weekly Downloads

8

Version

5.0.0

License

MIT

Unpacked Size

81.3 kB

Total Files

4

Last publish

Collaborators

  • datafire