Package edu.stanford.nlp.trees
Class TreebankTagUpdater
- java.lang.Object
-
- edu.stanford.nlp.trees.TreebankTagUpdater
-
public class TreebankTagUpdater extends Object
Class for automatically applying tags to a treebank
-
-
Field Summary
Fields Modifier and Type Field Description MaxentTaggermaxentTagger
-
Constructor Summary
Constructors Constructor Description TreebankTagUpdater(String taggerPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Tree>getTaggedLeaves(Tree tree)static voidmain(String[] args)Read in a tree file, print out trees with updated tagsvoidtagTree(Tree tree)run the supplied tagger on the leaves of this tree and update
-
-
-
Field Detail
-
maxentTagger
public MaxentTagger maxentTagger
-
-
Constructor Detail
-
TreebankTagUpdater
public TreebankTagUpdater(String taggerPath)
-
-
Method Detail
-
tagTree
public void tagTree(Tree tree)
run the supplied tagger on the leaves of this tree and update
-
main
public static void main(String[] args) throws IOException
Read in a tree file, print out trees with updated tags- Throws:
IOException
-
-