public class MaxMarginMentionRanker extends PairwiseModel
Modifier and Type | Class and Description |
---|---|
static class |
MaxMarginMentionRanker.Builder |
static class |
MaxMarginMentionRanker.ErrorType |
Modifier and Type | Field and Description |
---|---|
double[] |
costs |
boolean |
multiplicativeCost |
classifier, meta, name
Constructor and Description |
---|
MaxMarginMentionRanker(MaxMarginMentionRanker.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
learn(Example correct,
Example incorrect,
java.util.Map<java.lang.Integer,CompressedFeatureVector> mentionFeatures,
Compressor<java.lang.String> compressor,
MaxMarginMentionRanker.ErrorType errorType) |
static MaxMarginMentionRanker.Builder |
newBuilder(java.lang.String name,
MetaFeatureExtractor meta) |
getClassifier, getDefaultOutputPath, getNumEpochs, getNumTrainingExamples, learn, learn, learn, predict, writeModel, writeModel
public final double[] costs
public final boolean multiplicativeCost
public MaxMarginMentionRanker(MaxMarginMentionRanker.Builder builder)
public static MaxMarginMentionRanker.Builder newBuilder(java.lang.String name, MetaFeatureExtractor meta)
public void learn(Example correct, Example incorrect, java.util.Map<java.lang.Integer,CompressedFeatureVector> mentionFeatures, Compressor<java.lang.String> compressor, MaxMarginMentionRanker.ErrorType errorType)