public class BaselineTarget extends POSBaselineLearner
POSBaselineLearner
, this classifier returns the tag most often associated
with the given word. Only WordForm
is used as a feature.POSBaselineLearner.Parameters
Modifier and Type | Field and Description |
---|---|
static boolean |
isTraining |
table
Constructor and Description |
---|
BaselineTarget(POSBaselineLearner.Parameters p,
String modelPath,
String lexiconPath) |
BaselineTarget(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, classify, computePrediction, emptyClone, featureValue, forget, learn, learn, looksLikeNumber, observed, observedCount, read, read, scores, write, write, write, write
classify, classify, classify, clone, countFeatures, createPrediction, createPrediction, demandLexicon, discreteValue, discreteValue, doneLearning, 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 BaselineTarget(POSBaselineLearner.Parameters p, String modelPath, String lexiconPath)
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.