6#ifndef LIMA_WORDSENSEDISAMBIGUATION_KNNSEARCHER_H
7#define LIMA_WORDSENSEDISAMBIGUATION_KNNSEARCHER_H
28typedef std::map<uint64_t, float>
NNList;
37 KnnSearcher(
const std::map<std::string, std::string>& knnsearchConfig);
41 int getKNN(uint64_t lemmaId,
42 SemanticContext::const_iterator itContext,
#define LIMA_WORDSENSEANALYSIS_EXPORT
uint64_t sys2Owner(uint64_t systemId)
LSHSignature * buildSignature(SemanticContext::const_iterator itContext)
std::map< uint64_t, uint64_t > m_system2Owner
KnnSearcher(const std::map< std::string, std::string > &knnsearchConfig)
std::map< uint64_t, uint64_t > m_owner2System
void mapHashKey(std::string relation)
int fastKNNSort(HashedDB &xoredDB, vectorCount *finalResult)
int getKNN(uint64_t lemmaId, SemanticContext::const_iterator itContext, NNList &knns)
uint64_t owner2Sys(uint64_t ownerId)
std::map< uint64_t, float > NNList
std::map< std::string, HashedDB * > HashedData