📄 information_retrieval.cpp
字号:
#include "stdafx.h"
#include "IRModel.h"
#include <iostream>
#include <tchar.h>
#include <string>
#include <time.h>
#include <fstream>
using namespace std;
// Using DLL
#include "ELUS_Use.h" // Dynamic Link Lib: ELUSCORE.dll Import Lib: ELUSCORE.lib
// Training Dll
#include "JELUSStatInterface.h" //Dynamic Link Lib: ELUSTRAIN.dll Import Lib :ELUSTRAIN.lib
// Dict Manager Dll
#include "JELUSDictInterface.h" // Dynamic Link Lib: ELUSDICT.dll Import Lib :ELUSDICT.lib
// Encode Convert Dll
#include "InsunEncodeToolkit.h" // Dynamic Lib: InsunEncode.dll Import Lib: InsunEncode.lib
int _tmain(int argc, _TCHAR* argv[])
{
IRModel IRSystem;
string FileList = ".\\corpus.txt";
FileList = IRSystem.WordSegment(FileList);
IRSystem.initStopWordSet();
IRSystem.EstablishIndex(FileList);
IRSystem.deleteStopWords();
IRSystem.displayIndex();
cout << "congratulation! byebye" << endl;
getchar();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -