Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cat: output.txt: No such file or directory #44

Open
SnigdhaBiswas opened this issue Sep 21, 2020 · 3 comments
Open

cat: output.txt: No such file or directory #44

SnigdhaBiswas opened this issue Sep 21, 2020 · 3 comments

Comments

@SnigdhaBiswas
Copy link

SnigdhaBiswas commented Sep 21, 2020

On running the ./ask.sh script I'm getting the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/content/NSpM/nmt/nmt/nmt.py", line 707, in <module>
    tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 299, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "/content/NSpM/nmt/nmt/nmt.py", line 700, in main
    run_main(FLAGS, default_hparams, train_fn, inference_fn)
  File "/content/NSpM/nmt/nmt/nmt.py", line 658, in run_main
    save_hparams=(jobid == 0))
  File "/content/NSpM/nmt/nmt/nmt.py", line 607, in create_or_load_hparams
    hparams = extend_hparams(hparams)
  File "/content/NSpM/nmt/nmt/nmt.py", line 493, in extend_hparams
    unk=vocab_utils.UNK)
  File "/content/NSpM/nmt/nmt/utils/vocab_utils.py", line 137, in check_vocab
    raise ValueError("vocab_file '%s' does not exist." % vocab_file)
ValueError: vocab_file '../data/monument_300/vocab.en' does not exist.
# Job id 0
# Devices visible to TensorFlow: [_DeviceAttributes(/job:localhost/replica:0/task:0/device:CPU:0, CPU, 268435456, 2340982298104704118), _DeviceAttributes(/job:localhost/replica:0/task:0/device:XLA_CPU:0, XLA_CPU, 17179869184, 7897109989793672363)]
# Creating output directory ../data/monument_300_model ...

ANSWER IN SPARQL SEQUENCE:
cat: output.txt: No such file or directory

Can someone please help me with this?

@mommi84
Copy link
Member

mommi84 commented Sep 21, 2020

Can you please share your complete command?

ValueError: vocab_file '../data/monument_300/vocab.en' does not exist.

This line looks quite self-explanatory.

@SnigdhaBiswas
Copy link
Author

I used this command. I was following the steps as given in the repository.

./ask.sh data/monument_300 "where is edward vii monument located in?"

@panchbhai1969
Copy link
Contributor

Please provide detailed steps to help us recreate the issue you are facing.

Note: ./ask.sh data/monument_300 "where is edward vii monument located in?": was this the only command you ran after cloning the repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants