Twenty-first century Corpus Workbench: Updating a query architecture for the new millennium

Corpus Workbench (CWB) is a widely-used architecture for corpus analysis, originally designed at the IMS, University of Stuttgart (Christ 1994). It consists of a set of tools for indexing, managing and querying very large corpora with multiple layers of word-level annotation. CWB’s central component is the Corpus Query Processor (CQP), an extremely powerful and efficient concordance system implementing a flexible two-level search language that allows complex query patterns to be specified both at the level of an individual word or annotation, and at the level of a fully- or partially-specified pattern of tokens. CWB and CQP are commonly used as the back-end for web-based corpus interfaces, for example, in the popular BNCweb interface to the British National Corpus (Hoffmann et al. 2008). CWB has influenced other tools, such as the Manatee software used in SketchEngine, which implements the same query language (Kilgarriff et al. 2004). This paper details recent work to update CWB for the new century. Perhaps the most significant development is that CWB version 3 is now an open source project, licensed under the GNU General Public Licence. This change has substantially enlarged the community of developers and users and has enabled us to leverage existing open-source libraries in extending CWB’s capabilities. As a result, several key improvements were made to the CWB core: (i) support for multiple character sets, most especially Unicode (in the form of UTF-8), allowing all the world’s writing systems to be utilised within a CWB-indexed corpus; (ii) support for powerful Perl-style regular expressions in CQP queries, based on the open-source PCRE library; (iii) support for a wider range of OS platforms including Mac OS X, Linux, and Windows; and (iv) support for larger corpus sizes of up to 2 billion words on 64-bit platforms. Outside the CWB core, a key concern is the user-friendliness of the interface. CQP itself can be daunting for beginners. However, it is common for access to CQP queries to be provided via a web-interface, supported in CWB version 3 by several Perl modules that give easy access to different facets of CWB/CQP functionality. The CQPweb front-end (Hardie forthcoming) has now been adopted as an integral component of CWB. CQPweb provides analysis options beyond concordancing (such as collocations, frequency lists, and keywords) by using a MySQL database alongside CQP. Available in both the Perl interface and CQPweb is the Common Elementary Query Language (CEQL), a simple-syntax set of search patterns and wildcards which puts much of the power of CQP in a form accessible to beginning students and non-corpus-linguists. The paper concludes with a roadmap for future development of the CWB (version 4 and above), with a focus on even larger corpora, full support for XML and dependency annotation, new types of query languages, and improved efficiency of complex CQP queries. All interested users are invited to help us shape the future of CWB by discussing requirements and contributing to the implementation of these features.

[1]  Stefan Th. Gries,et al.  What is Corpus Linguistics? , 2009, Lang. Linguistics Compass.

[2]  Serge Heiden,et al.  The TXM Platform: Building Open-Source Textual Analysis Software Compatible with the TEI Encoding Scheme , 2010, PACLIC.

[3]  Susan Hunston,et al.  Corpora in Applied Linguistics , 2002 .

[4]  Jane Harvey Review: Hoffmann, Evert, Smith, Lee and Berglund Prytz (2008) ‘Corpus Linguistics with BNCweb – a Practical Guide’. Frankfurt am Main: Peter Lang , 2010 .

[5]  Stefan Evert,et al.  How Random is a Corpus? The Library Metaphor , 2006 .

[6]  Mona Baker,et al.  'Corpus Linguistics and Translation Studies: Implications and Applications' , 1993 .

[7]  Tony McEnery,et al.  Character Encoding in Corpus Construction , 2005 .

[8]  Guy Aston,et al.  The BNC Handbook: Exploring the British National Corpus with SARA , 1998 .

[9]  Mark Davies,et al.  The advantage of using relational databases for large corpora: Speed, advanced queries, and unlimited annotation , 2005 .

[10]  Sebastian Hoffmann BNCweb (CQP edition) - the marriage of two corpus tools. , 2006 .

[11]  Laurence Anthony,et al.  AntConc: A Learner and Classroom Friendly, Multi-Platform Corpus Analysis Toolkit , 2004 .

[12]  Adam Kilgarriff,et al.  The Sketch Engine , 2004 .

[13]  Silvia Bernardini,et al.  The WaCky wide web: a collection of very large linguistically processed web-crawled corpora , 2009, Lang. Resour. Evaluation.

[14]  Oliver Christ,et al.  A Modular and Flexible Architecture for an Integrated Corpus Query System , 1994, ArXiv.

[15]  Mark Davies,et al.  More than a peephole: Using large and diverse online corpora , 2010 .

[16]  Jörg Tiedemann,et al.  News from OPUS — A collection of multilingual parallel corpora with tools and interfaces , 2009 .

[17]  Andrew Hardie,et al.  CQPweb — combining power, flexibility and usability in a corpus analysis tool , 2012 .

[18]  Tony McEnery,et al.  Corpus Linguistics: Method, Theory and Practice , 1996 .

[19]  Paul Baker,et al.  Contemporary Corpus Linguistics , 2009 .

[20]  Paul Stephenson,et al.  Advanced Corpus Solutions for Humanities Researchers , 2010, PACLIC.

[21]  Mark Davies,et al.  Word frequency in context: Alternative architectures for examining related words, register variation, and historical change , 2006 .

[22]  Chuck Martin Net Future , 1998 .

[23]  David Lee,et al.  Corpus Linguistics with BNCweb - a Practical Guide , 2008, English corpus linguistics.

[24]  Pavel Rychlý,et al.  Manatee/Bonito - A Modular Corpus Manager , 2007, RASLAN.