Skip to content

Failed to run ./gen_ToDo.sh #3

@salexln

Description

@salexln

I followed the guide and when executing ./gen_ToDo.sh I got this:

Traceback (most recent call last):
  File "preprocess.py", line 220, in <module>
    main(opt)
  File "preprocess.py", line 170, in main
    ArgumentParser.validate_preprocess_args(opt)
  File "/Users/alexl/dev_utils/SmartToDo/src/SmartToDo_seq2seq/onmt/utils/parse.py", line 129, in validate_preprocess_args
    assert os.path.isfile(file), "Please check path of %s" % file
AssertionError: Please check path of ../../data/SmartToDo_seq2seq_data/src-train.txt
Traceback (most recent call last):
  File "./tools/embeddings_to_torch.py", line 160, in <module>
    main()
  File "./tools/embeddings_to_torch.py", line 92, in main
    enc_vocab, dec_vocab = get_vocabs(opt.dict_file)

```  File "./tools/embeddings_to_torch.py", line 12, in get_vocabs
    fields = torch.load(dict_path)
  File "/Users/alexl/Library/Caches/pypoetry/virtualenvs/smarttodo-tH7XIi0y-py3.7/lib/python3.7/site-packages/torch/serialization.py", line 419, in load
    f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'processed/avocado.spacy_tokenized.separate.copy.vocab.pt'
Traceback (most recent call last):
  File "train.py", line 200, in <module>
    main(opt)
  File "train.py", line 33, in main
    vocab = torch.load(opt.data + '.vocab.pt')
  File "/Users/alexl/Library/Caches/pypoetry/virtualenvs/smarttodo-tH7XIi0y-py3.7/lib/python3.7/site-packages/torch/serialization.py", line 419, in load
    f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'processed/avocado.spacy_tokenized.separate.copy.vocab.pt'
Traceback (most recent call last):
  File "translate.py", line 49, in <module>
    main(opt)
  File "translate.py", line 19, in main
    translator = build_translator(opt, report_score=True)
  File "/Users/alexl/dev_utils/SmartToDo/src/SmartToDo_seq2seq/onmt/translate/translator.py", line 28, in build_translator
    fields, model, model_opt = load_test_model(opt)
  File "/Users/alexl/dev_utils/SmartToDo/src/SmartToDo_seq2seq/onmt/model_builder.py", line 95, in load_test_model
    map_location=lambda storage, loc: storage)
  File "/Users/alexl/Library/Caches/pypoetry/virtualenvs/smarttodo-tH7XIi0y-py3.7/lib/python3.7/site-packages/torch/serialization.py", line 419, in load
    f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/101/model_step_best.pt'
Traceback (most recent call last):
  File "translate.py", line 49, in <module>
    main(opt)
  File "translate.py", line 19, in main
    translator = build_translator(opt, report_score=True)
  File "/Users/alexl/dev_utils/SmartToDo/src/SmartToDo_seq2seq/onmt/translate/translator.py", line 28, in build_translator
    fields, model, model_opt = load_test_model(opt)
  File "/Users/alexl/dev_utils/SmartToDo/src/SmartToDo_seq2seq/onmt/model_builder.py", line 95, in load_test_model
    map_location=lambda storage, loc: storage)
  File "/Users/alexl/Library/Caches/pypoetry/virtualenvs/smarttodo-tH7XIi0y-py3.7/lib/python3.7/site-packages/torch/serialization.py", line 419, in load
    f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/101/model_step_best.pt'
Traceback (most recent call last):
  File "compute_metrics.py", line 63, in <module>
    compute_bleu_rouge(path_to_gold_final, path)
  File "compute_metrics.py", line 24, in compute_bleu_rouge
    with open(path_to_gold, 'r') as f_gold, open(path_to_pred, 'r') as f_pred:
FileNotFoundError: [Errno 2] No such file or directory: '../../data/Gold_SmartToDo_seq2seq_data/gold-tgt-test.txt'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions