Example usage for edu.stanford.nlp.trees TreeGraphNode nodeString

List of usage examples for edu.stanford.nlp.trees TreeGraphNode nodeString

Introduction

In this page you can find the example usage for edu.stanford.nlp.trees TreeGraphNode nodeString.

Prototype

public String nodeString() 

Source Link

Document

Returns the value of the node's label as a String.

Usage

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));
}