From facbd5a39680f74b30f7332c8fd8df2e0a70f2a2 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 19 Sep 2019 20:44:25 +0300 Subject: Add virtualenv instructions --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index d1ee28c..d1197a7 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,40 @@ This repository contains the scripts to prepare the resources for the study as w import nltk nltk.download('wordnet') ``` +- [lapjv](https://pypi.org/project/lapjv/) +- [POT](https://pypi.org/project/POT/) +- [mosestokenizer](https://pypi.org/project/mosestokenizer/) +- (Optional) If using VecMap + * NumPy + * SciPy + +
We recommend using a virtual environment +

+ +In order to create a [virtual environment](https://docs.python.org/3/library/venv.html#venv-def) that resides in a directory `.env` under home; + +```bash +cd ~ +mkdir -p .env && cd .env +python -m venv evaluating +source ~/.env/evaluating/bin/activate +``` + +Inside the virtual environment, the python interpreter and the installed packages are isolated. +In order to install all dependencies automatically; + +```bash +pip install -r requirements.txt +``` + +After done with the environment run; + +```bash +deactivate +``` + +

+ ## Acquiring The Data -- cgit v1.2.3-70-g09d2