mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
ci
This commit is contained in:
parent
abd23a4d79
commit
776191b375
@ -38,7 +38,6 @@ namespace CppJieba
|
|||||||
{
|
{
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DictTrieNode* _root;
|
|
||||||
vector<DictUnit> _nodeInfos;
|
vector<DictUnit> _nodeInfos;
|
||||||
|
|
||||||
int64_t _freqSum;
|
int64_t _freqSum;
|
||||||
@ -47,9 +46,6 @@ namespace CppJieba
|
|||||||
public:
|
public:
|
||||||
DictTrie()
|
DictTrie()
|
||||||
{
|
{
|
||||||
_root = new DictTrieNode;
|
|
||||||
_root.ptKeyMap = NULL;
|
|
||||||
_root.offset = 0;
|
|
||||||
_freqSum = 0;
|
_freqSum = 0;
|
||||||
_minLogFreq = MAX_DOUBLE;
|
_minLogFreq = MAX_DOUBLE;
|
||||||
_setInitFlag(false);
|
_setInitFlag(false);
|
||||||
@ -61,7 +57,6 @@ namespace CppJieba
|
|||||||
}
|
}
|
||||||
~DictTrie()
|
~DictTrie()
|
||||||
{
|
{
|
||||||
_deleteNode(_root);
|
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
|
||||||
@ -71,7 +66,6 @@ namespace CppJieba
|
|||||||
{
|
{
|
||||||
assert(!_getInitFlag());
|
assert(!_getInitFlag());
|
||||||
_loadDict(filePath, _nodeInfos);
|
_loadDict(filePath, _nodeInfos);
|
||||||
_createDictTrie(_nodeInfos, _root);
|
|
||||||
_freqSum = _calculateFreqSum(_nodeInfos);
|
_freqSum = _calculateFreqSum(_nodeInfos);
|
||||||
assert(_freqSum);
|
assert(_freqSum);
|
||||||
_minLogFreq = _calculateLogFreqAndGetMinValue(_nodeInfos, _freqSum);
|
_minLogFreq = _calculateLogFreqAndGetMinValue(_nodeInfos, _freqSum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user