information_retrieval.cpp
来自「一个信息检索模型」· C++ 代码 · 共 35 行
CPP
35 行
#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 + =
减小字号Ctrl + -
显示快捷键?