Essential Python for Corpus Linguistics

  • ISBN13:


  • ISBN10:


  • Format: Paperback
  • Copyright: 2019-01-23
  • Publisher: Blackwell Pub
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $64.95 Save up to $1.95
  • Buy New
    Add to Cart Free Shipping


Supplemental Materials

What is included with this book?

  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.


Linguistic research increasingly relies on large electronic corpora for its primary data. While off-the-shelf programs can perform a set of standard searches, specialized questions usually require a custom-written program to find their answers. Essential Python for Corpus Linguistics uses the programming language Python to explain how to write simple programs that extract linguistically useful information, such as the frequency of a given utterance in a particular context within a corpus, or instances of certain phrasal structures in a Treebank. Assuming no prior programming background, the book provides numerous example programs that search for phonological, morphological and syntactic constructions in corpora, and the associated web site provides sample data and programs, which make it easy to start working independently. This book is a valuable resource for linguists who use corpus methods but have no programming training.

Table of Contents

I. Introduction II. Getting Started bull;Downloading and Installing Python bull;Checking that it Works bull;Using Python as a Calculator bull;String bull;Lists bull;Variables and Assignment Statements bull;Counting Lines and Words bull;Exercises III. More on Sequences bull;Tuples bull;Operations on Sequences bull;List Operations bull;String Operations IV. Tests and Control bull;Equality comparison and membership tests bull;The IF statement bull;The FOR statement bull;Example programs bull;Exercises V. Dictionaries and Functions bull;Dictionaries bull;Defining Functions bull;Example programs bull;Exercises VI. Additional Python Topics bull;Modules bull;Custom Sorting bull;List Comprehensions bull;String formatting or interpolation bull;File input and output bull;Unicode bull;Example Programs bull;Exercises VII. Regular Expressions bull;Applications of Regular Expressions bull;Using regular expressions in Python bull;Using regular expression objects bull;Example: Reading CHAT files bull;Homework VIII. Reading bull;Using the DOM to search a treebank bull;Using the CHILDES

Rewards Program

Write a Review