add hmmsegment

This commit is contained in:
gwdwyy 2013-08-24 17:16:12 +08:00
parent 23d652a3eb
commit 27e3b1871c
3 changed files with 64 additions and 0 deletions

40
src/HMMSegment.cpp Normal file
View File

@ -0,0 +1,40 @@
#include "HMMSegment.h"
namespace CppJieba
{
HMMSegment::HMMSegment()
{
}
HMMSegment::~HMMSegment()
{
}
bool HMMSegment::init()
{
return true;
}
bool HMMSegment::dispose()
{
return true;
}
bool HMMSegment::loadModel()
{
return true;
}
}
#ifdef HMMSEGMENT_UT
using namespace CppJieba;
int main()
{
HMMSegment hmm;
return 0;
}
#endif

19
src/HMMSegment.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef CPPJIBEA_HMMSEGMENT_H
#define CPPJIBEA_HMMSEGMENT_H
namespace CppJieba
{
class HMMSegment
{
public:
HMMSegment();
~HMMSegment();
public:
bool init();
bool dispose();
public:
bool loadModel();
};
}
#endif

View File

@ -26,6 +26,11 @@ namespace CppJieba
typedef std::vector<uint16_t>::const_iterator VUINT16_CONST_ITER;
typedef hash_map<uint16_t, struct TrieNode*> TrieNodeMap;
namespace HMMDict
{
}
}
#endif