List of usage examples for edu.stanford.nlp.ling IndexedWord setTag
@Override
public void setTag(String tag)
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; }