stanfordnlp / coqa-baselines

The baselines used in the CoQA paper
MIT License
175 stars 52 forks source link

Problem running the code #16

Open pavlostheodorou opened 3 years ago

pavlostheodorou commented 3 years ago

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'

jiogenes commented 1 year ago

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"