Class NoopFeatureExtractor

java.lang.Object
org.tribuo.classification.sequence.viterbi.NoopFeatureExtractor
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable, LabelFeatureExtractor

public class NoopFeatureExtractor extends Object implements LabelFeatureExtractor
A label feature extractor that doesn't produce any label based features.

It always returns Collections.emptyList().

See Also:
  • Constructor Details

    • NoopFeatureExtractor

      public NoopFeatureExtractor()
  • Method Details

    • extractFeatures

      public List<Feature> extractFeatures(List<Label> previousOutcomes, double value)
      Description copied from interface: LabelFeatureExtractor
      Generates features based on the previously produced labels.
      Specified by:
      extractFeatures in interface LabelFeatureExtractor
      Parameters:
      previousOutcomes - The previous step's labels.
      value - The value to give to the features.
      Returns:
      Features.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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>