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

Class for the feature extractor. More...

#include <coref_fex.h>

Collaboration diagram for freeling::coref_fex:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 coref_fex (unsigned int, const std::wstring &)
 ~coref_fex ()
void extract (const mention_ab &, const mention_ab &, std::vector< int > &)

Private Member Functions

wchar_t extract_number (const std::wstring &)
 auxiliary functions for feature extraction
wchar_t extract_gender (const std::wstring &)
std::wstring extract_semclass (const std::wstring &, const std::wstring &)
const wordget_head_word (parse_tree::iterator)
bool check_tag (const mention_ab &, int, const std::wstring &)
bool check_word (const std::wstring &, const std::wstring &)
bool check_acronim (const mention_ab &, const mention_ab &)
bool check_prefix (const mention_ab &, const mention_ab &)
bool check_sufix (const mention_ab &, const mention_ab &)
bool check_order (const mention_ab &, const mention_ab &)
int get_dist (const mention_ab &, const mention_ab &)
 feature functions
int get_numdedist (const mention_ab &, const mention_ab &)
int get_dedist (const mention_ab &, const mention_ab &)
int get_i_pronoun (const mention_ab &, const mention_ab &)
int get_j_pronoun (const mention_ab &, const mention_ab &)
int get_i_pronoun_p (const mention_ab &, const mention_ab &)
int get_j_pronoun_p (const mention_ab &, const mention_ab &)
int get_i_pronoun_d (const mention_ab &, const mention_ab &)
int get_j_pronoun_d (const mention_ab &, const mention_ab &)
int get_i_pronoun_x (const mention_ab &, const mention_ab &)
int get_j_pronoun_x (const mention_ab &, const mention_ab &)
int get_i_pronoun_i (const mention_ab &, const mention_ab &)
int get_j_pronoun_i (const mention_ab &, const mention_ab &)
int get_i_pronoun_t (const mention_ab &, const mention_ab &)
int get_j_pronoun_t (const mention_ab &, const mention_ab &)
int get_i_pronoun_r (const mention_ab &, const mention_ab &)
int get_j_pronoun_r (const mention_ab &, const mention_ab &)
int get_i_pronoun_e (const mention_ab &, const mention_ab &)
int get_j_pronoun_e (const mention_ab &, const mention_ab &)
int get_str_match (const mention_ab &, const mention_ab &)
int get_def_np (const mention_ab &, const mention_ab &)
int get_dem_np (const mention_ab &, const mention_ab &)
int get_number (const mention_ab &, const mention_ab &)
int get_gender (const mention_ab &, const mention_ab &)
int get_semclass (const mention_ab &, const mention_ab &)
int get_proper_noun_i (const mention_ab &, const mention_ab &)
int get_proper_noun_j (const mention_ab &, const mention_ab &)
int get_alias_acro (const mention_ab &, const mention_ab &)
int get_alias_prefix (const mention_ab &, const mention_ab &)
int get_alias_sufix (const mention_ab &, const mention_ab &)
int get_alias_order (const mention_ab &, const mention_ab &)
int get_appositive (const mention_ab &, const mention_ab &)
int get_i_inquotes (const mention_ab &, const mention_ab &)
int get_j_inquotes (const mention_ab &, const mention_ab &)
int get_i_inparenthesis (const mention_ab &, const mention_ab &)
int get_j_inparenthesis (const mention_ab &, const mention_ab &)
int get_i_thirdperson (const mention_ab &, const mention_ab &)
int get_j_thirdperson (const mention_ab &, const mention_ab &)
void put_feature (int, std::vector< int > &)

Private Attributes

semanticDBsemdb
 semantic database to check for semantic properties
unsigned int active_features
 active features

Detailed Description

Class for the feature extractor.


Constructor & Destructor Documentation

freeling::coref_fex::coref_fex ( unsigned  int,
const std::wstring &   
)

Member Function Documentation

bool freeling::coref_fex::check_acronim ( const mention_ab ,
const mention_ab  
) [private]
bool freeling::coref_fex::check_order ( const mention_ab ,
const mention_ab  
) [private]
bool freeling::coref_fex::check_prefix ( const mention_ab ,
const mention_ab  
) [private]
bool freeling::coref_fex::check_sufix ( const mention_ab ,
const mention_ab  
) [private]
bool freeling::coref_fex::check_tag ( const mention_ab ,
int  ,
const std::wstring &   
) [private]
bool freeling::coref_fex::check_word ( const std::wstring &  ,
const std::wstring &   
) [private]
void freeling::coref_fex::extract ( const mention_ab ,
const mention_ab ,
std::vector< int > &   
)
wchar_t freeling::coref_fex::extract_gender ( const std::wstring &  ) [private]
wchar_t freeling::coref_fex::extract_number ( const std::wstring &  ) [private]

auxiliary functions for feature extraction

std::wstring freeling::coref_fex::extract_semclass ( const std::wstring &  ,
const std::wstring &   
) [private]
int freeling::coref_fex::get_alias_acro ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_alias_order ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_alias_prefix ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_alias_sufix ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_appositive ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_dedist ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_def_np ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_dem_np ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_dist ( const mention_ab ,
const mention_ab  
) [private]

feature functions

int freeling::coref_fex::get_gender ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_inparenthesis ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_inquotes ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun_d ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun_e ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun_i ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun_p ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun_r ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun_t ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_pronoun_x ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_i_thirdperson ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_inparenthesis ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_inquotes ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun_d ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun_e ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun_i ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun_p ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun_r ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun_t ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_pronoun_x ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_j_thirdperson ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_number ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_numdedist ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_proper_noun_i ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_proper_noun_j ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_semclass ( const mention_ab ,
const mention_ab  
) [private]
int freeling::coref_fex::get_str_match ( const mention_ab ,
const mention_ab  
) [private]
void freeling::coref_fex::put_feature ( int  ,
std::vector< int > &   
) [inline, private]

Member Data Documentation

active features

semantic database to check for semantic properties


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