mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
add hmmsegment
This commit is contained in:
parent
23d652a3eb
commit
27e3b1871c
40
src/HMMSegment.cpp
Normal file
40
src/HMMSegment.cpp
Normal 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
19
src/HMMSegment.h
Normal 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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user