ext/cppjieba/test/demo.cpp in cppjieba_rb-0.3.0 vs ext/cppjieba/test/demo.cpp in cppjieba_rb-0.3.1
- old
+ new
@@ -66,10 +66,10 @@
cout << "[demo] Tagging" << endl;
vector<pair<string, string> > tagres;
s = "我是拖拉机学院手扶拖拉机专业的。不用多久,我就会升职加薪,当上CEO,走上人生巅峰。";
jieba.Tag(s, tagres);
cout << s << endl;
- cout << tagres << endl;;
+ cout << tagres << endl;
cout << "[demo] Keyword Extraction" << endl;
const size_t topk = 5;
vector<cppjieba::KeywordExtractor::Word> keywordres;
jieba.extractor.Extract(s, keywordres, topk);