diff options
author | Yigit Sever | 2019-09-19 20:44:25 +0300 |
---|---|---|
committer | Yigit Sever | 2019-09-19 20:44:25 +0300 |
commit | facbd5a39680f74b30f7332c8fd8df2e0a70f2a2 (patch) | |
tree | 9192547b5d3b38e0803ecb9d81daf2abfb12c962 /README.md | |
parent | de63683bc799045f82d6642ea1b5e5bf6691ec7c (diff) | |
download | Evaluating-Dictionary-Alignment-facbd5a39680f74b30f7332c8fd8df2e0a70f2a2.tar.gz Evaluating-Dictionary-Alignment-facbd5a39680f74b30f7332c8fd8df2e0a70f2a2.tar.bz2 Evaluating-Dictionary-Alignment-facbd5a39680f74b30f7332c8fd8df2e0a70f2a2.zip |
Add virtualenv instructions
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -9,6 +9,40 @@ This repository contains the scripts to prepare the resources for the study as w | |||
9 | import nltk | 9 | import nltk |
10 | nltk.download('wordnet') | 10 | nltk.download('wordnet') |
11 | ``` | 11 | ``` |
12 | - [lapjv](https://pypi.org/project/lapjv/) | ||
13 | - [POT](https://pypi.org/project/POT/) | ||
14 | - [mosestokenizer](https://pypi.org/project/mosestokenizer/) | ||
15 | - (Optional) If using VecMap | ||
16 | * NumPy | ||
17 | * SciPy | ||
18 | |||
19 | <details><summary>We recommend using a virtual environment</summary> | ||
20 | <p> | ||
21 | |||
22 | 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; | ||
23 | |||
24 | ```bash | ||
25 | cd ~ | ||
26 | mkdir -p .env && cd .env | ||
27 | python -m venv evaluating | ||
28 | source ~/.env/evaluating/bin/activate | ||
29 | ``` | ||
30 | |||
31 | Inside the virtual environment, the python interpreter and the installed packages are isolated. | ||
32 | In order to install all dependencies automatically; | ||
33 | |||
34 | ```bash | ||
35 | pip install -r requirements.txt | ||
36 | ``` | ||
37 | |||
38 | After done with the environment run; | ||
39 | |||
40 | ```bash | ||
41 | deactivate | ||
42 | ``` | ||
43 | |||
44 | </p> | ||
45 | |||
12 | 46 | ||
13 | ## Acquiring The Data | 47 | ## Acquiring The Data |
14 | 48 | ||