Package edu.stanford.nlp.ie.crf
Class CRFClassifierWithLOP<IN extends CoreMap>
- java.lang.Object
-
- edu.stanford.nlp.ie.AbstractSequenceClassifier<IN>
-
- edu.stanford.nlp.ie.crf.CRFClassifier<IN>
-
- edu.stanford.nlp.ie.crf.CRFClassifierWithLOP<IN>
-
public class CRFClassifierWithLOP<IN extends CoreMap> extends CRFClassifier<IN>
Subclass ofCRFClassifierfor learning Logarithmic Opinion Pools.- Author:
- Mengqiu Wang
-
-
Field Summary
-
Fields inherited from class edu.stanford.nlp.ie.crf.CRFClassifier
DEFAULT_CLASSIFIER
-
Fields inherited from class edu.stanford.nlp.ie.AbstractSequenceClassifier
classIndex, featureFactories, flags, knownLCWords, pad, windowSize
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCRFClassifierWithLOP()CRFClassifierWithLOP(SeqClassifierFlags flags)CRFClassifierWithLOP(Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double[]trainWeights(int[][][][] data, int[][] labels, Evaluator[] evaluators, int pruneFeatureItr, double[][][][] featureVals)-
Methods inherited from class edu.stanford.nlp.ie.crf.CRFClassifier
addProcessedData, allLabels, classify, classifyGibbs, classifyGibbs, classifyMaxEnt, classifyWithGlobalInformation, combine, documentsToDataAndLabels, documentsToDataAndLabelsList, documentToDataAndLabels, dropFeaturesBelowThreshold, dumpFeatures, extractDatumSequence, getClassifier, getClassifier, getClassifier, getClassifier, getClassifier, getClassifier, getClassifierNoExceptions, getCliquePotentialFunctionForTest, getCliqueTree, getCliqueTree, getCliqueTrees, getDefaultClassifier, getDefaultClassifier, getMinimizer, getMinimizer, getNumWeights, getObjectiveFunction, getSequenceModel, loadAuxiliaryData, loadClassifier, loadClassIndexFromFile, loadDefaultClassifier, loadDefaultClassifier, loadFeatureIndexFromFile, loadProcessedData, loadTagIndex, loadTextClassifier, loadTextClassifier, loadWeightsFromFile, main, makeAnswerArraysAndTagIndex, makeDatum, printFactorTable, printFactorTableDocument, printFactorTableDocuments, printFeatures, printFirstOrderProbs, printFirstOrderProbsDocument, printFirstOrderProbsDocuments, printLabelInformation, printLabelValue, printProbsDocument, pruneNodeFeatureIndices, saveProcessedData, scaleWeights, serializeClassifier, serializeClassifier, serializeClassIndex, serializeFeatureIndex, serializeFeatureIndexToText, serializeTextClassifier, serializeTextClassifier, serializeWeights, to2D, topWeights, toString, train, updateWeightsForTest, writeWeights, zeroOrderProbabilities
-
Methods inherited from class edu.stanford.nlp.ie.AbstractSequenceClassifier
apply, backgroundSymbol, classify, classifyAndWriteAnswers, classifyAndWriteAnswers, classifyAndWriteAnswers, classifyAndWriteAnswers, classifyAndWriteAnswers, classifyAndWriteAnswers, classifyAndWriteAnswers, classifyAndWriteAnswersKBest, classifyAndWriteAnswersKBest, classifyAndWriteViterbiSearchGraph, classifyFile, classifyFilesAndWriteAnswers, classifyFilesAndWriteAnswers, classifyKBest, classifyRaw, classifySentence, classifySentenceWithGlobalInformation, classifyStdin, classifyStdin, classifyToCharacterOffsets, classifyToString, classifyToString, classifyWithInlineXML, countResults, countResultsSegmenter, defaultReaderAndWriter, finalizeClassification, getKnownLCWords, getSampler, labels, loadClassifier, loadClassifier, loadClassifier, loadClassifier, loadClassifier, loadClassifier, loadClassifierNoExceptions, loadClassifierNoExceptions, loadClassifierNoExceptions, loadClassifierNoExceptions, loadClassifierNoExceptions, makeObjectBankFromFile, makeObjectBankFromFile, makeObjectBankFromFiles, makeObjectBankFromFiles, makeObjectBankFromFiles, makeObjectBankFromReader, makeObjectBankFromString, makePlainTextReaderAndWriter, makePlainTextReaderAndWriter, makeReaderAndWriter, plainTextReaderAndWriter, printFeatureLists, printFeatures, printProbs, printProbs, printProbsDocuments, printResults, reinit, segmentString, segmentString, train, train, train, train, train, train, windowSize, writeAnswers
-
-
-
-
Constructor Detail
-
CRFClassifierWithLOP
protected CRFClassifierWithLOP()
-
CRFClassifierWithLOP
public CRFClassifierWithLOP(Properties props)
-
CRFClassifierWithLOP
public CRFClassifierWithLOP(SeqClassifierFlags flags)
-
-
Method Detail
-
trainWeights
protected double[] trainWeights(int[][][][] data, int[][] labels, Evaluator[] evaluators, int pruneFeatureItr, double[][][][] featureVals)- Overrides:
trainWeightsin classCRFClassifier<IN extends CoreMap>
-
-