Sentiment Analysis: Using Recurrent Neural Networks

https://d2l.ai/chapter_natural-language-processing-applications/sentiment-analysis-rnn.html

according to the code without modifing, my result is below.
why different ???
image