diff --git a/src/Segment.cpp b/src/Segment.cpp index b7ab456..7c2e122 100644 --- a/src/Segment.cpp +++ b/src/Segment.cpp @@ -66,6 +66,23 @@ namespace CppJieba return false; } +#ifdef DEBUG + { + string tmp("{"); + FOR_VECTOR(dag, i) + { + tmp += "["; + FOR_VECTOR(dag[i], j) + { + tmp += string_format("%d,", dag[i][j]); + } + tmp += "],"; + } + tmp += "}"; + LogDebug(tmp); + } +#endif + vector > dp; retFlag = _calcDP(unicode, dag, dp); if(!retFlag) @@ -74,6 +91,7 @@ namespace CppJieba return false; } + retFlag = _cutDAG(unicode, dp, res); if(!retFlag) {