O'Reilly logo

IBM PowerAI: Deep Learning Unleashed on IBM Power Systems Servers by Richard Wale, Shota Tsukamoto, Chris Parsons, Alfonso Jara, Bruno C. Faria, Bing He, Dino Quintero

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sentiment analysis code
This appendix provides the code for the sentiment analysis scenario that is presented in Chapter 5, “Working with data and creating models in IBM PowerAI” on page 121, and describes how the files are structured.
This appendix contains the following topic:
Sentiment analysis with TensorFlow
This section describes sentiment analysis with the TensorFlow code.
How the code is organized
The sentiment analysis code is organized into three Python (.py) files:
data_prep.py: This file is used ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required