Week 1

Introduction

Environment Setup

Git Basics

Overview

Commands

Just once

For each changeset

  1. git add
  2. git commit
  3. git push

Introduction to GitHub

Running Python

If time allows..

Introduction to the Natural Language Tool Kit

In-class setup of NLTK (Windows/Mac/Linux):

$ pip install nltk
$ python
>>> import nltk
>>> nltk.download() # first time on this machine
>>> from nltk.book import *

In VS Code (Python), run this NLTK application:

>>> nltk.app.rdparser()

Keep clicking Step for a while and try to see what’s going on. Alternatively, click Autostep once and just watch. Challenge: can you parse the whole sentence successfully using only the Expand, Match and Backtrack buttons?

In VS Code (Python), run this NLTK application:

>>> nltk.app.srparser()

Keep clicking Step for a while and try to see what’s going on. Challenge: can you parse the whole sentence successfully using only the Shift and Reduce buttons?

Homework 1

See invite for GitHub on NTULearn.

Readings for next week:

We will spend the next few weeks becoming familiar with Python programming and practicing basic concepts and methods.

The primary readings for next week are from the official Python tutorial:

Additionally, please read the section on sets (only this section, not the rest of the chapter):

To familiarize you with the Natural Language ToolKit (NLTK) and give you a taste of what we will start to cover from Week 4, here are some additional readings, which also allow you to practice some of what we will go through in Week 2: