Linguist 278: Programming for Linguists
TimesMW 3:15–4:30 pm
Location250-108
InstructorChristopher Potts
Office hours MW, 4:45–5:45 pm [schedule]
Frequency spectra collected and mapped to CSV format by students for assignment 5


Plan Assignments Reading/Reference
Sep 21 Overview and goals; the shell: navigation, pipes, filters 1. Command-line basics [due Sep 28] Learning the shell; In the beginning was the command line (Neal Stephenson)
Sep 23 The shell: utilities, job control, permissions, profiles
Sep 28 Regular expressions with egrep 2. Using egrep [due Oct 4] Mastering Regular Expressions, §1; regular expression cheat sheet; Python string methods documentation
Sep 30 Intro to Python; strings, variables, and string encodings
Oct 5 Python Lists 3. Python lists and dictionaries [due Oct 11] Dive into Python §3.2; Python Tutorial §3.1.4, §5.1
Oct 7 Python Dictionaries Dive into Python §3.1; Python Tutorial §5.5
Oct 12 Python regular expressions 4. Python regular expressions [due Oct 18] Python regular expression HOWTO
Oct 14 Other data structures in Python Python Tutorial §5.3-5.5, §9.3
Oct 19 Introspection and functional programming 5. Miscellaneous data structures and techniques [due Oct 25] Dive into Python §3.6, §4
Oct 21 Defining your own classes – our Word and WordList classes, with a testing file Python Tutorial §9
Oct 26 Online experiment 1: Processing materials (from CSV to Python classes) – Simple survey experiment; Adder CGI program, now with logging 6. Questionnaire-based Web experiment using Python/CGI [due Nov 8] Interactive Python/CGI tutorial; Unix file permissions tutorial; Basics of HTML forms
Oct 28 Online experiment 2: creating a CGI interface and storing responses in XML
Nov 2
Nov 4 Online experiment 4: processing and analyzing results
Nov 9 Gathering and formatting your own (large) corpora 7. More on building custom classes [due Nov 15] Urllib2: The missing manual; Beautiful Soup download & documentation
Nov 11
Nov 16 Recursive interpretation of complex mathematical expressions involving fractions: our code base 8. Code for the long term [due Dec 7]  
Nov 18
Thanksgiving recess
Nov 30 Working with sound files in Python: interactive PyAudio recording script   PyAudio examples
Dec 2

[Stanford F09 academic calendar]