public class TextVectorClassifier<M extends Model> extends AbstractLearner<TextVectorClassifier.TextVectorModel<M>> implements Classifier<TextVectorClassifier.TextVectorModel<M>>
| Modifier and Type | Class and Description |
|---|---|
static class |
TextVectorClassifier.TextVectorModel<M extends Model> |
| Constructor and Description |
|---|
TextVectorClassifier(ITextVectorizer vectorizer,
Learner<M> learner,
Classifier<M> classifier) |
| Modifier and Type | Method and Description |
|---|---|
CategoryEntries |
classify(FeatureVector featureVector,
TextVectorClassifier.TextVectorModel<M> model) |
static TextVectorClassifier<LibLinearModel> |
libLinear(ITextVectorizer vectorizer) |
static TextVectorClassifier<LibLinearModel> |
libLinear(ITextVectorizer vectorizer,
de.bwaldvogel.liblinear.Parameter parameter) |
String |
toString() |
TextVectorClassifier.TextVectorModel<M> |
train(Dataset dataset) |
train, trainpublic TextVectorClassifier(ITextVectorizer vectorizer, Learner<M> learner, Classifier<M> classifier)
public static TextVectorClassifier<LibLinearModel> libLinear(ITextVectorizer vectorizer)
public static TextVectorClassifier<LibLinearModel> libLinear(ITextVectorizer vectorizer, de.bwaldvogel.liblinear.Parameter parameter)
public TextVectorClassifier.TextVectorModel<M> train(Dataset dataset)
train in interface Learner<TextVectorClassifier.TextVectorModel<M extends Model>>public CategoryEntries classify(FeatureVector featureVector, TextVectorClassifier.TextVectorModel<M> model)
classify in interface Classifier<TextVectorClassifier.TextVectorModel<M extends Model>>public String toString()
toString in class AbstractLearner<TextVectorClassifier.TextVectorModel<M extends Model>>Copyright © 2018. All rights reserved.