Package org.tribuo.data.text.impl
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
ConstructorDescriptionTextFeatureExtractorImpl
(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, wait
Methods 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:TextFeatureExtractor
Extracts an example from the supplied input text and output object.- Specified by:
extract
in interfaceTextFeatureExtractor<T extends Output<T>>
- Parameters:
label
- The output object.data
- The input text.- Returns:
- An example
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
-