mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
add debug into segment
This commit is contained in:
parent
7e1186a4ba
commit
f104ef043e
@ -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<pair<int, double> > dp;
|
||||
retFlag = _calcDP(unicode, dag, dp);
|
||||
if(!retFlag)
|
||||
@ -74,6 +91,7 @@ namespace CppJieba
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
retFlag = _cutDAG(unicode, dp, res);
|
||||
if(!retFlag)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user