From 1df57488f5baa1d8411d7cf5596a22cc1fbd500b Mon Sep 17 00:00:00 2001 From: gwdwyy Date: Wed, 10 Jul 2013 18:11:00 +0800 Subject: [PATCH] remove bugs --- Segment.cpp | 1 - Trie.cpp | 16 ++++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Segment.cpp b/Segment.cpp index 8e6fff9..41710cb 100644 --- a/Segment.cpp +++ b/Segment.cpp @@ -66,7 +66,6 @@ namespace CppJieba string Segment::_utf8ToUni(const string& utfStr) { - char logBuf[bufSize]; string uniStr = utf8ToUnicode(utfStr); if(uniStr.empty()) diff --git a/Trie.cpp b/Trie.cpp index a9027ce..c16651a 100644 --- a/Trie.cpp +++ b/Trie.cpp @@ -368,21 +368,29 @@ namespace CppJieba for(size_t i = 0; i < _nodeInfoVec.size(); i++) { _totalCount += _nodeInfoVec[i].count; - //cout<<_nodeInfoVec[i].word<<_nodeInfoVec[i].count< nodeInfo.weight) { _minWeight = nodeInfo.weight; } } - //cout<<_minWeight<