Methods in Computational Linguistics I
CUNY Graduate Center – Fall 2024

Synopsis

This course is the first of a two-semester series introducing modern software development. The intended audience are students interested in speech and language processing technologies, though the materials will be beneficial to all language researchers.

Objectives

Using the Python programming language, students will be able to write programs which count the frequencies of various linguistic phenomena in text. They will be able to process text stored in various structured data formats. They will come to understand how computers encode multilingual text. They will learn the basic principles of command-line design and master regular expressions.

Materials

Readings will be assigned throughout the term and posted to the course schedule, although there will be no official "textbook." Students are strongly encouraged to bring a laptop computer to the lecture and practicum. Students are also welcome to use the Computational Linguistics Laboratory (7400.13) for practice and assignments.

Assignments

Assignments will take the form of a small software development projects accompanied by a write-up describing the general approach taken and any challenges encountered. Students will usually be able to verify the technical correctness of their code by running a provided unit test. Students will also be graded on the readability of their code, and the quality of the write-up. We will use GitHub for assignment turn-in. You will receive a link either in-class or via email which will generate your GitHub repo for each assignment.

Since there are often common questions that arise about assignments throughout the term, I will be gathering frequently asked questions along with their answers on a mini "bulletin board." Try to consult to see if your question has already been answered!

The final assignment will be an open-ended project which will involve collecting basic statistics (e.g., counts) of some linguistic phenomenon from either raw text or structured data. Students are encouraged to conceive of projects relevant to their research interests. Students should discuss project plans with the instructor during office hours to confirm that it is both feasible and of appropriate scope. Because of the open-ended nature of the final assignment, unit tests will not be provided.

Grading

80% of students' grades will be derived from the assignments; the remaining 20% will be reserved for participation and attendance. Assignments must be submitted on time or will receive a 0 grade (barring a documented emergency).

Accommodations

The instructor will attempt to provide all reasonable accommodations to students upon request. If you believe you are covered under the Americans With Disabilities Act, please direct accommodations requests to Vice President for Student Affairs Matthew G. Schoengood.

Attendance

Students are extended to attend all lectures and practica (in person). There will in general be no accomodation to attend class online. However, students who have reason to believe they may be contagious for COVID-19 or other infectious diseases should stay at home if they are feeling unwell and contact the instructor. Other absences will not be excused, and the instructor reserves the right to tie grades to attendance records. The instructor and practicum leader are not responsible for reviewing materials missed to absence.

Integrity

In line with the Student Handbook policies on plagiarism, students are expected to complete their own work. However, a student is permitted to collaborate with another student during the coding phase of an assignment so long as they: do not share lines of code with each other, mutually disclose their collaboration in their write-ups, and do not collaborate at all on their write-ups.

The general ethos of the integrity policy is that actions which shortcut the learning process are forbidden while actions which promote learning are encouraged. Studying lecture notes together, for example, provides an additional avenue for learning and is encouraged. Using a classmate’s solution to a homework, however, is prohibited because it avoids the learning process entirely. If you have any questions about what is or is not permissible, please contact your instructor.

The instructor reserves the right to refer violations to the Academic Integrity Officer.

Respect

For the sake of the privacy, students are asked not to record lectures. Students are expected to be considerate of their peers and to treat them with respect during class discussions.

Links and references

Schedule

(Please note that this is subject will be updated dynamically throughout the semester and is subject to change.)


W0 Date Due Class Topics Slides Reading
T 8/29 Lect. Syllabus;
course plans
Slides-L1 Bird §1
Joyner §1
Shaw Preface
W1
T 9/3 HW0
due
Lect. Literals;
variables;
operators
Slides-L2 Joyner §2
Shaw §1-14
R 9/5 Prac. First practice
Jupyter notebooks
Notebook
Solution
W2
T 9/10 HW1
due
No class (Spencer at a conference 🏴󠁧󠁢󠁳󠁣󠁴󠁿)
R 9/12 Prac. Control flow Slides-L3 Joyner §3-3.3
Shaw §27-33
W3
T 9/17 Lect. Indexing Slides-L4 Joyner §4.2-4.3
Shaw §34
Shaw §36-38
R 9/19 HW2
due
Prac. Notebook
Solution
W4
T 9/24 Lect. Functions Joyner §3.4
R 9/26 Prac.
F 9/27 HW3 due
W5
T 10/1 Lect. File I/O;
Modules;
Function Stubs
Joyner §4.4
Shaw §15-17
Bird §3-3.2
R 10/3 No class (GC Closed)
W6
T 10/8 Lect.
R 10/10 Prac.
W7
T 10/15 No class (GC Operating on Monday Schedule)
R 10/17 Prac.
W8
T 10/22 Lect.
R 10/24 Prac.
W9
T 10/29 Lect.
R 10/31 Prac.(🎃)
W10
T 11/5
(election
🇺🇸
day)
Lect.
R 11/7 Prac.
W11
T 11/12 Lect.
R 11/14 Prac.
W12
T 11/19 Lect.
R 11/21 Prac.
W13
T 11/26 [Term
paper
specs
]
Lect.
R 11/28 No class (Thanksgiving)
W14
T 12/3 Lect.
R 12/5 Prac.
W15
T 12/10 Lect.
R 12/12 Prac.
W16 No class (Reading Days) -- Work on Final Projects
W17 12/21 Term paper due (Official end to the GC Fall Semester)