RepresentationInCaseOfFailureStep
Step which allows to define the representation which shall be used in case the extraction cannot be performed.
Parameters
SubjectT
the type of the current subject.
Properties
Functions
Link copied to clipboard
abstract fun withRepresentationForFailure(representation: Any): FeatureExtractorBuilder.FeatureExtractionStep<SubjectT>
Uses the given representation in case the extraction cannot be performed.
open fun withRepresentationForFailure(representationProvider: () -> Any?): FeatureExtractorBuilder.FeatureExtractionStep<SubjectT>
Uses the given representationProvider, by turning it into a LazyRepresentation, to get the representation which will be used in case the extraction cannot be performed.