RepresentationInCaseOfFailureStep
Step which allows to to define the representation which shall be used in case the extraction cannot be performed.
Parameters
T
the type of the current subject.
Properties
Functions
Link copied to clipboard
abstract fun withRepresentationForFailure(representation: Any): FeatureExtractorBuilder.FeatureExtractionStep<T>
Uses the given representation in case the extraction cannot be performed.
open fun withRepresentationForFailure(representationProvider: () -> Any?): FeatureExtractorBuilder.FeatureExtractionStep<T>
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.