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

#include <rel_extract_SPR.h>

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

List of all members.

Public Member Functions

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

Private Member Functions

bool check_attr (const std::wstring &pat, const std::wstring &prop, std::map< std::wstring, freeling::dep_tree::const_iterator > &val, bool pref=false) const
bool next_node (freeling::dep_tree::const_preorder_iterator nd, std::list< node_pattern >::const_iterator p, std::map< std::wstring, freeling::dep_tree::const_iterator > &val) const
bool match_rule (freeling::dep_tree::const_preorder_iterator nd, std::list< node_pattern >::const_iterator p, std::map< std::wstring, freeling::dep_tree::const_iterator > &val) const

Private Attributes

std::list< rx_rulexrules
 relation extraction rules.

Constructor & Destructor Documentation

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

Member Function Documentation

bool freeling::rel_extract_SPR::check_attr ( const std::wstring &  pat,
const std::wstring &  prop,
std::map< std::wstring, freeling::dep_tree::const_iterator > &  val,
bool  pref = false 
) const [private]

Extract relations from given sentences.

Implements freeling::rel_extract.

bool freeling::rel_extract_SPR::match_rule ( freeling::dep_tree::const_preorder_iterator  nd,
std::list< node_pattern >::const_iterator  p,
std::map< std::wstring, freeling::dep_tree::const_iterator > &  val 
) const [private]
bool freeling::rel_extract_SPR::next_node ( freeling::dep_tree::const_preorder_iterator  nd,
std::list< node_pattern >::const_iterator  p,
std::map< std::wstring, freeling::dep_tree::const_iterator > &  val 
) const [private]

Member Data Documentation

relation extraction rules.


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