/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Detailed information about an entity recognizer.

See Also:

* AWS * API Reference

*/ class EntityRecognizerMetadata { public: AWS_COMPREHEND_API EntityRecognizerMetadata(); AWS_COMPREHEND_API EntityRecognizerMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API EntityRecognizerMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of documents in the input data that were used to train the entity * recognizer. Typically this is 80 to 90 percent of the input documents.

*/ inline int GetNumberOfTrainedDocuments() const{ return m_numberOfTrainedDocuments; } /** *

The number of documents in the input data that were used to train the entity * recognizer. Typically this is 80 to 90 percent of the input documents.

*/ inline bool NumberOfTrainedDocumentsHasBeenSet() const { return m_numberOfTrainedDocumentsHasBeenSet; } /** *

The number of documents in the input data that were used to train the entity * recognizer. Typically this is 80 to 90 percent of the input documents.

*/ inline void SetNumberOfTrainedDocuments(int value) { m_numberOfTrainedDocumentsHasBeenSet = true; m_numberOfTrainedDocuments = value; } /** *

The number of documents in the input data that were used to train the entity * recognizer. Typically this is 80 to 90 percent of the input documents.

*/ inline EntityRecognizerMetadata& WithNumberOfTrainedDocuments(int value) { SetNumberOfTrainedDocuments(value); return *this;} /** *

The number of documents in the input data that were used to test the entity * recognizer. Typically this is 10 to 20 percent of the input documents.

*/ inline int GetNumberOfTestDocuments() const{ return m_numberOfTestDocuments; } /** *

The number of documents in the input data that were used to test the entity * recognizer. Typically this is 10 to 20 percent of the input documents.

*/ inline bool NumberOfTestDocumentsHasBeenSet() const { return m_numberOfTestDocumentsHasBeenSet; } /** *

The number of documents in the input data that were used to test the entity * recognizer. Typically this is 10 to 20 percent of the input documents.

*/ inline void SetNumberOfTestDocuments(int value) { m_numberOfTestDocumentsHasBeenSet = true; m_numberOfTestDocuments = value; } /** *

The number of documents in the input data that were used to test the entity * recognizer. Typically this is 10 to 20 percent of the input documents.

*/ inline EntityRecognizerMetadata& WithNumberOfTestDocuments(int value) { SetNumberOfTestDocuments(value); return *this;} /** *

Detailed information about the accuracy of an entity recognizer.

*/ inline const EntityRecognizerEvaluationMetrics& GetEvaluationMetrics() const{ return m_evaluationMetrics; } /** *

Detailed information about the accuracy of an entity recognizer.

*/ inline bool EvaluationMetricsHasBeenSet() const { return m_evaluationMetricsHasBeenSet; } /** *

Detailed information about the accuracy of an entity recognizer.

*/ inline void SetEvaluationMetrics(const EntityRecognizerEvaluationMetrics& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = value; } /** *

Detailed information about the accuracy of an entity recognizer.

*/ inline void SetEvaluationMetrics(EntityRecognizerEvaluationMetrics&& value) { m_evaluationMetricsHasBeenSet = true; m_evaluationMetrics = std::move(value); } /** *

Detailed information about the accuracy of an entity recognizer.

*/ inline EntityRecognizerMetadata& WithEvaluationMetrics(const EntityRecognizerEvaluationMetrics& value) { SetEvaluationMetrics(value); return *this;} /** *

Detailed information about the accuracy of an entity recognizer.

*/ inline EntityRecognizerMetadata& WithEvaluationMetrics(EntityRecognizerEvaluationMetrics&& value) { SetEvaluationMetrics(std::move(value)); return *this;} /** *

Entity types from the metadata of an entity recognizer.

*/ inline const Aws::Vector& GetEntityTypes() const{ return m_entityTypes; } /** *

Entity types from the metadata of an entity recognizer.

*/ inline bool EntityTypesHasBeenSet() const { return m_entityTypesHasBeenSet; } /** *

Entity types from the metadata of an entity recognizer.

*/ inline void SetEntityTypes(const Aws::Vector& value) { m_entityTypesHasBeenSet = true; m_entityTypes = value; } /** *

Entity types from the metadata of an entity recognizer.

*/ inline void SetEntityTypes(Aws::Vector&& value) { m_entityTypesHasBeenSet = true; m_entityTypes = std::move(value); } /** *

Entity types from the metadata of an entity recognizer.

*/ inline EntityRecognizerMetadata& WithEntityTypes(const Aws::Vector& value) { SetEntityTypes(value); return *this;} /** *

Entity types from the metadata of an entity recognizer.

*/ inline EntityRecognizerMetadata& WithEntityTypes(Aws::Vector&& value) { SetEntityTypes(std::move(value)); return *this;} /** *

Entity types from the metadata of an entity recognizer.

*/ inline EntityRecognizerMetadata& AddEntityTypes(const EntityRecognizerMetadataEntityTypesListItem& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(value); return *this; } /** *

Entity types from the metadata of an entity recognizer.

*/ inline EntityRecognizerMetadata& AddEntityTypes(EntityRecognizerMetadataEntityTypesListItem&& value) { m_entityTypesHasBeenSet = true; m_entityTypes.push_back(std::move(value)); return *this; } private: int m_numberOfTrainedDocuments; bool m_numberOfTrainedDocumentsHasBeenSet = false; int m_numberOfTestDocuments; bool m_numberOfTestDocumentsHasBeenSet = false; EntityRecognizerEvaluationMetrics m_evaluationMetrics; bool m_evaluationMetricsHasBeenSet = false; Aws::Vector m_entityTypes; bool m_entityTypesHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws