edu.stanford.nlp.trees.tregex.gui
Class TreeFromFile
java.lang.Object
edu.stanford.nlp.trees.tregex.gui.TreeFromFile
public class TreeFromFile
- extends java.lang.Object
Simple utility class for storing a tree as well as the sentence the tree represents and
a label with the filename of the file that the tree was stored in.
- Author:
- Anna Rafferty
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TreeFromFile
public TreeFromFile(Tree t)
TreeFromFile
public TreeFromFile(Tree t,
java.lang.String filename)
getFilename
public java.lang.String getFilename()
setFilename
public void setFilename(java.lang.String filename)
getSentenceId
public int getSentenceId()
getTree
public Tree getTree()
getLabel
public javax.swing.JTextField getLabel()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setDiffConstituents
public void setDiffConstituents(java.util.Set<Constituent> lessConstituents)
getDiffConstituents
public java.util.Set<Constituent> getDiffConstituents()
setDiffDecoratedTree
public void setDiffDecoratedTree(Tree decoratedTree)
getDiffDecoratedTree
public Tree getDiffDecoratedTree()
Stanford NLP Group