Uses of Class
org.tribuo.data.columnar.RowProcessor.Builder
Packages that use RowProcessor.Builder
-
Uses of RowProcessor.Builder in org.tribuo.data.columnar
Methods in org.tribuo.data.columnar that return RowProcessor.BuilderModifier 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) TheFeatureProcessors to apply to each extracted feature list.RowProcessor.Builder.setFieldProcessors(Iterable<FieldProcessor> fieldProcessors) theFieldProcessors to apply to each row.RowProcessor.Builder.setMetadataExtractors(List<FieldExtractor<?>> metadataExtractors) If set, the suppliedFieldExtractors 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)) toFieldProcessors 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 toFieldProcessors.RowProcessor.Builder.setWeightExtractor(FieldExtractor<Float> weightExtractor) If set, the constructedRowProcessorwill add the extracted floats into theExample.setWeight(float)s.