• Keine Ergebnisse gefunden

Information Retrieval and Web Search Engines Wolf-TiloBalkeand YounèsGhammad TechnischeUniversitätBraunschweig

N/A
N/A
Protected

Academic year: 2021

Aktie "Information Retrieval and Web Search Engines Wolf-TiloBalkeand YounèsGhammad TechnischeUniversitätBraunschweig"

Copied!
10
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Institut für Informationssysteme Technische Universität Braunschweig Institut für Informationssysteme Technische Universität Braunschweig

Information Retrieval and Web Search Engines

Wolf-Tilo Balke and Younès Ghammad Lecture 1: Introduction

October 29th, 2015

IR is findingmaterial (usually documents) of an unstructurednature (usually text) that satisfies an information needfrom within largecollections (usually stored on computers).

What is Information Retrieval (IR)?

2

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

IR is the science of searchingfor documents, for information within documentsand for metadata about documents, as well as that of searching relational databasesand the WWW.

IR: The techniques of storingand recoveringand often disseminatingrecorded data especially through the use of a computerized system.

IR: Part of computer science which studies the retrieval of information (not data) from a collection of written documents.

The retrieved documents aim at satisfying a user information needusually expressed in natural language.

What is Information Retrieval (IR)?

3

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Documents, unstructured, text, large Information need

Store, search, find The World Wide Web?

Relational databases?

Information Retrieval vs. Databases

4

Information retrieval Data retrieval

Retrieve all objects relevantto

some information need Retrieve all objects satisfying some clearly defined conditions

Find all documents about

the topic SELECTid FROMdocument

WHEREtitle LIKE

Result list Well-definedresult set

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Very similar to information retrieval Main differences:

Linksbetween Web pages can be exploited

Collecting,storing, and updatingdocuments is more difficult Usually, the number of usersis very large

Spamis a problem

Web Search

unstructured an unstructured

Web pagesare being

data doubles

Why Should I Know about All This?

(2)

Managing the information flood

Have you ever tried to drink from a fire hydrant?

Why Should I Know About All This?

7

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Why Should I Know about All This?

8

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Course overview

14 lectures

Exercises are integrated into lectures

Tuesdays, 15:00 17:30 (including a 5-minute break) Oral exam

Organizational Issues

9

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Homework exercises will be published every week However, there will be no grading

That is, homework is optional

Solutions to be dropped off or sent and will be corrected and redistributed the next lecture.

Sometimes, there will be practical exercises

Idea:Give you an impression how algorithms really work

Hints for exam preparation:

small groups Do allhomework exercises

Homework

10

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Christopher D. Manning, Prabhakar Raghavan, and Hinrich Schütze. Introduction to Information Retrieval.Cambridge University Press, 2008.

http://www.informationretrieval.org

Ricardo Baeza-Yates and Berthier Ribeiro-Neto.

Modern Information Retrieval.Addison-Wesley, 1999.

Richard K. Belew. Finding Out About: A Cognitive Perspective on Search Engine Technology and the WWW.Cambridge University Press, 2000.

Cornelis Joost van Rijsbergen. Information Retrieval.

Butterworths, second edition, 1979.

http://www.dcs.gla.ac.uk/Keith/Preface.html

Literature

11

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

1. Introduction and fundamental notions

2. Retrieval models: fuzzy, coordination level matching, vector space 3. Probabilistic retrieval models

4. Indexing

5. Latent Semantic Indexing

6. Language models, retrieval evaluation 7. Document clustering

8. Relevance feedback, classification 9. Support vector machines 10. Introduction to Web retrieval 11. Web crawling

12. Link analysis 13. Miscellaneous

Course Overview

12

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

(3)

Lecture 1: Introduction

1. A Brief History of Libraries,

Information Retrieval, and Web Search 2. Fundamental Notions

3. IR Systems and Models 4. The Boolean Retrieval Model

13

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Sumerian archives

Around 3000 2000 BC About 25,000 clay tablets stored in temple rooms Mostly inventories and

records of commercial transactions

The Great Library of Alexandria

Founded about 300 BC

Idea: A universal library holding At its height, the library held nearly 750,000 scrolls

Ancient Libraries

14

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Monastic libraries

Educated monks saved many ancient texts from getting lost by hand-copying The Vatican Library was formally founded in 1475 but is in fact much older

Around 1450, Johannes Gutenberg introduced movable typeto Europe for printing

The technique spread rapidly, copying books became much easier and less expensive

Medieval Libraries

15

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

German National Library

25 millionitems Located in Leipzig, Frankfurt (Main), and Berlin

Library of Congress

150 millionitems

20 million new items since 2009 largest library (according to the Guinness Book) Classificationsystem:

Library of Congress Classification

Modern Libraries

16

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Library Catalogs

Items are cataloged by metadata:

Author/Editor, ISBN, Keyword,

Subject area,

Specialized classification systems, e.g. Library of Congress

Traditionally used in libraries (Card Catalogues) Used now to describe the digital data, due to the increasing conversion of information into digital formats Conforms to some metadata standards as specified per a particular discipline

Most search engines use it, when adding pages to their search index

Metadata in the digital world

(4)

A life science and biomedical information database containing over 19 million references to journal articles Around 2,000-4,000 references are added each day (Tues - Sat)

Accessible online through PubMed interface, HubMed, eTBLAST, Entrez,etc

Manually indexed by Medical Subject Headings (MeSH) for information retrieval

MEDLINE

19

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Controlled vocabulary used for indexing

Has a total of 25, 186 subject headings (AKA descriptors) It can viewed as a thesaurus and they are arranged within a hierarchy

10 15 subject headings are used to index every entry in MEDLINE

Efficiently searching MEDLINE requires familiarity with the MeSH database

http://www.nlm.nih.gov/mesh/MBrowser.html

MeSH

20

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

-profit organization that supports shared innovation in metadata design

They define a small set of metadata elements for describing information resources

Dublin Core Metadata Element Set:

Used to describe resources

Includes 2 levels: Simple (15 elements) and qualified Dublin Core (18 elements)

e.g. abstract, creator, title, publisher, language, rightsHolder, etc.(List: http://dublincore.org/documents/dces/.)

Endorsed as an ISO standard 15836:2009

Dublin Core Metadata

21

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

In HTML 4.0, META and LINKS tag can be utilized META Tag encodes a named metadata element

E.g.

prefix.elementName elementvalue DC.Title

DC.Language

Link Tag the prefix of the element name to its element set definition

E.g.

<link rel schema.DC href = http://purl.org/DC/elements/1.0/>

Encoding DC in HTML

22

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Catalogue cards are document proxies Often, they suffice to judge the relevance of a particular item for your information need But:

A clever classification scheme is required:

Extensive enough to allow detailed classification Simple enough to be easily understandable Expertsmust catalogue each item individually

Problem:A lot of manual work!

Full text search: Every word is a keyword!

Full Text Search?

23

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Pre-computer area: Concordances

Alphabetical list of the principal wordsused in a book

Only for works of special importance, such as the Bible

First Bible concordance by Hugo de Saint Charo, with the help of 500 monks, around 1250

Full Text Search? (2)

24

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

(5)

Vision of a hypertext-based PDA Proposed by Vannevar Bush

Director of the Office of

Scientific Research and Development (USA, 1941 1947)

published in The Atlantic Monthly (1945)

all his books, records, and communications,and which is mechanizedso that it may be consulted with

association,

The Memex

25

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

The Memex (2)

26

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

1957: Hans-Peter Luhn(IBM) uses words as indexing units for documents

Measure similaritybetween documents by word overlap

1960s and 1970s: Gerard Salton and his students (Harvard, Cornell) create the SMART system

Vector space model Relevance feedback

Early Information Retrieval Systems

27

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

SIGIR

Special Interest Group on Information Retrieval Annual conferences,beginning in 1978

Gerald Salton award,first honoree: Gerald Salton (1983)

TREC

Annual Text Retrieval Conference, beginning in 1992

Sponsored by the U.S. National Institute of Standards and Technologyas well as the U.S. Department of Defense Today: many different tracks,e.g., blogs, genomics, spam Provides data setsand test problems

IR Becomes a Research Discipline

28

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

1991: Tim Berners-Lee First Web search engines:

Archie:Query file namesby regular expressions Architext/Excite:Full text search, simple ranking (1993)

Until 1998, web search meant information retrieval 1998: Googlewas founded

Exploits link structureusing the PageRankalgorithm

A Brief History of Web Search

How to store and update largedocument collections?

Small!

Scalable!

How to do efficientretrieval?

Fast!

How to do effectiveretrieval?

High result quality!

Core Problems

(6)

Lecture 1: Introduction

1. A Brief History of Libraries,

Information Retrieval, and Web Search 2. Fundamental Notions

3. IR Systems and Models 4. The Boolean Retrieval Model

31

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

A documentis a coherent passage of free text is about related topics natural, written language Examples:

Newspaper article Scientific article Dictionary entry Web page Email message

Document

32

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

A document collectionis a set of documents Also known as corpus Usually, all documents within a collection are similar with respect to some criterion Examples:

MEDLINE

The articles covered by Google News The Web

Document Collection

33

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

An information needis the topic

about which the user desires to know more Refers to an individual, hidden cognitive state Depends on what the users knows and Ill-defined

Examples:

What is the capital of Uganda?

hamburgers contain worm meat?

Information Need

34

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

A queryis what the user conveys to the computer in an attempt to communicate the information need Stated using a formal query language

Usually a list of search terms

Query

35

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

A document is relevant

information need if

the user perceivesit as containing information of value with respect to this information need Usually assumed to be a binary concept, but could also be graded

Example:

Information need:

Relevant document:

Relevance

36

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

(7)

Lecture 1: Introduction

1. A Brief History of Libraries,

Information Retrieval, and Web Search 2. Fundamental Notions

3. IR Systems and Models 4. The Boolean Retrieval Model

37

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Schematic Diagram of an IR System

38

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Query

(or Feedback) Document

Collection

Result usually a ranked list of documents Representation

of Query Representation

of Doc. Coll.

Comparison

Any IR system is based on an IR model

query language,

an internal representation of queries, representation of documents, ranking functionwhich associates a real number with each query document pair.

Optional: A mechanism for relevance feedback

IR Models

39

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

A very popular representation of documents is the bag of words model

Each document is represented by a bag (= multiset) of terms from a predefined vocabulary Standard case:

Vocabulary

Each document is represented by the words it contains

The Bag of Words Representation

a giant leap for mankind for (2), a (2), man, giant, leap, mankind

{

40

}

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Cons:

Word order gets lost Very different documents could have similar representations Document structure (e.g. headings) and metadata is ignored

Pros:

Simple set-theoretic representation of documents Efficient storage and retrieval of individual terms

IR models using the bag of words representation work well!

The Bag of Words Model (2)

Any document can be represented by an incidence vector:

The Bag of Words Model (3)

a giant leap for mankind

Taikonaut small step is a giant leap for China

1 1 1 1 2 2 1 1 1 1 0 0 0 0

0 0 1 1 0 1 0 1 1 0 1 1 1 1 vocabulary (aka index terms)

incidence matrix (aka term-document matrix)

(8)

Lecture 1: Introduction

1. A Brief History of Libraries,

Information Retrieval, and Web Search 2. Fundamental Notions

3. IR Systems and Models

4. The Boolean Retrieval Model

43

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

The simplest (and arguably oldest) IR model Documents = setsof words (index terms) Query language

= Boolean expressionsover index terms Binary ranking function, i.e. 0/1-valued Retrieval is based on membership in sets

Boolean Retrieval

44

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Boolean connectives:

Conjunction Disjunction Negation

Boolean Connectives

45

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

0 1

0 0 0

1 0 1

0 1

0 0 1

1 1 1

¬

0 1

1 0

Document1= {step, mankind}

Document2= {step, China}

Query1

Result set: {Document1}

Query2

Result set: {Document1, Document2}

Example

46

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Warning:

Exclusive use of negation will result in large result sets!

Query3

To match natural language better,

Query4

Use to search for subsets of a given size:

Query5 Query5

OR (step AND China)

Boolean Queries in Practice

47

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Usually, documents are indexed by an inverted index

For each index term, the set of documents containing this term is pre-computedand stored on disk This enables fast query processing

Document collection:

Document1= {step, mankind}

Document2= {step, China}

Inverted index:

step: {Document1, Document2} mankind: {Document1} China: {Document2}

Query Processing

48

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

(9)

Thanks to the inverted index, queries of the type can be answered quickly X

Also quick to compute: unions and intersections of sets Example:

Idea:Convert all queries to conjunctive normal formor disjunctive normal form

Query Processing (2)

49

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Conjunctive normal form (CNF)

A propositional formula is in CNF if it is a conjunction of clauses

A clause is a disjunction of literals A literal is a variable or its negation Theorem:Any propositional formula

can be converted into an equivalent formula that is in CNF

Disjunctive normal form (DNF)

A propositional formula is in DNF

if it is a disjunction of conjunctive clauses A conjunctive clause is a conjunction of literals Theorem:Any propositional formula

can be converted into an equivalent formula that is in DNF

Query Processing (3)

50

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Query6

Conjunctive normal form (CNF):

Query6

Disjunctive normal form (DNF):

Query6

Query Processing (4)

51

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Conjunctive normal form:

1. Compute unions (might become very large) 2. Compute intersections

Disjunctive normal form:

1. Compute intersections (smaller intermediate results) 2. Compute unions

Query Processing (5)

52

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Simple query paradigm, easy to understand If all document representations are

mutually distinct, any possible subset of documents can be retrieved by a suitable query

cut out the set of relevant documents But: This advantage is rather theoretical,

Pros

A binary ranking function returns a set of results,i.e. it is unordered Controlling the result size is difficult Similarity queries are not supported Usually, most of the documents

found are relevant;

but many relevant documents are not found

Cons

(10)

Westlaw

Onlinelegal research servicefor US law Includes more than 40,000 databasesof case law,

state and federal statutes, administrative codes, law journals, Offers search by:

Boolean Search

Free text querying (added in 1992) Boolean search includes the Boolean operators plus some proximity operators

Westlaw

55

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

space = OR /s, /p, /k = matches in the same sentence, paragraph or within k-words respectively

& = AND ! = a trailing wildcard query

Example 1:

Information need:

Information on the legal theories involved in preventing the disclosure of trade secrets by employees formerly employed by a competing company

Query:

disclos! /s prevent /s employe!

Westlaw (2)

56

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig Finds matches in the same sentence Examples taken from

Mannig/Raghavan/Schütze: Introduction to Information Retrieval Wildcard

Example 2:

Information need:

Requirements for disabled people to be able to access a workplace

Query:

disab! /p access! /s (work-site work-place) (employment /3 place)

Westlaw (3)

57

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Finds matches within 3 words Finds matches in the same paragraph

Space means disjunction

Until 2005, Boolean search was the default in Westlaw Submitted queries average about ten words in length Professionals often prefer Boolean search

to other methods as they offergreater control and transparency

But: In 1994, experiments on a Westlaw subcollection found that free text queries produced better results

librarians

Westlaw (4)

58

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

More retrieval models

Fuzzy retrieval model Coordination level matching Vector space model

Next Lecture

59

Information Retrieval and Web Search Engines Wolf-Tilo Balke and Younès Ghammad Technische Universität Braunschweig

Referenzen

ÄHNLICHE DOKUMENTE

2 Information Retrieval and Web Search Engines — Wolf-Tilo Balke and Joachim Selke — Technische Universität Braunschweig?. • Many information retrieval models assume

Information Retrieval and Web Search Engines — Wolf-Tilo Balke and Joachim Selke — Technische Universität Braunschweig.?.

2 Information Retrieval and Web Search Engines — Wolf-Tilo Balke and Joachim Selke — Technische Universität Braunschweig!. •

2 Information Retrieval and Web Search Engines — Wolf-Tilo Balke and Joachim Selke — Technische Universität

2 Information Retrieval and Web Search Engines — Wolf-Tilo Balke and Joachim Selke — Technische Universität Braunschweig?. The

limiting the random teleports to pages of the current topic – At query time, detect the query’s topics and.

If every individual engine ranks a certain page higher than another, then so must the aggregate ranking.

12 Information Retrieval and Web Search Engines — Wolf-Tilo Balke and Joachim Selke — Technische Universität Braunschweig.. j) The three most important differences between IR and