|
FreeLing
3.0
|
dependencyMaker is a class for obtaining a dependency tree from chunks. More...
#include <dependencies.h>


Public Member Functions | |
| dep_txala (const std::wstring &, const std::wstring &) | |
| constructor | |
| void | analyze (sentence &) |
| analyze given sentences | |
| void | analyze (std::list< sentence > &) |
| analyze given sentences | |
| sentence | analyze (const sentence &) |
| analyze sentence, return analyzed copy | |
| std::list< sentence > | analyze (const std::list< sentence > &) |
| analyze sentences, return analyzed 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::wstring | 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::wstring & | , |
| const std::wstring & | |||
| ) |
constructor
constructor.
Load a dependecy rule file.
| void dep_txala::analyze | ( | sentence & | s | ) | [virtual] |
analyze given sentences
Enrich given sentence with a depenceny tree.
Implements dependency_parser.
References tree< T >::begin(), comp, completer::complete(), dependencies(), sentence::get_parse_tree(), depLabeler::label(), labeler, sentence::num_kbest(), sentence::set_dep_tree(), sentence::set_parse_tree(), and start.
Referenced by analyze().
| void dep_txala::analyze | ( | std::list< sentence > & | ls | ) |
analyze given sentences
analyze sentences in given list, enrich with dep trees
Reimplemented from dependency_parser.
References analyze().
| sentence dep_txala::analyze | ( | const sentence & | s | ) |
analyze sentence, return analyzed copy
analyze given sentence, return analized copy
Reimplemented from dependency_parser.
References analyze().
| std::list< sentence > dep_txala::analyze | ( | const std::list< sentence > & | ls | ) |
analyze sentences, return analyzed copy
analyze sentences in given list, return analized copy
Reimplemented from dependency_parser.
References analyze().
| dep_tree * dep_txala::dependencies | ( | parse_tree::iterator | tr, |
| parse_tree::iterator | link | ||
| ) | [private] |
compute dependency tree
Obtain a depencendy tree from a parse tree.
References tree< T >::hang_child(), tree< T >::info, node::set_chunk(), depnode::set_link(), and WARNING.
Referenced by analyze().
completer dep_txala::comp [private] |
tree completer
Referenced by analyze().
depLabeler dep_txala::labeler [private] |
dependency labeler
Referenced by analyze().
std::wstring dep_txala::start [private] |
Referenced by analyze().
1.7.6.1