npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/amazonaws_comprehend

v5.0.0

Published

DataFire integration for Amazon Comprehend

Downloads

3

Readme

@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

String

  • String string

StringList

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