FreeLing
4.0
|
The class coref implements a ML-based coreference classificator. More...
#include <coref.h>
Public Member Functions | |
coref (const std::wstring &) | |
Constructor. | |
~coref () | |
Destructor. | |
void | analyze (document &) const |
Classify SN's in given sentence in groups of coreference. | |
Private Member Functions | |
bool | check_coref (const mention_ab &s, const mention_ab &) const |
void | set_mention (parse_tree::iterator, int &, mention_ab &) const |
void | add_candidates (int, int &, int &, parse_tree::iterator, std::list< mention_ab > &) const |
Private Attributes | |
mention_detector * | detector |
mention detector | |
coref_fex * | extractor |
feature extractor | |
adaboost * | classifier |
adaboost classifier | |
int | MaxDistance |
Max distance to search for a coreference node. |
The class coref implements a ML-based coreference classificator.
freeling::coref::coref | ( | const std::wstring & | ) |
Constructor.
Destructor.
void freeling::coref::add_candidates | ( | int | , |
int & | , | ||
int & | , | ||
parse_tree::iterator | , | ||
std::list< mention_ab > & | |||
) | const [private] |
void freeling::coref::analyze | ( | document & | ) | const [virtual] |
Classify SN's in given sentence in groups of coreference.
Reimplemented from freeling::processor< document >.
bool freeling::coref::check_coref | ( | const mention_ab & | s, |
const mention_ab & | |||
) | const [private] |
void freeling::coref::set_mention | ( | parse_tree::iterator | , |
int & | , | ||
mention_ab & | |||
) | const [private] |
adaboost* freeling::coref::classifier [private] |
adaboost classifier
mention_detector* freeling::coref::detector [private] |
mention detector
coref_fex* freeling::coref::extractor [private] |
feature extractor
int freeling::coref::MaxDistance [private] |
Max distance to search for a coreference node.