Professional Documents
Culture Documents
Li18 PyCompLing (2021)
Li18 PyCompLing (2021)
Please
work in pairs (you can change at the next Lab), use the
whole of the room, and leave alternate rows empty for
TA access
Nigel Collier
Faculty of Modern and Medieval Languages and Linguistics
1
Acknowledgements
Course design
(2019/21)
2
Teaching Assistants 2021/22
Hugo Caffaratti
Yixuan Su
Meiru Zhang
Yinhong Liu
3
Michaelmas: 3 self-study interactive notebooks, 1 in-person
assessment
Winter break
4
Python 3
• Python is a great practical skill if you want to work with data to answer
linguistic questions (corpus linguistics) or build models that can analyse,
process and generate text (NLP)
5
Jupyter Notebooks
The course is made available in the form of Jupyter Notebooks – you can
think of this as something like a Web page that mixes teacher notes with live
programming code that you can run.
You have two or three choices for running the course notebooks. Our strongly
preferred choice is to run the course notebooks in Google Colab. This
allows you to login to Google using your CRSid and to use a virtual computer
supplied by Google (within certain limits).
6
Self study and labs
Jupyter notebooks are provided for you to work with both in the lab and as
self-study material.
Lab sessions are here to support your learning but please feel free to leave
early – you don’t need to stay the full two hours if you have understood the
material.
If you are already experienced in Python, please do help out on the Slack
Channel.
7
Getting Help
8
Giving Help
9
Dynamic material
10
Let’s get started
11
Getting Started
1. Open your Web browser and enter the following in the address box
https://github.com/cambridgeltl/python4cl/
12
Getting Started
2. Scroll down the page until you see the Readme file and the Syllabus for
Module 1. It should look like this:
13
Getting Started
3. To go ahead with Google Colab, click on “1.1 About the Course” using the
“Open in Colab” button.
You should now be looking at the first module of PyCompLing:
14
Getting Started
15
Getting Started
5. You should now see a change of logo in the top right-hand corner of the
Google Colab page to show that you are logged in:
16
Getting Started
17
Working through Notebooks
Feel free to make changes to your copy of the Notebook to explore and enhance
your understanding
Feel free to go back and revisit Notebooks as you move through the course
18
Getting Started
19
Assessment exercises
Assessment exercises (at the end of each notebook) must be only your own
work
You will be marked on how well your Python code works and how well you
demonstrate your understanding of the code you have submitted. TAs will ask a
selection of questions to test your understanding.
Test your code yourself, and add in text boxes to explain your answers.
Hand in your answers to Modules 1.2, 1.3 and 1.4 before 17:00 on 19/11. Answers
submitted after this date will not be considered.
Check the rota for your marking slot. Be present at Mill Lane Room 9 at least 5
minutes before your allocated time. Have your Jupyter Notebooks open and ready
to demonstrate.
20