📄 exsegurl.cpp~
字号:
// demonstart using HzSeg#include <iostream>#include <string>#include <fstream>#include "Dict.h"#include "HzSeg.h"using namespace std;CDict iDict;int main(int argc, char* argv[]){ if (argc != 2) { cout << "Usage: HzstrSeg filename" << endl; exit(0); } string FileName = argv[1]; ifstream fin(FileName.c_str()); ofstream fout((FileName + ".seg").c_str()); string line; CHzSeg iHzSeg; // segment instance while(getline(fin, line)) { line = iHzSeg.SegmentSentenceMM(iDict,line); // line = iHzSeg.SegmentURL(line); fout << line << endl; } fin.close(); fout.flush(); fout.close(); return(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -