Uses of Interface
org.tribuo.data.columnar.FieldProcessor
Packages that use FieldProcessor
Package
Description
Provides classes for processing columnar data and generating
Examples.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.fieldProcessorMapThe map of field processors.protected Map<String, FieldProcessor> RowProcessor.regexMappingProcessorsThe 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 ofFieldProcessors 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) theFieldProcessors to apply to each row.RowProcessor.Builder.setRegexMappingProcessors(Map<String, FieldProcessor> regexMappingProcessors) A map from strings (interpreted as regular expressions byPattern.compile(String)) toFieldProcessors 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.Builderto many-argument constructorsRowProcessor(List<FieldExtractor<?>> metadataExtractors, FieldExtractor<Float> weightExtractor, ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap, Set<FeatureProcessor> featureProcessors) Deprecated.PreferRowProcessor.Builderto many-argument constructorsRowProcessor(List<FieldExtractor<?>> metadataExtractors, ResponseProcessor<T> responseProcessor, Map<String, FieldProcessor> fieldProcessorMap) Deprecated.PreferRowProcessor.Builderto 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 classProcesses a column that contains a date value.classProcesses a column that contains a real value.classAFieldProcessorwhich converts the field name and value into a feature with a value ofIdentityProcessor.FEATURE_VALUE.classAFieldProcessorwhich applies a regex to a field and generatesColumnarFeatures based on the matches.classAFieldProcessorwhich takes a text field and runs aTextPipelineon it to generate features.Methods in org.tribuo.data.columnar.processors.field that return FieldProcessor
RowProcessor.Builderto many-argument constructors