Pretrained embedding for OpenNMT-py

I want to use pretrained embeddings by using Doc link :http://opennmt.net/OpenNMT-py/FAQ.html#how-do-i-use-pretrained-embeddings-e-g-glove but running this ./tools/embeddings_to_torch.py -emb_file_both “glove_dir/glove.6B.100d.txt” \ -dict_file “data/data.vocab.pt” \ -output_file “data/embeddings” gives this error “embeddings_to_torch.py: error: the following arguments are required: -emb_file_enc, -emb_file_dec”.

What are -emb_file_enc, -emb_file_dec? how I can generate emb_file_enc and emb_file_dec? I have only three files after preprocessing data.train.0.pt, data.valid.0.pt, data.vocab.pt . I would appreciate for any suggestions,

Thanks,

Hello, ! Probably, first you have to setup the system by running "setup.py install" in “OpenNMT-py” directory.
$ python setup.py build
$ python setup.py install

or check the path.

work command(example):
python3 …/…/tools/embeddings_to_torch.py -emb_file_both “…/ko_embedding/ko.vec” -dict_file ./data.vocab.pt -output_file “./embeddings”