FreeLing
4.0
|
Auxiliary class to store relation extraction rules. More...
#include <rel_extract_SPR.h>
Public Member Functions | |
rx_rule (const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &) | |
constructor: build rule given regex string and key positions | |
~rx_rule () | |
destructor | |
Public Attributes | |
std::wstring | id |
rule id, used for debugging purposes only | |
std::list< node_pattern > | rpath |
relation rule is a list of node patterns with a up/down direction | |
std::wstring | entity1 |
extraction rule also stores information about which sub-regex must be used to extract the components of the triple Entity1-Relation-Entity2 | |
std::wstring | relation |
std::wstring | entity2 |
Auxiliary class to store relation extraction rules.
freeling::rx_rule::rx_rule | ( | const std::wstring & | , |
const std::wstring & | , | ||
const std::wstring & | , | ||
const std::wstring & | , | ||
const std::wstring & | |||
) |
constructor: build rule given regex string and key positions
destructor
std::wstring freeling::rx_rule::entity1 |
extraction rule also stores information about which sub-regex must be used to extract the components of the triple Entity1-Relation-Entity2
std::wstring freeling::rx_rule::entity2 |
std::wstring freeling::rx_rule::id |
rule id, used for debugging purposes only
std::wstring freeling::rx_rule::relation |
std::list<node_pattern> freeling::rx_rule::rpath |
relation rule is a list of node patterns with a up/down direction