FreeLing  4.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
freeling::rel_extract Class Reference

#include <rel_extract.h>

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

List of all members.

Public Member Functions

 rel_extract (const std::wstring &)
virtual ~rel_extract ()
virtual void extract_relations (freeling::document &doc) const =0
 Extract relations from given sentences.

Protected Types

enum  { DIRECT, SYNSARG }
 type of argument map. More...

Protected Member Functions

std::wstring argument_to_role (const std::wstring &wsr, const std::wstring &sense) const
std::wstring find_entity_node (freeling::semgraph::semantic_graph &sg, const freeling::sentence &sent, const freeling::word &wd) const
 check if mention has already appeared

Protected Attributes

std::wstring NEtag
 PoS tag for named entites.
freeling::databaseArgMap
 map to convert arguments (A0, A1, etc) to roles (Agent, Patient, etc)
enum freeling::rel_extract:: { ... }  mapType
 type of argument map.
std::wstring A0_label
 labels for A0,A1 produced by parser (SPR extractor only)
std::wstring A1_label

Member Enumeration Documentation

anonymous enum [protected]

type of argument map.

"DIRECT": "arg0-agt" maps to "A0:Agent" "SYNSARG" : each synset code maps to a list "A0:Agent A1:Patient..."

Enumerator:
DIRECT 
SYNSARG 

Constructor & Destructor Documentation

freeling::rel_extract::rel_extract ( const std::wstring &  )
virtual freeling::rel_extract::~rel_extract ( ) [virtual]

Member Function Documentation

std::wstring freeling::rel_extract::argument_to_role ( const std::wstring &  wsr,
const std::wstring &  sense 
) const [protected]
virtual void freeling::rel_extract::extract_relations ( freeling::document doc) const [pure virtual]

Extract relations from given sentences.

Implemented in freeling::rel_extract_SPR, and freeling::rel_extract_SRL.

std::wstring freeling::rel_extract::find_entity_node ( freeling::semgraph::semantic_graph sg,
const freeling::sentence sent,
const freeling::word wd 
) const [protected]

check if mention has already appeared


Member Data Documentation

std::wstring freeling::rel_extract::A0_label [protected]

labels for A0,A1 produced by parser (SPR extractor only)

std::wstring freeling::rel_extract::A1_label [protected]

map to convert arguments (A0, A1, etc) to roles (Agent, Patient, etc)

enum { ... } freeling::rel_extract::mapType [protected]

type of argument map.

"DIRECT": "arg0-agt" maps to "A0:Agent" "SYNSARG" : each synset code maps to a list "A0:Agent A1:Patient..."

std::wstring freeling::rel_extract::NEtag [protected]

PoS tag for named entites.


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