#include #include #include "Limonp/ArgvContext.hpp" #include "MPSegment.h" #include "HMMSegment.h" #include "MixSegment.h" using namespace CppJieba; void cut(const ISegment * seg, const char * const filePath) { ifstream ifile(filePath); vector res; string line; while(getline(ifile, line)) { if(!line.empty()) { res.clear(); seg->cut(line, res); cout<\n" <<"options:\n" <<"\t--algorithm\tSupported methods are [cutDAG, cutHMM, cutMix] for now. \n\t\t\tIf not specified, the default is cutMix\n" <<"\t--dictpath\tsee example\n" <<"\t--modelpath\tsee example\n" <<"example:\n" <<"\t"<