Comprehend module#
Index > Comprehend
Auto-generated documentation for Comprehend type annotations stubs module mypy-boto3-comprehend.
How to install#
Generate locally (recommended)#
You can generate type annotations for boto3
package locally with mypy_boto3_builder
.
Use uv for build isolation.
- Run mypy-boto3-builder in your package root directory:
uvx --with 'boto3==1.35.86' mypy_boto3_builder
- Select
boto3-stubs
AWS SDK. - Add
Comprehend
service. - Use provided commands to install generated packages.
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and Comprehend
.
From PyPI with pip#
Install boto3-stubs
for Comprehend
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[comprehend]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[comprehend]'
# standalone installation
python -m pip install mypy-boto3-comprehend
How to uninstall#
python -m pip uninstall -y mypy-boto3-comprehend
Usage#
Code samples can be found in Examples.
ComprehendClient#
Type annotations and code completion for boto3.client("comprehend")
as ComprehendClient
boto3 documentation
# ComprehendClient usage example
from boto3.session import Session
from mypy_boto3_comprehend.client import ComprehendClient
def get_client() -> ComprehendClient:
return Session().client("comprehend")
Paginators#
Type annotations and code completion for paginators
from boto3.client("comprehend").get_paginator("...")
.
# ListDocumentClassificationJobsPaginator usage example
from boto3.session import Session
from mypy_boto3_comprehend.paginator import ListDocumentClassificationJobsPaginator
def get_list_document_classification_jobs_paginator() -> ListDocumentClassificationJobsPaginator:
return Session().client("comprehend").get_paginator("list_document_classification_jobs"))
- ListDocumentClassificationJobsPaginator
- ListDocumentClassifiersPaginator
- ListDominantLanguageDetectionJobsPaginator
- ListEndpointsPaginator
- ListEntitiesDetectionJobsPaginator
- ListEntityRecognizersPaginator
- ListKeyPhrasesDetectionJobsPaginator
- ListPiiEntitiesDetectionJobsPaginator
- ListSentimentDetectionJobsPaginator
- ListTopicsDetectionJobsPaginator
Literals#
Type annotations for literals used in methods and schema.
# AugmentedManifestsDocumentTypeFormatType usage example
from mypy_boto3_comprehend.literals import AugmentedManifestsDocumentTypeFormatType
def get_value() -> AugmentedManifestsDocumentTypeFormatType:
return "PLAIN_TEXT_DOCUMENT"
- AugmentedManifestsDocumentTypeFormatType
- BlockTypeType
- DatasetDataFormatType
- DatasetStatusType
- DatasetTypeType
- DocumentClassifierDataFormatType
- DocumentClassifierDocumentTypeFormatType
- DocumentClassifierModeType
- DocumentReadActionType
- DocumentReadFeatureTypesType
- DocumentReadModeType
- DocumentTypeType
- EndpointStatusType
- EntityRecognizerDataFormatType
- EntityTypeType
- FlywheelIterationStatusType
- FlywheelStatusType
- InputFormatType
- JobStatusType
- LanguageCodeType
- ListDocumentClassificationJobsPaginatorName
- ListDocumentClassifiersPaginatorName
- ListDominantLanguageDetectionJobsPaginatorName
- ListEndpointsPaginatorName
- ListEntitiesDetectionJobsPaginatorName
- ListEntityRecognizersPaginatorName
- ListKeyPhrasesDetectionJobsPaginatorName
- ListPiiEntitiesDetectionJobsPaginatorName
- ListSentimentDetectionJobsPaginatorName
- ListTopicsDetectionJobsPaginatorName
- ModelStatusType
- ModelTypeType
- PageBasedErrorCodeType
- PageBasedWarningCodeType
- PartOfSpeechTagTypeType
- PiiEntitiesDetectionMaskModeType
- PiiEntitiesDetectionModeType
- PiiEntityTypeType
- RelationshipTypeType
- SentimentTypeType
- SplitType
- SyntaxLanguageCodeType
- TargetedSentimentEntityTypeType
- ToxicContentTypeType
- ComprehendServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- AugmentedManifestsListItemOutputTypeDef
- AugmentedManifestsListItemTypeDef
- DominantLanguageTypeDef
- BatchDetectDominantLanguageRequestRequestTypeDef
- BatchItemErrorTypeDef
- ResponseMetadataTypeDef
- BatchDetectEntitiesRequestRequestTypeDef
- KeyPhraseTypeDef
- BatchDetectKeyPhrasesRequestRequestTypeDef
- SentimentScoreTypeDef
- BatchDetectSentimentRequestRequestTypeDef
- BatchDetectSyntaxRequestRequestTypeDef
- BatchDetectTargetedSentimentRequestRequestTypeDef
- BlobTypeDef
- ChildBlockTypeDef
- RelationshipsListItemTypeDef
- BoundingBoxTypeDef
- ClassifierEvaluationMetricsTypeDef
- DocumentReaderConfigTypeDef
- DocumentClassTypeDef
- DocumentLabelTypeDef
- DocumentTypeListItemTypeDef
- ErrorsListItemTypeDef
- WarningsListItemTypeDef
- ContainsPiiEntitiesRequestRequestTypeDef
- EntityLabelTypeDef
- TagTypeDef
- DocumentClassifierOutputDataConfigTypeDef
- VpcConfigTypeDef
- VpcConfigOutputTypeDef
- DatasetAugmentedManifestsListItemTypeDef
- DatasetDocumentClassifierInputDataConfigTypeDef
- DatasetEntityRecognizerAnnotationsTypeDef
- DatasetEntityRecognizerDocumentsTypeDef
- DatasetEntityRecognizerEntityListTypeDef
- TimestampTypeDef
- DatasetPropertiesTypeDef
- DeleteDocumentClassifierRequestRequestTypeDef
- DeleteEndpointRequestRequestTypeDef
- DeleteEntityRecognizerRequestRequestTypeDef
- DeleteFlywheelRequestRequestTypeDef
- DeleteResourcePolicyRequestRequestTypeDef
- DescribeDatasetRequestRequestTypeDef
- DescribeDocumentClassificationJobRequestRequestTypeDef
- DescribeDocumentClassifierRequestRequestTypeDef
- DescribeDominantLanguageDetectionJobRequestRequestTypeDef
- DescribeEndpointRequestRequestTypeDef
- EndpointPropertiesTypeDef
- DescribeEntitiesDetectionJobRequestRequestTypeDef
- DescribeEntityRecognizerRequestRequestTypeDef
- DescribeEventsDetectionJobRequestRequestTypeDef
- DescribeFlywheelIterationRequestRequestTypeDef
- DescribeFlywheelRequestRequestTypeDef
- DescribeKeyPhrasesDetectionJobRequestRequestTypeDef
- DescribePiiEntitiesDetectionJobRequestRequestTypeDef
- DescribeResourcePolicyRequestRequestTypeDef
- DescribeSentimentDetectionJobRequestRequestTypeDef
- DescribeTargetedSentimentDetectionJobRequestRequestTypeDef
- DescribeTopicsDetectionJobRequestRequestTypeDef
- DetectDominantLanguageRequestRequestTypeDef
- DetectKeyPhrasesRequestRequestTypeDef
- DetectPiiEntitiesRequestRequestTypeDef
- PiiEntityTypeDef
- DetectSentimentRequestRequestTypeDef
- DetectSyntaxRequestRequestTypeDef
- DetectTargetedSentimentRequestRequestTypeDef
- TextSegmentTypeDef
- DocumentClassificationConfigOutputTypeDef
- DocumentClassificationConfigTypeDef
- OutputDataConfigTypeDef
- DocumentClassifierDocumentsTypeDef
- DocumentReaderConfigOutputTypeDef
- DocumentClassifierSummaryTypeDef
- ExtractedCharactersListItemTypeDef
- EntityTypesListItemTypeDef
- EntityRecognizerAnnotationsTypeDef
- EntityRecognizerDocumentsTypeDef
- EntityRecognizerEntityListTypeDef
- EntityRecognizerEvaluationMetricsTypeDef
- EntityTypesEvaluationMetricsTypeDef
- EntityRecognizerOutputDataConfigTypeDef
- EntityRecognizerSummaryTypeDef
- FlywheelModelEvaluationMetricsTypeDef
- FlywheelSummaryTypeDef
- PointTypeDef
- PaginatorConfigTypeDef
- ListDocumentClassifierSummariesRequestRequestTypeDef
- ListEntityRecognizerSummariesRequestRequestTypeDef
- ListTagsForResourceRequestRequestTypeDef
- PartOfSpeechTagTypeDef
- PiiOutputDataConfigTypeDef
- RedactionConfigOutputTypeDef
- PutResourcePolicyRequestRequestTypeDef
- RedactionConfigTypeDef
- StartFlywheelIterationRequestRequestTypeDef
- StopDominantLanguageDetectionJobRequestRequestTypeDef
- StopEntitiesDetectionJobRequestRequestTypeDef
- StopEventsDetectionJobRequestRequestTypeDef
- StopKeyPhrasesDetectionJobRequestRequestTypeDef
- StopPiiEntitiesDetectionJobRequestRequestTypeDef
- StopSentimentDetectionJobRequestRequestTypeDef
- StopTargetedSentimentDetectionJobRequestRequestTypeDef
- StopTrainingDocumentClassifierRequestRequestTypeDef
- StopTrainingEntityRecognizerRequestRequestTypeDef
- ToxicContentTypeDef
- UntagResourceRequestRequestTypeDef
- UpdateEndpointRequestRequestTypeDef
- AugmentedManifestsListItemUnionTypeDef
- BatchDetectDominantLanguageItemResultTypeDef
- CreateDatasetResponseTypeDef
- CreateDocumentClassifierResponseTypeDef
- CreateEndpointResponseTypeDef
- CreateEntityRecognizerResponseTypeDef
- CreateFlywheelResponseTypeDef
- DescribeResourcePolicyResponseTypeDef
- DetectDominantLanguageResponseTypeDef
- ImportModelResponseTypeDef
- PutResourcePolicyResponseTypeDef
- StartDocumentClassificationJobResponseTypeDef
- StartDominantLanguageDetectionJobResponseTypeDef
- StartEntitiesDetectionJobResponseTypeDef
- StartEventsDetectionJobResponseTypeDef
- StartFlywheelIterationResponseTypeDef
- StartKeyPhrasesDetectionJobResponseTypeDef
- StartPiiEntitiesDetectionJobResponseTypeDef
- StartSentimentDetectionJobResponseTypeDef
- StartTargetedSentimentDetectionJobResponseTypeDef
- StartTopicsDetectionJobResponseTypeDef
- StopDominantLanguageDetectionJobResponseTypeDef
- StopEntitiesDetectionJobResponseTypeDef
- StopEventsDetectionJobResponseTypeDef
- StopKeyPhrasesDetectionJobResponseTypeDef
- StopPiiEntitiesDetectionJobResponseTypeDef
- StopSentimentDetectionJobResponseTypeDef
- StopTargetedSentimentDetectionJobResponseTypeDef
- UpdateEndpointResponseTypeDef
- BatchDetectKeyPhrasesItemResultTypeDef
- DetectKeyPhrasesResponseTypeDef
- BatchDetectSentimentItemResultTypeDef
- DetectSentimentResponseTypeDef
- MentionSentimentTypeDef
- BlockReferenceTypeDef
- ClassifierMetadataTypeDef
- ClassifyDocumentRequestRequestTypeDef
- DetectEntitiesRequestRequestTypeDef
- ContainsPiiEntitiesResponseTypeDef
- CreateEndpointRequestRequestTypeDef
- ImportModelRequestRequestTypeDef
- ListTagsForResourceResponseTypeDef
- TagResourceRequestRequestTypeDef
- DataSecurityConfigOutputTypeDef
- VpcConfigUnionTypeDef
- DatasetEntityRecognizerInputDataConfigTypeDef
- DatasetFilterTypeDef
- DocumentClassificationJobFilterTypeDef
- DocumentClassifierFilterTypeDef
- DominantLanguageDetectionJobFilterTypeDef
- EndpointFilterTypeDef
- EntitiesDetectionJobFilterTypeDef
- EntityRecognizerFilterTypeDef
- EventsDetectionJobFilterTypeDef
- FlywheelFilterTypeDef
- FlywheelIterationFilterTypeDef
- KeyPhrasesDetectionJobFilterTypeDef
- PiiEntitiesDetectionJobFilterTypeDef
- SentimentDetectionJobFilterTypeDef
- TargetedSentimentDetectionJobFilterTypeDef
- TopicsDetectionJobFilterTypeDef
- DescribeDatasetResponseTypeDef
- ListDatasetsResponseTypeDef
- DescribeEndpointResponseTypeDef
- ListEndpointsResponseTypeDef
- DetectPiiEntitiesResponseTypeDef
- DetectToxicContentRequestRequestTypeDef
- DocumentClassificationConfigUnionTypeDef
- DocumentClassifierInputDataConfigOutputTypeDef
- DocumentReaderConfigUnionTypeDef
- InputDataConfigOutputTypeDef
- ListDocumentClassifierSummariesResponseTypeDef
- DocumentMetadataTypeDef
- EntityRecognitionConfigOutputTypeDef
- EntityRecognitionConfigTypeDef
- EntityRecognizerInputDataConfigOutputTypeDef
- EntityRecognizerMetadataEntityTypesListItemTypeDef
- ListEntityRecognizerSummariesResponseTypeDef
- FlywheelIterationPropertiesTypeDef
- ListFlywheelsResponseTypeDef
- GeometryTypeDef
- SyntaxTokenTypeDef
- ToxicLabelsTypeDef
- EntityRecognizerInputDataConfigTypeDef
- BatchDetectDominantLanguageResponseTypeDef
- BatchDetectKeyPhrasesResponseTypeDef
- BatchDetectSentimentResponseTypeDef
- TargetedSentimentMentionTypeDef
- EntityTypeDef
- DataSecurityConfigTypeDef
- UpdateDataSecurityConfigTypeDef
- DatasetInputDataConfigTypeDef
- ListDatasetsRequestRequestTypeDef
- ListDocumentClassificationJobsRequestPaginateTypeDef
- ListDocumentClassificationJobsRequestRequestTypeDef
- ListDocumentClassifiersRequestPaginateTypeDef
- ListDocumentClassifiersRequestRequestTypeDef
- ListDominantLanguageDetectionJobsRequestPaginateTypeDef
- ListDominantLanguageDetectionJobsRequestRequestTypeDef
- ListEndpointsRequestPaginateTypeDef
- ListEndpointsRequestRequestTypeDef
- ListEntitiesDetectionJobsRequestPaginateTypeDef
- ListEntitiesDetectionJobsRequestRequestTypeDef
- ListEntityRecognizersRequestPaginateTypeDef
- ListEntityRecognizersRequestRequestTypeDef
- ListEventsDetectionJobsRequestRequestTypeDef
- ListFlywheelsRequestRequestTypeDef
- ListFlywheelIterationHistoryRequestRequestTypeDef
- ListKeyPhrasesDetectionJobsRequestPaginateTypeDef
- ListKeyPhrasesDetectionJobsRequestRequestTypeDef
- ListPiiEntitiesDetectionJobsRequestPaginateTypeDef
- ListPiiEntitiesDetectionJobsRequestRequestTypeDef
- ListSentimentDetectionJobsRequestPaginateTypeDef
- ListSentimentDetectionJobsRequestRequestTypeDef
- ListTargetedSentimentDetectionJobsRequestRequestTypeDef
- ListTopicsDetectionJobsRequestPaginateTypeDef
- ListTopicsDetectionJobsRequestRequestTypeDef
- DocumentClassifierPropertiesTypeDef
- DocumentClassifierInputDataConfigTypeDef
- InputDataConfigTypeDef
- DocumentClassificationJobPropertiesTypeDef
- DominantLanguageDetectionJobPropertiesTypeDef
- EntitiesDetectionJobPropertiesTypeDef
- EventsDetectionJobPropertiesTypeDef
- KeyPhrasesDetectionJobPropertiesTypeDef
- PiiEntitiesDetectionJobPropertiesTypeDef
- SentimentDetectionJobPropertiesTypeDef
- TargetedSentimentDetectionJobPropertiesTypeDef
- TopicsDetectionJobPropertiesTypeDef
- ClassifyDocumentResponseTypeDef
- TaskConfigOutputTypeDef
- EntityRecognitionConfigUnionTypeDef
- EntityRecognizerMetadataTypeDef
- DescribeFlywheelIterationResponseTypeDef
- ListFlywheelIterationHistoryResponseTypeDef
- BlockTypeDef
- BatchDetectSyntaxItemResultTypeDef
- DetectSyntaxResponseTypeDef
- DetectToxicContentResponseTypeDef
- CreateEntityRecognizerRequestRequestTypeDef
- TargetedSentimentEntityTypeDef
- BatchDetectEntitiesItemResultTypeDef
- UpdateFlywheelRequestRequestTypeDef
- CreateDatasetRequestRequestTypeDef
- DescribeDocumentClassifierResponseTypeDef
- ListDocumentClassifiersResponseTypeDef
- CreateDocumentClassifierRequestRequestTypeDef
- StartDocumentClassificationJobRequestRequestTypeDef
- StartDominantLanguageDetectionJobRequestRequestTypeDef
- StartEntitiesDetectionJobRequestRequestTypeDef
- StartEventsDetectionJobRequestRequestTypeDef
- StartKeyPhrasesDetectionJobRequestRequestTypeDef
- StartPiiEntitiesDetectionJobRequestRequestTypeDef
- StartSentimentDetectionJobRequestRequestTypeDef
- StartTargetedSentimentDetectionJobRequestRequestTypeDef
- StartTopicsDetectionJobRequestRequestTypeDef
- DescribeDocumentClassificationJobResponseTypeDef
- ListDocumentClassificationJobsResponseTypeDef
- DescribeDominantLanguageDetectionJobResponseTypeDef
- ListDominantLanguageDetectionJobsResponseTypeDef
- DescribeEntitiesDetectionJobResponseTypeDef
- ListEntitiesDetectionJobsResponseTypeDef
- DescribeEventsDetectionJobResponseTypeDef
- ListEventsDetectionJobsResponseTypeDef
- DescribeKeyPhrasesDetectionJobResponseTypeDef
- ListKeyPhrasesDetectionJobsResponseTypeDef
- DescribePiiEntitiesDetectionJobResponseTypeDef
- ListPiiEntitiesDetectionJobsResponseTypeDef
- DescribeSentimentDetectionJobResponseTypeDef
- ListSentimentDetectionJobsResponseTypeDef
- DescribeTargetedSentimentDetectionJobResponseTypeDef
- ListTargetedSentimentDetectionJobsResponseTypeDef
- DescribeTopicsDetectionJobResponseTypeDef
- ListTopicsDetectionJobsResponseTypeDef
- FlywheelPropertiesTypeDef
- TaskConfigTypeDef
- EntityRecognizerPropertiesTypeDef
- DetectEntitiesResponseTypeDef
- BatchDetectSyntaxResponseTypeDef
- BatchDetectTargetedSentimentItemResultTypeDef
- DetectTargetedSentimentResponseTypeDef
- BatchDetectEntitiesResponseTypeDef
- DescribeFlywheelResponseTypeDef
- UpdateFlywheelResponseTypeDef
- CreateFlywheelRequestRequestTypeDef
- DescribeEntityRecognizerResponseTypeDef
- ListEntityRecognizersResponseTypeDef
- BatchDetectTargetedSentimentResponseTypeDef