public class EDTtype extends Object
| Constructor and Description |
|---|
EDTtype() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bareType(String typeSubtype) |
static void |
emptyGenericDict() |
static String |
getTypeSubtype(Document doc,
Annotation entity,
Annotation mention)
returns the EDT type of a mention: PERSON, GPE, ORGANIZATION,
LOCATION, FACILITY, or OTHER (where OTHER indicates that it is not
and EDT mention).
|
static boolean |
hasGenericHead(Document doc,
Annotation mention) |
static boolean |
isDictLoaded()
returns
true if an EDT type dictionary has been loaded. |
static void |
main(String[] args) |
static void |
readGenericDict() |
static void |
readGenericDict(String dictFile) |
static void |
readTypeDict()
reads the EDT type dictionary from the file specified by Jet
parameters
Ace.EDTtype.fileName and
Ace.EDTtype.auxFileName. |
static void |
readTypeDict(String dictFile)
reads the EDT type dictionary from file
dictFile. |
public static void main(String[] args) throws IOException
IOExceptionpublic static void readTypeDict()
Ace.EDTtype.fileName and
Ace.EDTtype.auxFileName.public static void readTypeDict(String dictFile)
dictFile.public static boolean isDictLoaded()
true if an EDT type dictionary has been loaded.public static void emptyGenericDict()
public static void readGenericDict()
public static void readGenericDict(String dictFile)
public static boolean hasGenericHead(Document doc, Annotation mention)
public static String getTypeSubtype(Document doc, Annotation entity, Annotation mention)
Copyright © 2016 New York University. All rights reserved.