#include #include #include "../src/headers.h" using namespace CppJieba; void testKeyWordExt(const char * dictPath, const char * filePath) { KeyWordExt ext; if(!ext.init(dictPath, "../dicts/stopwords.gbk.v1.0")) { return; } ifstream ifile(filePath); vector res; string line; while(getline(ifile, line)) { res.clear(); if(!line.empty()) { ext.extract(line, res, 20); cout< argc) { cout<<"usage: \n\t"<\n" <<"options:\n" <<"\t--dictpath\tIf not specified, the default is "<