Working with AI for Humanities and Social Science Research: Python and R for Word Embeddings and Language Models UBC, October 2023
Welcome to our repository for our word embeddings and AI workshop. To make this workshop more accessible to participants, we have three options available for hands-on participation. However, if you do not want to code-along with, and you would like to just see the rendered notebooks instead, you can see them here:
There are three options in the workshop to code along with us during the session:
- Use them as through our JupyterOpen hub, via your web-browser. This option requires a UBC Campus-Wide Login (CWL)
- Use them via Google Colab, again in your web-browser. This option requires a Google Account.
- Use them locally (on your computer), by installing RStudio, R, and Python.
This is the simplest option, but it does require a CWL. To do this click here:
And then log in with your CWL credentials.
You will then need to install some packages to run the notebooks part of this project. To do this, open a new terminal in the Launcher, or click File > New > Terminal
and then type in:
bash setup-r.sh
if you're using R or:
bash setup-py.sh
if you're using Python and hit enter
. This will run, and can take a few minutes to complete.
This is also straightforward. To do this, click this link:
https://colab.research.google.com/github/ubcecon/ai-workshop/blob/main/
And log-in with your Google Account:
- Select the version
Word2vec_Workshop_R_Version_collab
which is designed for Google Collab - At the top, click "Copy to Drive" to move it to your own Drive.
- You may also need to install packages; make sure the
install.packages
commands are uncommented and run them. It's slow. Give it a minute.
Special thanks to Eric Daigle for setting this up
The final option is the most complex, but the notebooks can be run locally on your hardware.
- Before you get started, download and install: RStudio, R, and Python.
- Next, download and extract the workshop files at this link: https://github.com/ubcecon/ai-workshop/archive/refs/tags/0.5.zip
- Finally, open the
.qmd
version of your notebook in RStudio, and run the install block.