public class TextFeatureExtractorImpl<T extends Output<T>> extends Object implements TextFeatureExtractor<T>
Constructor and Description |
---|
TextFeatureExtractorImpl(TextPipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
Example<T> |
extract(T label,
String data)
Extracts an example from the supplied input text and output object.
|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
String |
toString() |
public TextFeatureExtractorImpl(TextPipeline pipeline)
public Example<T> extract(T label, String data)
TextFeatureExtractor
extract
in interface TextFeatureExtractor<T extends Output<T>>
label
- The output object.data
- The input text.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.