CoreLM // Dealing with Namespace Pollusion.

- We are still maintaining the CoreLM for future purposes.
This commit is contained in:
ShikiSuen 2022-02-20 22:08:03 +08:00
parent 4ee6d88981
commit 878b5270a0
2 changed files with 6 additions and 6 deletions

View File

@ -45,8 +45,8 @@ public:
void close(); void close();
void dump(); void dump();
virtual const vector<Bigram> bigramsForKeys(const string& preceedingKey, const string& key); virtual const std::vector<Taiyan::Gramambular::Bigram> bigramsForKeys(const string& preceedingKey, const string& key);
virtual const vector<Unigram> unigramsForKey(const string& key); virtual const std::vector<Taiyan::Gramambular::Unigram> unigramsForKey(const string& key);
virtual bool hasUnigramsForKey(const string& key); virtual bool hasUnigramsForKey(const string& key);
protected: protected:

View File

@ -281,14 +281,14 @@ void vChewing::CoreLM::dump()
} }
} }
const vector<Bigram> vChewing::CoreLM::bigramsForKeys(const string& preceedingKey, const string& key) const std::vector<Taiyan::Gramambular::Bigram> vChewing::CoreLM::bigramsForKeys(const string& preceedingKey, const string& key)
{ {
return vector<Bigram>(); return std::vector<Taiyan::Gramambular::Bigram>();
} }
const vector<Unigram> vChewing::CoreLM::unigramsForKey(const string& key) const std::vector<Taiyan::Gramambular::Unigram> vChewing::CoreLM::unigramsForKey(const string& key)
{ {
vector<Unigram> v; std::vector<Taiyan::Gramambular::Unigram> v;
map<const char *, vector<Row> >::const_iterator i = keyRowMap.find(key.c_str()); map<const char *, vector<Row> >::const_iterator i = keyRowMap.find(key.c_str());
if (i != keyRowMap.end()) { if (i != keyRowMap.end()) {