Embeddings.lua error

Hello! I’m training a model using the docker version of OpenNMT Torch version. I’m trying to use pre-trained embedding I got from word2vec. I understand that I first have to serialise my embeddings. I want to do that using the provided script but I’m getting an error. Can you please help me to understand what the problem is?

this is my command
th tools/embeddings.lua -embed_type word2vec -embed_file /home/data/vectors\[text_99-14.uncapitalized.expr\]\[\].log -dict_file data/demo.src.dict -save_data /home/data/demo-src-emb

this is the error I’m having

/root/torch/bin/luajit: /root/torch/share/lua/5.1/trepl/init.lua:389: module 'zlib' not found:No LuaRocks module found for zlib

no field package.preload['zlib']

no file '/root/.luarocks/share/lua/5.1/zlib.lua'

no file '/root/.luarocks/share/lua/5.1/zlib/init.lua'

no file '/root/torch/share/lua/5.1/zlib.lua'

no file '/root/torch/share/lua/5.1/zlib/init.lua'

no file './zlib.lua'

no file '/root/.luarocks/lib/lua/5.1/zlib.so'

no file '/root/torch/lib/lua/5.1/zlib.so'

no file './zlib.so'

no file '/root/torch/lib/zlib.so'

stack traceback:

[C]: in function 'error'

/root/torch/share/lua/5.1/trepl/init.lua:389: in function 'require'

tools/embeddings.lua:5: in main chunk

[C]: in function 'dofile'

/root/torch/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk

[C]: at 0x00405d50

Thanks
Claudia