Uses of Interface
org.tribuo.data.text.TextFeatureExtractor
Packages that use 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
Constructors in org.tribuo.classification.explanations.lime with parameters of type TextFeatureExtractorModifierConstructorDescriptionLIMEText
(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
Fields in org.tribuo.data.text declared as TextFeatureExtractorModifier 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.Constructors in org.tribuo.data.text with parameters of type TextFeatureExtractorModifierConstructorDescriptionDirectoryFileSource
(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
Classes in org.tribuo.data.text.impl that implement TextFeatureExtractorConstructors in org.tribuo.data.text.impl with parameters of type TextFeatureExtractorModifierConstructorDescriptionSimpleStringDataSource
(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) Cosntructs a data source without a path. -
Uses of TextFeatureExtractor in org.tribuo.interop.onnx.extractors
Classes in org.tribuo.interop.onnx.extractors that implement TextFeatureExtractorModifier and TypeClassDescriptionclass
BERTFeatureExtractor<T extends Output<T>>
Builds examples and sequence examples using features from BERT.