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

Update vocabulary-embedding.ipynb #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashishrana160796
Copy link
Contributor

With the following code :
!unzip {datadir}/{path} while executing is producing the following error.
unzip: cannot find or open /home/user_name/.keras/datasets//home/user_name/.keras/datasets/glove.6B.zip, /home/user_name/.keras/datasets//home/user_name/.keras/datasets/glove.6B.zip.zip or /home/user_name/.keras/datasets//home/user_name/.keras/datasets/glove.6B.zip.ZIP.

Removing {datadir} removes the above error and files are extracted successfully.

@udibr
Copy link
Owner

udibr commented Apr 19, 2018

Looks like something wrong with Keras. According to their manual
the get_file(path, ... command should have placed the file at {datadir}/{path}

@ashishrana160796
Copy link
Contributor Author

I think keras's get_file method works fine as it returns the path variable pointing to given directory's file /home/user_name/.keras/datasets/glove.6B.zip which is consistent with documentation and also file is placed there after execution( pardon me, didn't mentioned it earlier). But, I think problem arises when {datadir} is appended to unzip leading to duplication as pointed out by above error message.
Please see if the similar issue is reproducible by you as I am using keras 2.1.5 or is there something wrong with my analysis.

-Thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants