Class TextFeatureExtractorImpl<T extends Output<T>>

All Implemented Interfaces:,<>, TextFeatureExtractor<T>

public class TextFeatureExtractorImpl<T extends Output<T>> extends Object implements TextFeatureExtractor<T>
An implementation of TextFeatureExtractor that takes a TextPipeline and generates ArrayExample.
  • Constructor Details

    • TextFeatureExtractorImpl

      public TextFeatureExtractorImpl(TextPipeline pipeline)
      Constructs a text feature extractor wrapping the supplied text pipeline.
      pipeline - The text processing pipeline.
  • Method Details

    • toString

      public String toString()
      toString in class Object
    • extract

      public Example<T> extract(T label, String data)
      Description copied from interface: TextFeatureExtractor
      Extracts an example from the supplied input text and output object.
      Specified by:
      extract in interface TextFeatureExtractor<T extends Output<T>>
      label - The output object.
      data - The input text.
      An example
    • getProvenance

      public getProvenance()
      Specified by:
      getProvenance in interface<T extends Output<T>>