Aidan Hogan aidhog@gmail.com CC5212-1 Procesamiento Masivo de Datos Otoño 2018 Lecture 7 Information Retrieval: Ranking Aidan Hogan aidhog@gmail.com.

Slides:



Advertisements
Similar presentations
Improvements and extras Paul Thomas CSIRO. Overview of the lectures 1.Introduction to information retrieval (IR) 2.Ranked retrieval 3.Probabilistic retrieval.
Advertisements

Crawling, Ranking and Indexing. Organizing the Web The Web is big. Really big. –Over 3 billion pages, just in the indexable Web The Web is dynamic Problems:
Matrices, Digraphs, Markov Chains & Their Use by Google Leslie Hogben Iowa State University and American Institute of Mathematics Leslie Hogben Iowa State.
1 The PageRank Citation Ranking: Bring Order to the web Lawrence Page, Sergey Brin, Rajeev Motwani and Terry Winograd Presented by Fei Li.
Lecture 11 Search, Corpora Characteristics, & Lucene Introduction.
Link Analysis: PageRank
Ranking models in IR Key idea: We wish to return in order the documents most likely to be useful to the searcher To do this, we want to know which documents.
How PageRank Works Ketan Mayer-Patel University of North Carolina January 31, 2011.
1 CS 430 / INFO 430: Information Retrieval Lecture 16 Web Search 2.
CS345 Data Mining Web Spam Detection. Economic considerations  Search has become the default gateway to the web  Very high premium to appear on the.
The PageRank Citation Ranking “Bringing Order to the Web”
Zdravko Markov and Daniel T. Larose, Data Mining the Web: Uncovering Patterns in Web Content, Structure, and Usage, Wiley, Slides for Chapter 1:
Hinrich Schütze and Christina Lioma
Sigir’99 Inside Internet Search Engines: Search Jan Pedersen and William Chang.
Chapter 19: Information Retrieval
The Vector Space Model …and applications in Information Retrieval.
PageRank Debapriyo Majumdar Data Mining – Fall 2014 Indian Statistical Institute Kolkata October 27, 2014.
Information Retrieval
CS246 Link-Based Ranking. Problems of TFIDF Vector  Works well on small controlled corpus, but not on the Web  Top result for “American Airlines” query:
“ The Initiative's focus is to dramatically advance the means to collect,store,and organize information in digital forms,and make it available for searching,retrieval,and.
Λ14 Διαδικτυακά Κοινωνικά Δίκτυα και Μέσα
Presented By: - Chandrika B N
CS344: Introduction to Artificial Intelligence Vishal Vachhani M.Tech, CSE Lecture 34-35: CLIR and Ranking in IR.
Amy N. Langville Mathematics Department College of Charleston Math Meet 2/20/10.
Web search basics (Recap) The Web Web crawler Indexer Search User Indexes Query Engine 1 Ad indexes.
Adversarial Information Retrieval The Manipulation of Web Content.
1 Announcements Research Paper due today Research Talks –Nov. 29 (Monday) Kayatana and Lance –Dec. 1 (Wednesday) Mark and Jeremy –Dec. 3 (Friday) Joe and.
CC P ROCESAMIENTO M ASIVO DE D ATOS O TOÑO 2015 Lecture 8: Information Retrieval II Aidan Hogan
Web Search. Structure of the Web n The Web is a complex network (graph) of nodes & links that has the appearance of a self-organizing structure  The.
1 University of Qom Information Retrieval Course Web Search (Link Analysis) Based on:
CSE 6331 © Leonidas Fegaras Information Retrieval 1 Information Retrieval and Web Search Engines Leonidas Fegaras.
CS315 – Link Analysis Three generations of Search Engines Anchor text Link analysis for ranking Pagerank HITS.
1 CS 430: Information Discovery Lecture 9 Term Weighting and Ranking.
Google & Document Retrieval Qing Li School of Computing and Informatics Arizona State University.
Xiaoying Gao Computer Science Victoria University of Wellington Intelligent Agents COMP 423.
Term Frequency. Term frequency Two factors: – A term that appears just once in a document is probably not as significant as a term that appears a number.
Introduction to Digital Libraries hussein suleman uct cs honours 2003.
Ranking in Information Retrieval Systems Prepared by: Mariam John CSE /23/2006.
Web Search. Crawling Start from some root site e.g., Yahoo directories. Traverse the HREF links. Search(initialLink) fringe.Insert( initialLink ); loop.
Web search basics (Recap) The Web Web crawler Indexer Search User Indexes Query Engine 1.
Link Analysis Rong Jin. Web Structure  Web is a graph Each web site correspond to a node A link from one site to another site forms a directed edge 
Ranking Link-based Ranking (2° generation) Reading 21.
CC P ROCESAMIENTO M ASIVO DE D ATOS O TOÑO 2014 Aidan Hogan Lecture IX: 2014/05/05.
Information Retrieval and Web Search Link analysis Instructor: Rada Mihalcea (Note: This slide set was adapted from an IR course taught by Prof. Chris.
1 CS 430: Information Discovery Lecture 5 Ranking.
Ljiljana Rajačić. Page Rank Web as a directed graph  Nodes: Web pages  Edges: Hyperlinks 2 / 25 Ljiljana Rajačić.
Xiaoying Gao Computer Science Victoria University of Wellington COMP307 NLP 4 Information Retrieval.
IR Theory: Web Information Retrieval. Web IRFusion IR Search Engine 2.
1 Ranking. 2 Boolean vs. Non-boolean Queries Until now, we assumed that satisfaction is a Boolean function of a query –it is easy to determine if a document.
1 CS 430 / INFO 430: Information Retrieval Lecture 20 Web Search 2.
3: Search & retrieval: Structures. The dog stopped attacking the cat, that lived in U.S.A. collection corpus database web d1…..d n docs processed term-doc.
IR 6 Scoring, term weighting and the vector space model.
Automated Information Retrieval
CC Procesamiento Masivo de Datos Otoño Lecture 12: Conclusion
Information Retrieval
Aidan Hogan CC Procesamiento Masivo de Datos Otoño 2017 Lecture 7: Information Retrieval II Aidan Hogan
Information Retrieval
Lecture 22 SVD, Eigenvector, and Web Search
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
CS 440 Database Management Systems
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
Junghoo “John” Cho UCLA
Web Search Engines.
Junghoo “John” Cho UCLA
Lecture 22 SVD, Eigenvector, and Web Search
Lecture 22 SVD, Eigenvector, and Web Search
PageRank PAGE RANK (determines the importance of webpages based on link structure) Solves a complex system of score equations PageRank is a probability.
Chapter 31: Information Retrieval
Chapter 19: Information Retrieval
VECTOR SPACE MODEL Its Applications and implementations
Presentation transcript:

Aidan Hogan aidhog@gmail.com CC5212-1 Procesamiento Masivo de Datos Otoño 2018 Lecture 7 Information Retrieval: Ranking Aidan Hogan aidhog@gmail.com

Apache Lucene Inverted Index They built one so you don’t have to! Open Source in Java

Apache Lucene Inverted Index They built one so you don’t have to! Open Source in Java

Information Retrieval: Ranking

How Does Google Get Such Good Results? obama

How does Google Get Such Good Results?

Two Sides to Ranking: Relevance ≠

Two Sides to Ranking: Importance >

Ranking: Relevance

Which of these three keyword terms is most “important”? Example Query Which of these three keyword terms is most “important”?

Matches in a Document freedom 7 occurrences

Matches in a Document freedom 7 occurrences movie 16 occurrences

Matches in a Document freedom 7 occurrences movie 16 occurrences wallace 88 occurrences

Usefulness of Words movie occurs very frequently freedom occurs frequently wallace occurs occassionally

Estimating Relevance Rare words more important than common words wallace (49M) more important than freedom (198M) more important than movie (835M) Words occurring more frequently in a document indicate higher relevance wallace (88) more matches than movie (16) more matches than freedom (7)

Relevance Measure: TF–IDF TF: Term Frequency Measures occurrences of a term in a document … various options Raw count of occurrences Logarithmically scaled Normalised by document length A combination / something else 

Relevance Measure: TF–IDF IDF: Inverse Document Frequency How common a term is across all documents … Logarithmically scaled document occurrences Note: The more rare, the larger the value

Relevance Measure: TF–IDF TF–IDF: Combine Term Frequency and Inverse Document Frequency: Score for a query Let query Score for a query: (There are other possibilities)

Relevance Measure: TF–IDF Term Frequency Inverse Document Frequency

Relevance Measure: TF–IDF Term Frequency Inverse Document Frequency

Relevance Measure: TF–IDF Term Frequency Inverse Document Frequency

Relevance Measure: TF–IDF Term Frequency Inverse Document Frequency

Relevance Measure: TF–IDF Term Frequency Inverse Document Frequency

Relevance Measure: TF–IDF Term Frequency Inverse Document Frequency

Relevance Measure: TF–IDF Term Frequency Inverse Document Frequency

Vector Space Model (a mention)

Vector Space Model (a mention)

Vector Space Model (a mention)

Vector Space Model (a mention) Cosine Similarity Note:

Relevance Measure: TF–IDF TF–IDF: Combine Term Frequency and Inverse Document Frequency: Score for a query Let query Score for a query: (There are other possibilities) … we could also use cosine similarity between query and document using TF–IDF weights

Two Sides to Ranking: Relevance ≠

Field-Based Boosting Not all text is equal: titles, headers, etc.

Anchor Text See how the Web views/tags a page

Anchor Text See how the Web views/tags a page

Lucene uses relevance scoring

Ranking: Importance

Two Sides to Ranking: Importance How could we determine that Barack Obama is more important than Mount Obama as a search result for "obama" on the Web? >

Link Analysis Which will have more links from other pages? The Wikipedia article for Mount Obama? The Wikipedia article for Barack Obama?

Link Analysis Consider links as votes of confidence in a page A hyperlink is the open Web’s version of … (… even if the page is linked in a negative way.)

Link Analysis So if we just count links to a page we can determine its importance and we are done?

Link Spamming

Link Importance So which should count for more? A link from http://en.wikipedia.org/wiki/Barack_Obama? Or a link from http://freev1agra.com/shop.html?

Link Importance Maybe we could consider links from some domains as having more “vote”?

PageRank

Not just a count of inlinks PageRank Not just a count of inlinks A link from a more important page is more important A link from a page with fewer links is more important ∴ A page with lots of inlinks from important pages (which have few outlinks) is more important

Not just a count of inlinks PageRank is Recursive Not just a count of inlinks A link from a more important page is more important A link from a page with fewer links is more important ∴ A page with lots of inlinks from important pages (which have few outlinks) is more important

Which vertex is most important? PageRank Model The Web: a directed graph Vertices (pages) Edges (links) 0.225 0.265 f a 0.138 0.127 e b d c Which vertex is most important? 0.172 0.074

The Web: a directed graph PageRank Model The Web: a directed graph Vertices (pages) Edges (links) f a e b d c

PageRank Model Vertices (pages) Edges (links) f e b d

PageRank Model Vertices (pages) Edges (links) f e b d c

PageRank: Random Surfer Model = someone surfing the web, clicking links randomly What is the probability of being at page x after n hops? f a e b d c

PageRank: Random Surfer Model = someone surfing the web, clicking links randomly What is the probability of being at page x after n hops? Initial state: surfer equally likely to start at any node f a e b d c

PageRank: Random Surfer Model = someone surfing the web, clicking links randomly What is the probability of being at page x after n hops? Initial state: surfer equally likely to start at any node PageRank applied iteratively for each hop: score indicates probability of being at that page after that many hops f a e b d c What would happen with g over time? g

PageRank: Random Surfer Model = someone surfing the web, clicking links randomly What is the probability of being at page x after n hops? Initial state: surfer equally likely to start at any node PageRank applied iteratively for each hop: score indicates probability of being at that page after that many hops If the surfer reaches a page without links, the surfer randomly jumps to another page f a e b d c g

PageRank: Random Surfer Model = someone surfing the web, clicking links randomly What is the probability of being at page x after n hops? Initial state: surfer equally likely to start at any node PageRank applied iteratively for each hop: score indicates probability of being at that page after that many hops If the surfer reaches a page without links, the surfer randomly jumps to another page f a e b d c What would happen with g and i over time? g i

PageRank: Random Surfer Model = someone surfing the web, clicking links randomly What is the probability of being at page x after n hops? Initial state: surfer equally likely to start at any node PageRank applied iteratively for each hop: score indicates probability of being at that page after than many hops If the surfer reaches a page without out-links, the surfer randomly jumps to another page f a e b d c What would happen with g and i over time? g i

PageRank: Random Surfer Model = someone surfing the web, clicking links randomly What is the probability of being at page x after n hops? Initial state: surfer equally likely to start at any node PageRank applied iteratively for each hop: score indicates probability of being at that page after than many hops If the surfer reaches a page without out-links, the surfer randomly jumps to another page The surfer will jump to a random page at any time with a probability 1 – d … this avoids traps and ensures convergence! f a e b d c g i

PageRank Model: Final Version The Web: a directed graph Vertices (pages) Edges (links) f a e b d c

PageRank: Benefits More robust than a simple link count Fewer ties than link counting Scalable to approximate (for sparse graphs) Convergence guaranteed

Two Sides to Ranking: Importance >

How does google really rank? An educated guess

How Modern Google ranks results (maybe) According to survey of SEO experts, not people in Google

How Modern Google ranks results (maybe) Why so secretive? According to survey of SEO experts, not people in Google

Ranking: Science or Art?

Questions?