From 9492803445abfa388481c0a906794d12f52b68c7 Mon Sep 17 00:00:00 2001 From: wyy Date: Sun, 3 Nov 2013 19:19:34 -0800 Subject: [PATCH] modify usage --- src/segment.cpp | 100 ++++++++++++++++-------------------------------- 1 file changed, 33 insertions(+), 67 deletions(-) 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 "<