{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3595","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3595/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3595/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3595/events","html_url":"https://github.com/tensorflow/tensorflow/issues/3595","id":168552409,"number":3595,"title":"Unable to replicate RNN results on a different dataset","user":{"login":"pranjaldaga","id":3074134,"avatar_url":"https://avatars.githubusercontent.com/u/3074134?v=3","gravatar_id":"","url":"https://api.github.com/users/pranjaldaga","html_url":"https://github.com/pranjaldaga","followers_url":"https://api.github.com/users/pranjaldaga/followers","following_url":"https://api.github.com/users/pranjaldaga/following{/other_user}","gists_url":"https://api.github.com/users/pranjaldaga/gists{/gist_id}","starred_url":"https://api.github.com/users/pranjaldaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranjaldaga/subscriptions","organizations_url":"https://api.github.com/users/pranjaldaga/orgs","repos_url":"https://api.github.com/users/pranjaldaga/repos","events_url":"https://api.github.com/users/pranjaldaga/events{/privacy}","received_events_url":"https://api.github.com/users/pranjaldaga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-01T01:57:51Z","updated_at":"2016-08-01T23:01:22Z","closed_at":null,"body":"### What is the problem?\r\n[This RNN tutorial script ](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/models/rnn/ptb/ptb_word_lm.py) works perfectly fine until the contents of the files are unchanged, but once changed a **KeyError** is encountered. (see the error log below)\r\n\r\n### Environment info\r\nOperating System:\r\n\r\nInstalled version of CUDA and cuDNN: \r\n\r\nlrwxrwxrwx 1 root root       12 May 24 00:01 libcuda.so -> libcuda.so.1\r\nlrwxrwxrwx 1 root root       17 May 24 00:01 libcuda.so.1 -> libcuda.so.352.41\r\n-rwxr-xr-x 1 root root 14280360 May 24 00:01 libcuda.so.352.41\r\nlrwxrwxrwx 1 root root       29 May 24 00:02 libcudnn.so -> /etc/alternatives/libcudnn_so\r\nlrwxrwxrwx 1 root root       17 Feb  9 07:47 libcudnn.so.4 -> libcudnn.so.4.0.7\r\n-rw-r--r-- 1 root root 61453024 Feb  9 07:47 libcudnn.so.4.0.7\r\nlrwxrwxrwx 1 root root       32 May 24 00:02 libcudnn_static.a -> /etc/alternatives/libcudnn_stlib\r\n-rw-r--r-- 1 root root 62025862 Feb  9 07:47 libcudnn_static_v4.a\r\n\r\n\r\nIf installed from binary pip package, provide:\r\n\r\n1. Which pip package you installed: \r\n***Ubuntu/Linux 64-bit, GPU enabled, Python 2.7***\r\n2. The output from `python -c \"import tensorflow; print(tensorflow.__version__)\"`.\r\n\r\nI tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.so locally\r\nI tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.so locally\r\nI tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.so locally\r\nI tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcuda.so locally\r\nI tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcurand.so locally\r\n0.9.0\r\n\r\n### Steps to reproduce\r\n1. Download data from here: http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz \r\n2. Cloned the tensorflow git repository, and be in the root of the git tree.\r\n3. cd tensorflow/models/rnn/ptb\r\n4. python ptb_word_lm.py --data_path=/tmp/simple-examples/data/ --model small\r\n\r\n### What have you tried?\r\n1. Change the contents of the file ptb.train.txt OR ptb.valid.txt OR ptb.test.txt\r\n\r\n### Logs or other output that would be helpful\r\nTraceback (most recent call last):\r\n  File \"ptb_word_lm.py\", line 350, in <module>\r\n    tf.app.run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py\", line 30, in run\r\n    sys.exit(main(sys.argv))\r\n  File \"ptb_word_lm.py\", line 289, in main\r\n    raw_data = reader.ptb_raw_data(FLAGS.data_path)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/models/rnn/ptb/reader.py\", line 76, in ptb_raw_data\r\n    valid_data = _file_to_word_ids(valid_path, word_to_id)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/models/rnn/ptb/reader.py\", line 48, in _file_to_word_ids\r\n    return [word_to_id[word] for word in data]\r\nKeyError: '[The'\r\n\r\n***NOTE***: For this specific example, the contents of ptb.valid.txt were changed and the first line of this file is \"[The Parent's Assistant, by Maria Edgeworth]\""},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/236733604","html_url":"https://github.com/tensorflow/tensorflow/issues/3595#issuecomment-236733604","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3595","id":236733604,"user":{"login":"pranjaldaga","id":3074134,"avatar_url":"https://avatars.githubusercontent.com/u/3074134?v=3","gravatar_id":"","url":"https://api.github.com/users/pranjaldaga","html_url":"https://github.com/pranjaldaga","followers_url":"https://api.github.com/users/pranjaldaga/followers","following_url":"https://api.github.com/users/pranjaldaga/following{/other_user}","gists_url":"https://api.github.com/users/pranjaldaga/gists{/gist_id}","starred_url":"https://api.github.com/users/pranjaldaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranjaldaga/subscriptions","organizations_url":"https://api.github.com/users/pranjaldaga/orgs","repos_url":"https://api.github.com/users/pranjaldaga/repos","events_url":"https://api.github.com/users/pranjaldaga/events{/privacy}","received_events_url":"https://api.github.com/users/pranjaldaga/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T23:01:22Z","updated_at":"2016-08-01T23:01:22Z","body":"Hi, \r\nI tried a bunch of things and tried to run it. Couldn't get it working. I don't think this script would be tailored specifically to the PTB data, so I am pretty sure I am missing something here. Any help/hint would be highly appreciated. Thanks!"}}
{"actor":{"display_login":"pranjaldaga"}}