Comments (5)
There's a typo in your code. The word "text" was misspelled as "test" :
page = element.findtext('./{*}revision/{*}test')
Should be
page = element.findtext('./{*}revision/{*}text')
Let me know if that change works.
from tensorflowbook.
You'll also need to import random
at the top for the skipgrams function.
from tensorflowbook.
Hi @arturovivas - could you confirm whether this worked or not? If so, I can close the issue.
from tensorflowbook.
Hi @samjabrahams Thanks for the replay! I was checking it today and it works. I confirm that this version is now working in python 2.7. I also performed some minor changes. I will upload tomorrow the code to my repository in the case you want to copy it and create a folder in the official book repository for the py 2.7 Version. My goal is to finish your book with the py2.7 version. So I will continue uploading the other codes as soon as I finish with them.
from tensorflowbook.
Great, glad that this worked out for you. Thanks for keeping us updated with your code!
from tensorflowbook.
Related Issues (20)
- I found it is rather slow when converting images to TFRecords, is it normal? HOT 4
- Sequence classification: GPU runs out of memory HOT 1
- The iterative batch generation code is so strange to me in Chapter 6 04_arxiv preprocessing.py.
- the accuracy of chapter5
- Typo on Chapter 3
- sp? on Chapter 4 HOT 1
- the first dimension of the kernel variable
- Chapter 5 code errors in cnn sample HOT 1
- Chapter 5 how to use trained model? HOT 2
- The Linear Regression Example is Incorrect. HOT 1
- chapter 5 working with images page 161
- H Image - Chapter 5, Page 175 HOT 2
- CNN Implementation HOT 2
- where is the rest demo code of CNN implementation? HOT 1
- lazy_property will cause tensorflow function not to recompute with new batch
- The memory of the TensorFlow node object could not be reclaimed HOT 1
- Chapter 6 04_arxiv not suitable for tensorflow2.x version?
- Ch4_softmax HOT 4
- Running logistic regression throws error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflowbook.