Uses of Interface
org.tribuo.data.columnar.FieldProcessor
Package
Description
Provides classes for processing columnar data and generating
Example
s.Provides implementations of
FieldProcessor
.-
Uses of FieldProcessor in org.tribuo.data.columnar
Modifier and TypeFieldDescriptionprotected Map<String,
FieldProcessor> RowProcessor.fieldProcessorMap
The map of field processors.protected Map<String,
FieldProcessor> RowProcessor.regexMappingProcessors
The map of regexes to field processors.Modifier and TypeMethodDescriptionReturns a copy of this FieldProcessor bound to the supplied newFieldName.Modifier and TypeMethodDescriptionRowProcessor.Builder.getFieldProcessor
(String fieldName) Retrieves, if present, the fieldProcessor with the given nameRowProcessor.getFieldProcessors()
Returns the map ofFieldProcessor
s this RowProcessor uses.RowProcessor.Builder.getRegexFieldProcessor
(String regexName) Retrieves, if present, the regexFieldProcessor with the given regexModifier and TypeMethodDescriptionRowProcessor.Builder.addFieldProcessor
(FieldProcessor fieldProcessor) Add a single field processor to the builder.RowProcessor.Builder.addRegexMappingProcessor
(String regex, FieldProcessor fieldProcessor) Add a single regex FieldProcessor mapping to the builder.Modifier and TypeMethodDescriptionRowProcessor.Builder.setFieldProcessors
(Iterable<FieldProcessor> fieldProcessors) theFieldProcessor
s to apply to each row.RowProcessor.Builder.setRegexMappingProcessors
(Map<String, FieldProcessor> regexMappingProcessors) A map from strings (interpreted as regular expressions byPattern.compile(String)
) toFieldProcessor
s such that if a field name matches a regular expression, the corresponding FieldProcessor is used to process it.ModifierConstructorDescriptionRowProcessor
(List<FieldExtractor<?>> metadataExtractors, FieldExtractor<Float> weightExtractor, ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap, Map<String, FieldProcessor> regexMappingProcessors, Set<FeatureProcessor> featureProcessors) Deprecated.RowProcessor
(List<FieldExtractor<?>> metadataExtractors, FieldExtractor<Float> weightExtractor, ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap, Map<String, FieldProcessor> regexMappingProcessors, Set<FeatureProcessor> featureProcessors, boolean replaceNewlinesWithSpaces) Deprecated.PreferRowProcessor.Builder
to many-argument constructorsRowProcessor
(List<FieldExtractor<?>> metadataExtractors, FieldExtractor<Float> weightExtractor, ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap, Set<FeatureProcessor> featureProcessors) Deprecated.PreferRowProcessor.Builder
to many-argument constructorsRowProcessor
(List<FieldExtractor<?>> metadataExtractors, ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap) Deprecated.PreferRowProcessor.Builder
to many-argument constructorsRowProcessor
(ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap) Constructs a RowProcessor using the supplied responseProcessor to extract the response variable, and the supplied fieldProcessorMap to control which fields are parsed and how they are parsed.RowProcessor
(ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap, Set<FeatureProcessor> featureProcessors) Constructs a RowProcessor using the supplied responseProcessor to extract the response variable, and the supplied fieldProcessorMap to control which fields are parsed and how they are parsed. -
Uses of FieldProcessor in org.tribuo.data.columnar.processors.field
Modifier and TypeClassDescriptionfinal class
Processes a column that contains a date value.class
Processes a column that contains a real value.class
AFieldProcessor
which converts the field name and value into a feature with a value ofIdentityProcessor.FEATURE_VALUE
.class
AFieldProcessor
which applies a regex to a field and generatesColumnarFeature
s based on the matches.class
AFieldProcessor
which takes a text field and runs aTextPipeline
on it to generate features.
RowProcessor.Builder
to many-argument constructors