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 ...