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.
discodop.functiontags.trainfunctionclassifier(trees, sents, numproc)[source]

Train a classifier to predict functions tags in trees.

discodop.functiontags.applyfunctionclassifier(funcclassifier, tree, sent)[source]

Add predicted function tags to tree using classifier.

discodop.functiontags.functionfeatures(node, sent)[source]

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