cppjieba/Segment.cpp
2013-07-05 11:45:12 +08:00

42 lines
487 B
C++

#include "Segment.h"
namespace CppJieba
{
Segment::Segment():_trie()
{
}
Segment::~Segment()
{
}
bool Segment::init(const char* const dictFilePath)
{
_trie.init(dictFilePath);
}
bool Segment::destroy()
{
return _trie.destroy();
}
bool Segment::cutRMM(const string& chStr, vector<string>& res)
{
return false;
}
}
#ifdef SEGMENT_UT
using namespace CppJieba;
int main()
{
Segment segment;
segment.init("dict.utf8");
segment.destroy();
return 0;
}
#endif