Pretrained embedding for OpenNMT-py : No module named 'onmt'

I want to use pretrained embeddings by using https://github.com/Kyubyong/wordvectors

but running this
python3 embeddings_to_torch.py -emb_file_both “…/ko-ko-data/pt_embed/ko.vec” -dict_file “…/ko-ko-data/data.vocab.pt” -output_file “…/ko-ko-data/embeddings”

error:
Traceback (most recent call last):
File “embeddings_to_torch.py”, line 7, in
from onmt.utils.logging import init_logger, logger
ImportError: No module named ‘onmt’

Is there a solution?
I would appreciate for any suggestions,

Thanks,

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

1 Like

Thanks alot. I solve the problem