Skip to main content

Computing collocations

  • Chapter

Abstract

In this chapter we will develop a computer program to calculate collocations for us. This could be done in any programming language, and here we have chosen awk as it is easy to understand and has a clear syntax. One particular benefit is the lack of ‘overheads’ that are needed in more complex languages such as Java or C++. In awk you do not need to set up any classes or methods in the same way, and processing data is much more modular. Obviously, there are many ways to express a certain functionality in a computer program, and we make no claims that there are no better ways of doing so than the one presented here; it might also not be the most efficient way to do so. However, speed is only a secondary concern: clarity and ease of understanding are more important. We will also try to keep the code simple and easy to understand for beginners.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Copyright information

© 2013 Geoff Barnbrook, Oliver Mason and Ramesh Krishnamurthy

About this chapter

Cite this chapter

Barnbrook, G., Mason, O., Krishnamurthy, R. (2013). Computing collocations. In: Collocation. Palgrave Macmillan, London. https://doi.org/10.1057/9781137297242_3

Download citation

Publish with us

Policies and ethics