|
FreeLing
4.0
|
The basic class relaxcor_model implements the mention-pair model. More...
#include <relaxcor_model.h>

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 | |
The basic class relaxcor_model implements the mention-pair model.
| typedef std::map<unsigned int,bool> freeling::relaxcor_model::Tfeatures |
| typedef std::map<std::wstring, unsigned int> freeling::relaxcor_model::TfeaturesNames |
| freeling::relaxcor_model::relaxcor_model | ( | const std::wstring & | ) |
| virtual freeling::relaxcor_model::~relaxcor_model | ( | ) | [inline, virtual] |
| 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] |
| void freeling::relaxcor_model::print_feature_names | ( | ) | const [protected] |
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.
variable for the feature names with their ids
1.7.6.1