Uses of Interface
org.tribuo.data.text.TextFeatureExtractor
Package
Description
Provides an implementation of LIME (Locally Interpretable Model Explanations).
Provides implementations of text data processors.
Provides feature extraction implementations which use ONNX models.
-
Uses of TextFeatureExtractor in org.tribuo.classification.explanations.lime
ModifierConstructorDescriptionLIMEText
(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. -
Uses of TextFeatureExtractor in org.tribuo.data.text
Modifier and TypeFieldDescriptionprotected TextFeatureExtractor<T>
DirectoryFileSource.extractor
The extractor that we'll use to turn text into examples.protected TextFeatureExtractor<T>
TextDataSource.extractor
The extractor that we'll use to turn text into examples.ModifierConstructorDescriptionDirectoryFileSource
(Path dataDir, 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.TextDataSource
(File file, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor, DocumentPreprocessor... preprocessors) Creates a text data set by reading it from a file.TextDataSource
(Path path, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor, DocumentPreprocessor... preprocessors) Creates a text data set by reading it from a path. -
Uses of TextFeatureExtractor in org.tribuo.data.text.impl
ModifierConstructorDescriptionSimpleStringDataSource
(List<String> rawLines, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) Constructs a simple string data source from the supplied lines.SimpleTextDataSource
(File file, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) Constructs a simple text data source by reading lines from the supplied file.SimpleTextDataSource
(Path path, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) Constructs a simple text data source by reading lines from the supplied path.protected
SimpleTextDataSource
(OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) -
Uses of TextFeatureExtractor in org.tribuo.interop.onnx.extractors
Modifier and TypeClassDescriptionclass
BERTFeatureExtractor<T extends Output<T>>
Builds examples and sequence examples using features from BERT.