Class CasingPreprocessor
java.lang.Object
org.tribuo.data.text.impl.CasingPreprocessor
- All Implemented Interfaces:
- com.oracle.labs.mlrg.olcut.config.Configurable,- com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,- DocumentPreprocessor
A document preprocessor which uppercases or lowercases the input.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe possible casing operations.
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct a casing preprocessor.
- 
Method SummaryModifier and TypeMethodDescriptioncom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenanceprocessDoc(String doc) Processes the content of part of a document stored as a string, returning a new string.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.ConfigurablepostConfig
- 
Constructor Details- 
CasingPreprocessorConstruct a casing preprocessor.- Parameters:
- op- The operation to apply.
 
 
- 
- 
Method Details- 
processDocDescription copied from interface:DocumentPreprocessorProcesses the content of part of a document stored as a string, returning a new string.- Specified by:
- processDocin interface- DocumentPreprocessor
- Parameters:
- doc- the document to process
- Returns:
- the processed string. Note that the return value may be null, in which case the resulting string will be ignored.
 
- 
getProvenancepublic com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
- getProvenancein interface- com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
 
 
-