Docsity

Information Retrieval-Database System Concepts-Lecture 36 Slides-Computer Science, Slides of Database Management Systems (DBMS)

Toggle sidebar
bg1
1
Computing & Information Sciences
Kansas State University
Monday, 04 Dec 2006CIS 560: Database System Concepts
Lecture 41 of 42
Monday, 04 December 2006
William H. Hsu
Department of Computing and Information Sciences, KSU
KSOL course page: http://snipurl.com/va60
Course web site: http://www.kddresearch.org/Courses/Fall-2006/CIS560
Instructor home page: http://www.cis.ksu.edu/~bhsu
Reading for Next Class:
Skim Chapter 19, Silberschatz et al., 5th edition
Information Retrieval (IR)
Discussion: Information Extraction (IE)
Computing & Information Sciences
Kansas State University
Monday, 04 Dec 2006CIS 560: Database System Concepts
Chapter 19: Information Retrieval
Chapter 19: Information Retrieval
zRelevance Ranking Using Terms
zRelevance Using Hyperlinks
zSynonyms., Homonyms, and Ontologies
zIndexing of Documents
zMeasuring Retrieval Effectiveness
zWeb Search Engines
zInformation Retrieval and Structured Data
zDirectories
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Information Retrieval-Database System Concepts-Lecture 36 Slides-Computer Science and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Lecture 41 of 42

Monday, 04 December 2006

William H. Hsu

Department of Computing and Information Sciences, KSU

KSOL course page: http://snipurl.com/va Course web site: http://www.kddresearch.org/Courses/Fall-2006/CIS Instructor home page: http://www.cis.ksu.edu/~bhsu

Reading for Next Class: Skim Chapter 19, Silberschatz et al. , 5 th^ edition

Information Retrieval (IR)

Discussion: Information Extraction (IE)

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Chapter 19: Information RetrievalChapter 19: Information Retrieval

z Relevance Ranking Using Terms

z Relevance Using Hyperlinks

z Synonyms., Homonyms, and Ontologies

z Indexing of Documents

z Measuring Retrieval Effectiveness

z Web Search Engines

z Information Retrieval and Structured Data

z Directories

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Information Retrieval SystemsInformation Retrieval Systems

z Information retrieval ( IR ) systems use a simpler data model

than database systems

’ Information organized as a collection of documents ’ Documents are unstructured, no schema

z Information retrieval locates relevant documents, on the basis of

user input such as keywords or example documents

’ e.g., find documents containing the words “database systems”

z Can be used even on textual descriptions provided with non-

textual data such as images

z Web search engines are the most familiar example of IR

systems

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Information Retrieval Systems (Cont.)Information Retrieval Systems (Cont.)

z Differences from database systems

’ IR systems don’t deal with transactional updates (including concurrency control and recovery) ’ Database systems deal with structured data, with schemas that define the data organization ’ IR systems deal with some querying issues not generally addressed by database systems Ö Approximate searching by keywords Ö Ranking of retrieved answers by estimated degree of relevance

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Relevance Ranking Using Terms (Cont.) Relevance Ranking Using Terms (Cont.)

z Most systems add to the above model

’ Words that occur in title, author list, section headings, etc. are given greater importance ’ Words whose first occurrence is late in the document are given lower importance ’ Very common words such as “a”, “an”, “the”, “it” etc are eliminated Ö Called stop words ’ Proximity : if keywords in query occur close together in the document, the document has higher importance than if they occur far apart

z Documents are returned in decreasing order of relevance score

’ Usually only top few documents are returned, not all

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Similarity Based Retrieval Similarity Based Retrieval

z Similarity based retrieval - retrieve documents similar to a given

document

’ Similarity may be defined on the basis of common words Ö E.g. find k terms in A with highest TF ( d, t ) / n ( t ) and use these terms to find relevance of other documents.

z Relevance feedback: Similarity can be used to refine answer set

to keyword query

’ User selects a few relevant documents from those retrieved by keyword query, and system finds other documents similar to these

z Vector space model: define an n -dimensional space, where n is

the number of words in the document set.

’ Vector for document d goes from origin to a point whose i th coordinate is TF ( d,t ) / n ( t ) ’ The cosine of the angle between the vectors of two documents is used as a measure of their similarity.

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Relevance Using Hyperlinks Relevance Using Hyperlinks

z Number of documents relevant to a query can be enormous if only

term frequencies are taken into account

z Using term frequencies makes “spamming” easy

Ö E.g. a travel agency can add many occurrences of the words “travel” to its page to make its rank very high

z Most of the time people are looking for pages from popular sites

z Idea: use popularity of Web site (e.g. how many people visit it) to

rank site pages that match given keywords

z Problem: hard to find actual popularity of site

’ Solution: next slide

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Relevance Using Hyperlinks (Cont.)Relevance Using Hyperlinks (Cont.)

z Solution: use number of hyperlinks to a site as a measure of the

popularity or prestige of the site

’ Count only one hyperlink from each site (why? - see previous slide) ’ Popularity measure is for site, not for individual page Ö But, most hyperlinks are to root of site Ö Also, concept of “site” difficult to define since a URL prefix like cs.yale.edu contains many unrelated pages of varying popularity

z Refinements

’ When computing prestige based on links to a site, give more weight to links from sites that themselves have higher prestige Ö Definition is circular Ö Set up and solve system of simultaneous linear equations ’ Above idea is basis of the Google PageRank ranking mechanism

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Concept-Based QueryingConcept-Based Querying

z Approach

’ For each word, determine the concept it represents from context ’ Use one or more ontologies: Ö Hierarchical structure showing relationship between concepts Ö E.g.: the ISA relationship that we saw in the E-R model

z This approach can be used to standardize terminology in a

specific field

z Ontologies can link multiple languages

z Foundation of the Semantic Web (not covered here)

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Indexing of DocumentsIndexing of Documents

z An inverted index maps each keyword Ki to a set of documents

Si that contain the keyword

’ Documents identified by identifiers

z Inverted index may record

’ Keyword locations within document to allow proximity based ranking ’ Counts of number of occurrences of keyword to compute TF

z and operation: Finds documents that contain all of K 1 , K 2 , ..., K n.

’ Intersection S 1 ∩ S 2 ∩..... ∩ S n

z or operation: documents that contain at least one of K 1 , K 2 , …,

K n

’ union, S 1 ∩ S 2 ∩..... ∩ S n ,.

z Each Si is kept sorted to allow efficient intersection/union by

merging

’ “ not ” can also be efficiently implemented by merging of sorted lists

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Measuring Retrieval EffectivenessMeasuring Retrieval Effectiveness

z Information-retrieval systems save space by using index

structures that support only approximate retrieval. May result

in:

’ false negative (false drop) - some relevant documents may not be retrieved. ’ false positive - some irrelevant documents may be retrieved. ’ For many applications a good index should not permit any false drops, but may permit a few false positives.

z Relevant performance metrics:

’ precision - what percentage of the retrieved documents are relevant to the query. ’ recall - what percentage of the documents relevant to the query were retrieved.

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Measuring Retrieval Effectiveness (Cont.)Measuring Retrieval Effectiveness (Cont.)

z Recall vs. precision tradeoff:

Ö Can increase recall by retrieving many documents (down to a low level of relevance ranking), but many irrelevant documents would be fetched, reducing precision

z Measures of retrieval effectiveness:

’ Recall as a function of number of documents fetched, or ’ Precision as a function of recall Ö Equivalently, as a function of number of documents fetched ’ E.g. “precision of 75% at recall of 50%, and 60% at a recall of 75%”

z Problem: which documents are actually relevant, and which are not

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Information Retrieval and Structured DataInformation Retrieval and Structured Data

z Information retrieval systems originally treated documents as a

collection of words

z Information extraction systems infer structure from documents,

e.g.:

’ Extraction of house attributes (size, address, number of bedrooms, etc.) from a text advertisement ’ Extraction of topic and people named from a new article

z Relations or XML structures used to store extracted data

’ System seeks connections among data to answer queries ’ Question answering systems

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

DirectoriesDirectories

z Storing related documents together in a library facilitates

browsing

’ users can see not only requested document but also related ones.

z Browsing is facilitated by classification system that organizes

logically related documents together.

z Organization is hierarchical: classification hierarchy

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

A Classification Hierarchy For A Library System A Classification Hierarchy For A Library System

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

Classification DAG Classification DAG

z Documents can reside in multiple places in a hierarchy in an

information retrieval system, since physical location is not

important.

z Classification hierarchy is thus Directed Acyclic Graph (DAG)

Computing & Information Sciences CIS 560: Database System Concepts Monday, 04 Dec 2006 Kansas State University

End of Chapter End of Chapter