LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::WordSenseDisambiguation Namespace Reference

Classes

class  DumpWordSense
 Definition of a function suitable to be used as a dumper for WordSense Annotations of an Annotation graph. More...
 
class  DumpXMLAnnotationVisitor
 
class  HashedDB
 
class  KnnSearcher
 
class  TargetWordWithContext
 
class  ToolNumber
 
struct  vectorCount
 
class  WordSenseAnnotation
 
class  WordSenseDisambiguator
 A simple process unit to test the annotation graphs. More...
 
class  WordSenseUnit
 
class  WordSenseXmlLogger
 
class  WordUnit
 

Typedefs

typedef std::map< std::string, std::set< uint64_t > > SemanticContext
 
typedef std::map< uint64_t, float > NNList
 
typedef std::map< std::string, HashedDB * > HashedData
 
typedef std::map< int, std::string > SensesMapping
 
typedef std::map< uint64_t, std::string > Index2Lemma
 
typedef std::map< std::string, uint64_t > Lemma2Index
 

Enumerations

enum  Mode {
  B_MOST_FREQUENT , B_ROMANSEVAL_MOST_FREQUENT , B_JAWS_MOST_FREQUENT , S_WSI_MRD ,
  S_WSI_DS , S_UNKNOWN
}
 
enum  Mapping { M_ROMANSEVAL_SENSES , M_JAWS_SENSES , M_UNKNOWN }
 

Functions

bool vectorCountCompare (vectorCount i, vectorCount j)
 
std::ostream & operator<< (std::ostream &os, const WordSenseAnnotation &wsa)
 
std::ostream & operator<< (std::ostream &os, const WordSenseUnit &wsu)
 
std::ostream & operator<< (std::ostream &os, const WordUnit &wu)
 
QDebug & operator<< (QDebug &os, const WordUnit &wu)
 

Variables

SimpleFactory< MediaProcessUnit, WordSenseDisambiguator > wordSenseDisambiguationFactory (WORDSENSEDISAMBIGUATIONPU_CLASSID)
 
SimpleFactory< MediaProcessUnit, WordSenseXmlLogger > fullTokenXmlLoggerFactory (WORDSENSEXMLLOGGER_CLASSID)
 

Typedef Documentation

◆ HashedData

Definition at line 29 of file KnnSearcher.h.

◆ Index2Lemma

Definition at line 25 of file WordUnit.h.

◆ Lemma2Index

Definition at line 26 of file WordUnit.h.

◆ NNList

Definition at line 28 of file KnnSearcher.h.

◆ SemanticContext

typedef std::map<std::string, std::set<uint64_t> > Lima::LinguisticProcessing::WordSenseDisambiguation::SemanticContext

Definition at line 24 of file CommonTypedefs.h.

◆ SensesMapping

Definition at line 60 of file WordSenseDisambiguator.h.

Enumeration Type Documentation

◆ Mapping

Enumerator
M_ROMANSEVAL_SENSES 
M_JAWS_SENSES 
M_UNKNOWN 

Definition at line 49 of file CommonTypedefs.h.

◆ Mode

Enumerator
B_MOST_FREQUENT 
B_ROMANSEVAL_MOST_FREQUENT 
B_JAWS_MOST_FREQUENT 
S_WSI_MRD 
S_WSI_DS 
S_UNKNOWN 

Definition at line 40 of file CommonTypedefs.h.

Function Documentation

◆ operator<<() [1/4]

QDebug & Lima::LinguisticProcessing::WordSenseDisambiguation::operator<< ( QDebug &  os,
const WordUnit &  wu 
)

Definition at line 215 of file WordUnit.cpp.

◆ operator<<() [2/4]

std::ostream & Lima::LinguisticProcessing::WordSenseDisambiguation::operator<< ( std::ostream &  os,
const WordSenseAnnotation &  wsa 
)

Definition at line 480 of file WordSenseAnnotation.cpp.

◆ operator<<() [3/4]

std::ostream & Lima::LinguisticProcessing::WordSenseDisambiguation::operator<< ( std::ostream &  os,
const WordSenseUnit &  wsu 
)

Definition at line 31 of file WordSenseUnit.cpp.

◆ operator<<() [4/4]

std::ostream & Lima::LinguisticProcessing::WordSenseDisambiguation::operator<< ( std::ostream &  os,
const WordUnit &  wu 
)

Definition at line 209 of file WordUnit.cpp.

◆ vectorCountCompare()

LIMA_WORDSENSEANALYSIS_EXPORT bool Lima::LinguisticProcessing::WordSenseDisambiguation::vectorCountCompare ( vectorCount  i,
vectorCount  j 
)

Definition at line 38 of file hasheddb.cpp.

Variable Documentation

◆ fullTokenXmlLoggerFactory

SimpleFactory< MediaProcessUnit, WordSenseXmlLogger > Lima::LinguisticProcessing::WordSenseDisambiguation::fullTokenXmlLoggerFactory(WORDSENSEXMLLOGGER_CLASSID) ( WORDSENSEXMLLOGGER_CLASSID  )

◆ wordSenseDisambiguationFactory

SimpleFactory< MediaProcessUnit, WordSenseDisambiguator > Lima::LinguisticProcessing::WordSenseDisambiguation::wordSenseDisambiguationFactory(WORDSENSEDISAMBIGUATIONPU_CLASSID) ( WORDSENSEDISAMBIGUATIONPU_CLASSID  )