Package | Description |
---|---|
org.tribuo.classification.explanations.lime |
Provides an implementation of LIME (Locally Interpretable Model Explanations).
|
org.tribuo.data.text | |
org.tribuo.data.text.impl |
Provides implementations of text data processors.
|
Constructor and Description |
---|
LIMEText(SplittableRandom rng,
Model<Label> innerModel,
SparseTrainer<Regressor> explanationTrainer,
int numSamples,
TextFeatureExtractor<Label> extractor,
Tokenizer tokenizer)
Constructs a LIME explainer for a model which uses text data.
|
Modifier and Type | Field and Description |
---|---|
protected TextFeatureExtractor<T> |
TextDataSource.extractor
The extractor that we'll use to turn text into examples.
|
protected TextFeatureExtractor<T> |
DirectoryFileSource.extractor
The extractor that we'll use to turn text into examples.
|
Constructor and Description |
---|
DirectoryFileSource(OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor,
DocumentPreprocessor... preprocessors)
Creates a data source that will use the given feature extractor and
document preprocessors on the data read from the files in the directories
representing classes.
|
DirectoryFileSource(Path newsDir,
OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor,
DocumentPreprocessor... preprocessors) |
TextDataSource(File file,
OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor,
DocumentPreprocessor... preprocessors) |
TextDataSource(Path path,
OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor,
DocumentPreprocessor... preprocessors)
Creates a text data set by reading it from a path.
|
Modifier and Type | Class and Description |
---|---|
class |
TextFeatureExtractorImpl<T extends Output<T>>
|
Constructor and Description |
---|
SimpleStringDataSource(List<String> rawLines,
OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor) |
SimpleTextDataSource(File file,
OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor) |
SimpleTextDataSource(OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor) |
SimpleTextDataSource(Path path,
OutputFactory<T> outputFactory,
TextFeatureExtractor<T> extractor) |
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.