#include #include #include "src/KeyWordExt.h" #include "src/cppcommon/str_functs.h" #include "src/cppcommon/vec_functs.h" using namespace std; using namespace CppJieba; int main() { KeyWordExt ext; ext.init(); if(!ext.loadSegDict("./dicts/segdict.gbk.v3.0")) { cerr<<"1"< res; string line; while(getline(ifile, line)) { res.clear(); ext.extract(line, res, 20); cout<