資源簡介
信息檢索,基本索引的建立,包括對歌詞文件的,讀取單詞,排序,建立倒排縮影的全部過程,整個過程都有詳細的流程說明,附加文檔說明喔!
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
using?namespace?std;
struct?file{
string?fileName;
int?docID;
};
struct?terms//開始分解出單詞的結構
{
string?term;
int?docID;
terms()
{
term?=?““;
docID?=?1;
}
terms(string?theTerm?int?theDocID)
{
term?=?theTerm;
docID?=?theDocID;
}
};
struct?chainNode//倒排索引中鏈表節點
{
int?docID;
chainNode*?next;
chainNode()
{
docID?=?0;
next?=?NULL;
}
chainNode(int?theDocID?chainNode*?theNext)
{
docID?=?theDocID;
next?=?theNext;
}
};
struct?dictionary//倒排索引的字典
{
string?term;
int?freq;
chainNode*?next;
dictionary()
{
term?=?““;
freq?=?0;
}
dictionary(string
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3041??2016-09-29?22:45??noting.lrc
?????文件???????9295??2016-10-07?15:29??output.txt
?????文件???????2610??2016-09-29?22:45??saturday.lrc
?????文件???????6207??2016-10-07?15:29??search.cpp
?????文件??????19590??2016-11-11?17:34??信息檢索.docx
?????文件???????2005??2016-09-23?20:20??Bubbly.lrc
?????文件???????2670??2016-09-29?22:41??clear?my?mind.lrc
?????文件???????1891??2016-09-29?22:45??morning.lrc
-----------?---------??----------?-----??----
????????????????47309????????????????????8
- 上一篇:基于光流場的運動估計
- 下一篇:頻率計數器基本版
評論
共有 條評論