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

Detailed information about the accuracy of an entity recognizer. *

See Also:

AWS * API Reference

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

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.

*/ inline double GetPrecision() const{ return m_precision; } /** *

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.

*/ inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; } /** *

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.

*/ inline void SetPrecision(double value) { m_precisionHasBeenSet = true; m_precision = value; } /** *

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.

*/ inline EntityRecognizerEvaluationMetrics& WithPrecision(double value) { SetPrecision(value); return *this;} /** *

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.

*/ inline double GetRecall() const{ return m_recall; } /** *

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.

*/ inline bool RecallHasBeenSet() const { return m_recallHasBeenSet; } /** *

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.

*/ inline void SetRecall(double value) { m_recallHasBeenSet = true; m_recall = value; } /** *

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.

*/ inline EntityRecognizerEvaluationMetrics& WithRecall(double value) { SetRecall(value); return *this;} /** *

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.

*/ inline double GetF1Score() const{ return m_f1Score; } /** *

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.

*/ inline bool F1ScoreHasBeenSet() const { return m_f1ScoreHasBeenSet; } /** *

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.

*/ inline void SetF1Score(double value) { m_f1ScoreHasBeenSet = true; m_f1Score = value; } /** *

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.

*/ inline EntityRecognizerEvaluationMetrics& WithF1Score(double value) { SetF1Score(value); return *this;} private: double m_precision; bool m_precisionHasBeenSet = false; double m_recall; bool m_recallHasBeenSet = false; double m_f1Score; bool m_f1ScoreHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws