Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction n IR systems usually adopt index terms to process queries n Index term: u a keyword or group of selected words u any word (more general) n.

Similar presentations


Presentation on theme: "Introduction n IR systems usually adopt index terms to process queries n Index term: u a keyword or group of selected words u any word (more general) n."— Presentation transcript:

1 Introduction n IR systems usually adopt index terms to process queries n Index term: u a keyword or group of selected words u any word (more general) n Stemming might be used: u connect: connecting, connection, connections n An inverted file is built for the chosen index terms

2 Introduction Docs Information Need Index Terms doc query Ranking match

3 Introduction n Matching at index term level is quite imprecise n No surprise that users get frequently unsatisfied n Since most users have no training in query formation, problem is even worst n Frequent dissatisfaction of Web users n Issue of deciding relevance is critical for IR systems: ranking

4 Introduction n A ranking is an ordering of the documents retrieved that (hopefully) reflects the relevance of the documents to the user query n A ranking is based on fundamental premisses regarding the notion of relevance, such as: u common sets of index terms u sharing of weighted terms u likelihood of relevance n Each set of premisses leads to a distinct IR model

5 IR Models Non-Overlapping Lists Proximal Nodes Structured Models Retrieval: Adhoc Filtering Browsing U s e r T a s k Classic Models boolean vector probabilistic Set Theoretic Fuzzy Extended Boolean Probabilistic Inference Network Belief Network Algebraic Generalized Vector Lat. Semantic Index Neural Networks Browsing Flat Structure Guided Hypertext

6 IR Models n The IR model, the logical view of the docs, and the retrieval task are distinct aspects of the system

7 Retrieval: Ad Hoc x Filtering n Ad hoc retrieval: Collection “Fixed Size” Q2 Q3 Q1 Q4 Q5

8 Retrieval: Ad Hoc x Filtering n Filtering: Documents Stream User 1 Profile User 2 Profile Docs Filtered for User 2 Docs for User 1

9 Classic IR Models - Basic Concepts n Each document represented by a set of representative keywords or index terms n An index term is a document word useful for remembering the document main themes n Usually, index terms are nouns because nouns have meaning by themselves n However, search engines assume that all words are index terms (full text representation)

10 Classic IR Models - Basic Concepts n Not all terms are equally useful for representing the document contents: less frequent terms allow identifying a narrower set of documents n The importance of the index terms is represented by weights associated to them n Let u ki be an index term u dj be a document u wij is a weight associated with (ki,dj) n The weight wij quantifies the importance of the index term for describing the document contents

11 Classic IR Models - Basic Concepts u ki is an index term u dj is a document u t is the total number of indexes u K = (k1, k2, …, kt) is the set of all index terms u wij >= 0 is a weight associated with (ki,dj) u wij = 0 indicates that term does not belong to doc u vec(dj) = (w1j, w2j, …, wtj) is a weighted vector associated with the document dj u gi(vec(dj)) = wij is a function which returns the weight associated with pair (ki,dj)

12 The Boolean Model n Simple model based on set theory n Queries specified as boolean expressions u precise semantics u neat formalism u q = ka  (kb   kc) n Terms are either present or absent. Thus, wij  {0,1} n Consider u q = ka  (kb   kc) u vec(qdnf) = (1,1,1)  (1,1,0)  (1,0,0) u vec(qcc) = (1,1,0) is a conjunctive component

13 The Boolean Model n q = ka  (kb   kc) n sim(q,dj) = 1 if  vec(qcc) | (vec(qcc)  vec(qdnf))  (  ki, gi(vec(dj)) = gi(vec(qcc))) 0 otherwise (1,1,1) (1,0,0) (1,1,0) KaKb Kc

14 Drawbacks of the Boolean Model n Retrieval based on binary decision criteria with no notion of partial matching n No ranking of the documents is provided (absence of a grading scale) n Information need has to be translated into a Boolean expression which most users find awkward n The Boolean queries formulated by the users are most often too simplistic n As a consequence, the Boolean model frequently returns either too few or too many documents in response to a user query

15 The Vector Model n Use of binary weights is too limiting n Non-binary weights provide consideration for partial matches n These term weights are used to compute a degree of similarity between a query and each document n Ranked set of documents provides for better matching

16 The Vector Model n Define: u wij > 0 whenever ki  dj u wiq >= 0 associated with the pair (ki,q) u vec(dj) = (w1j, w2j,..., wtj) vec(q) = (w1q, w2q,..., wtq) u To each term ki is associated a unitary vector vec(i) u The unitary vectors vec(i) and vec(j) are assumed to be orthonormal (i.e., index terms are assumed to occur independently within the documents) n The t unitary vectors vec(i) form an orthonormal basis for a t-dimensional space n In this space, queries and documents are represented as weighted vectors

17 The Vector Model n Sim(q,dj) = cos(  ) = [vec(dj)  vec(q)] / |dj| * |q| = [  wij * wiq] / |dj| * |q| n A document is retrieved even if it matches the query terms only partially i j dj q 

18 The Vector Model n Sim(q,dj) = [  wij * wiq] / |dj| * |q| n How to compute the weights wij and wiq ? n A good weight must take into account two effects: u quantification of intra-document contents (similarity) F tf factor, the term frequency within a document u quantification of inter-documents separation (dissi- milarity) F idf factor, the inverse document frequency u wij = tf(i,j) * idf(i)

19 The Vector Model n Let, u N be the total number of docs in the collection u ni be the number of docs which contain ki u freq(i,j) raw frequency of ki within dj n A normalized tf factor is given by u f(i,j) = freq(i,j) / max(freq(l,j)) u where the maximum is computed over all terms which occur within the document dj n The idf factor is computed as u idf(i) = log (N/ni) u the log is used to make the values of tf and idf comparable. It can also be interpreted as the amount of information associated with the term ki.

20 The Vector Model n The best term-weighting schemes use weights which are give by u wij = f(i,j) * log(N/ni) u the strategy is called a tf-idf weighting scheme n For the query term weights, a suggestion is u wiq = (0.5 + [0.5 * freq(i,q) / max(freq(l,q)]) * log(N/ni) n The vector model with tf-idf weights is a good ranking strategy with general collections n The vector model is usually as good as the known ranking alternatives. It is also simple and fast to compute.

21 The Vector Model n Advantages: u term-weighting improves quality of the answer set u partial matching allows retrieval of docs that approximate the query conditions u cosine ranking formula sorts documents according to degree of similarity to the query n Disadvantages: u assumes independence of index terms (??); not clear that this is bad though

22 The Vector Model: Example I d1 d2 d3 d4d5 d6 d7 k1 k2 k3

23 The Vector Model: Example II d1 d2 d3 d4d5 d6 d7 k1 k2 k3

24 The Vector Model: Example III d1 d2 d3 d4d5 d6 d7 k1 k2 k3


Download ppt "Introduction n IR systems usually adopt index terms to process queries n Index term: u a keyword or group of selected words u any word (more general) n."

Similar presentations


Ads by Google