Presentation is loading. Please wait.

Presentation is loading. Please wait.

Information Retrieval Chapter 2: Modeling 2.1, 2.2, 2.3, 2.4, 2.5.1, 2.5.2, 2.5.3 Slides provided by the author, modified by L N Cassel September 2003.

Similar presentations


Presentation on theme: "Information Retrieval Chapter 2: Modeling 2.1, 2.2, 2.3, 2.4, 2.5.1, 2.5.2, 2.5.3 Slides provided by the author, modified by L N Cassel September 2003."— Presentation transcript:

1 Information Retrieval Chapter 2: Modeling 2.1, 2.2, 2.3, 2.4, 2.5.1, 2.5.2, 2.5.3 Slides provided by the author, modified by L N Cassel September 2003

2 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

3 Introduction Docs Information Need Index Terms doc query Ranking match

4 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 u How does the system decide which results are most likely to meet the user’s information need?

5 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 premises 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

6 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

7 IR Models n The IR model, the logical view of the docs, and the retrieval task are distinct aspects of the system User task Index Terms Full TextFull Text + Structure Retrieval (Searching) Classic Set Theoretic Algebraic Probabilistic Classic Set Theoretic Algebraic Probabilistic Structured BrowsingFlat Hypertext Structure Guided Hypertext

8 Retrieval: Ad Hoc x Filtering n Ad hoc retrieval: Collection “Fixed Size” Q2 Q3 Q1 Q4 Q5 Collection is relatively stable, but the Queries change

9 Retrieval: Ad Hoc x Filtering n Filtering: Documents Stream User 1 Profile User 2 Profile Docs Filtered for User 2 Docs for User 1 User has a stable query to pose against a changing set of documents

10 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)

11 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

12 Classic IR Models - Basic Concepts u Ki is an index term u dj is a document u t is the total number of index terms 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)

13 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) for example 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

14 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 Ka(Italian) Kb (Fast) Kc (Vegetarian)

15 Exercise n Given index terms (italian, japanese, greek, indian, chinese, fast, vegetarian, sushi, spicy, gourmet) n Make up 3 queries, each using at least 4 index terms combined with some combination of AND, OR, NOT. n Exchange the queries with others (one to each other person so you end up with queries from several sources). n Rewrite the queries you get in disjunctive normal form.

16 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

17 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

18 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

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

20 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)

21 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.

22 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.

23 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

24 The Vector Model: Exercise d1 d2 d3 d4d5 d6 d7 k1 k2 k3 For query q = k1 ^ (k3 v k2) Calculate F ij = idf i = W ij = W iq = Doc.K1K2k3 d123 d24 d335 d45 d5145 d631 d74


Download ppt "Information Retrieval Chapter 2: Modeling 2.1, 2.2, 2.3, 2.4, 2.5.1, 2.5.2, 2.5.3 Slides provided by the author, modified by L N Cassel September 2003."

Similar presentations


Ads by Google