mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
modify usage
This commit is contained in:
parent
ec806b4b71
commit
49b0b7ddde
@ -18,7 +18,7 @@ void cut(const ISegment * seg, const char * const filePath)
|
|||||||
{
|
{
|
||||||
res.clear();
|
res.clear();
|
||||||
seg->cut(line, res);
|
seg->cut(line, res);
|
||||||
cout<<line<<"\n"<<join(res.begin(), res.end(),"/")<<endl;
|
cout<<join(res.begin(), res.end(),"/")<<endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -44,14 +44,6 @@ int main(int argc, char ** argv)
|
|||||||
string dictPath = arg["--dictpath"];
|
string dictPath = arg["--dictpath"];
|
||||||
string modelPath = arg["--modelpath"];
|
string modelPath = arg["--modelpath"];
|
||||||
string algorithm = arg["--algorithm"];
|
string algorithm = arg["--algorithm"];
|
||||||
if(dictPath.empty())
|
|
||||||
{
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
|
||||||
if(modelPath.empty())
|
|
||||||
{
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if("cutHMM" == algorithm)
|
if("cutHMM" == algorithm)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user