coqa-baselines icon indicating copy to clipboard operation
coqa-baselines copied to clipboard

Problem running the code

Open pavlostheodorou opened this issue 3 years ago • 1 comments

I have Python 3.6.8 with Pytorch=0.4.1, torchtext=0.2.1, gensim and pycorenlp install. Following the steps to run the code, the url (http://central.maven.org/maven2/edu/stanford/nlp/stanford-corenlp/3.9.1/stanford-corenlp-3.9.1.jar) does not work however i manage to find the .jar file.

When i tried to run the Preprocessing section (of Conversational models) i managed to run the first 3 commands, but when i run the 4th command (PYTHONPATH=seq2seq python seq2seq/tools/embeddings_to_torch.py -emb_file_enc wordvecs/glove.42B.300d.txt -emb_file_dec wordvecs/glove.42B.300d.txt -dict_file data/seq2seq-h2.vocab.pt -output_file data/seq2seq-h2.embed) an error occurs:

Traceback (most recent call last): File "seq2seq/tools/embeddings_to_torch.py", line 10, in from onmt.Utils import get_logger ModuleNotFoundError: No module named 'onmt'

pavlostheodorou avatar Jul 15 '21 14:07 pavlostheodorou

The url should be changed to "https://repo1.maven.org/maven2/edu/stanford/nlp/stanford-corenlp/3.9.1/stanford-corenlp-3.9.1.jar"

jiogenes avatar Jan 27 '23 05:01 jiogenes