ComprehendClient
Index > Comprehend > ComprehendClient
Auto-generated documentation for Comprehend type annotations stubs module types-aiobotocore-comprehend.
ComprehendClient
Type annotations and code completion for session.client("comprehend")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_comprehend.client import ComprehendClient
session = Session()
async with session.client("comprehend") as client:
client: ComprehendClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("comprehend").exceptions
structure.
async with session.client("comprehend") as client:
try:
do_something(client)
except (
client.BatchSizeLimitExceededException,
client.ClientError,
client.ConcurrentModificationException,
client.InternalServerException,
client.InvalidFilterException,
client.InvalidRequestException,
client.JobNotFoundException,
client.KmsKeyValidationException,
client.ResourceInUseException,
client.ResourceLimitExceededException,
client.ResourceNotFoundException,
client.ResourceUnavailableException,
client.TextSizeLimitExceededException,
client.TooManyRequestsException,
client.TooManyTagKeysException,
client.TooManyTagsException,
client.UnsupportedLanguageException,
) as e:
print(e)
from types_aiobotocore_comprehend.client import Exceptions
def handle_error(exc: Exceptions.BatchSizeLimitExceededException) -> None:
...
Methods
batch_detect_dominant_language
Determines the dominant language of the input text for a batch of documents.
Type annotations and code completion for session.client("comprehend").batch_detect_dominant_language
method.
boto3 documentation
await def batch_detect_dominant_language(
self,
*,
TextList: Sequence[str],
) -> BatchDetectDominantLanguageResponseTypeDef: # (1)
...
kwargs: BatchDetectDominantLanguageRequestRequestTypeDef = { # (1)
"TextList": ...,
}
parent.batch_detect_dominant_language(**kwargs)
batch_detect_entities
Inspects the text of a batch of documents for named entities and returns information about them.
Type annotations and code completion for session.client("comprehend").batch_detect_entities
method.
boto3 documentation
await def batch_detect_entities(
self,
*,
TextList: Sequence[str],
LanguageCode: LanguageCodeType, # (1)
) -> BatchDetectEntitiesResponseTypeDef: # (2)
...
kwargs: BatchDetectEntitiesRequestRequestTypeDef = { # (1)
"TextList": ...,
"LanguageCode": ...,
}
parent.batch_detect_entities(**kwargs)
batch_detect_key_phrases
Detects the key noun phrases found in a batch of documents.
Type annotations and code completion for session.client("comprehend").batch_detect_key_phrases
method.
boto3 documentation
await def batch_detect_key_phrases(
self,
*,
TextList: Sequence[str],
LanguageCode: LanguageCodeType, # (1)
) -> BatchDetectKeyPhrasesResponseTypeDef: # (2)
...
kwargs: BatchDetectKeyPhrasesRequestRequestTypeDef = { # (1)
"TextList": ...,
"LanguageCode": ...,
}
parent.batch_detect_key_phrases(**kwargs)
batch_detect_sentiment
Inspects a batch of documents and returns an inference of the prevailing
sentiment, POSITIVE
, NEUTRAL
, MIXED
, or NEGATIVE
, in each one.
Type annotations and code completion for session.client("comprehend").batch_detect_sentiment
method.
boto3 documentation
await def batch_detect_sentiment(
self,
*,
TextList: Sequence[str],
LanguageCode: LanguageCodeType, # (1)
) -> BatchDetectSentimentResponseTypeDef: # (2)
...
kwargs: BatchDetectSentimentRequestRequestTypeDef = { # (1)
"TextList": ...,
"LanguageCode": ...,
}
parent.batch_detect_sentiment(**kwargs)
batch_detect_syntax
Inspects 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.
Type annotations and code completion for session.client("comprehend").batch_detect_syntax
method.
boto3 documentation
await def batch_detect_syntax(
self,
*,
TextList: Sequence[str],
LanguageCode: SyntaxLanguageCodeType, # (1)
) -> BatchDetectSyntaxResponseTypeDef: # (2)
...
kwargs: BatchDetectSyntaxRequestRequestTypeDef = { # (1)
"TextList": ...,
"LanguageCode": ...,
}
parent.batch_detect_syntax(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("comprehend").can_paginate
method.
boto3 documentation
classify_document
Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.
Type annotations and code completion for session.client("comprehend").classify_document
method.
boto3 documentation
await def classify_document(
self,
*,
Text: str,
EndpointArn: str,
) -> ClassifyDocumentResponseTypeDef: # (1)
...
kwargs: ClassifyDocumentRequestRequestTypeDef = { # (1)
"Text": ...,
"EndpointArn": ...,
}
parent.classify_document(**kwargs)
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("comprehend").close
method.
boto3 documentation
contains_pii_entities
Analyzes 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.
Type annotations and code completion for session.client("comprehend").contains_pii_entities
method.
boto3 documentation
await def contains_pii_entities(
self,
*,
Text: str,
LanguageCode: LanguageCodeType, # (1)
) -> ContainsPiiEntitiesResponseTypeDef: # (2)
...
kwargs: ContainsPiiEntitiesRequestRequestTypeDef = { # (1)
"Text": ...,
"LanguageCode": ...,
}
parent.contains_pii_entities(**kwargs)
create_document_classifier
Creates a new document classifier that you can use to categorize documents.
Type annotations and code completion for session.client("comprehend").create_document_classifier
method.
boto3 documentation
await def create_document_classifier(
self,
*,
DocumentClassifierName: str,
DataAccessRoleArn: str,
InputDataConfig: DocumentClassifierInputDataConfigTypeDef, # (1)
LanguageCode: LanguageCodeType, # (2)
VersionName: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (3)
OutputDataConfig: DocumentClassifierOutputDataConfigTypeDef = ..., # (4)
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (5)
Mode: DocumentClassifierModeType = ..., # (6)
ModelKmsKeyId: str = ...,
ModelPolicy: str = ...,
) -> CreateDocumentClassifierResponseTypeDef: # (7)
...
- See DocumentClassifierInputDataConfigTypeDef
- See LanguageCodeType
- See TagTypeDef
- See DocumentClassifierOutputDataConfigTypeDef
- See VpcConfigTypeDef
- See DocumentClassifierModeType
- See CreateDocumentClassifierResponseTypeDef
kwargs: CreateDocumentClassifierRequestRequestTypeDef = { # (1)
"DocumentClassifierName": ...,
"DataAccessRoleArn": ...,
"InputDataConfig": ...,
"LanguageCode": ...,
}
parent.create_document_classifier(**kwargs)
create_endpoint
Creates a model-specific endpoint for synchronous inference for a previously trained custom model For information about endpoints, see Managing endpoints_ .
Type annotations and code completion for session.client("comprehend").create_endpoint
method.
boto3 documentation
await def create_endpoint(
self,
*,
EndpointName: str,
ModelArn: str,
DesiredInferenceUnits: int,
ClientRequestToken: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
DataAccessRoleArn: str = ...,
) -> CreateEndpointResponseTypeDef: # (2)
...
kwargs: CreateEndpointRequestRequestTypeDef = { # (1)
"EndpointName": ...,
"ModelArn": ...,
"DesiredInferenceUnits": ...,
}
parent.create_endpoint(**kwargs)
create_entity_recognizer
Creates an entity recognizer using submitted files.
Type annotations and code completion for session.client("comprehend").create_entity_recognizer
method.
boto3 documentation
await def create_entity_recognizer(
self,
*,
RecognizerName: str,
DataAccessRoleArn: str,
InputDataConfig: EntityRecognizerInputDataConfigTypeDef, # (1)
LanguageCode: LanguageCodeType, # (2)
VersionName: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (3)
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (4)
ModelKmsKeyId: str = ...,
ModelPolicy: str = ...,
) -> CreateEntityRecognizerResponseTypeDef: # (5)
...
- See EntityRecognizerInputDataConfigTypeDef
- See LanguageCodeType
- See TagTypeDef
- See VpcConfigTypeDef
- See CreateEntityRecognizerResponseTypeDef
kwargs: CreateEntityRecognizerRequestRequestTypeDef = { # (1)
"RecognizerName": ...,
"DataAccessRoleArn": ...,
"InputDataConfig": ...,
"LanguageCode": ...,
}
parent.create_entity_recognizer(**kwargs)
delete_document_classifier
Deletes a previously created document classifier Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted.
Type annotations and code completion for session.client("comprehend").delete_document_classifier
method.
boto3 documentation
await def delete_document_classifier(
self,
*,
DocumentClassifierArn: str,
) -> Dict[str, Any]:
...
kwargs: DeleteDocumentClassifierRequestRequestTypeDef = { # (1)
"DocumentClassifierArn": ...,
}
parent.delete_document_classifier(**kwargs)
delete_endpoint
Deletes a model-specific endpoint for a previously-trained custom model.
Type annotations and code completion for session.client("comprehend").delete_endpoint
method.
boto3 documentation
kwargs: DeleteEndpointRequestRequestTypeDef = { # (1)
"EndpointArn": ...,
}
parent.delete_endpoint(**kwargs)
delete_entity_recognizer
Deletes an entity recognizer.
Type annotations and code completion for session.client("comprehend").delete_entity_recognizer
method.
boto3 documentation
await def delete_entity_recognizer(
self,
*,
EntityRecognizerArn: str,
) -> Dict[str, Any]:
...
kwargs: DeleteEntityRecognizerRequestRequestTypeDef = { # (1)
"EntityRecognizerArn": ...,
}
parent.delete_entity_recognizer(**kwargs)
delete_resource_policy
Deletes a resource-based policy that is attached to a custom model.
Type annotations and code completion for session.client("comprehend").delete_resource_policy
method.
boto3 documentation
await def delete_resource_policy(
self,
*,
ResourceArn: str,
PolicyRevisionId: str = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteResourcePolicyRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.delete_resource_policy(**kwargs)
describe_document_classification_job
Gets the properties associated with a document classification job.
Type annotations and code completion for session.client("comprehend").describe_document_classification_job
method.
boto3 documentation
await def describe_document_classification_job(
self,
*,
JobId: str,
) -> DescribeDocumentClassificationJobResponseTypeDef: # (1)
...
kwargs: DescribeDocumentClassificationJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_document_classification_job(**kwargs)
describe_document_classifier
Gets the properties associated with a document classifier.
Type annotations and code completion for session.client("comprehend").describe_document_classifier
method.
boto3 documentation
await def describe_document_classifier(
self,
*,
DocumentClassifierArn: str,
) -> DescribeDocumentClassifierResponseTypeDef: # (1)
...
kwargs: DescribeDocumentClassifierRequestRequestTypeDef = { # (1)
"DocumentClassifierArn": ...,
}
parent.describe_document_classifier(**kwargs)
describe_dominant_language_detection_job
Gets the properties associated with a dominant language detection job.
Type annotations and code completion for session.client("comprehend").describe_dominant_language_detection_job
method.
boto3 documentation
await def describe_dominant_language_detection_job(
self,
*,
JobId: str,
) -> DescribeDominantLanguageDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribeDominantLanguageDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_dominant_language_detection_job(**kwargs)
describe_endpoint
Gets the properties associated with a specific endpoint.
Type annotations and code completion for session.client("comprehend").describe_endpoint
method.
boto3 documentation
await def describe_endpoint(
self,
*,
EndpointArn: str,
) -> DescribeEndpointResponseTypeDef: # (1)
...
kwargs: DescribeEndpointRequestRequestTypeDef = { # (1)
"EndpointArn": ...,
}
parent.describe_endpoint(**kwargs)
describe_entities_detection_job
Gets the properties associated with an entities detection job.
Type annotations and code completion for session.client("comprehend").describe_entities_detection_job
method.
boto3 documentation
await def describe_entities_detection_job(
self,
*,
JobId: str,
) -> DescribeEntitiesDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribeEntitiesDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_entities_detection_job(**kwargs)
describe_entity_recognizer
Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
Type annotations and code completion for session.client("comprehend").describe_entity_recognizer
method.
boto3 documentation
await def describe_entity_recognizer(
self,
*,
EntityRecognizerArn: str,
) -> DescribeEntityRecognizerResponseTypeDef: # (1)
...
kwargs: DescribeEntityRecognizerRequestRequestTypeDef = { # (1)
"EntityRecognizerArn": ...,
}
parent.describe_entity_recognizer(**kwargs)
describe_events_detection_job
Gets the status and details of an events detection job.
Type annotations and code completion for session.client("comprehend").describe_events_detection_job
method.
boto3 documentation
await def describe_events_detection_job(
self,
*,
JobId: str,
) -> DescribeEventsDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribeEventsDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_events_detection_job(**kwargs)
describe_key_phrases_detection_job
Gets the properties associated with a key phrases detection job.
Type annotations and code completion for session.client("comprehend").describe_key_phrases_detection_job
method.
boto3 documentation
await def describe_key_phrases_detection_job(
self,
*,
JobId: str,
) -> DescribeKeyPhrasesDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribeKeyPhrasesDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_key_phrases_detection_job(**kwargs)
describe_pii_entities_detection_job
Gets the properties associated with a PII entities detection job.
Type annotations and code completion for session.client("comprehend").describe_pii_entities_detection_job
method.
boto3 documentation
await def describe_pii_entities_detection_job(
self,
*,
JobId: str,
) -> DescribePiiEntitiesDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribePiiEntitiesDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_pii_entities_detection_job(**kwargs)
describe_resource_policy
Gets the details of a resource-based policy that is attached to a custom model, including the JSON body of the policy.
Type annotations and code completion for session.client("comprehend").describe_resource_policy
method.
boto3 documentation
await def describe_resource_policy(
self,
*,
ResourceArn: str,
) -> DescribeResourcePolicyResponseTypeDef: # (1)
...
kwargs: DescribeResourcePolicyRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.describe_resource_policy(**kwargs)
describe_sentiment_detection_job
Gets the properties associated with a sentiment detection job.
Type annotations and code completion for session.client("comprehend").describe_sentiment_detection_job
method.
boto3 documentation
await def describe_sentiment_detection_job(
self,
*,
JobId: str,
) -> DescribeSentimentDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribeSentimentDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_sentiment_detection_job(**kwargs)
describe_targeted_sentiment_detection_job
Gets the properties associated with a targeted sentiment detection job.
Type annotations and code completion for session.client("comprehend").describe_targeted_sentiment_detection_job
method.
boto3 documentation
await def describe_targeted_sentiment_detection_job(
self,
*,
JobId: str,
) -> DescribeTargetedSentimentDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribeTargetedSentimentDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_targeted_sentiment_detection_job(**kwargs)
describe_topics_detection_job
Gets the properties associated with a topic detection job.
Type annotations and code completion for session.client("comprehend").describe_topics_detection_job
method.
boto3 documentation
await def describe_topics_detection_job(
self,
*,
JobId: str,
) -> DescribeTopicsDetectionJobResponseTypeDef: # (1)
...
kwargs: DescribeTopicsDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.describe_topics_detection_job(**kwargs)
detect_dominant_language
Determines the dominant language of the input text.
Type annotations and code completion for session.client("comprehend").detect_dominant_language
method.
boto3 documentation
await def detect_dominant_language(
self,
*,
Text: str,
) -> DetectDominantLanguageResponseTypeDef: # (1)
...
kwargs: DetectDominantLanguageRequestRequestTypeDef = { # (1)
"Text": ...,
}
parent.detect_dominant_language(**kwargs)
detect_entities
Inspects text for named entities, and returns information about them.
Type annotations and code completion for session.client("comprehend").detect_entities
method.
boto3 documentation
await def detect_entities(
self,
*,
Text: str,
LanguageCode: LanguageCodeType = ..., # (1)
EndpointArn: str = ...,
) -> DetectEntitiesResponseTypeDef: # (2)
...
kwargs: DetectEntitiesRequestRequestTypeDef = { # (1)
"Text": ...,
}
parent.detect_entities(**kwargs)
detect_key_phrases
Detects the key noun phrases found in the text.
Type annotations and code completion for session.client("comprehend").detect_key_phrases
method.
boto3 documentation
await def detect_key_phrases(
self,
*,
Text: str,
LanguageCode: LanguageCodeType, # (1)
) -> DetectKeyPhrasesResponseTypeDef: # (2)
...
kwargs: DetectKeyPhrasesRequestRequestTypeDef = { # (1)
"Text": ...,
"LanguageCode": ...,
}
parent.detect_key_phrases(**kwargs)
detect_pii_entities
Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.
Type annotations and code completion for session.client("comprehend").detect_pii_entities
method.
boto3 documentation
await def detect_pii_entities(
self,
*,
Text: str,
LanguageCode: LanguageCodeType, # (1)
) -> DetectPiiEntitiesResponseTypeDef: # (2)
...
kwargs: DetectPiiEntitiesRequestRequestTypeDef = { # (1)
"Text": ...,
"LanguageCode": ...,
}
parent.detect_pii_entities(**kwargs)
detect_sentiment
Inspects text and returns an inference of the prevailing sentiment (POSITIVE
,
NEUTRAL
, MIXED
, or NEGATIVE
).
Type annotations and code completion for session.client("comprehend").detect_sentiment
method.
boto3 documentation
await def detect_sentiment(
self,
*,
Text: str,
LanguageCode: LanguageCodeType, # (1)
) -> DetectSentimentResponseTypeDef: # (2)
...
kwargs: DetectSentimentRequestRequestTypeDef = { # (1)
"Text": ...,
"LanguageCode": ...,
}
parent.detect_sentiment(**kwargs)
detect_syntax
Inspects text for syntax and the part of speech of words in the document.
Type annotations and code completion for session.client("comprehend").detect_syntax
method.
boto3 documentation
await def detect_syntax(
self,
*,
Text: str,
LanguageCode: SyntaxLanguageCodeType, # (1)
) -> DetectSyntaxResponseTypeDef: # (2)
...
kwargs: DetectSyntaxRequestRequestTypeDef = { # (1)
"Text": ...,
"LanguageCode": ...,
}
parent.detect_syntax(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("comprehend").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
import_model
Creates a new custom model that replicates a source custom model that you import.
Type annotations and code completion for session.client("comprehend").import_model
method.
boto3 documentation
await def import_model(
self,
*,
SourceModelArn: str,
ModelName: str = ...,
VersionName: str = ...,
ModelKmsKeyId: str = ...,
DataAccessRoleArn: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> ImportModelResponseTypeDef: # (2)
...
- See TagTypeDef
- See ImportModelResponseTypeDef
kwargs: ImportModelRequestRequestTypeDef = { # (1)
"SourceModelArn": ...,
}
parent.import_model(**kwargs)
list_document_classification_jobs
Gets a list of the documentation classification jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_document_classification_jobs
method.
boto3 documentation
await def list_document_classification_jobs(
self,
*,
Filter: DocumentClassificationJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListDocumentClassificationJobsResponseTypeDef: # (2)
...
kwargs: ListDocumentClassificationJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_document_classification_jobs(**kwargs)
list_document_classifier_summaries
Gets a list of summaries of the document classifiers that you have created See also: AWS API Documentation.
Type annotations and code completion for session.client("comprehend").list_document_classifier_summaries
method.
boto3 documentation
await def list_document_classifier_summaries(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListDocumentClassifierSummariesResponseTypeDef: # (1)
...
kwargs: ListDocumentClassifierSummariesRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_document_classifier_summaries(**kwargs)
list_document_classifiers
Gets a list of the document classifiers that you have created.
Type annotations and code completion for session.client("comprehend").list_document_classifiers
method.
boto3 documentation
await def list_document_classifiers(
self,
*,
Filter: DocumentClassifierFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListDocumentClassifiersResponseTypeDef: # (2)
...
kwargs: ListDocumentClassifiersRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_document_classifiers(**kwargs)
list_dominant_language_detection_jobs
Gets a list of the dominant language detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_dominant_language_detection_jobs
method.
boto3 documentation
await def list_dominant_language_detection_jobs(
self,
*,
Filter: DominantLanguageDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListDominantLanguageDetectionJobsResponseTypeDef: # (2)
...
kwargs: ListDominantLanguageDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_dominant_language_detection_jobs(**kwargs)
list_endpoints
Gets a list of all existing endpoints that you've created.
Type annotations and code completion for session.client("comprehend").list_endpoints
method.
boto3 documentation
await def list_endpoints(
self,
*,
Filter: EndpointFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListEndpointsResponseTypeDef: # (2)
...
kwargs: ListEndpointsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_endpoints(**kwargs)
list_entities_detection_jobs
Gets a list of the entity detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_entities_detection_jobs
method.
boto3 documentation
await def list_entities_detection_jobs(
self,
*,
Filter: EntitiesDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListEntitiesDetectionJobsResponseTypeDef: # (2)
...
kwargs: ListEntitiesDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_entities_detection_jobs(**kwargs)
list_entity_recognizer_summaries
Gets a list of summaries for the entity recognizers that you have created.
Type annotations and code completion for session.client("comprehend").list_entity_recognizer_summaries
method.
boto3 documentation
await def list_entity_recognizer_summaries(
self,
*,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListEntityRecognizerSummariesResponseTypeDef: # (1)
...
kwargs: ListEntityRecognizerSummariesRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_entity_recognizer_summaries(**kwargs)
list_entity_recognizers
Gets a list of the properties of all entity recognizers that you created, including recognizers currently in training.
Type annotations and code completion for session.client("comprehend").list_entity_recognizers
method.
boto3 documentation
await def list_entity_recognizers(
self,
*,
Filter: EntityRecognizerFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListEntityRecognizersResponseTypeDef: # (2)
...
kwargs: ListEntityRecognizersRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_entity_recognizers(**kwargs)
list_events_detection_jobs
Gets a list of the events detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_events_detection_jobs
method.
boto3 documentation
await def list_events_detection_jobs(
self,
*,
Filter: EventsDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListEventsDetectionJobsResponseTypeDef: # (2)
...
kwargs: ListEventsDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_events_detection_jobs(**kwargs)
list_key_phrases_detection_jobs
Get a list of key phrase detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_key_phrases_detection_jobs
method.
boto3 documentation
await def list_key_phrases_detection_jobs(
self,
*,
Filter: KeyPhrasesDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListKeyPhrasesDetectionJobsResponseTypeDef: # (2)
...
kwargs: ListKeyPhrasesDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_key_phrases_detection_jobs(**kwargs)
list_pii_entities_detection_jobs
Gets a list of the PII entity detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_pii_entities_detection_jobs
method.
boto3 documentation
await def list_pii_entities_detection_jobs(
self,
*,
Filter: PiiEntitiesDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListPiiEntitiesDetectionJobsResponseTypeDef: # (2)
...
kwargs: ListPiiEntitiesDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_pii_entities_detection_jobs(**kwargs)
list_sentiment_detection_jobs
Gets a list of sentiment detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_sentiment_detection_jobs
method.
boto3 documentation
await def list_sentiment_detection_jobs(
self,
*,
Filter: SentimentDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListSentimentDetectionJobsResponseTypeDef: # (2)
...
kwargs: ListSentimentDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_sentiment_detection_jobs(**kwargs)
list_tags_for_resource
Lists all tags associated with a given Amazon Comprehend resource.
Type annotations and code completion for session.client("comprehend").list_tags_for_resource
method.
boto3 documentation
await def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
list_targeted_sentiment_detection_jobs
Gets a list of targeted sentiment detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_targeted_sentiment_detection_jobs
method.
boto3 documentation
await def list_targeted_sentiment_detection_jobs(
self,
*,
Filter: TargetedSentimentDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListTargetedSentimentDetectionJobsResponseTypeDef: # (2)
...
- See TargetedSentimentDetectionJobFilterTypeDef
- See ListTargetedSentimentDetectionJobsResponseTypeDef
kwargs: ListTargetedSentimentDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_targeted_sentiment_detection_jobs(**kwargs)
list_topics_detection_jobs
Gets a list of the topic detection jobs that you have submitted.
Type annotations and code completion for session.client("comprehend").list_topics_detection_jobs
method.
boto3 documentation
await def list_topics_detection_jobs(
self,
*,
Filter: TopicsDetectionJobFilterTypeDef = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListTopicsDetectionJobsResponseTypeDef: # (2)
...
kwargs: ListTopicsDetectionJobsRequestRequestTypeDef = { # (1)
"Filter": ...,
}
parent.list_topics_detection_jobs(**kwargs)
put_resource_policy
Attaches a resource-based policy to a custom model.
Type annotations and code completion for session.client("comprehend").put_resource_policy
method.
boto3 documentation
await def put_resource_policy(
self,
*,
ResourceArn: str,
ResourcePolicy: str,
PolicyRevisionId: str = ...,
) -> PutResourcePolicyResponseTypeDef: # (1)
...
kwargs: PutResourcePolicyRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"ResourcePolicy": ...,
}
parent.put_resource_policy(**kwargs)
start_document_classification_job
Starts an asynchronous document classification job.
Type annotations and code completion for session.client("comprehend").start_document_classification_job
method.
boto3 documentation
await def start_document_classification_job(
self,
*,
DocumentClassifierArn: str,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
JobName: str = ...,
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (3)
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> StartDocumentClassificationJobResponseTypeDef: # (5)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See VpcConfigTypeDef
- See TagTypeDef
- See StartDocumentClassificationJobResponseTypeDef
kwargs: StartDocumentClassificationJobRequestRequestTypeDef = { # (1)
"DocumentClassifierArn": ...,
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
}
parent.start_document_classification_job(**kwargs)
start_dominant_language_detection_job
Starts an asynchronous dominant language detection job for a collection of documents.
Type annotations and code completion for session.client("comprehend").start_dominant_language_detection_job
method.
boto3 documentation
await def start_dominant_language_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
JobName: str = ...,
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (3)
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> StartDominantLanguageDetectionJobResponseTypeDef: # (5)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See VpcConfigTypeDef
- See TagTypeDef
- See StartDominantLanguageDetectionJobResponseTypeDef
kwargs: StartDominantLanguageDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
}
parent.start_dominant_language_detection_job(**kwargs)
start_entities_detection_job
Starts an asynchronous entity detection job for a collection of documents.
Type annotations and code completion for session.client("comprehend").start_entities_detection_job
method.
boto3 documentation
await def start_entities_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
LanguageCode: LanguageCodeType, # (3)
JobName: str = ...,
EntityRecognizerArn: str = ...,
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (4)
Tags: Sequence[TagTypeDef] = ..., # (5)
) -> StartEntitiesDetectionJobResponseTypeDef: # (6)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See LanguageCodeType
- See VpcConfigTypeDef
- See TagTypeDef
- See StartEntitiesDetectionJobResponseTypeDef
kwargs: StartEntitiesDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
"LanguageCode": ...,
}
parent.start_entities_detection_job(**kwargs)
start_events_detection_job
Starts an asynchronous event detection job for a collection of documents.
Type annotations and code completion for session.client("comprehend").start_events_detection_job
method.
boto3 documentation
await def start_events_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
LanguageCode: LanguageCodeType, # (3)
TargetEventTypes: Sequence[str],
JobName: str = ...,
ClientRequestToken: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> StartEventsDetectionJobResponseTypeDef: # (5)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See LanguageCodeType
- See TagTypeDef
- See StartEventsDetectionJobResponseTypeDef
kwargs: StartEventsDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
"LanguageCode": ...,
"TargetEventTypes": ...,
}
parent.start_events_detection_job(**kwargs)
start_key_phrases_detection_job
Starts an asynchronous key phrase detection job for a collection of documents.
Type annotations and code completion for session.client("comprehend").start_key_phrases_detection_job
method.
boto3 documentation
await def start_key_phrases_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
LanguageCode: LanguageCodeType, # (3)
JobName: str = ...,
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (4)
Tags: Sequence[TagTypeDef] = ..., # (5)
) -> StartKeyPhrasesDetectionJobResponseTypeDef: # (6)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See LanguageCodeType
- See VpcConfigTypeDef
- See TagTypeDef
- See StartKeyPhrasesDetectionJobResponseTypeDef
kwargs: StartKeyPhrasesDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
"LanguageCode": ...,
}
parent.start_key_phrases_detection_job(**kwargs)
start_pii_entities_detection_job
Starts an asynchronous PII entity detection job for a collection of documents.
Type annotations and code completion for session.client("comprehend").start_pii_entities_detection_job
method.
boto3 documentation
await def start_pii_entities_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
Mode: PiiEntitiesDetectionModeType, # (3)
DataAccessRoleArn: str,
LanguageCode: LanguageCodeType, # (4)
RedactionConfig: RedactionConfigTypeDef = ..., # (5)
JobName: str = ...,
ClientRequestToken: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (6)
) -> StartPiiEntitiesDetectionJobResponseTypeDef: # (7)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See PiiEntitiesDetectionModeType
- See LanguageCodeType
- See RedactionConfigTypeDef
- See TagTypeDef
- See StartPiiEntitiesDetectionJobResponseTypeDef
kwargs: StartPiiEntitiesDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"Mode": ...,
"DataAccessRoleArn": ...,
"LanguageCode": ...,
}
parent.start_pii_entities_detection_job(**kwargs)
start_sentiment_detection_job
Starts an asynchronous sentiment detection job for a collection of documents.
Type annotations and code completion for session.client("comprehend").start_sentiment_detection_job
method.
boto3 documentation
await def start_sentiment_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
LanguageCode: LanguageCodeType, # (3)
JobName: str = ...,
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (4)
Tags: Sequence[TagTypeDef] = ..., # (5)
) -> StartSentimentDetectionJobResponseTypeDef: # (6)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See LanguageCodeType
- See VpcConfigTypeDef
- See TagTypeDef
- See StartSentimentDetectionJobResponseTypeDef
kwargs: StartSentimentDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
"LanguageCode": ...,
}
parent.start_sentiment_detection_job(**kwargs)
start_targeted_sentiment_detection_job
Starts an asynchronous targeted sentiment detection job for a collection of documents.
Type annotations and code completion for session.client("comprehend").start_targeted_sentiment_detection_job
method.
boto3 documentation
await def start_targeted_sentiment_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
LanguageCode: LanguageCodeType, # (3)
JobName: str = ...,
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (4)
Tags: Sequence[TagTypeDef] = ..., # (5)
) -> StartTargetedSentimentDetectionJobResponseTypeDef: # (6)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See LanguageCodeType
- See VpcConfigTypeDef
- See TagTypeDef
- See StartTargetedSentimentDetectionJobResponseTypeDef
kwargs: StartTargetedSentimentDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
"LanguageCode": ...,
}
parent.start_targeted_sentiment_detection_job(**kwargs)
start_topics_detection_job
Starts an asynchronous topic detection job.
Type annotations and code completion for session.client("comprehend").start_topics_detection_job
method.
boto3 documentation
await def start_topics_detection_job(
self,
*,
InputDataConfig: InputDataConfigTypeDef, # (1)
OutputDataConfig: OutputDataConfigTypeDef, # (2)
DataAccessRoleArn: str,
JobName: str = ...,
NumberOfTopics: int = ...,
ClientRequestToken: str = ...,
VolumeKmsKeyId: str = ...,
VpcConfig: VpcConfigTypeDef = ..., # (3)
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> StartTopicsDetectionJobResponseTypeDef: # (5)
...
- See InputDataConfigTypeDef
- See OutputDataConfigTypeDef
- See VpcConfigTypeDef
- See TagTypeDef
- See StartTopicsDetectionJobResponseTypeDef
kwargs: StartTopicsDetectionJobRequestRequestTypeDef = { # (1)
"InputDataConfig": ...,
"OutputDataConfig": ...,
"DataAccessRoleArn": ...,
}
parent.start_topics_detection_job(**kwargs)
stop_dominant_language_detection_job
Stops a dominant language detection job in progress.
Type annotations and code completion for session.client("comprehend").stop_dominant_language_detection_job
method.
boto3 documentation
await def stop_dominant_language_detection_job(
self,
*,
JobId: str,
) -> StopDominantLanguageDetectionJobResponseTypeDef: # (1)
...
kwargs: StopDominantLanguageDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.stop_dominant_language_detection_job(**kwargs)
stop_entities_detection_job
Stops an entities detection job in progress.
Type annotations and code completion for session.client("comprehend").stop_entities_detection_job
method.
boto3 documentation
await def stop_entities_detection_job(
self,
*,
JobId: str,
) -> StopEntitiesDetectionJobResponseTypeDef: # (1)
...
kwargs: StopEntitiesDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.stop_entities_detection_job(**kwargs)
stop_events_detection_job
Stops an events detection job in progress.
Type annotations and code completion for session.client("comprehend").stop_events_detection_job
method.
boto3 documentation
await def stop_events_detection_job(
self,
*,
JobId: str,
) -> StopEventsDetectionJobResponseTypeDef: # (1)
...
kwargs: StopEventsDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.stop_events_detection_job(**kwargs)
stop_key_phrases_detection_job
Stops a key phrases detection job in progress.
Type annotations and code completion for session.client("comprehend").stop_key_phrases_detection_job
method.
boto3 documentation
await def stop_key_phrases_detection_job(
self,
*,
JobId: str,
) -> StopKeyPhrasesDetectionJobResponseTypeDef: # (1)
...
kwargs: StopKeyPhrasesDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.stop_key_phrases_detection_job(**kwargs)
stop_pii_entities_detection_job
Stops a PII entities detection job in progress.
Type annotations and code completion for session.client("comprehend").stop_pii_entities_detection_job
method.
boto3 documentation
await def stop_pii_entities_detection_job(
self,
*,
JobId: str,
) -> StopPiiEntitiesDetectionJobResponseTypeDef: # (1)
...
kwargs: StopPiiEntitiesDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.stop_pii_entities_detection_job(**kwargs)
stop_sentiment_detection_job
Stops a sentiment detection job in progress.
Type annotations and code completion for session.client("comprehend").stop_sentiment_detection_job
method.
boto3 documentation
await def stop_sentiment_detection_job(
self,
*,
JobId: str,
) -> StopSentimentDetectionJobResponseTypeDef: # (1)
...
kwargs: StopSentimentDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.stop_sentiment_detection_job(**kwargs)
stop_targeted_sentiment_detection_job
Stops a targeted sentiment detection job in progress.
Type annotations and code completion for session.client("comprehend").stop_targeted_sentiment_detection_job
method.
boto3 documentation
await def stop_targeted_sentiment_detection_job(
self,
*,
JobId: str,
) -> StopTargetedSentimentDetectionJobResponseTypeDef: # (1)
...
kwargs: StopTargetedSentimentDetectionJobRequestRequestTypeDef = { # (1)
"JobId": ...,
}
parent.stop_targeted_sentiment_detection_job(**kwargs)
stop_training_document_classifier
Stops a document classifier training job while in progress.
Type annotations and code completion for session.client("comprehend").stop_training_document_classifier
method.
boto3 documentation
await def stop_training_document_classifier(
self,
*,
DocumentClassifierArn: str,
) -> Dict[str, Any]:
...
kwargs: StopTrainingDocumentClassifierRequestRequestTypeDef = { # (1)
"DocumentClassifierArn": ...,
}
parent.stop_training_document_classifier(**kwargs)
stop_training_entity_recognizer
Stops an entity recognizer training job while in progress.
Type annotations and code completion for session.client("comprehend").stop_training_entity_recognizer
method.
boto3 documentation
await def stop_training_entity_recognizer(
self,
*,
EntityRecognizerArn: str,
) -> Dict[str, Any]:
...
kwargs: StopTrainingEntityRecognizerRequestRequestTypeDef = { # (1)
"EntityRecognizerArn": ...,
}
parent.stop_training_entity_recognizer(**kwargs)
tag_resource
Associates a specific tag with an Amazon Comprehend resource.
Type annotations and code completion for session.client("comprehend").tag_resource
method.
boto3 documentation
await def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes a specific tag associated with an Amazon Comprehend resource.
Type annotations and code completion for session.client("comprehend").untag_resource
method.
boto3 documentation
await def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_endpoint
Updates information about the specified endpoint.
Type annotations and code completion for session.client("comprehend").update_endpoint
method.
boto3 documentation
await def update_endpoint(
self,
*,
EndpointArn: str,
DesiredModelArn: str = ...,
DesiredInferenceUnits: int = ...,
DesiredDataAccessRoleArn: str = ...,
) -> Dict[str, Any]:
...
kwargs: UpdateEndpointRequestRequestTypeDef = { # (1)
"EndpointArn": ...,
}
parent.update_endpoint(**kwargs)
__aenter__
Type annotations and code completion for session.client("comprehend").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("comprehend").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("comprehend").get_paginator
method with overloads.
client.get_paginator("list_document_classification_jobs")
-> ListDocumentClassificationJobsPaginatorclient.get_paginator("list_document_classifiers")
-> ListDocumentClassifiersPaginatorclient.get_paginator("list_dominant_language_detection_jobs")
-> ListDominantLanguageDetectionJobsPaginatorclient.get_paginator("list_entities_detection_jobs")
-> ListEntitiesDetectionJobsPaginatorclient.get_paginator("list_entity_recognizers")
-> ListEntityRecognizersPaginatorclient.get_paginator("list_key_phrases_detection_jobs")
-> ListKeyPhrasesDetectionJobsPaginatorclient.get_paginator("list_sentiment_detection_jobs")
-> ListSentimentDetectionJobsPaginatorclient.get_paginator("list_topics_detection_jobs")
-> ListTopicsDetectionJobsPaginator