org.maltparser.core.graph.arc
Class MultipleHeadArcs
java.lang.Object
org.maltparser.core.graph.arc.MultipleHeadArcs
- All Implemented Interfaces:
- HeadArcs
public class MultipleHeadArcs
- extends Object
- implements HeadArcs
- Since:
- 1.0
- Author:
- Johan Hall
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
labelCodes
protected SortedMap<Node,ArcLabels> labelCodes
heads
protected SortedSet<Node> heads
MultipleHeadArcs
public MultipleHeadArcs()
clear
public void clear()
- Specified by:
clear
in interface HeadArcs
isSingleHeaded
public boolean isSingleHeaded()
- Specified by:
isSingleHeaded
in interface HeadArcs
hasHead
public boolean hasHead()
- Specified by:
hasHead
in interface HeadArcs
getHead
public Node getHead()
- Specified by:
getHead
in interface HeadArcs
getHead
public Node getHead(int index)
- Specified by:
getHead
in interface HeadArcs
getHeads
public SortedSet<Node> getHeads()
- Specified by:
getHeads
in interface HeadArcs
getLabelCode
public Integer getLabelCode(int headindex,
SymbolTable table)
- Specified by:
getLabelCode
in interface HeadArcs
getArcLabels
public ArcLabels getArcLabels(int headindex)
- Specified by:
getArcLabels
in interface HeadArcs
getFirstHeadArcLabels
public ArcLabels getFirstHeadArcLabels()
- Specified by:
getFirstHeadArcLabels
in interface HeadArcs
getFirstHeadLabelCode
public Integer getFirstHeadLabelCode(SymbolTable table)
- Specified by:
getFirstHeadLabelCode
in interface HeadArcs
getLabelCode
public Integer getLabelCode(Node head,
SymbolTable table)
- Specified by:
getLabelCode
in interface HeadArcs
hasLabelCodes
public boolean hasLabelCodes()
- Specified by:
hasLabelCodes
in interface HeadArcs
addHead
public void addHead(Node head,
ArcLabels arcLabelCodes)
- Specified by:
addHead
in interface HeadArcs
Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.