17#ifndef LIMA_WORDSENSEDISAMBIGUATION_WORDSENSEDISAMBIGUATOR_H
18#define LIMA_WORDSENSEDISAMBIGUATION_WORDSENSEDISAMBIGUATOR_H
56#define WORDSENSEDISAMBIGUATIONPU_CLASSID "WordSenseDisambiguation"
74 Manager* manager)
override;
79 MediaId language()
const;
80 const std::string& knnDir()
const ;
91 const std::map<std::string, std::set<std::string> >&
contextList()
const ;
92 std::set<std::string>
contextList(std::string relation)
const ;
121 std::set<std::string>& lemmas)
const ;
126 std::map<std::string, std::set<uint64_t> >& context)
const ;
128 std::map<std::string, std::set<uint64_t> >& context)
const ;
130 std::vector<TargetWordWithContext>& targetWordsWithContext)
const ;
194 return std::set<std::string>() ;
A graph structure for linguistic analysis.
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, LinguisticVertexProperties > LinguisticGraph
Property to identify the chains in the graph.
Data used for the syntactic analyzis of texts.
#define LIMA_WORDSENSEANALYSIS_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Holds an annotation graph and gives an API to manipulate it.
Provide function to read write and check a property.
An AnalysisData containing a LinguisticGraph with a language and an id.
Holds morphosyntactic informations.
This class points to a graph, its dependency graph and the structure that holds the maping between th...
Lemma2Index lemma2Index() const
const Common::PropertyCode::PropertyAccessor * macroAccessor() const
int getLemmas(LinguisticAnalysisStructure::MorphoSyntacticData *data, const FsaStringsPool &stringspool, std::set< std::string > &lemmas) const
const Common::PropertyCode::PropertyAccessor * microAccessor() const
const std::string & knnDir() const
Index2Lemma m_index2Lemma
SensesMapping m_sensesMapping
void loadMapping(const std::string &mappingPath)
const Common::PropertyCode::PropertyAccessor * m_macroAccessor
Index2Lemma index2Lemma() const
~WordSenseDisambiguator()
Lemma2Index m_lemma2Index
void initDictionaries(const std::string &dictionaryPath)
int addPreviewWindowContext(std::vector< std::set< uint64_t > > &previewWindow, std::map< std::string, std::set< uint64_t > > &context) const
int getContext(SyntacticAnalysis::SyntacticData *syntacticData, LinguisticGraphVertex &v, LinguisticGraph *graph, const FsaStringsPool &stringspool, std::map< std::string, std::set< uint64_t > > &context) const
int addPostviewWindowContext(const std::set< uint64_t > &lemmasIds, std::vector< TargetWordWithContext > &targetWordsWithContext) const
std::map< std::string, std::set< std::string > > m_contextList
const std::map< std::string, std::set< std::string > > & contextList() const
std::map< std::string, uint64_t > Lemma2Index
std::map< int, std::string > SensesMapping
std::map< uint64_t, std::string > Index2Lemma