To train the sentiment analysis model, simply run train.py
:
$ python3 train.py
Note that this requires training word embeddings from the previous Wikipedia model.
Unfortunately, at this time the sample code is only compatible with Python 3. We’re working on providing Python 2 translations of the code.
Refer tensorflowbook.