public class TreeTagger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Area |
root |
static edu.stanford.nlp.ie.AbstractSequenceClassifier<?> |
sharedClassifier |
protected java.util.Vector<Tagger> |
taggers |
Constructor and Description |
---|
TreeTagger(Area root) |
Modifier and Type | Method and Description |
---|---|
void |
addTagger(Tagger tagger) |
java.util.List<Tag> |
getAllTags()
Obtains the list of all tags used by the taggers
|
void |
tagSingleNode(Area area)
Applies all the taggers to a single tree node.
|
void |
tagSubtree(Area root)
Applies all the taggers a subtree of the area tree.
|
void |
tagTree()
Applies all the taggers to the whole tree.
|
public static edu.stanford.nlp.ie.AbstractSequenceClassifier<?> sharedClassifier
protected Area root
protected java.util.Vector<Tagger> taggers
public TreeTagger(Area root)
public void addTagger(Tagger tagger)
public java.util.List<Tag> getAllTags()
public void tagTree()
public void tagSubtree(Area root)
root
- the root node of the subtreepublic void tagSingleNode(Area area)
area
- the tree node