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

withFeatureExtraction

abstract fun <R> withFeatureExtraction(extraction: (subject: T) -> Option<R>): FeatureExtractorBuilder.OptionsStep<T, R>

Defines the feature extraction as such which is most likely based on the current subject (but does not need to be).

Parameters

extraction - A function returning either Some with the corresponding feature or None in case the extraction cannot be carried out.