public class StructuredCommaClassifier
extends edu.illinois.cs.cogcomp.sl.core.SLModel
Constructor and Description |
---|
StructuredCommaClassifier(List<edu.illinois.cs.cogcomp.lbjava.classify.Classifier> lbjExtractors,
edu.illinois.cs.cogcomp.lbjava.classify.Classifier lbjLabeler) |
Modifier and Type | Method and Description |
---|---|
EvaluateDiscrete |
test(List<CommaSRLSentence> sentences,
String predictionFileName) |
void |
train(List<CommaSRLSentence> sentences,
String modelPath) |
public StructuredCommaClassifier(List<edu.illinois.cs.cogcomp.lbjava.classify.Classifier> lbjExtractors, edu.illinois.cs.cogcomp.lbjava.classify.Classifier lbjLabeler) throws Exception
lbjExtractors
- the LBJava extractors we use to get features. Thus we are easily able to
build features for sllbjLabeler
- the LBJava labeler we use to get labelsException
public void train(List<CommaSRLSentence> sentences, String modelPath) throws Exception
sentences
- the training setmodelPath
- the location to save the learnt model. If it is null, it is not savedException
public EvaluateDiscrete test(List<CommaSRLSentence> sentences, String predictionFileName) throws Exception
sentences
- the test setpredictionFileName
- location to which to save the predictions of the model. If it is
null, predictions are not savedException
Copyright © 2017. All rights reserved.