Class TextFeatureExtractorImpl<T extends Output<T>>
java.lang.Object
org.tribuo.data.text.impl.TextFeatureExtractorImpl<T>
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,TextFeatureExtractor<T>
public class TextFeatureExtractorImpl<T extends Output<T>>
extends Object
implements TextFeatureExtractor<T>
-
Constructor Summary
ConstructorsConstructorDescriptionTextFeatureExtractorImpl(TextPipeline pipeline) Constructs a text feature extractor wrapping the supplied text pipeline. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Constructor Details
-
TextFeatureExtractorImpl
Constructs a text feature extractor wrapping the supplied text pipeline.- Parameters:
pipeline- The text processing pipeline.
-
-
Method Details
-
toString
-
extract
Description copied from interface:TextFeatureExtractorExtracts an example from the supplied input text and output object.- Specified by:
extractin interfaceTextFeatureExtractor<T extends Output<T>>- Parameters:
label- The output object.data- The input text.- Returns:
- An example
-
getProvenance
-