public class MaxEntResolve extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
linkAppositesAndPredComps
set to true if apposites and predicate complements should be
linked coreferentially.
|
static boolean |
nameTypeMatch
set to true if a pair of names can be linked only if they have been
assigned the same named entity type.
|
static SentenceSet |
sentenceSet
the set of sentences in the document
|
static boolean |
trace |
| Constructor and Description |
|---|
MaxEntResolve() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
trains the pronoun coreference model from a training collection
of coreference-annotated documents.
|
static float |
matchPronoun(Document doc,
Annotation anaphor,
String pronoun,
Annotation entity,
boolean parse,
ArrayList<Annotation> antecedents)
return the probability that pronoun 'pronoun' is a possible anaphor for
entity 'ent' (this also includes possessive pronouns of category
'det', and headless noun phrases of category 'np').
|
static void |
references(Document doc,
Span span)
Resolve.references resolves the mentions (noun groups) in
span of Document doc. |
static void |
references(Document doc,
Span span,
Vector mentions,
Vector clauses) |
static void |
train(Document doc)
trains coreference from a document
doc marked with
coref tags. |
static void |
train(String directory,
String fileList,
int limit)
trains coreference from a set of files marked with coref tags.
|
static void |
trainOnMention(Document doc,
Annotation mention)
add information on mention
mention and its possible
antecedents to the training data which will be used to train the
coreference model. |
public static SentenceSet sentenceSet
public static boolean linkAppositesAndPredComps
public static boolean nameTypeMatch
public static boolean trace
public static void references(Document doc, Span span)
Resolve.references resolves the mentions (noun groups) in
span of Document doc. It generates
entity annotations, corresponding to one or more mentions in the
document which are coreferential. In addition, for every event
annotation in span, it generates an r-event
annotation in which each feature pointing to a mention is replaced by
the entity to which that mention has been resolved.public static void train(String directory, String fileList, int limit) throws IOException
directory - the directory containing the marked filesfileList - a list of text file names, one per line.IOExceptionpublic static void train(Document doc)
doc marked with
coref tags.public static void trainOnMention(Document doc, Annotation mention)
mention and its possible
antecedents to the training data which will be used to train the
coreference model.public static float matchPronoun(Document doc, Annotation anaphor, String pronoun, Annotation entity, boolean parse, ArrayList<Annotation> antecedents)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2016 New York University. All rights reserved.