Inverted file index

while ( read a document D ) {
    while ( read a term T in D ) {
        if ( Find( Dictionary, T ) == false )
            Insert( Dictionary, T );
        Get T’s posting list;
        Insert a node to T’s posting list;
    }
}
Write the inverted index to disk;
BlockCnt = 0; 
while ( read a document D ) {
  while ( read a term T in D ) {
    if ( out of memory ) {
      Write BlockIndex[BlockCnt] to disk;
      BlockCnt ++;
      FreeMemory;
    }
    if ( Find( Dictionary, T ) == false )
      Insert( Dictionary, T );
    Get T’s posting list;
    Insert a node to T’s posting list;
  }
}
for ( i=0; i<BlockCnt; i++ )
  Merge( InvertedIndex, BlockIndex[i] );

Distributed Index

  • Term-partitioned

  • Document-partitioned index

Measures for a Search Engine

  • How fast does it index
  • How fast does it search
  • Expressiveness of query language

Data Retrieval Performance Evaluation (after establishing correctness)

  • Response time
  • Index space

Information Retrieval Performance Evaluation

  • How relevant is the answer set?

RelevantIrrelevant
Retrieved R R R_R RR I R I_R IR
Not Retrieved R N R_N RN I N I_N IN

Precision: P = R R / ( R R + I R ) P=R_R/(R_R+I_R) P=RR/(RR+IR)

Recall: R = R R / ( R R + R N ) R=R_R/(R_R+R_N) R=RR/(RR+RN)

Exercises

在这里插入图片描述

Reference

https://blog.csdn.net/Woolseyyy/article/details/51559937

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值