Class EvaluationSetItem.Builder
- java.lang.Object
-
- ai.extend.types.EvaluationSetItem.Builder
-
- All Implemented Interfaces:
EvaluationSetItem._FinalStage,EvaluationSetItem.EvaluationSetIdStage,EvaluationSetItem.ExpectedOutputStage,EvaluationSetItem.FileStage,EvaluationSetItem.IdStage
- Enclosing class:
- EvaluationSetItem
public static final class EvaluationSetItem.Builder extends java.lang.Object implements EvaluationSetItem.IdStage, EvaluationSetItem.EvaluationSetIdStage, EvaluationSetItem.FileStage, EvaluationSetItem.ExpectedOutputStage, EvaluationSetItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationSetItembuild()EvaluationSetItem.FileStageevaluationSetId(java.lang.String evaluationSetId)The ID of the evaluation set that this item belongs to.EvaluationSetItem._FinalStageexpectedOutput(ProvidedProcessorOutput expectedOutput)The expected output that will be used to evaluate the performance of the extractor, classifier, or splitter associated with the evaluation set.EvaluationSetItem.ExpectedOutputStagefile(FileSummary file)A summary of the file associated with the evaluation set item.EvaluationSetItem.Builderfrom(EvaluationSetItem other)EvaluationSetItem.EvaluationSetIdStageid(java.lang.String id)The ID of the evaluation set item.
-
-
-
Method Detail
-
from
public EvaluationSetItem.Builder from(EvaluationSetItem other)
- Specified by:
fromin interfaceEvaluationSetItem.IdStage
-
id
public EvaluationSetItem.EvaluationSetIdStage id(@NotNull java.lang.String id)
The ID of the evaluation set item.
Example:
"evi_kR9mNP12Qw4yTv8BdR3H"The ID of the evaluation set item.
Example:
"evi_kR9mNP12Qw4yTv8BdR3H"- Specified by:
idin interfaceEvaluationSetItem.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
evaluationSetId
public EvaluationSetItem.FileStage evaluationSetId(@NotNull java.lang.String evaluationSetId)
The ID of the evaluation set that this item belongs to.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"The ID of the evaluation set that this item belongs to.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"- Specified by:
evaluationSetIdin interfaceEvaluationSetItem.EvaluationSetIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
file
public EvaluationSetItem.ExpectedOutputStage file(@NotNull FileSummary file)
A summary of the file associated with the evaluation set item.
A summary of the file associated with the evaluation set item.
- Specified by:
filein interfaceEvaluationSetItem.FileStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
expectedOutput
public EvaluationSetItem._FinalStage expectedOutput(@NotNull ProvidedProcessorOutput expectedOutput)
The expected output that will be used to evaluate the performance of the extractor, classifier, or splitter associated with the evaluation set. This must conform to the output schema of the entity associated with the evaluation set.
The expected output that will be used to evaluate the performance of the extractor, classifier, or splitter associated with the evaluation set. This must conform to the output schema of the entity associated with the evaluation set.
- Specified by:
expectedOutputin interfaceEvaluationSetItem.ExpectedOutputStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public EvaluationSetItem build()
- Specified by:
buildin interfaceEvaluationSetItem._FinalStage
-
-