public class MikheevTable extends MikheevLearner
MikheevLearner
, this classifier records statistics on the POS tags that
suffixes of lengths 3 and 4 are associated with. Its classify(Object)
method does not
return any features; all interaction is performed through the MikheevLearner.allowableTags(Word)
method. Only WordForm
is used as a feature.MikheevLearner.Parameters
Modifier and Type | Field and Description |
---|---|
static boolean |
isTraining |
firstCapitalized, notFirstCapitalized
table
Constructor and Description |
---|
MikheevTable(String modelPath,
String lexiconPath) |
Modifier and Type | Method and Description |
---|---|
edu.illinois.cs.cogcomp.lbjava.classify.FeatureVector |
classify(Object __example)
This function makes one or more decisions about a single object, returning those decisions as
Feature s in a vector. |
String |
discreteValue(Object __example)
Returns the value of the discrete prediction that this learner would make, given an example.
|
boolean |
equals(Object o) |
String |
getInputType()
Returns a string describing the input type of this classifier.
|
String |
getOutputType() |
int |
hashCode() |
allowableTags, doneLearning, emptyClone, forget, learn, prune, read, write, write
allowableTags, classify, computePrediction, featureValue, learn, looksLikeNumber, observed, observedCount, read, scores, write, write
classify, classify, classify, clone, countFeatures, createPrediction, createPrediction, demandLexicon, discreteValue, discreteValue, doneWithRound, featureValue, featureValue, getCurrentLexicon, getExampleArray, getExampleArray, getExtractor, getLabeler, getLabelLexicon, getLexicon, getLexiconDiscardCounts, getLexiconLocation, getModelLocation, getParameters, getPrunedLexiconSize, initialize, learn, learn, learn, read, readLabelLexicon, readLearner, readLearner, readLearner, readLearner, readLearner, readLearner, readLexicon, readLexicon, readLexiconOnDemand, readLexiconOnDemand, readModel, readModel, readParameters, realValue, realValue, realValue, save, saveLexicon, saveModel, scores, scores, scoresAugmented, setCandidates, setEncoding, setExtractor, setLabeler, setLabelLexicon, setLexicon, setLexiconLocation, setLexiconLocation, setLossFlag, setModelLocation, setModelLocation, setParameters, setReadLexiconOnDemand, unclone, unsetLossFlag, write, writeLexicon, writeModel, writeParameters
public String getInputType()
POSBaselineLearner
getInputType
in class POSBaselineLearner
"edu.illinois.cs.cogcomp.lbjava.nlp.Word"
public String getOutputType()
getOutputType
in class edu.illinois.cs.cogcomp.lbjava.classify.Classifier
public edu.illinois.cs.cogcomp.lbjava.classify.FeatureVector classify(Object __example)
POSBaselineLearner
Feature
s in a vector.classify
in class POSBaselineLearner
__example
- The object to make decisions about.Feature
s about the input object.public String discreteValue(Object __example)
POSBaselineLearner
discreteValue
in class POSBaselineLearner
__example
- The example object.Copyright © 2017. All rights reserved.