An introduction to Python programming for linguists. Examples of code specifically designed for language analysis are featured throughout.
Michael Hammond is Professor of Linguistics and Human Language Technology at the University of Arizona. His previous titles include Programming for Linguists: Perl for Language Professionals (2003) and Programming for Linguists: Java Technology for Language Professionals (2002).
Preface; 1. Interacting with Python and basic functions; 2. Data types and variables; 3. Control structures; 4. Input-output; 5. Subroutines and modules; 6. Regular expressions; 7. Text manipulation; 8. Internet data; 9. Objects; 10. GUIs; 11. Functional programming; Appendix A. NLTK.