List of usage examples for edu.stanford.nlp.trees TreeGraphNode nodeString
public String nodeString()
From source file:org.purl.net.wonderland.nlp.ParseResult.java
License:Open Source License
private void mapTgn2Wt(TreeGraphNode node) { String label = node.nodeString(); int tmp = label.lastIndexOf("-") + 1; tmp = Integer.parseInt(label.substring(tmp)); tgn2int.put(node, tmp); tgn2wt.put(node, taggedSentence.get(tmp - 1)); }