public class RelationTagger extends Object
This relation tagger is based on maximum entropy models and is a much faster replacement for the nearest-neighbor model used until 2011.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
mergeMultipleRelations
if true, multiple relation mentions (with different types) between a single pair
of entities are merged (coref'ed) into a single relation, with the type
of the first mention.
|
| Constructor and Description |
|---|
RelationTagger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
findRelations(String currentDoc,
Document d,
AceDocument ad)
relation 'decoder': using previously trained models, identifies
the relations in document 'doc' (from file name 'currentDoc') and adds them
as AceRelations to AceDocument 'aceDoc'.
|
static void |
main(String[] args)
trains a new relation tagger.
|
public static boolean mergeMultipleRelations
public static void main(String[] args) throws IOException
IOExceptionpublic static void findRelations(String currentDoc, Document d, AceDocument ad)
Copyright © 2016 New York University. All rights reserved.