From 7b43f1391c1118690e578a07bcc32a9a08f5576d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Pavli=C5=A1in?= Date: Wed, 9 Feb 2022 18:52:35 +0000 Subject: [PATCH] Update 'pages/students/2016/patrik_pavlisin/dp2022/prepare-env.sh' --- pages/students/2016/patrik_pavlisin/dp2022/prepare-env.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/students/2016/patrik_pavlisin/dp2022/prepare-env.sh b/pages/students/2016/patrik_pavlisin/dp2022/prepare-env.sh index 640ab518..1b330580 100644 --- a/pages/students/2016/patrik_pavlisin/dp2022/prepare-env.sh +++ b/pages/students/2016/patrik_pavlisin/dp2022/prepare-env.sh @@ -1,4 +1,6 @@ -pip install --upgrade pip -pip install OpenNMT-py -pip install -r requirements.opt.txt +onmt_build_vocab -config dp2022/sk-en/trainsk.yaml -n_sample 10000 + +onmt_train -config dp2022/sk-en/trainsk.yaml + +onmt_translate -model dp2022/sk-en/run/model_step_1000.pt -src dp2022/sk-en/src-test.txt -output dp2022/sk-en/pred_1000.txt -verbose