/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.comprehend.model; import java.io.Serializable; /** *
* Detailed information about the accuracy of an entity recognizer. *
*/ public class EntityRecognizerEvaluationMetrics implements Serializable { /** ** 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. *
*/ private Double precision; /** ** 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. *
*/ private Double recall; /** *
* 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.
*
* 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. *
* * @return* 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. *
*/ public Double getPrecision() { return 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. *
* * @param 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. *
*/ public void setPrecision(Double precision) { this.precision = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EntityRecognizerEvaluationMetrics withPrecision(Double precision) { this.precision = precision; 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. *
* * @return* 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. *
*/ public Double getRecall() { return 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. *
* * @param 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. *
*/ public void setRecall(Double recall) { this.recall = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EntityRecognizerEvaluationMetrics withRecall(Double recall) { this.recall = recall; 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param 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.
*