openapi: 3.0.0 info: version: '2017-11-27' x-release: v4 title: 'Amazon Comprehend #X Amz Target=Comprehend 20171127.BatchDetectDominantLanguage #X Amz Target=Comprehend 20171127.BatchDetectDominantLanguage #X Amz Target=Comprehend 20171127.DescribeEntityRecognizer API' description: Amazon Comprehend is an Amazon Web Services service for gaining insight into the content of documents. Use these actions to determine the topics contained in your documents, the topics they discuss, the predominant sentiment expressed in them, the predominant language used, and more. x-logo: url: https://twitter.com/awscloud/profile_image?size=original backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: comprehend x-aws-signingName: comprehend x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/comprehend-2017-11-27.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://comprehend.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon Comprehend multi-region endpoint - url: https://comprehend.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon Comprehend multi-region endpoint - url: http://comprehend.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon Comprehend endpoint for China (Beijing) and China (Ningxia) - url: https://comprehend.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon Comprehend endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: '#X Amz Target=Comprehend 20171127.DescribeEntityRecognizer' paths: /#X-Amz-Target=Comprehend_20171127.DescribeEntityRecognizer: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: DescribeEntityRecognizer description: Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeEntityRecognizerResponse' examples: DescribeEntityRecognizer200Example: summary: Default DescribeEntityRecognizer 200 x-microcks-default: true value: EntityRecognizerProperties: example '480': description: InvalidRequestException content: application/json: schema: $ref: '#/components/schemas/InvalidRequestException' examples: DescribeEntityRecognizer480Example: summary: Default DescribeEntityRecognizer 480 x-microcks-default: true value: example '481': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' examples: DescribeEntityRecognizer481Example: summary: Default DescribeEntityRecognizer 481 x-microcks-default: true value: example '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' examples: DescribeEntityRecognizer482Example: summary: Default DescribeEntityRecognizer 482 x-microcks-default: true value: example '483': description: InternalServerException content: application/json: schema: $ref: '#/components/schemas/InternalServerException' examples: DescribeEntityRecognizer483Example: summary: Default DescribeEntityRecognizer 483 x-microcks-default: true value: example requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeEntityRecognizerRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Comprehend_20171127.DescribeEntityRecognizer summary: Amazon Comprehend Describe Entity Recognizer x-microcks-operation: delay: 0 dispatcher: FALLBACK tags: - '#X Amz Target=Comprehend 20171127.DescribeEntityRecognizer' components: schemas: IamRoleArn: type: string pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+ minLength: 20 maxLength: 2048 LanguageCode: type: string enum: - en - es - fr - de - it - pt - ar - hi - ja - ko - zh - zh-TW SecurityGroupId: type: string pattern: '[-0-9a-zA-Z]+' minLength: 1 maxLength: 32 EntityTypesListItem: type: object required: - Type properties: Type: allOf: - $ref: '#/components/schemas/EntityTypeName' - description: '
An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.
Entity types must not contain the following invalid characters: \n (line break), \\n (escaped line break, \r (carriage return), \\r (escaped carriage return), \t (tab), \\t (escaped tab), space, and , (comma).
' description: An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer. EntityTypeName: type: string pattern: ^(?![^\n\r\t,]*\\n|\\r|\\t)[^\n\r\t,]+$ maxLength: 64 SubnetId: type: string pattern: '[-0-9a-zA-Z]+' minLength: 1 maxLength: 32 AugmentedManifestsListItem: type: object required: - S3Uri - AttributeNames properties: S3Uri: allOf: - $ref: '#/components/schemas/S3Uri' - description: The Amazon S3 location of the augmented manifest file. Split: allOf: - $ref: '#/components/schemas/Split' - description:The purpose of the data you've provided in the augmented manifest. You can either train or test this data. If you don't specify, the default is train.
TRAIN - all of the documents in the manifest will be used for training. If no test documents are provided, Amazon Comprehend will automatically reserve a portion of the training documents for testing.
TEST - all of the documents in the manifest will be used for testing.
AttributeNames: allOf: - $ref: '#/components/schemas/AttributeNamesList' - description:The JSON attribute that contains the annotations for your training documents. The number of attribute names that you specify depends on whether your augmented manifest file is the output of a single labeling job or a chained labeling job.
If your file is the output of a single labeling job, specify the LabelAttributeName key that was used when the job was created in Ground Truth.
If your file is the output of a chained labeling job, specify the LabelAttributeName key for one or more jobs in the chain. Each LabelAttributeName key provides the annotations from an individual job.
AnnotationDataS3Uri: allOf: - $ref: '#/components/schemas/S3Uri' - description: The S3 prefix to the annotation files that are referred in the augmented manifest file. SourceDocumentsS3Uri: allOf: - $ref: '#/components/schemas/S3Uri' - description: The S3 prefix to the source files (PDFs) that are referred to in the augmented manifest file. DocumentType: allOf: - $ref: '#/components/schemas/AugmentedManifestsDocumentTypeFormat' - description:The type of augmented manifest. PlainTextDocument or SemiStructuredDocument. If you don't specify, the default is PlainTextDocument.
PLAIN_TEXT_DOCUMENT A document type that represents any unicode text that is encoded in UTF-8.
SEMI_STRUCTURED_DOCUMENT A document type with positional and structural context, like a PDF. For training with Amazon Comprehend, only PDFs are supported. For inference, Amazon Comprehend support PDFs, DOCX and TXT.
Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0. '
description: 'Detailed information about the accuracy of an entity recognizer for a specific entity type. '
EntityRecognizerEvaluationMetrics:
type: object
properties:
Precision:
allOf:
- $ref: '#/components/schemas/Double'
- description: 'A measure of the usefulness of the recognizer results in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones. '
Recall:
allOf:
- $ref: '#/components/schemas/Double'
- description: A measure of how complete the recognizer results are for the test data. High recall means that the recognizer returned most of the relevant results.
F1Score:
allOf:
- $ref: '#/components/schemas/Double'
- description: 'A measure of how accurate the recognizer results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score. '
description: 'Detailed information about the accuracy of an entity recognizer. '
VersionName:
type: string
pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
maxLength: 63
ResourceNotFoundException: {}
EntityTypesList:
type: array
items:
$ref: '#/components/schemas/EntityTypesListItem'
EntityRecognizerProperties:
type: object
properties:
EntityRecognizerArn:
allOf:
- $ref: '#/components/schemas/EntityRecognizerArn'
- description: The Amazon Resource Name (ARN) that identifies the entity recognizer.
LanguageCode:
allOf:
- $ref: '#/components/schemas/LanguageCode'
- description: ' The language of the input documents. All documents must be in the same language. Only English ("en") is currently supported.'
Status:
allOf:
- $ref: '#/components/schemas/ModelStatus'
- description: Provides the status of the entity recognizer.
Message:
allOf:
- $ref: '#/components/schemas/AnyLengthString'
- description: ' A description of the status of the recognizer.'
SubmitTime:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The time that the recognizer was submitted for processing.
EndTime:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The time that the recognizer creation completed.
TrainingStartTime:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The time that training of the entity recognizer started.
TrainingEndTime:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The time that training of the entity recognizer was completed.
InputDataConfig:
allOf:
- $ref: '#/components/schemas/EntityRecognizerInputDataConfig'
- description: The input data properties of an entity recognizer.
RecognizerMetadata:
allOf:
- $ref: '#/components/schemas/EntityRecognizerMetadata'
- description: ' Provides information about an entity recognizer.'
DataAccessRoleArn:
allOf:
- $ref: '#/components/schemas/IamRoleArn'
- description: ' The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.'
VolumeKmsKeyId:
allOf:
- $ref: '#/components/schemas/KmsKeyId'
- description: 'ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:
KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
The format of your training data:
COMPREHEND_CSV: A CSV file that supplements your training documents. The CSV file contains information about the custom entities that your trained model will detect. The required format of the file depends on whether you are providing annotations or an entity list.
If you use this value, you must provide your CSV file by using either the Annotations or EntityList parameters. You must provide your training documents by using the Documents parameter.
AUGMENTED_MANIFEST: A labeled dataset that is produced by Amazon SageMaker Ground Truth. This file is in JSON lines format. Each line is a complete JSON object that contains a training document and its labels. Each label annotates a named entity in the training document.
If you use this value, you must provide the AugmentedManifests parameter in your request.
If you don''t specify a value, Amazon Comprehend uses COMPREHEND_CSV as the default.
The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer. Any entity types that you don''t specify are ignored.
A maximum of 25 entity types can be used at one time to train an entity recognizer. Entity types must not contain the following invalid characters: \n (line break), \\n (escaped line break), \r (carriage return), \\r (escaped carriage return), \t (tab), \\t (escaped tab), space, and , (comma).
' Documents: allOf: - $ref: '#/components/schemas/EntityRecognizerDocuments' - description:The S3 location of the folder that contains the training documents for your custom entity recognizer.
This parameter is required if you set DataFormat to COMPREHEND_CSV.
A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.
This parameter is required if you set DataFormat to AUGMENTED_MANIFEST.