FreeLing  3.0
Public Member Functions | Private Member Functions | Private Attributes
dep_txala Class Reference

dependencyMaker is a class for obtaining a dependency tree from chunks. More...

#include <dependencies.h>

Inheritance diagram for dep_txala:
Inheritance graph
[legend]
Collaboration diagram for dep_txala:
Collaboration graph
[legend]

List of all members.

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< sentenceanalyze (const std::list< sentence > &)
 analyze sentences, return analyzed copy

Private Member Functions

dep_treedependencies (parse_tree::iterator, parse_tree::iterator)
 compute dependency tree

Private Attributes

completer comp
 tree completer
depLabeler labeler
 dependency labeler
std::wstring start

Detailed Description

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


Constructor & Destructor Documentation

dep_txala::dep_txala ( const std::wstring &  ,
const std::wstring &   
)

constructor

constructor.

Load a dependecy rule file.


Member Function Documentation

void dep_txala::analyze ( sentence s) [virtual]
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().

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().

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().


Member Data Documentation

tree completer

Referenced by analyze().

dependency labeler

Referenced by analyze().

std::wstring dep_txala::start [private]

Referenced by analyze().


The documentation for this class was generated from the following files: