CS276: Information Retrieval and Web Search

Slides:



Advertisements
Presentasi serupa
Menggambarkan Data: Tabel Frekuensi, Distribusi Frekuensi, dan Presentasi Grafis Chapter 2.
Advertisements

INTRO (TO BPOS). What is BPOS? Apakah BPOS itu? •BPOS = (Microsoft) Business Productivity Online Suite (Service) •adalah sebuah layanan online Microsoft,
INTRO TO BPOS ( Coffey’s Project Portal). What is BPOS? Apakah BPOS itu? •BPOS = (Microsoft) Business Productivity Online Suite (Service) •adalah sebuah.
Pengujian Hipotesis untuk Satu dan Dua Varians Populasi
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation. All.
Algoritma & Pemrograman #10
Mata Kuliah : ALGORITMA dan STRUKTUR DATA 1.
PEMOGRAMAN BERBASIS JARINGAN
QUESTION- RESPONSE QUESTION- RESPONSE. Adaptif Hal.: 2 Isi dengan Judul Halaman Terkait Judul Halaman Pada bagian question-response, pertanyaan-pertanyaan.
PERUBAHAN VS PERBAIKAN Center for Continuous Improvement, Today is better than yesterday, tomorrow is better than today
Program Keahlian I – SI By Antonius Rachmat C, S.Kom
Materi Analisa Perancangan System.
EKO NURSULISTIYO.  Perhatikan gambar 11 a, perahu dikenai oleh ombak dari arah kanan misalkan setiap 4 sekon dalam keadaan perahu diam. Dalam keadaan.
IT SEBAGAI ALAT UNTUK MENCIPTAKAN KEUNGGULAN KOMPETISI
PERULANGANPERULANGAN. 2 Flow of Control Flow of Control refers to the order that the computer processes the statements in a program. –Sequentially; baris.
Tugas-Tugas.
REVIEW.
Slide 3-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercises Apa saja komponen utama.
Introduction to The Design & Analysis of Algorithms
IF-ITB/SAS/25Aug2003 IF7074 – Bagian Pertama Page 1 IF 7047 Kewirausahaan Teknologi Informasi Bagian Pertama: 1.1. Entrepreneurship, entrepreneur, dan.
Database Create-Retrieve-Update-Delete (CRUD)
PROSES PADA WINDOWS Pratikum SO. Introduksi Proses 1.Program yang sedang dalam keadaan dieksekusi. 2.Unit kerja terkecil yang secara individu memiliki.
1. Objek dalam kalimat aktif menjadi subjek dalam kalimat pasif
Review Operasi Matriks
Jeff Howbert Introduction to Machine Learning Winter Classification Nearest Neighbor.
Internal dan Eksternal Sorting
Pengantar/pengenalan (Introduction)
Could not load an object because it is not avaliable on this machine. Tidak dapat memuat sebuah benda karena tidak tersedia pada mesin ini.
Bilqis1 Pertemuan bilqis2 Sequences and Summations Deret (urutan) dan Penjumlahan.
Risk Management.
VALUING COMMON STOCKS Expected return : the percentage yield that an investor forecasts from a specific investment over a set period of time. Sometimes.
Text 1 By: Siwi Ratri K / Titik Rahayu /
2-Metode Penelitian Dalam Psikologi Klinis
Implementing an REA Model in a Relational Database
MEMORY Bhakti Yudho Suprapto,MT. berfungsi untuk memuat program dan juga sebagai tempat untuk menampung hasil proses bersifat volatile yang berarti bahwa.
Basisdata Pertanian. After completing this lesson, you should be able to do the following Identify the available group functions Describe the use of group.
1 Magister Teknik Perencanaan Universitas Tarumanagara General View On Graduate Program Urban & Real Estate Development (February 2009) Dr.-Ing. Jo Santoso.
2nd MEETING Assignment 4A “Exploring Grids” Assignment 4 B “Redesign Grids” Create several alternatives grid sysytem using the provided elements: (min.
BENTUK ING VERB + ING. Bentuk ING juga biasa disebut dengan ING form Meskipun pembentukannya sangat se- derhana tetapi penggunaannya mem- punyai aturan.
Slide 1 QUIS Langkah pertama caranya Buat di slide pertama judul Slide kedua soal Slide ketiga waktu habis Slide keempat jawaban yang benar Slide kelima.
LOGO Manajemen Data Berdasarkan Komputer dengan Sistem Database.
PEMROGRAMAN PPBD (UAS) SEBELUM MELANGKAH KE TAHAP SELANJUTNYA BERDOA DULU BIAR LANCAR DAN GA EROR
Linked List dan Double Linked List
Amortization & Depresiasi
MODELS OF PR SYIFA SA. Grunig's Four models of Public Relations Model Name Type of Communica tion Model Characteristics Press agentry/ publicity model.
Metodologi Penelitian dalam Bidang Informatika
PEMERINTAH KOTA PONTIANAK DINAS PENDIDIKAN PEMERINTAH KOTA PONTIANAK DINAS PENDIDIKAN Jl. Letjen. Sutoyo Pontianak, Telp. (0561) , Website:
3.1 © 2007 by Prentice Hall OVERVIEW Information Systems, Organizations, and Strategy.
Contentment Philippians 4: Contentment What does it mean to be content? What does it mean to be content? Are you a content person? Are you a content.
SMPN 2 DEMAK GRADE 7 SEMESTER 2
1. 2 Work is defined to be the product of the magnitude of the displacement times the component of the force parallel to the displacement W = F ║ d F.
Lecture 8 Set and Dictionary Sandy Ardianto & Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
© 2009 Fakultas Teknologi Informasi Universitas Budi Luhur Jl. Ciledug Raya Petukangan Utara Jakarta Selatan Website:
Romans 1: Romans 1:16-17 New Living Translation (NLT) 16 For I am not ashamed of this Good News about Christ. It is the power of God at work, saving.
Via Octaria Malau Transfer (Internal Transfers) Transfer (Transfers Internal) Select the account from which funds are to be transferred FROM and then select.
PENJUMLAHAN GAYA TUJUAN PEMBELAJARAN:
The intensive state of a PVT system containing N chemical species and  phases in equilibrium is characterized by the intensive variables, temperature.
TCP, THREE-WAY HANDSHAKE, WINDOW
Menu Standard Competence Based Competence.
Retrosintetik dan Strategi Sintesis
Web Teknologi I (MKB511C) Minggu 12 Page 1 MINGGU 12 Web Teknologi I (MKB511C) Pokok Bahasan: – Text processing perl-compatible regular expression/PCRE.
MICROSOFT EXCEL 2000 Bagian #4 GRAPHICS : OBJECT & CHART.
2. Introduction to Algorithm and Programming
Jartel, Sukiswo Sukiswo
How Can I Be A Driver of The Month as I Am Working for Uber?
Things You Need to Know Before Running on the Beach.
Take a look at these photos.... Also, in case you're wondering where this hotel is, it isn't a hotel at all. It is a house! It's owned by the family of.
HughesNet was founded in 1971 and it is headquartered in Germantown, Maryland. It is a provider of satellite-based communications services. Hughesnet.
Lecture 8 Normal model.
Title of the Research Study
Transcript presentasi:

CS276: Information Retrieval and Web Search Sumber: CS276: Information Retrieval and Web Search Pandu Nayak and Prabhakar Raghavan Term Vocabulary & Postings lists (Tokenisasi)

Pertemuan sebelumnya: Ch. 1 Pertemuan sebelumnya: Struktur dari Inverted Indeks: Dictionary (Vocabulary) & Inverted List (Postings) Vocabulary urut berdasarkan term (kata) Untuk memproses Boolean Query: Melakukan interseksi (merging) secara linear

Topik Pada Pertemuan Ini Tahapan dalam Membangun Indeks Preprocessing untuk membentuk vocabulary Documen Tokenisasi (tokenization) Kata (terms) apa saja yang dimasukkan dalam indeks Inverted List (Postings) Cara merge secara lebih cepat (faster merge) dengan cara skip lists Query dalam bentuk kaliman (phrase)

Diagram Proses Indexing Dokumen Friends, Romans, countrymen. Tokenizer Token stream Friends Romans Countrymen Linguistic module Modified tokens friend roman countryman Indexer Inverted index friend roman countryman 2 4 13 16 1

Parsing Dokumen Perhatikan terlebih dahulu format dokumen pdf/word/excel/html ? Ditulis dalam bahasa apa? Format character set yang digunakan Bagaimana menentukan jawaban dari pertanyaan di atas? Observasi secara manual? Atau dilakukan secara otomatis menggunakan metode klasifikasi?

Complications: Format/Language Sec. 2.1 Complications: Format/Language Dokumen yang akan diindeks dapat berupa dokumen yang ditulis dalam beberapa bahasa Sebuah indeks dapat mengandung kata dari beberapa bahasa Karena sebuah dokumen dapat ditulis dalam beberapa bahasa Contoh: Email dalam bahasa Inggris tetapi attacment dari email adalah dokumen yang ditulis dalam bahasa Jerman Apakah unit dari sebuah dokumen? Sebuah file? Sebuah email? Sebuah email dengan 5 attachments? Sekumpulan files (PPT atau halaman HTML)? Nontrivial issues. Requires some design decisions.

TOKENS & TERMS (KATA)

Tokenisasi (Tokenization) Sec. 2.2.1 Tokenisasi (Tokenization) Input: “Friends, Romans, Countrymen” Output: Tokens Friends Romans Countrymen Jadi token adalah sederetan karakter (a sequence of characters) dalam dokumen Setiap token menjadi kandidat dari elemen dalam indeks, tentunya setelah preprocessing

Tokenisasi (Tokenization) Sec. 2.2.1 Tokenisasi (Tokenization) Beberapa isu dalam tokenisasi: Finland’s capital  Finland? Finlands? Finland’s? Hewlett-Packard  Hewlett dan Packard sebagai dua token atau satu? state-of-the-art: break up hyphenated sequence co-education lowercase, lower-case, lower case? San Francisco: satu token atau dua? Bagaimana cara memutuskan bahwa SF adalah satu token?

Angka (Numbers) 3/12/91 Mar. 12, 1991 12/3/91 No. B-52 Sec. 2.2.1 Angka (Numbers) 3/12/91 Mar. 12, 1991 12/3/91 No. B-52 Kode: 324a3df234cb23e Telepon: (0651) 234-2333 Biasanya angka memiliki space diantaranya Sistem IR yang lama tidak mengindeks angka Tapi angka itu penting. Coba bayangkan bila ingin mencari baris dari error kode program melalui Sistem IR atau mencari nomor tertentu Salah satu solusi adalah menggunakan mekanisme n-grams

Tokenisasi: Isu dalam bahasa Sec. 2.2.1 Tokenisasi: Isu dalam bahasa French L'ensemble  satu token atau dua? L ? L’ ? Le ? Want l’ensemble to match with un ensemble Sampai tahun 2003, tidak berhasil bila dicari via Google Internationalization! German noun compounds are not segmented Lebensversicherungsgesellschaftsangestellter ‘life insurance company employee’ German retrieval systems benefit greatly from a compound splitter module Can give a 15% performance boost for German

Tokenisasi: Isu dalam bahasa Sec. 2.2.1 Tokenisasi: Isu dalam bahasa Chinese and Japanese: 莎拉波娃现在居住在美国东南部的佛罗里达。 Not always guaranteed a unique tokenization Further complicated in Japanese: Dates/amounts in multiple formats フォーチュン500社は情報不足のため時間あた$500K(約6,000万円) Katakana Hiragana Kanji Romaji

Tokenisasi: Isu dalam bahasa Sec. 2.2.1 Tokenisasi: Isu dalam bahasa Tulisan Arab ditulis dari kanan ke kiri tetapi untuk angka dibaca dari kiri ke kanan Words are separated, but letter forms within a word form complex ligatures ← → ← → ← start ‘Algeria achieved its independence in 1962 after 132 years of French occupation.’

Sec. 2.2.2 Stop words Menggunakan stop list, kata-kata yang sering muncul (tetapi kurang penting) dapat dikeluarkan dari indeks: Secara semantic mereka tidak penting: the, a, and, to, be Jumlahnya cukup banyak: ~30% dari semua kata dalam corpus Trend: stopword tidak diikutkan: Hemat indeks dan dapat memperkecil ukuran indeks walaupun dikompres Query optimisasi menjadi lebih baik Tapi perlu juga memperhatikan Query sbb: Judul film: “King of Denmark” Judul Lagu: “Let it be”, “To be or not to be” Relational query: “flights to London” Nevertheless: “Google ignores common words and characters such as where, the, how, and other digits and letters which slow down your search without improving the results.” (Though you can explicitly ask for them to remain.)

Normalisasi Kata (terms) Sec. 2.2.3 Normalisasi Kata (terms) Kata harus dinormalisasidalam in indexed text as well as query words into the same form We want to match U.S.A. and USA Result is terms: a term is a (normalized) word type, which is an entry in our IR system dictionary We most commonly implicitly define equivalence classes of terms by, e.g., deleting periods to form a term U.S.A., USA  USA deleting hyphens to form a term anti-discriminatory, antidiscriminatory  antidiscriminatory

Normalization: other languages Sec. 2.2.3 Normalization: other languages Accents: e.g., French résumé vs. resume. Umlauts: e.g., German: Tuebingen vs. Tübingen Should be equivalent Most important criterion: How are your users like to write their queries for these words? Even in languages that standardly have accents, users often may not type them Often best to normalize to a de-accented term Tuebingen, Tübingen, Tubingen  Tubingen

Normalization: other languages Sec. 2.2.3 Normalization: other languages Normalization of things like date forms 7月30日 vs. 7/30 Japanese use of kana vs. Chinese characters Tokenization and normalization may depend on the language and so is intertwined with language detection Crucial: Need to “normalize” indexed text as well as query terms into the same form Is this German “mit”? Morgen will ich in MIT …

Case folding Reduce all letters to lower case Google example: Sec. 2.2.3 Case folding Reduce all letters to lower case exception: upper case in mid-sentence? e.g., General Motors Fed vs. fed SAIL vs. sail Often best to lower case everything, since users will use lowercase regardless of ‘correct’ capitalization… Google example: Query C.A.T. #1 result was for “cat” (well, Lolcats) not Caterpillar Inc.

Normalization to terms Sec. 2.2.3 Normalization to terms An alternative to equivalence classing is to do asymmetric expansion An example of where this may be useful Enter: window Search: window, windows Enter: windows Search: Windows, windows, window Enter: Windows Search: Windows Potentially more powerful, but less efficient Why not the reverse?

Thesauri and soundex Do we handle synonyms and homonyms? E.g., by hand-constructed equivalence classes car = automobile color = colour We can rewrite to form equivalence-class terms When the document contains automobile, index it under car-automobile (and vice-versa) Or we can expand a query When the query contains automobile, look under car as well What about spelling mistakes? One approach is soundex, which forms equivalence classes of words based on phonetic heuristics More in lectures 3 and 9

Lemmatization Reduce inflectional/variant forms to base form E.g., Sec. 2.2.4 Lemmatization Reduce inflectional/variant forms to base form E.g., am, are, is  be car, cars, car's, cars'  car the boy's cars are different colors  the boy car be different color Lemmatization implies doing “proper” reduction to dictionary headword form

Stemming Reduce terms to their “roots” before indexing Sec. 2.2.4 Stemming Reduce terms to their “roots” before indexing “Stemming” suggest crude affix chopping language dependent e.g., automate(s), automatic, automation all reduced to automat. for exampl compress and compress ar both accept as equival to compress for example compressed and compression are both accepted as equivalent to compress.

Porter’s algorithm Commonest algorithm for stemming English Sec. 2.2.4 Porter’s algorithm Commonest algorithm for stemming English Results suggest it’s at least as good as other stemming options Conventions + 5 phases of reductions phases applied sequentially each phase consists of a set of commands sample convention: Of the rules in a compound command, select the one that applies to the longest suffix.

Typical rules in Porter Sec. 2.2.4 Typical rules in Porter sses  ss ies  i ational  ate tional  tion Rules sensitive to the measure of words (m>1) EMENT → replacement → replac cement → cement

Other stemmers Other stemmers exist, e.g., Lovins stemmer Sec. 2.2.4 Other stemmers Other stemmers exist, e.g., Lovins stemmer http://www.comp.lancs.ac.uk/computing/research/stemming/general/lovins.htm Single-pass, longest suffix removal (about 250 rules) Full morphological analysis – at most modest benefits for retrieval Do stemming and other normalizations help? English: very mixed results. Helps recall but harms precision operative (dentistry) ⇒ oper operational (research) ⇒ oper operating (systems) ⇒ oper Definitely useful for Spanish, German, Finnish, … 30% performance gains for Finnish!

Sec. 2.3 Recall basic merge Walk through the two postings simultaneously, in time linear in the total number of postings entries 2 4 8 41 48 64 128 Brutus 2 8 1 2 3 8 11 17 21 31 Caesar If the list lengths are m and n, the merge takes O(m+n) operations. Can we do better? Yes (if index isn’t changing too fast).