- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DescribeEntityRecognizerCommand
Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { ComprehendClient, DescribeEntityRecognizerCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
// const { ComprehendClient, DescribeEntityRecognizerCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
const client = new ComprehendClient(config);
const input = { // DescribeEntityRecognizerRequest
EntityRecognizerArn: "STRING_VALUE", // required
};
const command = new DescribeEntityRecognizerCommand(input);
const response = await client.send(command);
// { // DescribeEntityRecognizerResponse
// EntityRecognizerProperties: { // EntityRecognizerProperties
// EntityRecognizerArn: "STRING_VALUE",
// LanguageCode: "en" || "es" || "fr" || "de" || "it" || "pt" || "ar" || "hi" || "ja" || "ko" || "zh" || "zh-TW",
// Status: "SUBMITTED" || "TRAINING" || "DELETING" || "STOP_REQUESTED" || "STOPPED" || "IN_ERROR" || "TRAINED" || "TRAINED_WITH_WARNING",
// Message: "STRING_VALUE",
// SubmitTime: new Date("TIMESTAMP"),
// EndTime: new Date("TIMESTAMP"),
// TrainingStartTime: new Date("TIMESTAMP"),
// TrainingEndTime: new Date("TIMESTAMP"),
// InputDataConfig: { // EntityRecognizerInputDataConfig
// DataFormat: "COMPREHEND_CSV" || "AUGMENTED_MANIFEST",
// EntityTypes: [ // EntityTypesList // required
// { // EntityTypesListItem
// Type: "STRING_VALUE", // required
// },
// ],
// Documents: { // EntityRecognizerDocuments
// S3Uri: "STRING_VALUE", // required
// TestS3Uri: "STRING_VALUE",
// InputFormat: "ONE_DOC_PER_FILE" || "ONE_DOC_PER_LINE",
// },
// Annotations: { // EntityRecognizerAnnotations
// S3Uri: "STRING_VALUE", // required
// TestS3Uri: "STRING_VALUE",
// },
// EntityList: { // EntityRecognizerEntityList
// S3Uri: "STRING_VALUE", // required
// },
// AugmentedManifests: [ // EntityRecognizerAugmentedManifestsList
// { // AugmentedManifestsListItem
// S3Uri: "STRING_VALUE", // required
// Split: "TRAIN" || "TEST",
// AttributeNames: [ // AttributeNamesList // required
// "STRING_VALUE",
// ],
// AnnotationDataS3Uri: "STRING_VALUE",
// SourceDocumentsS3Uri: "STRING_VALUE",
// DocumentType: "PLAIN_TEXT_DOCUMENT" || "SEMI_STRUCTURED_DOCUMENT",
// },
// ],
// },
// RecognizerMetadata: { // EntityRecognizerMetadata
// NumberOfTrainedDocuments: Number("int"),
// NumberOfTestDocuments: Number("int"),
// EvaluationMetrics: { // EntityRecognizerEvaluationMetrics
// Precision: Number("double"),
// Recall: Number("double"),
// F1Score: Number("double"),
// },
// EntityTypes: [ // EntityRecognizerMetadataEntityTypesList
// { // EntityRecognizerMetadataEntityTypesListItem
// Type: "STRING_VALUE",
// EvaluationMetrics: { // EntityTypesEvaluationMetrics
// Precision: Number("double"),
// Recall: Number("double"),
// F1Score: Number("double"),
// },
// NumberOfTrainMentions: Number("int"),
// },
// ],
// },
// DataAccessRoleArn: "STRING_VALUE",
// VolumeKmsKeyId: "STRING_VALUE",
// VpcConfig: { // VpcConfig
// SecurityGroupIds: [ // SecurityGroupIds // required
// "STRING_VALUE",
// ],
// Subnets: [ // Subnets // required
// "STRING_VALUE",
// ],
// },
// ModelKmsKeyId: "STRING_VALUE",
// VersionName: "STRING_VALUE",
// SourceModelArn: "STRING_VALUE",
// FlywheelArn: "STRING_VALUE",
// OutputDataConfig: { // EntityRecognizerOutputDataConfig
// FlywheelStatsS3Prefix: "STRING_VALUE",
// },
// },
// };
DescribeEntityRecognizerCommand Input
See DescribeEntityRecognizerCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
EntityRecognizerArn Required | string | undefined | The Amazon Resource Name (ARN) that identifies the entity recognizer. |
DescribeEntityRecognizerCommand Output
See DescribeEntityRecognizerCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
EntityRecognizerProperties | EntityRecognizerProperties | undefined | Describes information associated with an entity recognizer. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InternalServerException | server | An internal server error occurred. Retry your request. |
InvalidRequestException | client | The request is invalid. |
ResourceNotFoundException | client | The specified resource ARN was not found. Check the ARN and try your request again. |
TooManyRequestsException | client | The number of requests exceeds the limit. Resubmit your request later. |
ComprehendServiceException | Base exception class for all service exceptions from Comprehend service. |