public class DocumentPreprocessor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
extractGoldClusters(Document doc)
Extract gold coref cluster information.
|
protected static void |
findTwinMentions(Document doc,
boolean strict)
Mark twin mentions in gold and predicted mentions
|
protected static int |
getHeadIndex(Tree t,
HeadFinder headFinder) |
static boolean |
isSpeaker(Mention m,
Mention ant,
Dictionaries dict)
Check one mention is the speaker of the other mention
|
static void |
preprocess(Document doc,
Dictionaries dict,
LogisticClassifier<java.lang.String,java.lang.String> singletonPredictor,
HeadFinder headFinder)
Fill missing information in document including mention ID, mention attributes, syntactic relation, etc.
|
protected static void |
processDiscourse(Document doc,
Dictionaries dict)
Process discourse information
|
public static void preprocess(Document doc, Dictionaries dict, LogisticClassifier<java.lang.String,java.lang.String> singletonPredictor, HeadFinder headFinder) throws java.lang.Exception
java.lang.Exception
public static void extractGoldClusters(Document doc)
protected static int getHeadIndex(Tree t, HeadFinder headFinder)
protected static void findTwinMentions(Document doc, boolean strict)
protected static void processDiscourse(Document doc, Dictionaries dict)
public static boolean isSpeaker(Mention m, Mention ant, Dictionaries dict)