edu.cmu.minorthird.classify.sequential
Class SegmentCRFLearner

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.CRFLearner
      extended by edu.cmu.minorthird.classify.sequential.SegmentCRFLearner
All Implemented Interfaces:
BatchSegmenterLearner, BatchSequenceClassifierLearner, Segmenter, SequenceClassifier, SequenceClassifierLearner, SequenceConstants, Visible, java.io.Serializable

public class SegmentCRFLearner
extends CRFLearner
implements BatchSegmenterLearner, SequenceConstants, Segmenter

Sequential learner based on the CRF algorithm. Source for the iitb.CRF package available from http://crf.sourceforge.net. This class implements the semi-markov version of CRF

Author:
Sunita Sarawagi
See Also:
Serialized Form

Nested Class Summary
 class SegmentCRFLearner.SemiMTFeatureGenImpl
           
 
Nested classes/interfaces inherited from class edu.cmu.minorthird.classify.sequential.CRFLearner
CRFLearner.MTFeatureGenImpl
 
Field Summary
 
Fields inherited from class edu.cmu.minorthird.classify.sequential.CRFLearner
maxItersHelp, useHighPrecisionArithmeticHelp
 
Fields inherited from interface edu.cmu.minorthird.classify.sequential.SequenceConstants
HISTORY_FEATURE, NULL_CLASS_NAME
 
Constructor Summary
SegmentCRFLearner()
           
SegmentCRFLearner(java.lang.String args)
           
 
Method Summary
 Segmenter batchTrain(SegmentDataset dataset)
           
 java.lang.String explain(CandidateSegmentGroup g)
          Return some string that 'explains' the classification
 Segmentation segmentation(CandidateSegmentGroup g)
          Return a predicted type for each element of the sequence.
 
Methods inherited from class edu.cmu.minorthird.classify.sequential.CRFLearner
batchTrain, classification, explain, getExplanation, getHistorySize, getMaxIters, getMaxItersHelp, getSchema, getUseHighPrecisionArithmetic, getUseHighPrecisionArithmeticHelp, removeLogSpaceOption, setLogSpaceOption, setMaxIters, setSchema, setUseHighPrecisionArithmetic, toGUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.cmu.minorthird.classify.sequential.BatchSegmenterLearner
setSchema
 

Constructor Detail

SegmentCRFLearner

public SegmentCRFLearner()

SegmentCRFLearner

public SegmentCRFLearner(java.lang.String args)
Method Detail

batchTrain

public Segmenter batchTrain(SegmentDataset dataset)
Specified by:
batchTrain in interface BatchSegmenterLearner

segmentation

public Segmentation segmentation(CandidateSegmentGroup g)
Return a predicted type for each element of the sequence.

Specified by:
segmentation in interface Segmenter

explain

public java.lang.String explain(CandidateSegmentGroup g)
Return some string that 'explains' the classification

Specified by:
explain in interface Segmenter