Skip to content

Files

Latest commit

3171687 · Jul 29, 2022

History

History
This branch is 37 commits behind socialcomquant/summer-school-2022:main.

Panisson_Text_Representation_Learning


SUMMER SCHOOL 2022:

Text mining and Natural Language Processing for Computational Social Sciences

SocialComQuant Project - Online Teaching Module: Text Representation Learning

André Panisson


Setup the Environment

Open a command line, go to the directory of the project, for example:

cd /home/student/PATH-TO-PROJECT

Check that conda is installed and working:

conda --version

(this command should show the version of conda installed in your system, e.g. conda 4.13.0)

Create a new environment using the file environment.yml:

conda env create -f environment.yml

Activate the environment:

conda activate transformers

Register the new environment as a kernel for Jupyter notebook:

python -m ipykernel install --user --name=transformers

Finally, open this notebook on Jupyter and check if all cells run without exceptions: 1.Environment-Setup.ipynb

If it doesn't work...

If the setup does not work, you still should be able to open the notebook on Google Colab:

1.Environment-Setup.ipynb: Colab Link

2.BagOfWords.ipynb: Colab Link

3.Word2Vec.ipynb: Colab Link

4.1.Transformer-Train.ipynb: Colab Link

4.2.Transformer-Test.ipynb: Colab Link

5.Translate.ipynb: Colab Link