discodop.functiontags¶
Function tags classifier.
Functions
applyfunctionclassifier (funcclassifier, …) |
Add predicted function tags to tree using classifier. |
basefeatures (node, sent[, prefix]) |
A set features describing this particular node. |
functionfeatures (node, sent) |
Return a list of features for node to predict its function tag. |
trainfunctionclassifier (trees, sents, numproc) |
Train a classifier to predict functions tags in trees. |
Train a classifier to predict functions tags in trees.
Add predicted function tags to tree using classifier.
Return a list of features for node to predict its function tag.
The node must be a ParentedTree, with head information.
The features are based on Blaheta & Charniak (2000), Assigning Function Tags to Parsed Text. http://aclweb.org/anthology/A00-2031