{"action":"created","issue":{"url":"https://api.github.com/repos/allenai/bilm-tf/issues/90","repository_url":"https://api.github.com/repos/allenai/bilm-tf","labels_url":"https://api.github.com/repos/allenai/bilm-tf/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/allenai/bilm-tf/issues/90/comments","events_url":"https://api.github.com/repos/allenai/bilm-tf/issues/90/events","html_url":"https://github.com/allenai/bilm-tf/issues/90","id":355585354,"node_id":"MDU6SXNzdWUzNTU1ODUzNTQ=","number":90,"title":"error when training ELMO ","user":{"login":"iamyihwa","id":12494156,"node_id":"MDQ6VXNlcjEyNDk0MTU2","avatar_url":"https://avatars2.githubusercontent.com/u/12494156?v=4","gravatar_id":"","url":"https://api.github.com/users/iamyihwa","html_url":"https://github.com/iamyihwa","followers_url":"https://api.github.com/users/iamyihwa/followers","following_url":"https://api.github.com/users/iamyihwa/following{/other_user}","gists_url":"https://api.github.com/users/iamyihwa/gists{/gist_id}","starred_url":"https://api.github.com/users/iamyihwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamyihwa/subscriptions","organizations_url":"https://api.github.com/users/iamyihwa/orgs","repos_url":"https://api.github.com/users/iamyihwa/repos","events_url":"https://api.github.com/users/iamyihwa/events{/privacy}","received_events_url":"https://api.github.com/users/iamyihwa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-30T13:28:03Z","updated_at":"2018-09-03T01:59:40Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\n\r\nI am trying to train ELMO. \r\n\r\n\r\nThe test have all been passed. \r\n![image](https://user-images.githubusercontent.com/12494156/44854502-fdd57080-ac68-11e8-8e8d-4a9fc172cd4d.png)\r\n\r\nI have used following script to train, as was described in [here](https://github.com/allenai/bilm-tf). \r\n![image](https://user-images.githubusercontent.com/12494156/44854553-265d6a80-ac69-11e8-86a0-727c9727d095.png)\r\n\r\nHowever I get an error \r\n: UnboundLocalError: local variable 'k' referenced before assignment\r\n(Image attached)\r\n![image](https://user-images.githubusercontent.com/12494156/44854470-e72f1980-ac68-11e8-9d24-96a9694d9815.png)\r\n"},"comment":{"url":"https://api.github.com/repos/allenai/bilm-tf/issues/comments/417980274","html_url":"https://github.com/allenai/bilm-tf/issues/90#issuecomment-417980274","issue_url":"https://api.github.com/repos/allenai/bilm-tf/issues/90","id":417980274,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzk4MDI3NA==","user":{"login":"palcery","id":37562806,"node_id":"MDQ6VXNlcjM3NTYyODA2","avatar_url":"https://avatars3.githubusercontent.com/u/37562806?v=4","gravatar_id":"","url":"https://api.github.com/users/palcery","html_url":"https://github.com/palcery","followers_url":"https://api.github.com/users/palcery/followers","following_url":"https://api.github.com/users/palcery/following{/other_user}","gists_url":"https://api.github.com/users/palcery/gists{/gist_id}","starred_url":"https://api.github.com/users/palcery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palcery/subscriptions","organizations_url":"https://api.github.com/users/palcery/orgs","repos_url":"https://api.github.com/users/palcery/repos","events_url":"https://api.github.com/users/palcery/events{/privacy}","received_events_url":"https://api.github.com/users/palcery/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T01:59:40Z","updated_at":"2018-09-03T01:59:40Z","author_association":"NONE","body":"You can simply avoid this error by editing the code bilm/data.py as follows, somewhat inefficient though.\r\n\r\n```python\r\n        for k, chr_id in enumerate(word_encoded, start=1):\r\n            code[k] = chr_id\r\n            code[k + 1] = self.eow_char\r\n```"}}
{"actor":{"display_login":"jinsik-lee"}}