FreeLing
4.0
|
#include <rel_extract_SRL.h>
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. |
freeling::rel_extract_SRL::rel_extract_SRL | ( | const std::wstring & | ) |
void freeling::rel_extract_SRL::extract_relations | ( | freeling::document & | doc | ) | const [virtual] |
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] |
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.