public class TreeTagger extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.fit.layout.model.Area |
root |
protected Vector<Tagger> |
taggers |
| Constructor and Description |
|---|
TreeTagger(org.fit.layout.model.Area root) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTagger(Tagger tagger) |
List<org.fit.layout.model.Tag> |
getAllTags()
Obtains the list of all tags used by the taggers
|
static edu.stanford.nlp.ie.AbstractSequenceClassifier<?> |
getSharedClassifier()
Checks if two logical nodes are joinable.
|
void |
tagSingleNode(org.fit.layout.model.Area area)
Applies all the taggers to a single tree node.
|
void |
tagSubtree(org.fit.layout.model.Area root)
Applies all the taggers a subtree of the area tree.
|
void |
tagTree()
Applies all the taggers to the whole tree.
|
public void addTagger(Tagger tagger)
public List<org.fit.layout.model.Tag> getAllTags()
public void tagTree()
public void tagSubtree(org.fit.layout.model.Area root)
root - the root node of the subtreepublic void tagSingleNode(org.fit.layout.model.Area area)
area - the tree nodepublic static edu.stanford.nlp.ie.AbstractSequenceClassifier<?> getSharedClassifier()
l1 - the first logical nodel2 - the second logical nodetrue if the nodes may be joinedCopyright © 2016. All rights reserved.