public class ACEMentionExtractor extends MentionExtractor
<COREF>
mentions from a file annotated in ACE format (ACE2004, ACE2005).Modifier and Type | Field and Description |
---|---|
protected int |
fileIndex |
protected java.lang.String[] |
files |
currentDocumentID, dictionaries, maxID, mentionFinder, semantics, singletonPredictor, stanfordProcessor, VERBOSE
Constructor and Description |
---|
ACEMentionExtractor(Dictionaries dict,
java.util.Properties props,
Semantics semantics) |
ACEMentionExtractor(Dictionaries dict,
java.util.Properties props,
Semantics semantics,
LogisticClassifier<java.lang.String,java.lang.String> singletonModel) |
Modifier and Type | Method and Description |
---|---|
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 ACEMentionExtractor(Dictionaries dict, java.util.Properties props, Semantics semantics) throws java.lang.Exception
java.lang.Exception
public ACEMentionExtractor(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