|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.learn.AnnotatorLearner edu.cmu.minorthird.text.learn.ConditionalSemiMarkovModel.CSMMLearner
public static class ConditionalSemiMarkovModel.CSMMLearner
A learner for ConditionalSemiMarkovModel's.
Constructor Summary | |
---|---|
ConditionalSemiMarkovModel.CSMMLearner()
|
|
ConditionalSemiMarkovModel.CSMMLearner(int epochs)
|
|
ConditionalSemiMarkovModel.CSMMLearner(int epochs,
int maxSegmentSize)
|
|
ConditionalSemiMarkovModel.CSMMLearner(SpanFeatureExtractor fe,
OnlineBinaryClassifierLearner classifierLearner,
int epochs,
int maxSegSz,
java.lang.String annotation)
|
|
ConditionalSemiMarkovModel.CSMMLearner(java.lang.String annotation)
|
|
ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile,
java.lang.String distanceNames,
int maxSegmentSize)
|
|
ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile,
java.lang.String distanceNames,
int epoch,
int maxSegmentSize)
|
|
ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile,
java.lang.String distanceNames,
int epochSize,
int maxSegmentSize,
boolean addTraining,
boolean doCrossVal,
java.lang.String mixFile)
|
|
ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile,
java.lang.String distanceNames,
int epoch,
int maxSegmentSize,
boolean addTraining,
java.lang.String mixFile)
|
|
ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile,
java.lang.String distanceNames,
int epoch,
int maxSegmentSize,
java.lang.String mixFile)
|
Method Summary | |
---|---|
java.lang.String |
getAnnotationType()
Get the label used for annotations produced by the learner. |
Annotator |
getAnnotator()
Learning takes place here. |
int |
getEpochs()
|
OnlineBinaryClassifierLearner |
getLearner()
|
int |
getMaxSegmentSize()
|
SpanFeatureExtractor |
getSpanFeatureExtractor()
Return the span feature extractor used by this annotator. |
boolean |
hasNextQuery()
Returns true if the learner has more queries to answer. |
Span |
nextQuery()
Returns an Span which the learner would like labeled. |
void |
reset()
|
void |
setAnnotationType(java.lang.String s)
Set the label used for annotations produced by the learner. |
void |
setAnswer(AnnotationExample answeredQuery)
Accept the answer to the last query. |
void |
setDocumentPool(java.util.Iterator<Span> documentLooper)
Accept a pool of documents. |
void |
setEpochs(int newEpochs)
|
void |
setLearner(OnlineBinaryClassifierLearner newLearner)
|
void |
setMaxSegmentSize(int newMaxSize)
|
void |
setSpanFeatureExtractor(SpanFeatureExtractor fe)
Set the feature extractor used by this annotator. |
Methods inherited from class edu.cmu.minorthird.text.learn.AnnotatorLearner |
---|
getAnnotationTypeHelp, getSpanFeatureExtractorHelp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConditionalSemiMarkovModel.CSMMLearner()
public ConditionalSemiMarkovModel.CSMMLearner(int epochs)
public ConditionalSemiMarkovModel.CSMMLearner(int epochs, int maxSegmentSize)
public ConditionalSemiMarkovModel.CSMMLearner(java.lang.String annotation)
public ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile, java.lang.String distanceNames, int maxSegmentSize)
public ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile, java.lang.String distanceNames, int epoch, int maxSegmentSize)
public ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile, java.lang.String distanceNames, int epoch, int maxSegmentSize, java.lang.String mixFile)
public ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile, java.lang.String distanceNames, int epochSize, int maxSegmentSize, boolean addTraining, boolean doCrossVal, java.lang.String mixFile)
public ConditionalSemiMarkovModel.CSMMLearner(java.lang.String dictionaryFile, java.lang.String distanceNames, int epoch, int maxSegmentSize, boolean addTraining, java.lang.String mixFile)
public ConditionalSemiMarkovModel.CSMMLearner(SpanFeatureExtractor fe, OnlineBinaryClassifierLearner classifierLearner, int epochs, int maxSegSz, java.lang.String annotation)
Method Detail |
---|
public OnlineBinaryClassifierLearner getLearner()
public void setLearner(OnlineBinaryClassifierLearner newLearner)
public int getEpochs()
public void setEpochs(int newEpochs)
public int getMaxSegmentSize()
public void setMaxSegmentSize(int newMaxSize)
public SpanFeatureExtractor getSpanFeatureExtractor()
AnnotatorLearner
getSpanFeatureExtractor
in class AnnotatorLearner
public void setSpanFeatureExtractor(SpanFeatureExtractor fe)
AnnotatorLearner
setSpanFeatureExtractor
in class AnnotatorLearner
public void reset()
reset
in class AnnotatorLearner
public void setDocumentPool(java.util.Iterator<Span> documentLooper)
AnnotatorLearner
setDocumentPool
in class AnnotatorLearner
public boolean hasNextQuery()
AnnotatorLearner
hasNextQuery
in class AnnotatorLearner
public Span nextQuery()
AnnotatorLearner
nextQuery
in class AnnotatorLearner
public void setAnswer(AnnotationExample answeredQuery)
AnnotatorLearner
setAnswer
in class AnnotatorLearner
public void setAnnotationType(java.lang.String s)
AnnotatorLearner
setAnnotationType
in class AnnotatorLearner
public java.lang.String getAnnotationType()
AnnotatorLearner
getAnnotationType
in class AnnotatorLearner
public Annotator getAnnotator()
getAnnotator
in class AnnotatorLearner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |