doc / ch.tutteli.atrium.logic.creating.transformers / FeatureExtractorBuilder

FeatureExtractorBuilder

interface FeatureExtractorBuilder (source)

Helps in using FeatureExtractor by providing a guide to set the different parameters in form of a fluent builder.

Types

DescriptionStep

interface DescriptionStep<T>

Step which allows to specify the description which will be used to describe the feature.

ExecutionStep

interface ExecutionStep<T, R> : TransformationExecutionStep<T, R, FeatureExpect<T, R>>

Step which allows to decide how the transformation shall be executed.

FeatureExtractionStep

interface FeatureExtractionStep<T>

Step to define the feature extraction as such where a one can include a check by returning None in case the extraction should not be carried out.

FinalStep

interface FinalStep<T, R>

Final step in the help-me-to-call-FeatureExtractor-process, which creates an ExecutionStep incorporating all chosen options and is able to call SubjectChanger accordingly.

OptionsStep

interface OptionsStep<T, R>

Step which allows to override previously defined properties -- such as: use a different description -- but also allows to define options where usually a default value is used -- e.g. per default the subject itself is use as representation, this can be changed.

RepresentationInCaseOfFailureStep

interface RepresentationInCaseOfFailureStep<T>

Step which allows to to define the representation which shall be used in case the extraction cannot be performed.

Companion Object Functions

invoke

operator fun <T> invoke(assertionContainer: AssertionContainer<T>): FeatureExtractorBuilder.DescriptionStep<T>

Entry point to use the FeatureExtractorBuilder.