CS759/859 Spring 2025
CS759/859 - Natural Language Processing
Class information
Start Date | End Date | Days | Time | Location |
---|---|---|---|---|
1/21/2024 | 5/5/2024 | Tue/Thurs | 2:10pm - 3:30pm | KING N301 |
Office hours: Friday 1 PM to 2 PM, location: Online (see MyCourses announcement for Zoom link)
Prerequisites: CS 515 (or equivalent) and MATH 539 or MATH 644
Description: This class covers natural language processing, including both methods and well-known applications. Methods discussed will range from classical probabilistic methods such as Naive Bayes and Hidden Markov Models, to contemporary neural network methods, including word vector models, recurrent neural networks, and Transformer-based models. Applications discussed will include text classification, machine translation, and conversation systems (among others).
Syllabus
Key information
Syllabus subject to change This syllabus is subject to change. I will make an announcement when this happens, but it is on you as students to keep up.
Mandatory reporter I am a mandatory reporter. What this means is if I hear about a situation where a student is being or has been sexually harassed, assaulted, stalked, or otherwise endangered, I am legally obligated to file a report with the UNH DEI office. That said, I am more than happy to help students find guidance in dealing with these types of situations, subject to my reporting requirements.
Course overview
This course is a special topics lecture on natural language processing for graduate students and advanced undergraduates. Every class session will consist of a lecture, with a weekly homework assignment due the following week. Homeworks will be distributed and completed in Python as Google Colab notebook, with the exact details of distribution and submission to follow.
There will be a final exam in-class the week before the official finals week, precise date TBD.
There will be a final project, chosen from a list of potential topics, with a milestone check-in, a final submission, and a mandatory poster session at the end of the semester.
There is no required textbook, nor mandatory readings.
Grading distribution
The grading distribution is as follows:
70% - Homeworks
20% - Final project
10% - Final exam
Late policy
Homeworks and project milestones can be turned in up to 5 days late, with a stacking 10% per-day penalty on the maximum possible grade, before receiving a zero.
Attendance policy
In-person attendance is strongly encouraged, but I do not take attendance.
I am happy to accommodate life events. If you get COVID or have some other pressing reason to attend remotely, I can temporarily move the class to a hybrid format. I’m also happy to grant excused absences for medical or family problems, or various other kinds of emergencies. Let me know as early as possible if you need either of these kinds of accommodation.
Academic honesty policy
Students are welcome to ask for and give each other assistance on the homework assignments, but these assignments should be completed individually and your work should be your own.
Given the specialized nature of the topic, it is unlikely that AI coding tools such as ChatGPT will be effective in completing the weekly homework assignments. But needless to say, the use of these kinds of tools is not allowed.
Generally speaking, I will follow the UNH academic honesty policy, which lays out what is considered cheating and what the process is for dealing with cases of reported academic dishonesty.
Schedule
Week | Lecture | Day | Date | Description | Slides | Notebook |
---|---|---|---|---|---|---|
1 | 1 | Tu | 1/21 | Introduction to NLP | ||
1 | 2 | Th | 1/23 | Basics of linguistics | ||
2 | 3 | Tu | 1/28 | Representing text numerically | Drive link | |
2 | 4 | Th | 1/30 | Vector similarity and nearest-neighbors classification | Drive link | |
3 | 5 | Tu | 2/4 | Nearest-neighbors clustering | Drive link | |
3 | 6 | Th | 2/6 | Dimension reduction | Drive link | |
4 | 7 | Tu | 2/12 | Linear & logistic regression | Drive link | |
4 | - | Th | 2/13 | Gradient descent and PyTorch | Drive link | |
5 | 8 | Tu | 2/18 | Feedforward neural nets and PyTorch Lightning | Drive link | |
5 | 9 | Th | 2/20 | Word Vectors | Drive link |