public class FindAceValues extends Object
| Constructor and Description |
|---|
FindAceValues() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bareType(String typeSubtype) |
static void |
buildAceValue(String id,
String typeSubtype,
Span extent,
AceDocument aceDoc,
String fileText)
constructs an AceValue and adds it to the AceDocument.
|
static void |
buildAceValues(Document doc,
String docId,
AceDocument aceDoc)
adds to AceDocument
aceDoc the Ace Values contained in
Document doc. |
static String |
getTypeSubtype(Document doc,
Annotation mention)
returns the AceValue type and subtype of a mention: Numeric, Crime,
Sentence, Contact-Info, ...
|
static boolean |
isDictLoaded()
returns
true if a value type dictionary has been loaded. |
static void |
pruneAceValues(AceDocument aceDoc)
remove AceValues of type Crime, Sentence, and Job-Title which are
not referenced by an event.
|
static void |
readTypeDict()
reads the Value type dictionary from the file specified by Jet
parameter
Ace.Value.fileName. |
static void |
readTypeDict(String dictFile)
reads the Value type dictionary from file
dictFile. |
public static void readTypeDict()
Ace.Value.fileName.public static void readTypeDict(String dictFile)
dictFile.public static boolean isDictLoaded()
true if a value type dictionary has been loaded.public static String getTypeSubtype(Document doc, Annotation mention)
public static void buildAceValues(Document doc, String docId, AceDocument aceDoc)
aceDoc the Ace Values contained in
Document doc. This method assumes that reference resolution
has added entity annotations to the document. All Crimes,
Sentences, and Job-Titles are added; ones which are not referenced will
later be deleted by pruneAceValues.public static void buildAceValue(String id, String typeSubtype, Span extent, AceDocument aceDoc, String fileText)
id - the ID of the AceValuetypeSubtype - the type and subtype of the Valueextent - the extent of the Value in the DocumentaceDoc - the AceDocument to which the Value is addedfiletext - the text of the Documentpublic static void pruneAceValues(AceDocument aceDoc)
Copyright © 2016 New York University. All rights reserved.