Introducing, evaluating ukWaC, a very large web-derived corpus of English
Paper · 2008 · Adriano Ferraresi, Eros Zanchetta, Marco Baroni et al.
Summary
The authors wanted a freely available English corpus that is much larger than traditional reference collections but still mixes genres and topics the way a balanced corpus does. They describe ukWaC, built in 2007 within the WaCky project by crawling the .uk web domain. Seed URLs came from Google queries made of random word pairs. The words were drawn from three vocabulary sources so that both formal and personal-interest pages would turn up. The crawled pages then passed through a cleaning pipeline:
- size and mime-type filters;
- removal of exact duplicates;
- a heuristic boilerplate stripper based on tag density;
- a filter based on the share of function words;
- removal of pornographic spam;
- detection of near-duplicates with shingling.
The result has more than 2 billion tokens, POS tags and lemmas. The authors evaluated what the corpus contains by comparing its vocabulary with the BNC. The resource matters because, at the time, it was among the largest English corpora of its kind and the only freely available, linguistically annotated English corpus taken from the web.
Key points
- Seeds came from 1,000 word pairs of mid-frequency BNC content words, 500 pairs from the spoken BNC and 500 pairs from a learners' vocabulary list. Each query returned at most 10 URLs, and only one URL was kept per domain.
- The crawl used Heritrix, was restricted to .uk and ran for 10 days. Only text/html documents between 5 and 200KB were kept, and every document with an exact duplicate was dropped, including all of its copies.
- The boilerplate stripper keeps the text span that maximises the number of tokens minus the number of tags. On the CLEANEVAL text-only task it scored 85.41 on average, while the best competitor scored 84.07.
- The connected-text filter used 151 function words. A page needed at least 10 types and 30 tokens, and at least a quarter of its words had to be function words. Near-duplicates were found by comparing 25 randomly chosen 5-grams per document, after function words had been removed.
- The corpus is distributed in a format ready for the IMS Open Corpus Workbench (CWB) and is also available through the Sketch Engine. The authors later parsed it with a dependency parser.
Interesting ideas
- I1. The genre balance of a crawl can be steered by where the seed words come from: words from newspapers and reference corpora bring public-sphere texts, while basic everyday vocabulary brings blogs and forums.
- I2. Boilerplate can be found without supervision by picking the stretch of a page where text is dense and markup is sparse. This cheap heuristic beat the supervised competitors in its evaluation.
- I3. A minimum share of function words is a single test that rejects lists and catalogues, keeps real connected prose and also works as a rough language identifier.
- I4. When data is plentiful, prefer precision over recall. Drop every copy of an exact duplicate, and detect near-duplicates only after cleaning, so that shared boilerplate does not cause false matches.
- I5. Judge a new corpus by comparing its vocabulary with an established reference corpus, so that differences in topic and register become visible.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): when collecting raw English for silver parsing, draw query or selection words from several vocabulary sources, so the silver data covers both formal prose and casual narrative.
- I2 (tokens): add a tag-density cleaner in front of the tokenizer, so navigation menus and disclaimers never become sentences that the tagger and parser have to handle.
- I3 (learn): run this test before sending text to the witness parsers, so that agreement among them is not inflated by easy fragments that are not real sentences.
- I4 (learn): deduplicate silver and teacher-labelled sentences with shingles on cleaned text, which also lowers the risk of evaluation items leaking into training data.
- I5 (learn): compare the vocabulary of the silver data with the vocabulary of the UD treebanks, to find domains where the parsers are likely to be weak and need negative controls.
Fields, topics and concepts
📚 Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 works
🧭 Topics 2Research subjects and languages the work is about.English · 2,379 worksEvaluation & benchmarks · 1,341 works
Cite
Cite as Adriano Ferraresi, Eros Zanchetta, Marco Baroni and Silvia Bernardini. 2008. Introducing, evaluating ukWaC, a very large web-derived corpus of English. Proceedings of the 4th Web as Corpus Workshop.
@inproceedings{ferraresi2008introducing,
title = {{Introducing, evaluating ukWaC, a very large web-derived corpus of English}},
author = {Adriano Ferraresi, Eros Zanchetta, Marco Baroni and Silvia Bernardini},
booktitle = {Proceedings of the 4th Web as Corpus Workshop},
year = {2008},
url = {https://aclanthology.org/2008.wac-1.8/}
}References
- A. Baayen. 2001. Word frequency distributions. Kluwer, Dordrecht. find
- M. Baroni and S. Bernardini, editors. 2006. Wacky! Working papers on the Web as Corpus, Bologna. Gedit. http://corpus.leeds.ac.uk/internet.html ↗
- M. Baroni, S. Bernardini, A. Ferraresi, and E. Zanchetta. 2008. The WaCky Wide Web: A Collection of Very Large Linguistically Processed Web-Crawled Corpora. submitted. find
- D. Biber, S. Johansson, G. Leech, S. Conrad, and E. Finegan. 1999. Longman grammar of spoken and written English. Harlow, London. find
- A. Broder, S. Glassman, M. Manasse, and G. Zweig. 1997. Syntactic clustering of the web. In Proceedings of the Sixth International World Wide Web Conference, pages 391–404, Santa Clara, California. find
- C. Fairon, H. Naets, A. Kilgarriff, and G.-M. de Schryver, editors. 2007. Building and exploring web corpora – Proceedings of the 3rd Web as Corpus Workshop, incorporating Cleaneval. Presses Universitaires de Louvain, Louvain. find
- A. Ferraresi. 2007. Building a very large corpus of English obtained by web crawling: ukWaC. Master’s thesis, University of Bologna. Retrieved January 28, 2008 from http://wacky.sslmit.unibo.it. ↗
- W. Fletcher. 2004. Making the web more useful as a source for linguistic corpora. In U. Connor and T. Upton, editors, Corpus Linguistics in North America 2002, Amsterdam. Rodopi. find
- M. Hundt, N. Nesselhauf, and C. Biewer, editors. 2007. Corpus linguistics and the web. Rodopi, Amsterdam. find
- A. Kilgarriff and G. Grefenstette. 2003. Introduction to the special issue on the web as corpus. Computational Linguistics, 29(3):333–347.
- D. Lee. 2001. Genres, registers, text types, domains, and styles: Clarifying the concepts and navigating a path through the BNC jungle. Language Learning & Technology, 5(3):37–72. find
- P. Rayson and R. Garside. 2000. Comparing corpora using frequency profiling. In Proceedings of Workshop on Comparing Corpora of ACL 2000, pages 1–6, Hong Kong, China. find
- M. Santini and S. Sharoff, editors. 2007. Proceedings of the CL 2007 Colloquium: Towards a Reference Corpus of Web Genres, Birmingham, UK. find
- M. Santini. 2007. Characterizing genres of web pages: genre hybridism and individualization. In Proceedings of the 40th Hawaii International Conference on System Sciences, poster session, pages 1–10, Waikoloa, Hawaii. find
- S. Sharoff. 2006. Creating general-purpose corpora using automated search engine queries. In M. Baroni and S. Bernardini, editors, Wacky! Working papers on the Web as Corpus, pages 63–98, Bologna. Gedit. find
- M. Thelwall. 2005. Creating and using web corpora. International Journal of Corpus Linguistics, 10(4):517–541. find
- M. Ueyama. 2006. Evaluation of japanese web-based reference corpora: Effects of seed selection and time interval. In M. Baroni and S. Bernardini, editors, Wacky! Working papers on the Web as Corpus, pages 99–126, Bologna. Gedit. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/ferraresi-2008-introducing-evaluating-ukwac-very-large/