public class XMLReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String[] |
attrHeadings |
private static boolean |
VERBOSE |
Constructor and Description |
---|
XMLReader() |
Modifier and Type | Method and Description |
---|---|
private static void |
addRelation(java.util.ArrayList<RelationInfo> relations,
java.util.List<?> hasSlotMentions,
java.util.HashMap<java.lang.String,ArgumentInfo> hashComplexSlotMentions,
java.lang.String relationType) |
static java.util.HashMap<java.lang.String,ArgumentInfo> |
getAttributes(Document document)
Attributes of each named entity indexed on mention ids.
|
static java.util.HashMap<java.lang.String,ArgumentInfo> |
getAttributes(Document document,
java.lang.String[] headings)
Attributes of each named entity indexed on mention ids.
|
static java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
getEntityAttributes(Document document)
Attribute mention IDs of each named entity, indexed on mention ids
Filter based on entity types, so non-NE get left out.
|
static java.util.HashMap<java.lang.String,java.util.ArrayList<Span>> |
getEntityMentions(Document document)
Get spans of named entity annotations indexed on knowtator mention id
|
static java.util.HashMap<java.lang.String,java.lang.String> |
getEntityTypes(Document document)
Type of each named entity indexed on mention ids
|
static java.util.ArrayList<RelationInfo> |
getRelations(Document document) |
private static java.lang.String |
normalizeName(java.lang.String role)
Convert Argument_CU and Related_to_CU to Argument and Related_to.
|
static java.lang.String[] attrHeadings
private static boolean VERBOSE
public static java.util.HashMap<java.lang.String,java.util.ArrayList<Span>> getEntityMentions(Document document)
public static java.util.HashMap<java.lang.String,java.lang.String> getEntityTypes(Document document)
public static java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getEntityAttributes(Document document)
public static java.util.HashMap<java.lang.String,ArgumentInfo> getAttributes(Document document)
public static java.util.HashMap<java.lang.String,ArgumentInfo> getAttributes(Document document, java.lang.String[] headings)
public static java.util.ArrayList<RelationInfo> getRelations(Document document)
private static void addRelation(java.util.ArrayList<RelationInfo> relations, java.util.List<?> hasSlotMentions, java.util.HashMap<java.lang.String,ArgumentInfo> hashComplexSlotMentions, java.lang.String relationType)
private static java.lang.String normalizeName(java.lang.String role)