I want to perform Key Phrase detection using AWS Comprehend.
Is there any way to load data directly from an S3 URI instead of manually loading data from S3 and passing it to the SDK?
I want to perform Key Phrase detection using AWS Comprehend.
Is there any way to load data directly from an S3 URI instead of manually loading data from S3 and passing it to the SDK?
Yes.
For Amazon Comprehend, there are usually 3 ways to do the same action:
DetectKeyPhrases
BatchDetectKeyPhrases
StartKeyPhrasesDetectionJob
Most, if not all, of the time the synchronous actions take in
Text
orTextList
directly & the asynchronous operations allow you to specific an S3 URI.For detecting key phrases, this would be the
StartKeyPhrasesDetectionJob
, which takes inS3Uri
for input data as well as output data.All of these operations are available in the AWS SDK for Java v2 so feel free to refer to the SDK documentation for getting started.