Questions tagged [amazon-comprehend]

Amazon Comprehend uses natural language processing (NLP) to extract insights about the content of documents. Amazon Comprehend processes any text file in UTF-8 format. It develops insights by recognizing the entities, key phrases, language, sentiments, and other common elements in a document. Use Amazon Comprehend to create new products based on understanding the structure of documents.

See: What Is Amazon Comprehend?

70 questions
1
vote
0 answers

Comprehend: Difference between detect_pii_entities and contains_pii_entities boto3 comprehend

I am trying to understand the difference between using botot3 comprehend's detect_pii_entities and contains_pii_entities functions. I tried to use the following snippet: str_text = """ Hello Zhang Wei, I am John. Your AnyCompany Financial Services,…
1
vote
1 answer

getting error in AWS comprehend custom entity recognition : DOCUMENT_CORPUS_SIZE_LESS_THEN_MINIMUM

I am creating a model in custom entity recognizer and getting below error : document corpus size is less then minimum requirement:5120 byte My training entity list csv file size is 7kb(which is more than 5120 byte) and test data file is 5 kb
MNSH
  • 55
  • 1
  • 8
1
vote
0 answers

Fine tune Sentiment Analysis of Amazon Comprehent

I got a pretty short question: Is it possible to fine tune the Amazon Comprehend Sentiment Analyzer? I cannot find anythin on the internet, but it somehow feels weird that its not possible. Cheers
1
vote
1 answer

Using AWS Comprehend Custom Entity along with generic Entity

Can We Override Custom Entity with generic AWS Entiy? I Created Custom Entity But After that it was not identifying Aws Genreic Entity
1
vote
1 answer

aws comprehend with aws lambda in node.js

https://aws.amazon.com/blogs/compute/using-aws-lambda-and-amazon-comprehend-for-sentiment-analysis/ From the post i was able to use comprehend to detect sentiment analysis but it was in python can somebody please provide the same code in node.js
1
vote
0 answers

Recommend Shopify Products Based on keywords

i have some keywords e.g ["i have curly hairs", "24 years of age", "i have dry scalp", "i have frequent dandruff"]. Based on these keywords i want to suggest shopify products.Currently i can think of comparing shopify products descriptions, titles,…
1
vote
1 answer

How could I use efficiently Amazon Comprehend over a dataset?

I need to perform a sentiment analysis over a csv dataset using aws comprehend using Aws comprehend and I wanted to know how could I perform this analysis the fastest way possible and save all the results of each analysis in a single JSON file ? As…
1
vote
0 answers

AWS Translation Client Exception (AWS Comprehend) in Java

I am unable to mock AWS translation client due to nested abstract class AWS Comprehend Code link Java public class TestLambdaFunctionHandler implements RequestHandler { AmazonTranslate awsTranslateClient =…
1
vote
1 answer

Extract medical marker name, values and units from analysed image?

I am using Amazon Textract to analyse anonymous blood tests. It consists of markers, their values, units, ref interval. I want to extract them into a dictionary like this: {"globulin": [2.8, gidL, [1.0, 4.0]], "cholesterol": [161, mg/dL, [120,…
1
vote
1 answer

Are the AWS Comprehend synchronous calls (e.g. BatchDetectSentiment) logged in Cloudtrail?

The AWS documentation explicitly list the API calls that are logged here: Logging Amazon Comprehend API Calls with AWS CloudTrail and they seems not to be included, but at the same time there is an example here: Logging Amazon Comprehend Medical API…
Ignacio
  • 331
  • 6
  • 15
1
vote
1 answer

Calculate AWS Comprehend Sentiment cost

I'd like to programmatically estimate the cost to call the AWS Comprehend Sentiment API. I searched SO and the AWS calculators but couldn't find a way. Also, I'm sure the costs for the amount of text I'll be sending will be small but I really want…
RandomTask
  • 499
  • 8
  • 19
1
vote
3 answers

Does AWS Comprehend classify images?

I am fairly new to AWS Comprehend. I know that AWS Comprehend can custom classify documents (Text Files). Does, AWS Comprehend also classify Image files? Also, while training the model, is it necessary to give the entire document text in the CSV or…
mounika
  • 75
  • 9
1
vote
2 answers

AWS: How to know when asynchronous comprehend job finishes?

Is there a way to know when a comprehend asynchronous job finishes? For example: I need to read the output of a sentiment analysis job when it finishes, but not by blocking the program and waiting. I think there should be a way to trigger a lambda…
1
vote
1 answer

Lambda trigger is not working as intended with bulk data

I'm using lambda triggers to detect an insertion into a DynamoDB table (Tweets). Once triggered, I want to take the message in the event, and get the sentiment for it using Comprehend. I then want to update a second DynamoDB table…
1
vote
1 answer

Identifying different tenses of a word in Amazon Comprehend Medical

I am using Amazon Comprehend Medical for entity detection of injuries. Lets say I have a piece of text as follows: John had surgery to repair a dislocated left knee and a full ACL tear." Amazon comprehend medical (ACM) is able to recognize…