{"action":"created","issue":{"url":"https://api.github.com/repos/mila-udem/blocks-examples/issues/36","labels_url":"https://api.github.com/repos/mila-udem/blocks-examples/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/mila-udem/blocks-examples/issues/36/comments","events_url":"https://api.github.com/repos/mila-udem/blocks-examples/issues/36/events","html_url":"https://github.com/mila-udem/blocks-examples/issues/36","id":101848206,"number":36,"title":"Error when I re-implement example for machine translation","user":{"login":"xishazgh","id":9008799,"avatar_url":"https://avatars.githubusercontent.com/u/9008799?v=3","gravatar_id":"","url":"https://api.github.com/users/xishazgh","html_url":"https://github.com/xishazgh","followers_url":"https://api.github.com/users/xishazgh/followers","following_url":"https://api.github.com/users/xishazgh/following{/other_user}","gists_url":"https://api.github.com/users/xishazgh/gists{/gist_id}","starred_url":"https://api.github.com/users/xishazgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xishazgh/subscriptions","organizations_url":"https://api.github.com/users/xishazgh/orgs","repos_url":"https://api.github.com/users/xishazgh/repos","events_url":"https://api.github.com/users/xishazgh/events{/privacy}","received_events_url":"https://api.github.com/users/xishazgh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-08-19T09:38:31Z","updated_at":"2015-08-24T12:35:02Z","closed_at":null,"body":"Hi everyone,\r\n\r\nI get the following error:\r\n\r\nTraining status:\r\nbatch_interrupt_received: False\r\nepoch_interrupt_received: False\r\nepoch_started: True\r\nepochs_done: 0\r\niterations_done: 48\r\nreceived_first_batch: True\r\nresumed_from: f899e453ab7e4d66acbe7558d9dcedaf\r\ntraining_started: True\r\nLog records from the iteration 48:\r\ndecoder_cost_cost: 406.997089365\r\n\r\nERROR:blocks.main_loop:Error occured during training.\r\n\r\nBlocks will attempt to run on_error extensions, potentially saving data, before exiting and reraising the error. Note that the usual after_training extensions will not be run. The original error will be re-raised and also stored in the training log. Press CTRL + C to halt Blocks immediately.\r\nTraceback (most recent call last):\r\nFile \"main.py\", line 45, in \r\nget_dev_stream(**configuration), args.bokeh)\r\nFile \"../machine_translation/init.py\", line 175, in main\r\nmain_loop.run()\r\nFile \"/usr/local/lib/python2.7/dist-packages/blocks-0.0.1-py2.7.egg/blocks/main_loop.py\", line 196, in run\r\nreraise_as(e)\r\nFile \"/usr/local/lib/python2.7/dist-packages/blocks-0.0.1-py2.7.egg/blocks/utils/init.py\", line 225, in reraise_as\r\nsix.reraise(type(new_exc), new_exc, orig_exc_traceback)\r\nFile \"/usr/local/lib/python2.7/dist-packages/blocks-0.0.1-py2.7.egg/blocks/main_loop.py\", line 182, in run\r\nwhile self.run_epoch():\r\nFile \"/usr/local/lib/python2.7/dist-packages/blocks-0.0.1-py2.7.egg/blocks/main_loop.py\", line 231, in run_epoch\r\nwhile self._run_iteration():\r\nFile \"/usr/local/lib/python2.7/dist-packages/blocks-0.0.1-py2.7.egg/blocks/main_loop.py\", line 244, in _run_iteration\r\nbatch = next(self.epoch_iterator)\r\nFile \"/usr/local/lib/python2.7/dist-packages/six.py\", line 535, in next\r\nreturn type(self).__next(self)\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/iterator.py\", line 32, in next\r\ndata = self.data_stream.get_data()\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/transformers/init.py\", line 138, in get_data\r\ndata = next(self.child_epoch_iterator)\r\nFile \"/usr/local/lib/python2.7/dist-packages/six.py\", line 535, in next\r\nreturn type(self).next(self)\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/iterator.py\", line 30, in next\r\ndata = self.data_stream.get_data(next(self.request_iterator))\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/transformers/init.py\", line 591, in get_data\r\ndata, next(self.child_epoch_iterator)):\r\nFile \"/usr/local/lib/python2.7/dist-packages/six.py\", line 535, in next\r\nreturn type(self).next(self)\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/iterator.py\", line 32, in next\r\ndata = self.data_stream.get_data()\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/transformers/init.py\", line 639, in get_data\r\nreturn self.get_data()\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/transformers/init.py\", line 633, in get_data\r\ndata = next(self.child_epoch_iterator)\r\nFile \"/usr/local/lib/python2.7/dist-packages/six.py\", line 535, in next\r\nreturn type(self).next(self)\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/iterator.py\", line 32, in next\r\ndata = self.data_stream.get_data()\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/transformers/init.py\", line 214, in get_data\r\ndata = next(self.child_epoch_iterator)\r\nFile \"/usr/local/lib/python2.7/dist-packages/six.py\", line 535, in next\r\nreturn type(self).next(self)\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/iterator.py\", line 30, in next\r\ndata = self.data_stream.get_data(next(self.request_iterator))\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/transformers/init.py\", line 591, in get_data\r\ndata, next(self.child_epoch_iterator)):\r\nFile \"/usr/local/lib/python2.7/dist-packages/six.py\", line 535, in next\r\nreturn type(self).next(self)\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/iterator.py\", line 32, in next\r\ndata = self.data_stream.get_data()\r\nFile \"/usr/local/lib/python2.7/dist-packages/fuel-0.0.1-py2.7-linux-x86_64.egg/fuel/transformers/init.py\", line 215, in get_data\r\nimage = self.mapping(data)\r\nFile \"../machine_translation/stream.py\", line 83, in call\r\nfor x in sentence_pair[0]],\r\nIndexError: tuple index out of range\r\n\r\nOriginal exception:\r\nIndexError: tuple index out of range\r\n\r\nthe training data is download from WMT15 cs-en following prepare_data.py description.\r\nand the version of blocks is 0.0.1\r\n\r\nCould anyone help me with it?"},"comment":{"url":"https://api.github.com/repos/mila-udem/blocks-examples/issues/comments/134176389","html_url":"https://github.com/mila-udem/blocks-examples/issues/36#issuecomment-134176389","issue_url":"https://api.github.com/repos/mila-udem/blocks-examples/issues/36","id":134176389,"user":{"login":"fhirschmann","id":12200,"avatar_url":"https://avatars.githubusercontent.com/u/12200?v=3","gravatar_id":"","url":"https://api.github.com/users/fhirschmann","html_url":"https://github.com/fhirschmann","followers_url":"https://api.github.com/users/fhirschmann/followers","following_url":"https://api.github.com/users/fhirschmann/following{/other_user}","gists_url":"https://api.github.com/users/fhirschmann/gists{/gist_id}","starred_url":"https://api.github.com/users/fhirschmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhirschmann/subscriptions","organizations_url":"https://api.github.com/users/fhirschmann/orgs","repos_url":"https://api.github.com/users/fhirschmann/repos","events_url":"https://api.github.com/users/fhirschmann/events{/privacy}","received_events_url":"https://api.github.com/users/fhirschmann/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T12:35:02Z","updated_at":"2015-08-24T12:35:02Z","body":"I'm on ec50bac/blocks and have not yet encountered this problem."}}