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

Possible need to rename files #12

Open
wannabeOG opened this issue Jan 9, 2019 · 2 comments
Open

Possible need to rename files #12

wannabeOG opened this issue Jan 9, 2019 · 2 comments

Comments

@wannabeOG
Copy link

wannabeOG commented Jan 9, 2019

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
Copy link
Author

wannabeOG commented Jan 10, 2019

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

@panchbhai1969
Copy link
Contributor

panchbhai1969 commented Jan 20, 2019

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 added a commit to panchbhai1969/NSpM that referenced this issue Jan 20, 2019
… during ruuning the code by following the instructions on current README.md (These issues and changes are commented in the README.md file)
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

2 participants