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

public class CasingPreprocessor extends Object implements DocumentPreprocessor
A document preprocessor which uppercases or lowercases the input.
  • Constructor Details

  • Method Details

    • processDoc

      public String processDoc(String doc)
      Description copied from interface: DocumentPreprocessor
      Processes the content of part of a document stored as a string, returning a new string.
      Specified by:
      processDoc in 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.
    • getProvenance

      public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
      Specified by:
      getProvenance in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>