Cleaner Pretraining Corpus Curation with Neural Web Scraping

Zhipeng Xu,Zhenghao Liu,Yukun Yan,Zhiyuan Liu,Ge Yu,Chenyan Xiong
2024-06-15
Abstract:The web contains large-scale, diverse, and abundant information to satisfy the information-seeking needs of humans. Through meticulous data collection, preprocessing, and curation, webpages can be used as a fundamental data resource for language model pretraining. However, when confronted with the progressively revolutionized and intricate nature of webpages, rule-based/feature-based web scrapers are becoming increasingly inadequate. This paper presents a simple, fast, and effective Neural web Scraper (NeuScraper) to help extract primary and clean text contents from webpages. Experimental results show that NeuScraper surpasses the baseline scrapers by achieving more than a 20% improvement, demonstrating its potential in extracting higher-quality data to facilitate the language model pretraining. All of the code is available at <a class="link-external link-https" href="https://github.com/OpenMatch/NeuScraper" rel="external noopener nofollow">this https URL</a>.
Computation and Language
What problem does this paper attempt to address?
### The Problem the Paper Attempts to Solve The paper aims to address the issue of extracting high-quality text data from web pages for language model pre-training. Specifically, existing rule-based or feature-based web scraping tools fall short when dealing with increasingly complex and diverse web pages, failing to effectively remove ads, banners, hyperlinks, and other distracting content, resulting in low-quality extracted text. This not only increases noise but also reduces the effectiveness of language model pre-training. To solve these problems, the paper proposes a simple, fast, and effective neural network web scraping tool (NeuScraper) that can efficiently extract the main and clean text content from web pages. Experimental results show that NeuScraper outperforms baseline scraping tools by over 20%, demonstrating its potential in extracting high-quality data and enhancing the effectiveness of language model pre-training.