Example usage for edu.stanford.nlp.ling IndexedWord setTag

List of usage examples for edu.stanford.nlp.ling IndexedWord setTag

Introduction

In this page you can find the example usage for edu.stanford.nlp.ling IndexedWord setTag.

Prototype

@Override
    public void setTag(String tag) 

Source Link

Usage

From source file:opendial.bn.values.RelationalVal.java

License:Open Source License

public int addNode(String value, List<String> attributes) {
    int index = addNode(value);
    IndexedWord label = graph.vertexListSorted().get(graph.size() - 1);
    String joinedAttrs = String.join("|", attributes);
    label.setTag(joinedAttrs);
    graph.resetRoots();//  ww  w.j a va 2 s. c om
    cachedHashCode = 0;
    return index;
}