public class DNode extends Object
This follows CoNLL-U shared task: Multi-Lingual Dependency Parsing Format http://universaldependencies.github.io/docs/format.html
Created by Maochen on 12/8/14.
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMED_ENTITY_KEY |
| Constructor and Description |
|---|
DNode() |
DNode(int id,
String form,
String lemma,
String cPOSTag,
String pos,
String depLabel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(DNode child) |
void |
addFeature(String key,
String value) |
void |
addSemanticHead(DNode parent,
String label) |
List<DNode> |
getChildren() |
List<DNode> |
getChildrenByDepLabels(String... labels) |
String |
getcPOSTag() |
String |
getDepLabel() |
Map<String,String> |
getFeats() |
String |
getFeature(String key) |
String |
getForm() |
DNode |
getHead() |
int |
getId() |
String |
getLemma() |
String |
getNamedEntity() |
String |
getPOS() |
Set<DNode> |
getSemanticChildren() |
Map<DNode,String> |
getSemanticHeads() |
DTree |
getTree() |
boolean |
isRoot() |
void |
removeChild(int id) |
void |
setcPOSTag(String cPOSTag) |
void |
setDepLabel(String depLabel) |
void |
setFeats(Map<String,String> feats) |
void |
setForm(String form) |
void |
setHead(DNode head) |
void |
setId(int id) |
void |
setLemma(String lemma) |
void |
setNamedEntity(String namedEntity) |
void |
setPOS(String pos) |
void |
setSemanticChildren(Set<DNode> semanticChildren) |
void |
setTree(DTree tree) |
String |
toString() |
public static final String NAMED_ENTITY_KEY
public int getId()
public void setId(int id)
public String getForm()
public void setForm(String form)
public String getLemma()
public void setLemma(String lemma)
public String getcPOSTag()
public void setcPOSTag(String cPOSTag)
public String getPOS()
public void setPOS(String pos)
public String getDepLabel()
public void setDepLabel(String depLabel)
public DNode getHead()
public void setHead(DNode head)
public void addChild(DNode child)
public void removeChild(int id)
public String getNamedEntity()
public void setNamedEntity(String namedEntity)
public boolean isRoot()
public DTree getTree()
public void setTree(DTree tree)
Copyright © 2017. All rights reserved.