public class NERClassifierCombiner extends ClassifierCombiner<CoreLabel>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
APPLY_NUMERIC_CLASSIFIERS_DEFAULT |
static String |
APPLY_NUMERIC_CLASSIFIERS_PROPERTY |
classIndex, featureFactories, flags, knownLCWords, pad, windowSize| Constructor and Description |
|---|
NERClassifierCombiner(AbstractSequenceClassifier<CoreLabel>... classifiers) |
NERClassifierCombiner(boolean applyNumericClassifiers,
boolean useSUTime,
AbstractSequenceClassifier<CoreLabel>... classifiers) |
NERClassifierCombiner(boolean applyNumericClassifiers,
boolean useSUTime,
Properties nscProps,
String... loadPaths) |
NERClassifierCombiner(boolean applyNumericClassifiers,
boolean useSUTime,
String... loadPaths) |
NERClassifierCombiner(Properties props) |
NERClassifierCombiner(String... loadPaths) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesNumericClassifiers() |
List<CoreLabel> |
classify(List<CoreLabel> tokens)
Generates the AnswerAnnotation labels of the combined model for the given
tokens, storing them in place in the tokens.
|
List<CoreLabel> |
classifyWithGlobalInformation(List<CoreLabel> tokens,
CoreMap document,
CoreMap sentence)
|
void |
finalizeAnnotation(Annotation annotation) |
boolean |
usesSUTime() |
extractCombinationMode, extractCombinationModeSafe, labels, loadClassifier, loadClassifierFromPath, main, printProbsDocument, serializeClassifier, trainapply, backgroundSymbol, classify, 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, dumpFeatures, finalizeClassification, getKnownLCWords, getSampler, getSequenceModel, getViterbiSearchGraph, loadClassifier, loadClassifier, loadClassifier, loadClassifier, loadClassifier, loadClassifier, loadClassifierNoExceptions, loadClassifierNoExceptions, loadClassifierNoExceptions, loadClassifierNoExceptions, loadClassifierNoExceptions, loadJarClassifier, makeObjectBankFromFile, makeObjectBankFromFile, makeObjectBankFromFiles, makeObjectBankFromFiles, makeObjectBankFromFiles, makeObjectBankFromReader, makeObjectBankFromString, makePlainTextReaderAndWriter, makeReaderAndWriter, plainTextReaderAndWriter, printFeatureLists, printFeatures, printProbs, printProbsDocuments, printResults, reinit, segmentString, segmentString, train, train, train, train, train, train, windowSize, writeAnswersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identitypublic static final boolean APPLY_NUMERIC_CLASSIFIERS_DEFAULT
public static final String APPLY_NUMERIC_CLASSIFIERS_PROPERTY
public NERClassifierCombiner(Properties props) throws FileNotFoundException
FileNotFoundExceptionpublic NERClassifierCombiner(String... loadPaths) throws FileNotFoundException
FileNotFoundExceptionpublic NERClassifierCombiner(boolean applyNumericClassifiers,
boolean useSUTime,
String... loadPaths)
throws FileNotFoundException
FileNotFoundExceptionpublic NERClassifierCombiner(boolean applyNumericClassifiers,
boolean useSUTime,
Properties nscProps,
String... loadPaths)
throws FileNotFoundException
FileNotFoundExceptionpublic NERClassifierCombiner(AbstractSequenceClassifier<CoreLabel>... classifiers) throws FileNotFoundException
FileNotFoundExceptionpublic NERClassifierCombiner(boolean applyNumericClassifiers,
boolean useSUTime,
AbstractSequenceClassifier<CoreLabel>... classifiers)
throws FileNotFoundException
FileNotFoundExceptionpublic boolean appliesNumericClassifiers()
public boolean usesSUTime()
public List<CoreLabel> classify(List<CoreLabel> tokens)
ClassifierCombinerclassify in class ClassifierCombiner<CoreLabel>tokens - A List of INpublic List<CoreLabel> classifyWithGlobalInformation(List<CoreLabel> tokens, CoreMap document, CoreMap sentence)
AbstractSequenceClassifierList of something that extends CoreMap using as
additional information whatever is stored in the document and sentence.
This is needed for SUTime (NumberSequenceClassifier), which requires
the document date to resolve relative dates.classifyWithGlobalInformation in class ClassifierCombiner<CoreLabel>public void finalizeAnnotation(Annotation annotation)