A DOM Tree Alignment Model for Mining Parallel Data from the Web

Lei Shi, Cheng Niu, Ming Zhou, Jianfeng GaoACL 2006 · DOI

TL;DR

This paper introduces a novel web mining scheme for acquiring parallel bilingual data by representing web pages as DOM trees and aligning them. This DOM tree alignment approach significantly improves mining coverage, reduces bandwidth usage, and enhances the quality of mined parallel sentences compared to previous URL pattern-based methods.

What Problem Does This Paper Address?

Statistical machine translation (SMT) and cross-lingual information retrieval heavily rely on large parallel corpora. However, readily available, high-quality parallel data is scarce for many language pairs, often limited to specific domains like government documents or newswires. While the web offers a vast potential source of parallel data, existing web mining techniques primarily rely on identifying URL patterns, which are often insufficient due to the diverse and sometimes ad-hoc naming conventions of bilingual websites. Furthermore, these methods can be inefficient, consuming significant bandwidth by downloading many non-parallel pages, and their impact on the quality of extracted parallel sentences is not always well-addressed.

Methods

The core of the proposed method is a DOM Tree Alignment Model.

  1. DOM Tree Representation: Web pages are parsed into Document Object Models (DOMs), which are then simplified into a tree structure containing only Element and Text nodes.
  2. Stochastic DOM Tree Alignment: A stochastic model is used to align translationally equivalent content (text chunks and hyperlinks) between two parallel DOM trees. This alignment process considers hierarchical relationships and sequential order of nodes.
  3. Iterative Mining: Discovered parallel hyperlinks act as anchors to find new parallel web pages, making the mining process recursive.
  4. Sentence Alignment Enhancement: The DOM tree alignment model is used to extract parallel text chunks, which are then fed into a sentence aligner. This leverages the HTML structure to improve sentence alignment accuracy.
  5. Candidate Verification: A binary maximum entropy classifier is used to verify if a candidate pair of web documents is truly parallel, using features like file length ratio, HTML tag similarity, and sentence alignment score.

Datasets

  • Training Data: 1,000 pairs of web pages were manually labeled as parallel or non-parallel to train the maximum entropy classifier for candidate web document pair verification.
  • Evaluation Data:
    • 11,000 English-Chinese websites were mined, resulting in 63,214 pairs of English-Chinese parallel web documents and 1,069,423 parallel sentences after alignment.
  • A benchmark comparison was conducted using 100 English-Chinese bilingual websites, mined by both the proposed DOM tree alignment method and a traditional URL pattern-based method.
  • For quality assessment, 3,000 mined parallel document pairs were randomly selected and reviewed by human annotators.
  • For sentence alignment accuracy, 150 English-Chinese parallel document pairs were used, with sentences manually annotated by two annotators.
  • For final sentence quality, 2,000 sentence pairs were randomly picked and classified into "exact parallel," "roughly parallel," or "not parallel."

Key Insights and Ideas

  • Leveraging HTML Structure: The paper highlights that the structural similarity of HTML tags (represented by DOM trees) is a powerful signal for identifying parallel content, going beyond simple URL patterns.
  • Iterative Discovery: Using parallel hyperlinks as seeds for further mining is an effective strategy for discovering more parallel data within a website, making the process more efficient.
  • DOM Tree Alignment as a Foundation: The DOM tree alignment model is presented as a key enabler for improving both the mining process (coverage, speed) and the quality of the extracted parallel sentences.
  • Complementarity of Mining Methods: The research suggests that combining URL pattern-based mining with the DOM tree alignment approach can further boost overall throughput, indicating that neither method is universally superior.

Key Results

  • Precision: The DOM tree alignment mining scheme achieved a document-level precision of 97.2%, compared to 93.5% for the URL pattern-based method.
  • Sentence Alignment Accuracy: With DOM tree alignment support, sentence alignment precision and recall improved by 7% (to 93.4% precision and 86.6% recall).
  • Mining Efficiency (Bandwidth): The DOM tree-based scheme reduced bandwidth usage by 8-9 times on average compared to URL pattern-based mining.
  • Mining Throughput:
    • Using the DOM tree scheme alone increased mining throughput by 32%.
  • When combined with the URL pattern-based scheme, the total throughput increased by 41%.
  • Quality of Mined Sentences: 93.5% of output sentence pairs were classified as either exact or roughly parallel.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that estimating the absolute recall of a mining system is difficult due to the impracticality of evaluating all parallel data on a website.
  • The sentence alignment recall was noted to be lower than precision, attributed to the prevalence of very short sentences in web pages, making alignment challenging.
  • Future Work: Not explicitly detailed in the provided sections, but the iterative nature of the mining scheme and the potential for combining different mining approaches suggest avenues for further refinement and expansion. The paper's focus on improving sentence alignment quality also points towards continued research in that area.

Summary updated

BibTeX
@inproceedings{shi2006dom,
  author = {Lei Shi and Cheng Niu and Ming Zhou and Jianfeng Gao},
  title = {{A DOM Tree Alignment Model for Mining Parallel Data from the Web}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2006},
  doi = {10.3115/1220175.1220237},
}
Figure