{"action":"created","issue":{"url":"https://api.github.com/repos/hunkim/word-rnn-tensorflow/issues/12","repository_url":"https://api.github.com/repos/hunkim/word-rnn-tensorflow","labels_url":"https://api.github.com/repos/hunkim/word-rnn-tensorflow/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/hunkim/word-rnn-tensorflow/issues/12/comments","events_url":"https://api.github.com/repos/hunkim/word-rnn-tensorflow/issues/12/events","html_url":"https://github.com/hunkim/word-rnn-tensorflow/issues/12","id":180641362,"number":12,"title":"Output of sample.py","user":{"login":"yisun92","id":2384614,"avatar_url":"https://avatars.githubusercontent.com/u/2384614?v=3","gravatar_id":"","url":"https://api.github.com/users/yisun92","html_url":"https://github.com/yisun92","followers_url":"https://api.github.com/users/yisun92/followers","following_url":"https://api.github.com/users/yisun92/following{/other_user}","gists_url":"https://api.github.com/users/yisun92/gists{/gist_id}","starred_url":"https://api.github.com/users/yisun92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yisun92/subscriptions","organizations_url":"https://api.github.com/users/yisun92/orgs","repos_url":"https://api.github.com/users/yisun92/repos","events_url":"https://api.github.com/users/yisun92/events{/privacy}","received_events_url":"https://api.github.com/users/yisun92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-03T13:33:45Z","updated_at":"2016-10-09T07:35:39Z","closed_at":null,"body":"Hi,\r\n\r\nI tried to train a model on the minishakespear dataset. Then, when I run sample.py, it keeps giving me output like this:\r\n\r\nFame,\r\nFame,\r\nFame, full complete; How many it trust no darest to lour? Dive, A merriment fled on a month. Nurse: As he, brother, at the tale his exile, thou shalt thereto with them swarm on Richmond.\r\n\r\nThere are always three \"Fame\" at the beginning. Even when I change the num to 1, it gives me output like:\r\n\r\nFame,\r\nFame,\r\nFame, Lancaster,\r\n\r\nAnd in the sample function of model.py, I see this,\r\n```\r\nret = prime\r\n\r\n#other code\r\n\r\n    pred = words[sample]\r\n    ret += ' ' + pred\r\n    word = pred\r\nreturn ret\r\n```\r\n\r\nSo, I think the prime string will also be included in the output, right?\r\n\r\nCan you help me in understanding the output? Thank you."},"comment":{"url":"https://api.github.com/repos/hunkim/word-rnn-tensorflow/issues/comments/252470457","html_url":"https://github.com/hunkim/word-rnn-tensorflow/issues/12#issuecomment-252470457","issue_url":"https://api.github.com/repos/hunkim/word-rnn-tensorflow/issues/12","id":252470457,"user":{"login":"manglakaran","id":8831504,"avatar_url":"https://avatars.githubusercontent.com/u/8831504?v=3","gravatar_id":"","url":"https://api.github.com/users/manglakaran","html_url":"https://github.com/manglakaran","followers_url":"https://api.github.com/users/manglakaran/followers","following_url":"https://api.github.com/users/manglakaran/following{/other_user}","gists_url":"https://api.github.com/users/manglakaran/gists{/gist_id}","starred_url":"https://api.github.com/users/manglakaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manglakaran/subscriptions","organizations_url":"https://api.github.com/users/manglakaran/orgs","repos_url":"https://api.github.com/users/manglakaran/repos","events_url":"https://api.github.com/users/manglakaran/events{/privacy}","received_events_url":"https://api.github.com/users/manglakaran/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T07:35:39Z","updated_at":"2016-10-09T07:35:39Z","body":"@hunkim If it is not there in dic, replacing it with \" \" won't help, cause it will look for vocab[\" \"] which would throw a KeyError as well."}}
{"actor":{"display_login":"manglakaran"}}