{"action":"opened","issue":{"url":"https://api.github.com/repos/samjabrahams/tensorflow-workshop/issues/2","repository_url":"https://api.github.com/repos/samjabrahams/tensorflow-workshop","labels_url":"https://api.github.com/repos/samjabrahams/tensorflow-workshop/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/samjabrahams/tensorflow-workshop/issues/2/comments","events_url":"https://api.github.com/repos/samjabrahams/tensorflow-workshop/issues/2/events","html_url":"https://github.com/samjabrahams/tensorflow-workshop/issues/2","id":193141155,"number":2,"title":"TensorFlow For Machine Learning ","user":{"login":"arturovivas","id":17685941,"avatar_url":"https://avatars.githubusercontent.com/u/17685941?v=3","gravatar_id":"","url":"https://api.github.com/users/arturovivas","html_url":"https://github.com/arturovivas","followers_url":"https://api.github.com/users/arturovivas/followers","following_url":"https://api.github.com/users/arturovivas/following{/other_user}","gists_url":"https://api.github.com/users/arturovivas/gists{/gist_id}","starred_url":"https://api.github.com/users/arturovivas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturovivas/subscriptions","organizations_url":"https://api.github.com/users/arturovivas/orgs","repos_url":"https://api.github.com/users/arturovivas/repos","events_url":"https://api.github.com/users/arturovivas/events{/privacy}","received_events_url":"https://api.github.com/users/arturovivas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-02T15:20:34Z","updated_at":"2016-12-02T15:20:34Z","closed_at":null,"body":"Hi @samjabrahams \r\n\r\nFirstly, I wasn't sure where to open this issue, since it's not directly related to one of your repositories, but to your book TensorFlow for Machine Learning. I just started this week with it and I have to say, it's a great big tutorial :). \r\n\r\nThe issue is regarding one of the examples. Ch. 6. Word Vector Embeddings. I was trying to run the code which is spread across several pages and I realized that it won't really run. Mainly because the Wikipedia links are not anymore available (up to date), yet also because of some minor code errors (In my opinion). Like `bz2.open()'` which I had to replace with `bz2.BZ2File()` for example, or `from urllib.request import urlopen` with `from urllib import urlopen`. So I changed all this, though I am now stuck in the `_read_pages(self, url)` method. I copied your code with my amends to my github so you could take a look. [https://github.com/arturovivas/temp_tf/blob/master/Recurrent_Neural_Networks_2.ipynb](url). \r\n\r\nCould you please help me out? Maybe I just don't fully understand the `etree.iterparse()` mechanism.\r\n\r\nThanks a lot!\r\nCheers\r\nArturo "}}
{"actor":{"display_login":"arturovivas"}}