|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Edge
Field Summary | |
---|---|
static int |
DEPENDENCY_EDGE
|
static int |
PHRASE_STRUCTURE_EDGE
|
static int |
SECONDARY_EDGE
|
Method Summary | |
---|---|
Node |
getSource()
Returns the source node of the edge. |
Node |
getTarget()
Returns the target node of the edge. |
int |
getType()
Returns the edge type (DEPENDENCY_EDGE, PHRASE_STRUCTURE_EDGE or SECONDARY_EDGE). |
void |
setEdge(Node source,
Node target,
int type)
Sets the edge with a source node, a target node and a type (DEPENDENCY_EDGE, PHRASE_STRUCTURE_EDGE or SECONDARY_EDGE). |
Methods inherited from interface org.maltparser.core.syntaxgraph.Element |
---|
addLabel, addLabel, addLabel, clear, getBelongsToGraph, getLabelCode, getLabelSet, getLabelSymbol, getLabelTypes, hasLabel, isLabeled, nLabels, removeLabel, removeLabels, setBelongsToGraph |
Field Detail |
---|
static final int DEPENDENCY_EDGE
static final int PHRASE_STRUCTURE_EDGE
static final int SECONDARY_EDGE
Method Detail |
---|
void setEdge(Node source, Node target, int type) throws MaltChainedException
source
- a source nodetarget
- a target nodetype
- a type (DEPENDENCY_EDGE, PHRASE_STRUCTURE_EDGE or SECONDARY_EDGE)
MaltChainedException
Node getSource()
Node getTarget()
int getType()
|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |