public class XMLReader
extends java.lang.Object
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,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 |
normalizeRoleName(java.lang.String role)
Convert Argument_CU and Related_to_CU to Argument and Related_to.
|
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.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 normalizeRoleName(java.lang.String role)