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

The basic class relaxcor_model implements the mention-pair model. More...

#include <relaxcor_model.h>

Inheritance diagram for freeling::relaxcor_model:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::map< std::wstring,
unsigned int
TfeaturesNames
typedef std::map< unsigned int,
bool > 
Tfeatures

Public Member Functions

 relaxcor_model (const std::wstring &)
virtual ~relaxcor_model ()
bool is_feature_name (const std::wstring &) const
 true when the wstring is the name of a feature in our model
unsigned int feature_name_id (const std::wstring &)
 returns the id of the feature name described as parameter
TfeaturesNames::const_iterator begin_features () const
 iterators of feature names
TfeaturesNames::const_iterator end_features () const
virtual double weight (const Tfeatures &) const =0
 returns the weight measuring the coreference degree of a mention-pair (positive or negative weight) Each mention-pair is given as the set of its features
virtual void print () const =0

Static Public Member Functions

static std::wstring print (const Tfeatures &f, bool activeonly=false)

Protected Member Functions

void print_feature_names () const
 print all the names and values of the model features

Protected Attributes

TfeaturesNames _Feature_names
 variable for the feature names with their ids

Detailed Description

The basic class relaxcor_model implements the mention-pair model.


Member Typedef Documentation

typedef std::map<unsigned int,bool> freeling::relaxcor_model::Tfeatures
typedef std::map<std::wstring, unsigned int> freeling::relaxcor_model::TfeaturesNames

Constructor & Destructor Documentation

freeling::relaxcor_model::relaxcor_model ( const std::wstring &  )
virtual freeling::relaxcor_model::~relaxcor_model ( ) [inline, virtual]

Member Function Documentation

TfeaturesNames::const_iterator freeling::relaxcor_model::begin_features ( ) const

iterators of feature names

TfeaturesNames::const_iterator freeling::relaxcor_model::end_features ( ) const
unsigned int freeling::relaxcor_model::feature_name_id ( const std::wstring &  )

returns the id of the feature name described as parameter

bool freeling::relaxcor_model::is_feature_name ( const std::wstring &  ) const

true when the wstring is the name of a feature in our model

virtual void freeling::relaxcor_model::print ( ) const [pure virtual]

Implemented in freeling::relaxcor_modelDT.

static std::wstring freeling::relaxcor_model::print ( const Tfeatures f,
bool  activeonly = false 
) [static]

print all the names and values of the model features

virtual double freeling::relaxcor_model::weight ( const Tfeatures ) const [pure virtual]

returns the weight measuring the coreference degree of a mention-pair (positive or negative weight) Each mention-pair is given as the set of its features

Implemented in freeling::relaxcor_modelDT.


Member Data Documentation

variable for the feature names with their ids


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