天网搜索平台-P-A-R-A-D-I-S-E课件.ppt.ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《天网搜索平台-P-A-R-A-D-I-S-E课件.ppt.ppt》由用户(三亚风情)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 天网 搜索 平台 课件 ppt
- 资源描述:
-
1、天网搜索平台PARADISE闫宏飞北京大学计算机系网络实验室2009/4/24信息检索前沿概述闫宏飞北京大学计算机系网络实验室2009/4/24Outline Issues: search engine and web mining Goal: Framework Principles: Related components (照应任务各部分关联) Implementation: Achievements (应用成果) Case study (具体到一事)Search Engine and Web Mining Crawling Full-text indexing Retrieving We
2、b archiving and Mining WebGraph: bowtie teapot Model: bag of words Infomall, CDAL: archive histrace Evaluation: manual automatic Platform: proprietary openOutline Motivation to Build PARADISE Design and Implement PARADISE Research Issues of ConcernCorpus (1/3) Shakespeares collected works A gzipped
3、tar-file 2039k http:/www.cs.su.oz.au/matty/Shakespeare/shakespeare.tar.gz RCV1, Reuters Corpus Volume 1. one year of Reuters newswire 1996-08-20 to 1997-08-19 contains about 810,000 Reuters English Language News stories. requires about 2.5 GB for storage of the uncompressed files. http:/trec.nist.go
4、v/data/reuters/reuters.html Corpus (2/3) CWT100GB, Chinese Web Test collection 2004年6月搜集,有5,712,710个网页,解压容量为90GB。 CWT200GB 2005年11月搜集,有37,482,913个网页,压缩容量为197GBhttp:/www.cwirf.org/Corpus (3/3)2008/10/15Hardware assumptionssymbol statistic valuesaverage seek time 5 ms = 5 x 103 sb transfer time per by
5、te 0.02 s = 2 x 108 s processors clock rate10 9 splowlevel operation 0.01 s = 108 s (e.g., compare & swap a word) size of main memory several GB size of disk space 1 TB or moreReuters RCV1 statistics symbolstatistic value N documents 800,000 L avg. # tokens per doc 200 Mterms (= word types) 400,000
6、avg. # bytes per token 6 (incl. spaces/punct.) avg. # bytes per token4.5 (without spaces/punct.) avg. # bytes per term7.5 tokens100,000,0004.5 bytes per word token vs. 7.5 bytes per word type: why? Documents are parsed to extract words and these are saved with the Document ID.I did enact JuliusCaesa
7、r I was killed i the Capitol; Brutus killed me.Doc 1So let it be withCaesar. The nobleBrutus hath told youCaesar was ambitiousDoc 2Index constructionTermDoc #I1did1enact 1julius1caesar1I1was1killed1i1the1capitol1brutus1killed1me1so2let2it2be2with2caesar2the2noble 2brutus2hath 2told 2you2caesar 2was2
8、ambitious2TermDoc #I1did1enact 1julius1caesar1I1was1killed1i1the1capitol1brutus1killed1me1so2let2it2be2with2caesar2the2noble 2brutus2hath 2told 2you2caesar 2was2ambitious2TermDoc #ambitious2be2brutus1brutus 2capitol1caesar1caesar2caesar2did1enact1hath1I1I 1i1it2julius1killed1killed1let2me1noble2so2t
9、he1the 2told2you2was1was2with2 Key step After all documents have been parsed, the inverted file is sorted by terms. We focus on this sort step.We have 100M items to sort.Scaling index construction In-memory index construction does not scale. How can we construct an index for very large collections?
10、Taking into account the hardware constraints Memory, disk, speed etc.Sort-based Index constructionAs we build the index, we parse docs one at a time. While building the index, we cannot easily exploit compression tricks (you can, but much more complex)The final postings for any term are incomplete u
11、ntil the end.At 12 bytes per postings entry, demands a lot of space for large collections.T = 100,000,000 in the case of RCV1 So we can do this in memory in 2008, but typical collections are much larger. E.g. New York Times provides index of 150 years of newswireThus: We need to store intermediate r
12、esults on disk.Use the same algorithm for disk? Can we use the same index construction algorithm for larger collections, but by using disk instead of memory? No: Sorting T = 100,000,000 records on disk is too slow too many disk seeks. We need an external sorting algorithm.Bottleneck Parse and build
13、postings entries one doc at a time Now sort postings entries by term (then by doc within each term) Doing this with random disk seeks would be too slow must sort T=100M recordsIf every comparison took 2 disk seeks, and N items could besorted with N log2N comparisons, how long would this take? 12-byt
14、e (4+4+4) records (term, doc, freq). These are generated as we parse docs. Must now sort 100M such 12-byte records by term. Define a Block 10M such records Can easily fit a couple into memory. Will have 10 such blocks to start with. Basic idea of algorithm: Accumulate postings for each block, sort,
15、write to disk. Then merge the blocks into one long sorted order.BSBI: Blocked sort-based Indexing (Sorting with fewer disk seeks)BSBI: Blocked sort-based IndexingRemaining problem with sort-based algorithm Our assumption was: we can keep the dictionary in memory. We need the dictionary (which grows
16、dynamically) in order to implement a term to termID mapping. Actually, we could work with term,docID postings instead of termID,docID postings . . . . . . but then intermediate files become very large. (We would end up with a scalable, but very slow index construction method.)SPIMI: Single-pass in-m
17、emory indexing Key idea 1: Generate separate dictionaries for each block no need to maintain term-termID mapping across blocks. Key idea 2: Dont sort. Accumulate postings in postings lists as they occur. With these two ideas we can generate a complete inverted index for each block. These separate in
18、dexes can then be merged into one big index.SPIMI-Invert Merging of blocks is analogous to BSBI.Distributed indexing For web-scale indexing (dont try this at home!): must use a distributed computing cluster Individual machines are fault-prone Can unpredictably slow down or fail How do we exploit suc
19、h a pool of machines?Google data centers Google data centers mainly contain commodity machines. Data centers are distributed around the world. Estimate: a total of 1 million servers, 3 million processors/cores (Gartner 2007) Estimate: Google installs 100,000 servers each quarter. Based on expenditur
20、es of 200250 million dollars per year This would be 10% of the computing capacity of the world!?!Google data centers If in a non-fault-tolerant system with 1000 nodes, each node has 99.9% uptime, what is the uptime of the system? Answer: 37% Calculate the number of servers failing per minute for an
21、installation of 1 million servers.Distributed indexing Maintain a master machine directing the indexing job considered “safe”. Break up indexing into sets of (parallel) tasks. Master machine assigns each task to an idle machine from a pool.Parallel tasks We will use two sets of parallel tasks Parser
22、s Inverters Break the input document corpus into splits Each split is a subset of documents (corresponding to blocks in BSBI/SPIMI)Parsers Master assigns a split to an idle parser machine Parser reads a document at a time and emits (term, doc) pairs Parser writes pairs into j partitions Each partiti
展开阅读全文