Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Requitements #27

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ Pytorch original implementation of TransCoder in [Unsupervised Translation of Pr
- [submitit](https://pypi.org/project/submitit/) (to run the preprocessing pipeline on remote machine)
- [six](https://pypi.org/project/six/)
- [sacrebleu](https://pypi.org/project/sacrebleu/) (`pip install sacrebleu=="1.2.11"`)


All this dependencies can be installed using :
```
$ pip install -r requirement.txt
```

If your `libclang.so` is not in `/usr/lib/llvm-7/lib/`, replace the path to `libclang.so` to the correct path in `clang.cindex.Config.set_library_path('path_to_libclang')` in `code_tokenizer.py`

If you run the data preprocessing pipeline, you will have to compile fastBPE. Go in XLM/tools/fastBPE and carry out the steps described in the [ReadMe](https://github.com/facebookresearch/TransCoder/blob/master/XLM/tools/README.md).
Expand Down
10 changes: 10 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
numpy==1.19.4
Cython==0.29.21
torch==1.7.1
fastBPE==0.1.0
moses==0.10.0
apex==0.9.10.dev0
libclang==10.0.1.0
submitit==1.1.5
six==1.15.0
sacrebleu==1.2.11