/* * 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 an entity recognizer. *
*/ public class EntityRecognizerMetadata implements Serializable { /** ** 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. *
*/ private Integer numberOfTrainedDocuments; /** ** 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. *
*/ private Integer numberOfTestDocuments; /** ** Detailed information about the accuracy of an entity recognizer. *
*/ private EntityRecognizerEvaluationMetrics evaluationMetrics; /** ** Entity types from the metadata of an entity recognizer. *
*/ private java.util.List* 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. *
* * @return* 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. *
*/ public Integer getNumberOfTrainedDocuments() { return 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. *
* * @param 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. *
*/ public void setNumberOfTrainedDocuments(Integer numberOfTrainedDocuments) { this.numberOfTrainedDocuments = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EntityRecognizerMetadata withNumberOfTrainedDocuments(Integer numberOfTrainedDocuments) { this.numberOfTrainedDocuments = numberOfTrainedDocuments; 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. *
* * @return* 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. *
*/ public Integer getNumberOfTestDocuments() { return 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. *
* * @param 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. *
*/ public void setNumberOfTestDocuments(Integer numberOfTestDocuments) { this.numberOfTestDocuments = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EntityRecognizerMetadata withNumberOfTestDocuments(Integer numberOfTestDocuments) { this.numberOfTestDocuments = numberOfTestDocuments; return this; } /** ** Detailed information about the accuracy of an entity recognizer. *
* * @return* Detailed information about the accuracy of an entity recognizer. *
*/ public EntityRecognizerEvaluationMetrics getEvaluationMetrics() { return evaluationMetrics; } /** ** Detailed information about the accuracy of an entity recognizer. *
* * @param evaluationMetrics* Detailed information about the accuracy of an entity * recognizer. *
*/ public void setEvaluationMetrics(EntityRecognizerEvaluationMetrics evaluationMetrics) { this.evaluationMetrics = evaluationMetrics; } /** ** Detailed information about the accuracy of an entity recognizer. *
** Returns a reference to this object so that method calls can be chained * together. * * @param evaluationMetrics
* Detailed information about the accuracy of an entity * recognizer. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EntityRecognizerMetadata withEvaluationMetrics( EntityRecognizerEvaluationMetrics evaluationMetrics) { this.evaluationMetrics = evaluationMetrics; return this; } /** ** Entity types from the metadata of an entity recognizer. *
* * @return* Entity types from the metadata of an entity recognizer. *
*/ public java.util.List* Entity types from the metadata of an entity recognizer. *
* * @param entityTypes* Entity types from the metadata of an entity recognizer. *
*/ public void setEntityTypes( java.util.Collection* Entity types from the metadata of an entity recognizer. *
** Returns a reference to this object so that method calls can be chained * together. * * @param entityTypes
* Entity types from the metadata of an entity recognizer. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EntityRecognizerMetadata withEntityTypes( EntityRecognizerMetadataEntityTypesListItem... entityTypes) { if (getEntityTypes() == null) { this.entityTypes = new java.util.ArrayList* Entity types from the metadata of an entity recognizer. *
** Returns a reference to this object so that method calls can be chained * together. * * @param entityTypes
* Entity types from the metadata of an entity recognizer. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EntityRecognizerMetadata withEntityTypes( java.util.Collection