public class CoNLLMentionExtractor extends MentionExtractor
currentDocumentID, dictionaries, maxID, mentionFinder, semantics, singletonPredictor, stanfordProcessor, VERBOSE
Constructor and Description |
---|
CoNLLMentionExtractor(Dictionaries dict,
java.util.Properties props,
Semantics semantics) |
CoNLLMentionExtractor(Dictionaries dict,
java.util.Properties props,
Semantics semantics,
LogisticClassifier<java.lang.String,java.lang.String> singletonModel) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.List<Mention>> |
extractGoldMentions(CoNLL2011DocumentReader.Document conllDoc) |
Document |
nextDoc()
Extracts the info relevant for coref from the next document in the corpus
|
void |
resetDocs()
Reset so that we start at the beginning of the document collection
|
arrange, arrange, arrange, findExactMatch, getHeadIndex, initializeUtterance, loadStanfordProcessor, mergeLabels, setMentionFinder
public CoNLLMentionExtractor(Dictionaries dict, java.util.Properties props, Semantics semantics) throws java.lang.Exception
java.lang.Exception
public CoNLLMentionExtractor(Dictionaries dict, java.util.Properties props, Semantics semantics, LogisticClassifier<java.lang.String,java.lang.String> singletonModel) throws java.lang.Exception
java.lang.Exception
public void resetDocs()
MentionExtractor
resetDocs
in class MentionExtractor
public Document nextDoc() throws java.lang.Exception
MentionExtractor
nextDoc
in class MentionExtractor
java.lang.Exception
public java.util.List<java.util.List<Mention>> extractGoldMentions(CoNLL2011DocumentReader.Document conllDoc)