question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No such file or directory: 'inter_single/eval.json'

See original GitHub issue

Hello,

I run the pre-trained weight with:

basic/run_single.sh ~/data/squad/dev-v1.1.json single.json

but I got:

File "/usr/lib/python3.5/gzip.py", line 163, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'inter_single/eval.json'

What did I make wrong?

thank you

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
diegotxegpcommented, Jul 4, 2018

[SOLVED]

3.1 Loading from pre-trained weights

Instead of training the model yourself, you can choose to use pre-trained weights that were used for SQuAD Leaderboard submission. Refer to this worksheet in CodaLab to reproduce the results. If you are unfamiliar with CodaLab, follow these simple steps (given that you met all prereqs above):

1. Download save.zip from the worksheet and unzip it in the current directory.
2. Copy glove.6B.100d.txt from your glove data folder ($HOME/data/glove/) to the current directory.
3. To reproduce single model:

basic/run_single.sh $HOME/data/squad/dev-v1.1.json single.json


It is nothing related to CUDA.

At the moment you download the file “save.zip” (in fact, it is called “save.tar.gz”) from the worksheet, you must decompress it at a folder called “save” within the BiDAF folder (BiDAF/save). However, the file “glove.6B.100d.txt” must be copied at the main folder where you have the BiDAF (BiDAF/glove.6B.100d.txt).

2reactions
rjonesxmozcommented, Jan 9, 2018

The file inter_single/eval.json does not appear to exist (the directory only contains data_single.json and shared_single.json). Is there any where to download that eval.json file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

json - Why do I get no such file or directory error despite the ...
json are both absolute paths. The first one means that the file is right in the root directory ( / ), and the...
Read more >
Error: ENOENT: no such file or directory, open '. /file.json' #9
It cannot seem to find the files which are there. I was able to require the file I needed as js with the...
Read more >
Chapter 1: Failed to import people.json - M201 - MongoDB
Hi guys1 I am running this command: mongoimport --drop -c restaurants --uri mongodb+srv://user:password@cluster0.45p9jum.mongodb.net/m201 ...
Read more >
JSON files not found: module-stats.json No such file or directory
JSON files not found: module-stats.json No such file or directory. In the centcore.log file a lot af lines with this messages:
Read more >
openshift-install destroy cluster Fails with "open metadata.json
... with "open metadata.json: no such file or directory". Solution Unverified - Updated May 15 2019 at 12:47 PM -. English. No translations...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found