aws comprehend85 CLI commands available for Amazon Comprehend.
| Command | API Operation | Sample |
|---|---|---|
batch-detect-dominant-languageDetermines the dominant language of the input text for a batch of documents. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages. | BatchDetectDominantLanguage | |
batch-detect-entitiesInspects the text of a batch of documents for named entities and returns information about them. For more information about named entities, see Entities in the Comprehend Developer Guide. | BatchDetectEntities | |
batch-detect-key-phrasesDetects the key noun phrases found in a batch of documents. | BatchDetectKeyPhrases | |
batch-detect-sentimentInspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one. | BatchDetectSentiment | |
batch-detect-syntaxInspects the text of a batch of documents for the syntax and part of speech of the words in the document and returns information about them. For more information, see Syntax in the Comprehend Developer Guide. | BatchDetectSyntax | |
batch-detect-targeted-sentimentInspects a batch of documents and returns a sentiment analysis for each entity identified in the documents. For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide. | BatchDetectTargetedSentiment | |
classify-documentCreates a classification request to analyze a single document in real-time. ClassifyDocument supports the following model types: Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Amazon Text | ClassifyDocument | |
contains-pii-entitiesAnalyzes input text for the presence of personally identifiable information (PII) and returns the labels of identified PII entity types such as name, address, bank account number, or phone number. | ContainsPiiEntities | |
create-datasetCreates a dataset to upload training or test data for a model associated with a flywheel. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide. | CreateDataset | |
create-document-classifierCreates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that are labeled with the categories that you want to use. For more information, see Training classifier models in the Comprehend Developer Guide. | CreateDocumentClassifier | |
create-endpointCreates a model-specific endpoint for synchronous inference for a previously trained custom model For information about endpoints, see Managing endpoints. | CreateEndpoint | |
create-entity-recognizerCreates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the DescribeEntityRecognizer API. | CreateEntityRecognizer | |
create-flywheelA flywheel is an Amazon Web Services resource that orchestrates the ongoing training of a model for custom classification or custom entity recognition. You can create a flywheel to start with an existing trained model, or Comprehend can create and train a new model. When you create the flywheel, Com | CreateFlywheel | |
delete-document-classifierDeletes a previously created document classifier Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference job is using the model, a ResourceInUseException will be returned. This is an asynchronous action that puts the classifier into a DELETING | DeleteDocumentClassifier | |
delete-endpointDeletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted. For information about endpoints, see Managing endpoints. | DeleteEndpoint | |
delete-entity-recognizerDeletes an entity recognizer. Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference job is using the model, a ResourceInUseException will be returned. This is an asynchronous action that puts the recognizer into a DELETING state, and it is t | DeleteEntityRecognizer | |
delete-flywheelDeletes a flywheel. When you delete the flywheel, Amazon Comprehend does not delete the data lake or the model associated with the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide. | DeleteFlywheel | |
delete-resource-policyDeletes a resource-based policy that is attached to a custom model. | DeleteResourcePolicy | |
describe-datasetReturns information about the dataset that you specify. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide. | DescribeDataset | |
describe-document-classification-jobGets the properties associated with a document classification job. Use this operation to get the status of a classification job. | DescribeDocumentClassificationJob | |
describe-document-classifierGets the properties associated with a document classifier. | DescribeDocumentClassifier | |
describe-dominant-language-detection-jobGets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job. | DescribeDominantLanguageDetectionJob | |
describe-endpointGets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint. For information about endpoints, see Managing endpoints. | DescribeEndpoint | |
describe-entities-detection-jobGets the properties associated with an entities detection job. Use this operation to get the status of a detection job. | DescribeEntitiesDetectionJob | |
describe-entity-recognizerProvides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on. | DescribeEntityRecognizer | |
describe-events-detection-jobGets the status and details of an events detection job. | DescribeEventsDetectionJob | |
describe-flywheelProvides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide. | DescribeFlywheel | |
describe-flywheel-iterationRetrieve the configuration properties of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide. | DescribeFlywheelIteration | |
describe-key-phrases-detection-jobGets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job. | DescribeKeyPhrasesDetectionJob | |
describe-pii-entities-detection-jobGets the properties associated with a PII entities detection job. For example, you can use this operation to get the job status. | DescribePiiEntitiesDetectionJob | |
describe-resource-policyGets the details of a resource-based policy that is attached to a custom model, including the JSON body of the policy. | DescribeResourcePolicy | |
describe-sentiment-detection-jobGets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job. | DescribeSentimentDetectionJob | |
describe-targeted-sentiment-detection-jobGets the properties associated with a targeted sentiment detection job. Use this operation to get the status of the job. | DescribeTargetedSentimentDetectionJob | |
describe-topics-detection-jobGets the properties associated with a topic detection job. Use this operation to get the status of a detection job. | DescribeTopicsDetectionJob | |
detect-dominant-languageDetermines the dominant language of the input text. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages. | DetectDominantLanguage | |
detect-entitiesDetects named entities in input text when you use the pre-trained model. Detects custom entities if you have a custom entity recognition model. When detecting named entities using the pre-trained model, use plain text as the input. For more information about named entities, see Entities in the Com | DetectEntities | |
detect-key-phrasesDetects the key noun phrases found in the text. | DetectKeyPhrases | |
detect-pii-entitiesInspects the input text for entities that contain personally identifiable information (PII) and returns information about them. | DetectPiiEntities | |
detect-sentimentInspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE). | DetectSentiment | |
detect-syntaxInspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide. | DetectSyntax | |
detect-targeted-sentimentInspects the input text and returns a sentiment analysis for each entity identified in the text. For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide. | DetectTargetedSentiment | |
detect-toxic-contentPerforms toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide. | DetectToxicContent | |
import-modelCreates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one. If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it. The | ImportModel | |
list-datasetsList the datasets that you have configured in this Region. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide. | ListDatasets | |
list-document-classification-jobsGets a list of the documentation classification jobs that you have submitted. | ListDocumentClassificationJobs | |
list-document-classifier-summariesGets a list of summaries of the document classifiers that you have created | ListDocumentClassifierSummaries | |
list-document-classifiersGets a list of the document classifiers that you have created. | ListDocumentClassifiers | |
list-dominant-language-detection-jobsGets a list of the dominant language detection jobs that you have submitted. | ListDominantLanguageDetectionJobs | |
list-endpointsGets a list of all existing endpoints that you've created. For information about endpoints, see Managing endpoints. | ListEndpoints | |
list-entities-detection-jobsGets a list of the entity detection jobs that you have submitted. | ListEntitiesDetectionJobs | |
list-entity-recognizer-summariesGets a list of summaries for the entity recognizers that you have created. | ListEntityRecognizerSummaries | |
list-entity-recognizersGets a list of the properties of all entity recognizers that you created, including recognizers currently in training. Allows you to filter the list of recognizers based on criteria such as status and submission time. This call returns up to 500 entity recognizers in the list, with a default number | ListEntityRecognizers | |
list-events-detection-jobsGets a list of the events detection jobs that you have submitted. | ListEventsDetectionJobs | |
list-flywheel-iteration-historyInformation about the history of a flywheel iteration. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide. | ListFlywheelIterationHistory | |
list-flywheelsGets a list of the flywheels that you have created. | ListFlywheels | |
list-key-phrases-detection-jobsGet a list of key phrase detection jobs that you have submitted. | ListKeyPhrasesDetectionJobs | |
list-pii-entities-detection-jobsGets a list of the PII entity detection jobs that you have submitted. | ListPiiEntitiesDetectionJobs | |
list-sentiment-detection-jobsGets a list of sentiment detection jobs that you have submitted. | ListSentimentDetectionJobs | |
list-tags-for-resourceLists all tags associated with a given Amazon Comprehend resource. | ListTagsForResource | |
list-targeted-sentiment-detection-jobsGets a list of targeted sentiment detection jobs that you have submitted. | ListTargetedSentimentDetectionJobs | |
list-topics-detection-jobsGets a list of the topic detection jobs that you have submitted. | ListTopicsDetectionJobs | |
put-resource-policyAttaches a resource-based policy to a custom model. You can use this policy to authorize an entity in another Amazon Web Services account to import the custom model, which replicates it in Amazon Comprehend in their account. | PutResourcePolicy | |
start-document-classification-jobStarts an asynchronous document classification job using a custom classification model. Use the DescribeDocumentClassificationJob operation to track the progress of the job. | StartDocumentClassificationJob | |
start-dominant-language-detection-jobStarts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job. | StartDominantLanguageDetectionJob | |
start-entities-detection-jobStarts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job. This API can be used for either standard entity detection or custom entity recognition. In order to be used for custom entity recognition, the optional EntityRecognizerArn must | StartEntitiesDetectionJob | |
start-events-detection-jobStarts an asynchronous event detection job for a collection of documents. | StartEventsDetectionJob | |
start-flywheel-iterationStart the flywheel iteration.This operation uses any new datasets to train a new model version. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide. | StartFlywheelIteration | |
start-key-phrases-detection-jobStarts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job. | StartKeyPhrasesDetectionJob | |
start-pii-entities-detection-jobStarts an asynchronous PII entity detection job for a collection of documents. | StartPiiEntitiesDetectionJob | |
start-sentiment-detection-jobStarts an asynchronous sentiment detection job for a collection of documents. Use the operation to track the status of a job. | StartSentimentDetectionJob | |
start-targeted-sentiment-detection-jobStarts an asynchronous targeted sentiment detection job for a collection of documents. Use the DescribeTargetedSentimentDetectionJob operation to track the status of a job. | StartTargetedSentimentDetectionJob | |
start-topics-detection-jobStarts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job. | StartTopicsDetectionJob | |
stop-dominant-language-detection-jobStops a dominant language detection job in progress. If the job state is IN_PROGRESS the job is marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state; otherwise the job is stopped and put into the STOPPED state | StopDominantLanguageDetectionJob | |
stop-entities-detection-jobStops an entities detection job in progress. If the job state is IN_PROGRESS the job is marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state; otherwise the job is stopped and put into the STOPPED state. If the | StopEntitiesDetectionJob | |
stop-events-detection-jobStops an events detection job in progress. | StopEventsDetectionJob | |
stop-key-phrases-detection-jobStops a key phrases detection job in progress. If the job state is IN_PROGRESS the job is marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state; otherwise the job is stopped and put into the STOPPED state. If t | StopKeyPhrasesDetectionJob | |
stop-pii-entities-detection-jobStops a PII entities detection job in progress. | StopPiiEntitiesDetectionJob | |
stop-sentiment-detection-jobStops a sentiment detection job in progress. If the job state is IN_PROGRESS, the job is marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state; otherwise the job is be stopped and put into the STOPPED state. If | StopSentimentDetectionJob | |
stop-targeted-sentiment-detection-jobStops a targeted sentiment detection job in progress. If the job state is IN_PROGRESS, the job is marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state; otherwise the job is be stopped and put into the STOPPED | StopTargetedSentimentDetectionJob | |
stop-training-document-classifierStops a document classifier training job while in progress. If the training job state is TRAINING, the job is marked for termination and put into the STOP_REQUESTED state. If the training job completes before it can be stopped, it is put into the TRAINED; otherwise the training job is stopped and pu | StopTrainingDocumentClassifier | |
stop-training-entity-recognizerStops an entity recognizer training job while in progress. If the training job state is TRAINING, the job is marked for termination and put into the STOP_REQUESTED state. If the training job completes before it can be stopped, it is put into the TRAINED; otherwise the training job is stopped and put | StopTrainingEntityRecognizer | |
tag-resourceAssociates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department. | TagResource | |
untag-resourceRemoves a specific tag associated with an Amazon Comprehend resource. | UntagResource | |
update-endpointUpdates information about the specified endpoint. For information about endpoints, see Managing endpoints. | UpdateEndpoint | |
update-flywheelUpdate the configuration information for an existing flywheel. | UpdateFlywheel |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterComprehend