NSpM icon indicating copy to clipboard operation
NSpM copied to clipboard

Possible need to rename files

Open wannabeOG opened this issue 7 years ago • 2 comments

While splitting the data file into train, dev and test sets by running the following commands given in the README.md

cd data/monument_300/
python ../../split_in_train_dev_test.py --lines $NUMLINES  --dataset data.sparql

I run into the following error

Traceback (most recent call last): File "../../split_in_train_dev_test.py", line 42, in with open(sparql_file) as original_sparql, open(en_file) as original_en: IOError: [Errno 2] No such file or directory: 'data.sparql'

which can be solved by renaming the files in monument_300 (data_300.sparql and data_300.en to data.sparql and data.en)

wannabeOG avatar Jan 09 '19 09:01 wannabeOG

I have a hunch that the issue is not about renaming the files, I am going through the generator.py code to figure it out, check this issue out

wannabeOG avatar Jan 10 '19 07:01 wannabeOG

The issue is regarding the naming of files pertaining to corresponding instruction in the README.md . The filenames are hard-coded in the source file, the corresponding snippet is:

with open(output_dir + '/data_300.en', file_mode) as english_questions, open(output_dir + '/data_300.sparql', file_mode) as sparql_queries:

panchbhai1969 avatar Jan 20 '19 21:01 panchbhai1969