Uses of Interface
org.tribuo.data.columnar.FieldProcessor
Packages that use 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
Fields in org.tribuo.data.columnar with type parameters of type FieldProcessorModifier 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.Methods in org.tribuo.data.columnar that return FieldProcessorModifier and TypeMethodDescriptionReturns a copy of this FieldProcessor bound to the supplied newFieldName.Methods in org.tribuo.data.columnar that return types with arguments of type FieldProcessorModifier 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 regexMethods in org.tribuo.data.columnar with parameters of type FieldProcessorModifier 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.Method parameters in org.tribuo.data.columnar with type arguments of type FieldProcessorModifier 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.Constructor parameters in org.tribuo.data.columnar with type arguments of type FieldProcessorModifierConstructorDescriptionRowProcessor
(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
Classes in org.tribuo.data.columnar.processors.field that implement FieldProcessorModifier 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.Methods in org.tribuo.data.columnar.processors.field that return FieldProcessor
RowProcessor.Builder
to many-argument constructors