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 String[] |
files |
currentDocumentID, dictionaries, maxID, mentionFinder, semantics, singletonPredictor, stanfordProcessor, VERBOSE
Constructor and Description |
---|
ACEMentionExtractor(Dictionaries dict,
Properties props,
Semantics semantics) |
ACEMentionExtractor(Dictionaries dict,
Properties props,
Semantics semantics,
LogisticClassifier<String,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
protected int fileIndex
protected String[] files
public ACEMentionExtractor(Dictionaries dict, Properties props, Semantics semantics) throws Exception
Exception
public ACEMentionExtractor(Dictionaries dict, Properties props, Semantics semantics, LogisticClassifier<String,String> singletonModel) throws Exception
Exception
public void resetDocs()
MentionExtractor
resetDocs
in class MentionExtractor
public Document nextDoc() throws Exception
MentionExtractor
nextDoc
in class MentionExtractor
Exception