Package cz.vutbr.fit.layout.text.tag
Class TreeTagger
- java.lang.Object
-
- cz.vutbr.fit.layout.text.tag.TreeTagger
-
public class TreeTagger extends Object
This class implements the area tree tagging.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description TreeTagger(Area root, Map<Tag,Tagger> taggers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Tag>getAllTags()Obtains the collection of all tags used by the taggersvoidtagSingleNode(Area area)Applies all the taggers to a single tree node.voidtagSubtree(Area root)Applies all the taggers a subtree of the area tree.voidtagTree()Applies all the taggers to the whole tree.
-
-
-
Method Detail
-
getAllTags
public Collection<Tag> getAllTags()
Obtains the collection of all tags used by the taggers- Returns:
- the collection of tags
-
tagTree
public void tagTree()
Applies all the taggers to the whole tree.
-
tagSubtree
public void tagSubtree(Area root)
Applies all the taggers a subtree of the area tree.- Parameters:
root- the root node of the subtree
-
tagSingleNode
public void tagSingleNode(Area area)
Applies all the taggers to a single tree node.- Parameters:
area- the tree node
-
-