edu.stanford.nlp.trees
Interface HasTag

All Known Implementing Classes:
CategoryWordTag, NullLabel, Tag, TaggedWord

public interface HasTag

Something that implements the HasTag interface knows about part-of-speech tags.


Method Summary
 void setTag(String tag)
          Set the tag value for the label (if one is stored).
 String tag()
          Return the tag value of the label (or null if none).
 

Method Detail

tag

public String tag()
Return the tag value of the label (or null if none).

Returns:
String the tag value for the label

setTag

public void setTag(String tag)
Set the tag value for the label (if one is stored).

Parameters:
tag - The tag value for the label


Stanford NLP Group