diff --git a/src/segment.cpp b/src/segment.cpp index 5445ec0..a589cdb 100644 --- a/src/segment.cpp +++ b/src/segment.cpp @@ -7,32 +7,6 @@ using namespace CppJieba; -MPSegment seg; -HMMSegment hmmseg; -MixSegment mixseg; -bool init(const char * const dictPath, const char * const modelPath) -{ - if(!seg.init(dictPath)) - { - cout<<"seg init failed."<\n" + cout<<"usage: \n\t"<\n" <<"options:\n" <<"\t--algorithm\tSupported methods are [cutDAG, cutHMM, cutMix] for now. \n\t\t\tIf not specified, the default is cutDAG\n" - <<"\t--dictpath\tIf not specified, the default is "<