Vector Space Model CS 652 Information Extraction and Integration.

Slides:



Advertisements
Similar presentations
Introduction to Information Retrieval Introduction to Information Retrieval Lecture 7: Scoring and results assembly.
Advertisements

Information Retrieval and Organisation Chapter 11 Probabilistic Information Retrieval Dell Zhang Birkbeck, University of London.
Chapter 5: Introduction to Information Retrieval
INFO624 - Week 2 Models of Information Retrieval Dr. Xia Lin Associate Professor College of Information Science and Technology Drexel University.
Modern information retrieval Modelling. Introduction IR systems usually adopt index terms to process queries IR systems usually adopt index terms to process.
Multimedia Database Systems
Basic IR: Modeling Basic IR Task: Slightly more complex:
The Probabilistic Model. Probabilistic Model n Objective: to capture the IR problem using a probabilistic framework; n Given a user query, there is an.
Introduction to Information Retrieval (Part 2) By Evren Ermis.
Modern Information Retrieval by R. Baeza-Yates and B. Ribeiro-Neto
Web Search - Summer Term 2006 II. Information Retrieval (Basics Cont.)
Motivation and Outline
IR Models: Overview, Boolean, and Vector
T.Sharon - A.Frank 1 Internet Resources Discovery (IRD) Classic Information Retrieval (IR)
Search and Retrieval: More on Term Weighting and Document Ranking Prof. Marti Hearst SIMS 202, Lecture 22.
ISP 433/533 Week 2 IR Models.
IR Models: Structural Models
Models for Information Retrieval Mainly used in science and research, (probably?) less often in real systems But: Research results have significance for.
Information Retrieval Modeling CS 652 Information Extraction and Integration.
1 CS 430 / INFO 430 Information Retrieval Lecture 12 Probabilistic Information Retrieval.
T.Sharon - A.Frank 1 Internet Resources Discovery (IRD) IR Queries.
1 CS 430 / INFO 430 Information Retrieval Lecture 12 Probabilistic Information Retrieval.
Ch 4: Information Retrieval and Text Mining
Modern Information Retrieval Chapter 2 Modeling. Can keywords be used to represent a document or a query? keywords as query and matching as query processing.
Chapter 2Modeling 資工 4B 陳建勳. Introduction.  Traditional information retrieval systems usually adopt index terms to index and retrieve documents.
Modeling Modern Information Retrieval
IR Models: Latent Semantic Analysis. IR Model Taxonomy Non-Overlapping Lists Proximal Nodes Structured Models U s e r T a s k Set Theoretic Fuzzy Extended.
The Vector Space Model …and applications in Information Retrieval.
1 CS 430 / INFO 430 Information Retrieval Lecture 10 Probabilistic Information Retrieval.
Retrieval Models II Vector Space, Probabilistic.  Allan, Ballesteros, Croft, and/or Turtle Properties of Inner Product The inner product is unbounded.
Modern Information Retrieval Chapter 2 Modeling. Can keywords be used to represent a document or a query? keywords as query and matching as query processing.
IR Models: Review Vector Model and Probabilistic.
Other 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.
Recuperação de Informação. IR: representation, storage, organization of, and access to information items Emphasis is on the retrieval of information (not.
Information Retrieval: Foundation to Web Search Zachary G. Ives University of Pennsylvania CIS 455 / 555 – Internet and Web Systems August 13, 2015 Some.
Modeling (Chap. 2) Modern Information Retrieval Spring 2000.
1 Vector Space Model Rong Jin. 2 Basic Issues in A Retrieval Model How to represent text objects What similarity function should be used? How to refine.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 32-33: Information Retrieval: Basic concepts and Model.
PrasadL2IRModels1 Models for IR Adapted from Lectures by Berthier Ribeiro-Neto (Brazil), Prabhakar Raghavan (Yahoo and Stanford) and Christopher Manning.
Information Retrieval Chapter 2: Modeling 2.1, 2.2, 2.3, 2.4, 2.5.1, 2.5.2, Slides provided by the author, modified by L N Cassel September 2003.
Information Retrieval Models - 1 Boolean. Introduction IR systems usually adopt index terms to process queries Index terms:  A keyword or group of selected.
Introduction to Digital Libraries Searching
Xiaoying Gao Computer Science Victoria University of Wellington Intelligent Agents COMP 423.
IR Models J. H. Wang Mar. 11, The Retrieval Process User Interface Text Operations Query Operations Indexing Searching Ranking Index Text quer y.
Weighting and Matching against Indices. Zipf’s Law In any corpus, such as the AIT, we can count how often each word occurs in the corpus as a whole =
Web Searching & Ranking Zachary G. Ives University of Pennsylvania CIS 455/555 – Internet and Web Systems October 25, 2015 Some content based on slides.
Introduction to Digital Libraries hussein suleman uct cs honours 2003.
Information Retrieval Model Aj. Khuanlux MitsophonsiriCS.426 INFORMATION RETRIEVAL.
CSCE 5300 Information Retrieval and Web Search Introduction to IR models and methods Instructor: Rada Mihalcea Class web page:
Information Retrieval CSE 8337 Spring 2005 Modeling Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier.
Comparing and Ranking Documents Once our search engine has retrieved a set of documents, we may want to Rank them by relevance –Which are the best fit.
1 University of Palestine Topics In CIS ITBS 3202 Ms. Eman Alajrami 2 nd Semester
LANGUAGE MODELS FOR RELEVANCE FEEDBACK Lee Won Hee.
1 Patrick Lambrix Department of Computer and Information Science Linköpings universitet Information Retrieval.
The Boolean Model Simple model based on set theory
C.Watterscsci64031 Classical IR Models. C.Watterscsci64032 Goal Hit set of relevant documents Ranked set Best match Answer.
Set Theoretic Models 1. IR Models Non-Overlapping Lists Proximal Nodes Structured Models Retrieval: Adhoc Filtering Browsing U s e r T a s k Classic Models.
Information Retrieval and Web Search Introduction to IR models and methods Rada Mihalcea (Some of the slides in this slide set come from IR courses taught.
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.
Xiaoying Gao Computer Science Victoria University of Wellington COMP307 NLP 4 Information Retrieval.
Information Retrieval Models School of Informatics Dept. of Library and Information Studies Dr. Miguel E. Ruiz.
CS791 - Technologies of Google Spring A Web­based Kernel Function for Measuring the Similarity of Short Text Snippets By Mehran Sahami, Timothy.
Automated Information Retrieval
Boolean and Vector Space Retrieval Models
CS 430: Information Discovery
Recuperação de Informação B
Recuperação de Informação B
Berlin Chen Department of Computer Science & Information Engineering
Information Retrieval and Web Design
Advanced information retrieval
Presentation transcript:

Vector Space Model CS 652 Information Extraction and Integration

2 Introduction Docs Information Need Index Terms doc query Ranking match

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

4 IR Models Non-Overlapping Lists Proximal Nodes Structured Models Retrieval Browsing U s e r T a s k Classic Models Boolean Vector (Space) Probabilistic Set Theoretic Fuzzy Extended Boolean Probabilistic Inference Network Belief Network Algebraic Generalized Vector (Space) Latent Semantic Index Neural Networks Browsing Flat Structure Guided Hypertext

5 Basic Concepts Each document is described by a set of representative keywords or index terms Index terms are document words (i.e. nouns), which have meaning by themselves for remembering the main themes of a document However, search engines assume that all words are index terms (full text representation)

6 Basic Concepts Not all terms are equally useful for representing the document contents The importance of the index terms is represented by weights associated to them Let k i be an index term d j be a document w i j is a weight associated with (k i,d j ), which quantifies the importance of k i for describing the contents of d j

7 The Vector (Space) Model Define: w i j > 0 whenever k i  d j w i q >= 0 associated with the pair (k i,q) vec(d j ) = (w 1 j, w 2 j,..., w t j ), document vector of d j vec(q) = (w 1 q, w 2 q,..., w t q ), query vector of q The unitary vectors vec(d i ) and vec( q j ) are assumed to be orthonormal (i.e., index terms are assumed to occur independently within the documents) Queries and documents are represented as weighted vectors

8 The Vector (Space) Model Sim(q,d j ) = cos(  ) = [vec(d j )  vec(q)] / |d j |  |q| = [  t i=1 w i j  w i q ] /   t i=1 w i j 2    t i=1 w i q 2 where  is the inner product operator & |q| is the length of q Since w i j  0 and w i q  0, 1  sim(q, d j )  0 A document is retrieved even if it matches the query terms only partially i j djdj q 

9 The Vector (Space) Model Sim(q, d j ) = [  t i=1 w i j  w i q ] / |d j |  |q| How to compute the weights w i j and w i q ? A good weight must take into account two effects: quantification of intra-document contents (similarity) tf factor, the term frequency within a document quantification of inter-documents separation (dissi- milarity) idf factor, the inverse document frequency w i j = tf(i, j)  idf(i)

10 The Vector (Space) Model Let, N be the total number of documents in the collection n i be the number of documents which contain k i freq(i, j), the raw frequency of k i within d j A normalized tf factor is given by f(i, j) = freq(i, j) / max(freq(l, j)), where the maximum is computed over all terms which occur within the document d j The inverse document frequency (idf) factor is idf(i) = log (N / n i ) 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 term k i.

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

12 The Vector (Space) Model Advantages: term-weighting improves quality of the answer set partial matching allows retrieval of documents that approximate the query conditions cosine ranking formula sorts documents according to degree of similarity to the query A popular IR model because of its simplicity & speed Disadvantages: assumes mutually independence of index terms (??); not clear that this is bad though

Naïve Bayes Classifier CS 652 Information Extraction and Integration

14 Bayes Theorem The basic starting point for inference problems using probability theory as logic

15 Bayes Theorem P(+|cancer)P(cancer)=(.98).008=.0078 P(+|~cancer)P(~cancer)=(.03).992=.0298

16 Basic Formulas for Probabilities

17 Naïve Bayes Classifier

18 Naïve Bayes Classifier

19 Naïve Bayes Classifier

20 Naïve Bayes Algorithm

21 Naïve Bayes Subtleties

22 Naïve Bayes Subtleties m-estimate of probability

23 Learning to Classify Text Classify text into manually defined groups Estimate probability of class membership Rank by relevance Discover grouping, relationships – Between texts – Between real-world entities mentioned in text

24 Learn_Naïve_Bayes_Text(Example, V)

25 Calculate_Probability_Terms

26 Classify_Naïve_Bayes_Text(Doc)

27 How to Improve More training data Better training data Better text representation – Usual IR tricks (term weighting, etc.) – Manually construct good predictor features Hand off hard cases to human being