CoreLM // Dealing with Namespace Pollusion.
- We are still maintaining the CoreLM for future purposes.
This commit is contained in:
parent
c2df4c7c33
commit
016036eb75
|
@ -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:
|
||||||
|
|
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue