FreeLing  4.0
Public Member Functions | Public Attributes
freeling::rx_rule Class Reference

Auxiliary class to store relation extraction rules. More...

#include <rel_extract_SPR.h>

List of all members.

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_patternrpath
 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

Detailed Description

Auxiliary class to store relation extraction rules.


Constructor & Destructor Documentation

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


Member Data Documentation

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::id

rule id, used for debugging purposes only

relation rule is a list of node patterns with a up/down direction


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