Uses of Class
org.tribuo.data.columnar.RowProcessor.Builder
-
Uses of RowProcessor.Builder in org.tribuo.data.columnar
Modifier and TypeMethodDescriptionRowProcessor.Builder.addFeatureProcessor
(FeatureProcessor featureProcessor) Add a single feature processor to the builder.RowProcessor.Builder.addFieldProcessor
(FieldProcessor fieldProcessor) Add a single field processor to the builder.RowProcessor.Builder.addMetadataExtractor
(FieldExtractor<?> metadataExtractor) Add a single metadata extractor to the builder.RowProcessor.Builder.addRegexMappingProcessor
(String regex, FieldProcessor fieldProcessor) Add a single regex FieldProcessor mapping to the builder.RowProcessor.Builder.setFeatureProcessors
(Set<FeatureProcessor> featureProcessors) TheFeatureProcessor
s to apply to each extracted feature list.RowProcessor.Builder.setFieldProcessors
(Iterable<FieldProcessor> fieldProcessors) theFieldProcessor
s to apply to each row.RowProcessor.Builder.setMetadataExtractors
(List<FieldExtractor<?>> metadataExtractors) If set, the suppliedFieldExtractor
s will be run for each example, populatingExample.getMetadata()
.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.RowProcessor.Builder.setReplaceNewLinesWithSpaces
(boolean replaceNewLinesWithSpaces) If true, replaces newlines in fields with spaces before passing them toFieldProcessor
s.RowProcessor.Builder.setWeightExtractor
(FieldExtractor<Float> weightExtractor) If set, the constructedRowProcessor
will add the extracted floats into theExample.setWeight(float)
s.