public class SimpleStringDataSource<T extends Output<T>> extends SimpleTextDataSource<T>
SimpleTextDataSource
that accepts an Iterable
of Strings.
Uses the parsing logic from SimpleTextDataSource
.
Modifier and Type | Class and Description |
---|---|
static class |
SimpleStringDataSource.SimpleStringDataSourceProvenance
Provenance for
SimpleStringDataSource . |
SimpleTextDataSource.SimpleTextDataSourceProvenance
Modifier and Type | Field and Description |
---|---|
protected List<String> |
rawLines
Used because OLCUT doesn't support generic Iterables.
|
provenance
data, extractor, outputFactory, path, preprocessors
Constructor and Description |
---|
SimpleStringDataSource(List<String> rawLines,
OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor) |
Modifier and Type | Method and Description |
---|---|
protected ConfiguredDataSourceProvenance |
cacheProvenance() |
void |
postConfig()
Used by the OLCUT configuration system, and should not be called by external code.
|
protected void |
read()
Reads the data from the Path.
|
String |
toString() |
getProvenance, parseLine
getOutputFactory, handleDoc, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public SimpleStringDataSource(List<String> rawLines, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor)
public void postConfig()
postConfig
in interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
in class SimpleTextDataSource<T extends Output<T>>
protected void read()
TextDataSource
read
in class SimpleTextDataSource<T extends Output<T>>
protected ConfiguredDataSourceProvenance cacheProvenance()
cacheProvenance
in class SimpleTextDataSource<T extends Output<T>>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.