We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import tarfile tarobj = tarfile.open(tgz_filename, "r:gz") for tarinfo in tarobj: tarobj.extract(tarinfo.name, r"/tmp") tarobj.close()
A new folder named 'simple-examples' will be created in /tmp, and go to find the .txt file
/tmp
data_path = '/tmp/simple-examples/data' with tf.gfile.GFile('/tmp/simple-examples/data/ptb.test.txt', "r") as f: print( f.read().replace("\n", "<eos>").split() )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1. Kaggle unzip .tgz file in temp
A new folder named 'simple-examples' will be created in
/tmp
, and go to find the .txt file2. tf,gfile()
The text was updated successfully, but these errors were encountered: