dependencyMaker is a class for obtaining a dependency tree from chunks. More...
#include <dependencies.h>
Public Member Functions | |
dep_txala (const std::string &, const std::string &) | |
constructor | |
void | analyze (std::list< sentence > &) |
Enrich all sentences in given list with a depenceny tree. | |
std::list< sentence > | analyze (const std::list< sentence > &) |
Enrich all sentences in given list, return a copy. | |
Private Member Functions | |
dep_tree * | dependencies (parse_tree::iterator, parse_tree::iterator) |
compute dependency tree | |
Private Attributes | |
completer | comp |
tree completer | |
depLabeler | labeler |
dependency labeler | |
std::string | start |
dependencyMaker is a class for obtaining a dependency tree from chunks.
this implementation uses two subclasses: completer: to complete the chunk analysis in a full parse tree depLabeler: to set the labels once the class has build a dependency tree
dep_txala::dep_txala | ( | const std::string & | , | |
const std::string & | ||||
) |
constructor
std::list<sentence> dep_txala::analyze | ( | const std::list< sentence > & | ) | [virtual] |
Enrich all sentences in given list, return a copy.
Implements dependency_parser.
void dep_txala::analyze | ( | std::list< sentence > & | ) | [virtual] |
Enrich all sentences in given list with a depenceny tree.
Implements dependency_parser.
dep_tree * dep_txala::dependencies | ( | parse_tree::iterator | tr, | |
parse_tree::iterator | link | |||
) | [private] |
completer dep_txala::comp [private] |
tree completer
depLabeler dep_txala::labeler [private] |
dependency labeler
std::string dep_txala::start [private] |