FreeLing  4.0
Public Member Functions | Private Member Functions | Private Attributes
freeling::rel_extract_SRL Class Reference

#include <rel_extract_SRL.h>

Inheritance diagram for freeling::rel_extract_SRL:
Inheritance graph
[legend]
Collaboration diagram for freeling::rel_extract_SRL:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 rel_extract_SRL (const std::wstring &)
 ~rel_extract_SRL ()
void extract_relations (freeling::document &doc) const
 Extract relations from given sentences.

Private Member Functions

int get_argument_head (const freeling::sentence &s, int apos, int ppos) const
bool is_aux (const freeling::sentence &s, int pos, int &childpos) const

Private Attributes

freeling::regexp ContentArgument
 PoS regexp for content arguments (create a new node in the graph)
std::map< std::wstring,
std::wstring > 
auxiliary
 list of auxiliary verbs, and child requirements to be considered as such
std::map< std::wstring,
std::wstring > 
nh_relatives
 list of relative pronouns and required tag.

Constructor & Destructor Documentation

freeling::rel_extract_SRL::rel_extract_SRL ( const std::wstring &  )

Member Function Documentation

Extract relations from given sentences.

Implements freeling::rel_extract.

int freeling::rel_extract_SRL::get_argument_head ( const freeling::sentence s,
int  apos,
int  ppos 
) const [private]
bool freeling::rel_extract_SRL::is_aux ( const freeling::sentence s,
int  pos,
int childpos 
) const [private]

Member Data Documentation

std::map<std::wstring,std::wstring> freeling::rel_extract_SRL::auxiliary [private]

list of auxiliary verbs, and child requirements to be considered as such

PoS regexp for content arguments (create a new node in the graph)

std::map<std::wstring,std::wstring> freeling::rel_extract_SRL::nh_relatives [private]

list of relative pronouns and required tag.

If the parser sets the verb of the relative clause as head, then the argument is the PR, and has to be raised to the head above the verb of the relative clause.


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