Title Extraction from Bodies of HTML Documents and its Application to Web Page Retrieval Yunhua Hu 1, Guomao Xin 2, Ruihua Song, Guoping Hu 3, Shuming Shi, Yunbo Cao, and Hang Li Microsoft Research Asia 1: Xi’an Jiaotong University 2: Peking University 3: University of Science and Technology of China
Outline Motivation Related work Problem description Our approach Experimental results Conclusions
Outline Motivation Related work Problem description Our approach Experimental results Conclusions
Motivation Title of HTML document should be defined in title filed Title fields of HTML documents are not reliable Data Set Num. of HTML docs Empty title fields Duplicated title fields TREC1,053,1115.8%26.9%
Can We Extract Title from Body of HTML?
Outline Motivation Related work Problem description Our approach Experimental results Conclusions
Related Work: Web Information Extraction Information type: data record, news article, summary Data structure: DOM tree, block Approach: rule-based approach vs machine learning based approach Domain specific vs domain independent Not clear how to extract title from body
Related Work: Web Information Retrieval Title filed, anchor text, and URL are useful for web page retrieval Not clear whether extracted title is useful
Outline Motivation Related work Problem description Our approach Experimental results Conclusions
Input: HTML document (web page) Output: title(s) from body of HTML document Condition: domain independent Title Extraction Task National Weather Service Oxnard Los Angeles Marine Weather Statement HTML document Extracted titles
Intuitively, title is ‘most conspicuous’ part Can have 0-2 titles Must be on top region Font size, font weight, etc are noticeable Can cross several lines, but usually in same format Cannot be in bullets and list Cannot be expressions like “under construction”, … Image is not considered Spec on HTML Title
Examples
Outline Motivation Related work Problem description Our approach Experimental results Conclusions
Title Extraction Processing Title extraction as information extraction Using DOM tree Leaf node containing ‘text’ as unit (instance) Mainly using format information Title
DOM Tree HTML document DOM tree
General framework for Information Extraction Learning Tool Extraction Tool Model
HTML Title Extraction Learning Tool Extraction Tool Perceptron Classifier x: unit Y: title?
Information Used in Features (1) Rich format information Font size: 1~7 levels Font weight: bold face or not Font family: Times New Roman, Arial, etc Font style: normal or italic Font color: #000000, #FF0000, etc Background color: #FFFFFF, #FF0000, etc Alignment: center, left, right, and justify. Tag information H1,H2,…,H6: levels as header LI: a listed item DIR: a directory list A: a link or anchor U: an underline BR: a line break HR: a horizontal ruler IMG: an image Class name: ‘sectionheader’, ‘title’, ‘titling’,’ header’, etc.
Information Used in Features (2) Position information Position from beginning of body Width of unit in page DOM tree information Number of sibling nodes in the DOM tree. Relations with root node, parent node and sibling nodes in terms of font size change, etc. Relations with previous leaf node and next leaf node, in terms of font size change, etc. Linguistic information Length of text: number of characters Length of real text: number of alphabetic letters Negative words: ‘by’, ‘date’, ‘phone’, ‘fax’, ‘ ’, ‘author’, etc. Positive words: ‘abstract’, ‘introduction’, ‘summary’, ‘overview’, ‘subject’, ‘title’, etc.
Use of Extracted Title in Web Page Retrieval Employing BM25 framework BasicField: texts in body and title are used BaiscField+Title BasicField+ExtTitle BasicField+CombTitle
Outline Motivation Related work Problem description Our approach Experimental results Conclusions
Data for Title Extraction Experiments Name Num. of HTML Docs Title labeled Docs having titles TRECabout 1 million4, % MSabout 1 million4, %
Title Extraction Results (TREC, Cross-Validation) ApproachPrecisionRecallF1-ScoreAccuracy Largest font (baseline) First unit (-38.1%) (-37.5%) (-37.8%) (-37.5%) Title-field (-48.8%) (-49.6%) (-49.1%) (-50.0%) Perceptron (+32.3%) (+9.3%) (+20.9%) (+33.5%)
Title Extraction Results (MS, Cross Validation) ApproachPrecisionRecallF1-ScoreAccuracy Largest font (baseline) First unit (+3.7%) (+4.1%) (+3.9%) (+4.1%) Title-field (+12.3%) (-0.7%) (+6.6%) (+15.6%) Perceptron (+55.7%) (+9.4%) (+32.6%) (+56.1%)
Title Extraction: Feature Contribution MS
Training Set Test Set PrecisionRecallF1-ScoreAccuracy MSTREC TRECMS TREC MS Title Extraction: Domain Adaptation
Query Data for Retrieval Experiments YearTaskNum. of queries 2002NP TD50 HP150 NP TD75 HP75 NP75
Web Page Retrieval Results (TREC) TREC-2003 NP
Web Page Retrieval Results (TREC) TREC-2003 HP
Web Page Retrieval Results (TREC) 2003 TD
Average Precision for Each Method YearTask Baisc Field +Title+ComTitle 2003 TD (>>) (+23.1%) HP (>>) (+31.4%) (>>) (+44.0%) NP (+32.3%) (+51.0%)
Outline Motivation Related work Problem description Our approach Experimental results Conclusions
Title fields of HTML documents are not reliable We propose conducting title extraction from bodies of HTML documents Construct domain-independent model using machine learning and format features Use of extracted titles can help improve precision of web page retrieval, particularly TREC name page finding
Thanks!