Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 2.63 KB

README.md

File metadata and controls

53 lines (38 loc) · 2.63 KB

Working With Corpora

This repository contains teaching materials for Saarland Uni's Working With Corpora program. It's been adapted from the repository for teaching materials and additional resources used by Research Platforms Services at the University of Melbourne to teach Python, IPython, Jupyter and the Natural Language Toolkit (NLTK).

Essentially, the idea of both programs is to run free training in reproducible research methods and tools via a cloud platform, so that nobody has to worry about installation/operating system/specs problems. All code is written and executed within Jupyter Notebooks, allowing easy access to earlier input and output, as well as the rich display of text/images.

Learn more on WwC Python sessions at this URL. Want to join? Register by filling in this form. Subscribe to the mailing list and check the calendar to keep up-to-date with WwC activities.

All the materials used in the workshops are in this repository. In fact, cloning this repository will be our first activity together as a group. To do that, just open your terminal and type/paste:

git clone git@github.com:wowico/wwc.git

Problem? You'll probably need to register yourself:

git config --global user.name "Firstname Lastname"
git config --global user.email username@gmail.com

... and, you'll need to make an ssh key (sorry!)

# generate key (defaults are fine)
ssh-keygen
# run agent in background
eval "$(ssh-agent -s)"
# add key
ssh-add ~/.ssh/id_rsa
# show the key so you can copy it
cat ~/.ssh/id_rsa.pub

Now, you need to copy that key and add it to your GitHub account.

Try again:

# test your ssh
ssh -T git@github.com
git clone git@github.com:wowico/wwc.git

Great!

Configuring our Notebooks

Our lessons are stored as markdown files. The following line of code will let us open markdown files in the Jupyter Notebook.

pip install notedown
printf "c.NotebookApp.contents_manager_class = 'notedown.NotedownContentsManager'\n" >> ~/.jupyter/jupyter_notebook_config.py