Interface TextFeatureExtractor<T extends Output<T>>

Type Parameters:
T - The type of the features that will be produced by the text processing.
All Superinterfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
All Known Implementing Classes:
BERTFeatureExtractor, TextFeatureExtractorImpl

public interface TextFeatureExtractor<T extends Output<T>> extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
An interface for things that take text and turn them into examples that we can use to train or evaluate a classifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(T output, String data)
    Extracts an example from the supplied input text and output object.

    Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable

    postConfig

    Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.Provenancable

    getProvenance
  • Method Details

    • extract

      Example<T> extract(T output, String data)
      Extracts an example from the supplied input text and output object.
      Parameters:
      output - The output object.
      data - The input text.
      Returns:
      An example