#include <linguisticProcessing/core/WordSenseAnalysis/WordSenseAnnotation.h>
|
| | WordSenseAnnotation () |
| |
| | WordSenseAnnotation (const Mode mode, const Mapping mapping, const float confidence, LinguisticGraphVertex v) |
| |
| | WordSenseAnnotation (const Mode mode, const Mapping mapping, LinguisticGraphVertex v) |
| |
| | WordSenseAnnotation (const WordSenseAnnotation &wsa) |
| |
| WordSenseAnnotation & | operator= (const WordSenseAnnotation &wsa) |
| |
| virtual | ~WordSenseAnnotation () |
| |
| uint64_t | senseId () |
| |
| uint64_t | senseId () const |
| |
| std::string | senseTag () |
| |
| std::string | senseTag () const |
| |
| std::string | mode () |
| |
| std::string | mapping () |
| |
| const std::string | mode () const |
| |
| const std::string | mapping () const |
| |
| float | confidence () const |
| |
| LinguisticGraphVertex | morphVertex () |
| |
| LinguisticGraphVertex | morphVertex () const |
| |
| AnnotationGraphVertex | av () |
| |
| AnnotationGraphVertex | av () const |
| |
| void | senseId (uint64_t newSenseId) |
| |
| void | confidence (const float newConfidence) |
| |
| void | morphVertex (LinguisticGraphVertex v) |
| |
| void | av (AnnotationGraphVertex av) |
| |
| void | dump (std::ostream &os) |
| |
| bool | isDisambiguated () const |
| | general test functions
|
| |
| bool | disambiguate (const WordUnit &wu) |
| | main functions of the global algorithm (called by WordSenseDisambiguator)
|
| |
| bool | disambiguate (KnnSearcher *searcher, const WordUnit &wu, const SemanticContext &context, double thres, char method) |
| |
| AnnotationGraphVertex | writeAnnotation (Common::AnnotationGraphs::AnnotationData *ad) const |
| |
| virtual void | outputXml (std::ostream &xmlStream, const LinguisticGraph &g) const |
| |
|
| std::set< WordSenseUnit >::iterator | classify (const WordUnit &wu, const SemanticContext &context, const std::map< int, std::map< std::string, double > > &cvListRep, const double thres, const char method) |
| |
| int | computeConfidenceVector (const WordUnit &wu, const NNList &knns, const SemanticContext::const_iterator itContext, std::map< int, std::map< std::string, double > > &cvListRep) |
| |
| double | cvCluster (const std::map< int, std::map< std::string, double > > &cvListRep, const std::string &relation, int id_cluster) |
| | cv_cluster_rep: @cv_list_rep: la matrice 'cv_list_rep' (voir fonction précédente) @nb_clusters: nombre de clusters découverts pour le mot @id_relation: numero d'une relation @id_cluster: numero d'un cluster
|
| |
| double | sumCvCluster (std::map< int, std::map< std::string, double > > &cvListRep, std::string relation) |
| | sum_cv_cluster_rep: @cv_list_rep: la matrice 'cv_list_rep' (voir fonction précédente) @nb_clusters: nombre de clusters découverts pour le mot @id_relation: numero d'une relation
|
| |
| double | sumLogCv (const std::map< int, std::map< std::string, double > > &cvListRep, const std::string &relation) |
| |
| double | sumLogCvList (const std::map< int, std::map< std::string, double > > &cvListRep) |
| |
| void | retrieveSense (std::set< WordSenseUnit >::iterator itSenses) |
| |
| float | classifKnnMRD (KnnSearcher *searcher, const WordUnit &wu, const SemanticContext &context, double thres, char method) |
| |
Definition at line 40 of file WordSenseAnnotation.h.
◆ WordSenseAnnotation() [1/4]
| Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::WordSenseAnnotation |
( |
| ) |
|
|
inline |
◆ WordSenseAnnotation() [2/4]
| Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::WordSenseAnnotation |
( |
const Mode |
mode, |
|
|
const Mapping |
mapping, |
|
|
const float |
confidence, |
|
|
LinguisticGraphVertex |
v |
|
) |
| |
|
inline |
◆ WordSenseAnnotation() [3/4]
| Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::WordSenseAnnotation |
( |
const Mode |
mode, |
|
|
const Mapping |
mapping, |
|
|
LinguisticGraphVertex |
v |
|
) |
| |
|
inline |
◆ WordSenseAnnotation() [4/4]
| Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::WordSenseAnnotation |
( |
const WordSenseAnnotation & |
wsa | ) |
|
|
inline |
◆ ~WordSenseAnnotation()
| virtual Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::~WordSenseAnnotation |
( |
| ) |
|
|
inlinevirtual |
◆ av() [1/3]
◆ av() [2/3]
| AnnotationGraphVertex Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::av |
( |
| ) |
const |
|
inline |
◆ av() [3/3]
| void Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::av |
( |
AnnotationGraphVertex |
av | ) |
|
|
inline |
◆ classifKnnMRD()
| float Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::classifKnnMRD |
( |
KnnSearcher * |
searcher, |
|
|
const WordUnit & |
wu, |
|
|
const SemanticContext & |
context, |
|
|
double |
thres, |
|
|
char |
method |
|
) |
| |
|
protected |
◆ classify()
| std::set< WordSenseUnit >::iterator Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::classify |
( |
const WordUnit & |
wu, |
|
|
const SemanticContext & |
context, |
|
|
const std::map< int, std::map< std::string, double > > & |
cvListRep, |
|
|
const double |
thres, |
|
|
const char |
method |
|
) |
| |
|
protected |
◆ computeConfidenceVector()
| int Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::computeConfidenceVector |
( |
const WordUnit & |
wu, |
|
|
const NNList & |
knns, |
|
|
const SemanticContext::const_iterator |
itContext, |
|
|
std::map< int, std::map< std::string, double > > & |
cvListRep |
|
) |
| |
|
protected |
◆ confidence() [1/2]
| float Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::confidence |
( |
| ) |
const |
|
inline |
◆ confidence() [2/2]
| void Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::confidence |
( |
const float |
newConfidence | ) |
|
|
inline |
◆ cvCluster()
| double Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::cvCluster |
( |
const std::map< int, std::map< std::string, double > > & |
cvListRep, |
|
|
const std::string & |
relation, |
|
|
int |
id_cluster |
|
) |
| |
|
protected |
cv_cluster_rep: @cv_list_rep: la matrice 'cv_list_rep' (voir fonction précédente) @nb_clusters: nombre de clusters découverts pour le mot @id_relation: numero d'une relation @id_cluster: numero d'un cluster
Return: le vecteur de confiance de 'id_cluster' dans 'id_relation'
Definition at line 367 of file WordSenseAnnotation.cpp.
◆ disambiguate() [1/2]
| bool Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::disambiguate |
( |
const WordUnit & |
wu | ) |
|
◆ disambiguate() [2/2]
| bool Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::disambiguate |
( |
KnnSearcher * |
searcher, |
|
|
const WordUnit & |
wu, |
|
|
const SemanticContext & |
context, |
|
|
double |
thres, |
|
|
char |
method |
|
) |
| |
◆ dump()
| void Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::dump |
( |
std::ostream & |
os | ) |
|
|
inline |
◆ isDisambiguated()
| bool Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::isDisambiguated |
( |
| ) |
const |
◆ mapping() [1/2]
| std::string Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::mapping |
( |
| ) |
|
|
inline |
◆ mapping() [2/2]
| const std::string Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::mapping |
( |
| ) |
const |
|
inline |
◆ mode() [1/2]
| std::string Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::mode |
( |
| ) |
|
|
inline |
◆ mode() [2/2]
| const std::string Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::mode |
( |
| ) |
const |
|
inline |
◆ morphVertex() [1/3]
| LinguisticGraphVertex Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::morphVertex |
( |
| ) |
|
|
inline |
◆ morphVertex() [2/3]
| LinguisticGraphVertex Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::morphVertex |
( |
| ) |
const |
|
inline |
◆ morphVertex() [3/3]
| void Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::morphVertex |
( |
LinguisticGraphVertex |
v | ) |
|
|
inline |
◆ operator=()
◆ outputXml()
| void Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::outputXml |
( |
std::ostream & |
xmlStream, |
|
|
const LinguisticGraph & |
g |
|
) |
| const |
|
virtual |
◆ retrieveSense()
| void Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::retrieveSense |
( |
std::set< WordSenseUnit >::iterator |
itSenses | ) |
|
|
protected |
◆ senseId() [1/3]
| uint64_t Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::senseId |
( |
| ) |
|
|
inline |
◆ senseId() [2/3]
| uint64_t Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::senseId |
( |
| ) |
const |
|
inline |
◆ senseId() [3/3]
| void Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::senseId |
( |
uint64_t |
newSenseId | ) |
|
|
inline |
◆ senseTag() [1/2]
| std::string Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::senseTag |
( |
| ) |
|
|
inline |
◆ senseTag() [2/2]
| std::string Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::senseTag |
( |
| ) |
const |
|
inline |
◆ sumCvCluster()
| double Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::sumCvCluster |
( |
std::map< int, std::map< std::string, double > > & |
cvListRep, |
|
|
std::string |
relation |
|
) |
| |
|
protected |
sum_cv_cluster_rep: @cv_list_rep: la matrice 'cv_list_rep' (voir fonction précédente) @nb_clusters: nombre de clusters découverts pour le mot @id_relation: numero d'une relation
Return: la somme des vecteurs de confiance de chacun des clusters dans 'id_relation'
Definition at line 380 of file WordSenseAnnotation.cpp.
◆ sumLogCv()
| double Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::sumLogCv |
( |
const std::map< int, std::map< std::string, double > > & |
cvListRep, |
|
|
const std::string & |
relation |
|
) |
| |
|
protected |
◆ sumLogCvList()
| double Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::sumLogCvList |
( |
const std::map< int, std::map< std::string, double > > & |
cvListRep | ) |
|
|
protected |
◆ writeAnnotation()
◆ operator<<
◆ m_confidence
| float Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::m_confidence |
|
protected |
◆ m_mapping
| Mapping Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::m_mapping |
|
protected |
◆ m_mode
| Mode Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::m_mode |
|
protected |
◆ m_morphVertex
| LinguisticGraphVertex Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::m_morphVertex |
|
protected |
◆ m_senseTag
| std::string Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::m_senseTag |
|
protected |
◆ m_wsu
| WordSenseUnit Lima::LinguisticProcessing::WordSenseDisambiguation::WordSenseAnnotation::m_wsu |
|
protected |
The documentation for this class was generated from the following files: