public class SPOGraphFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
edgeIds |
Constructor and Description |
---|
SPOGraphFactory() |
Modifier and Type | Method and Description |
---|---|
Graph<GraphNode,GraphEdge> |
makeGraph(java.util.List<Link> links,
java.util.Map<Instance,Coreferences.Mention> mentions) |
private static GraphNode |
makePNode(int sentenceIdx,
Token predicate,
java.util.Map<Instance,GraphNode> nodes,
java.util.Map<Instance,Coreferences.Mention> mentions,
MutableGraph<GraphNode,GraphEdge> graph) |
private static GraphNode |
makeTNode(int sentenceIdx,
Token term,
java.util.Map<Instance,GraphNode> nodes,
java.util.Map<Instance,Coreferences.Mention> mentions,
MutableGraph<GraphNode,GraphEdge> graph) |
public Graph<GraphNode,GraphEdge> makeGraph(java.util.List<Link> links, java.util.Map<Instance,Coreferences.Mention> mentions)
private static GraphNode makePNode(int sentenceIdx, Token predicate, java.util.Map<Instance,GraphNode> nodes, java.util.Map<Instance,Coreferences.Mention> mentions, MutableGraph<GraphNode,GraphEdge> graph)
private static GraphNode makeTNode(int sentenceIdx, Token term, java.util.Map<Instance,GraphNode> nodes, java.util.Map<Instance,Coreferences.Mention> mentions, MutableGraph<GraphNode,GraphEdge> graph)