Introducing text emotion analysis into e-commerce online comment data can judge the emotional tendency of e-commerce online comments.At the same time, the application of Python Jieba participle and LDA topic model enables more detailed understanding of the emotional changes in online comments of e-commerce.Taking product reviews of Midea water heater on JD.com as an example, the empirical analysis shows that the online product review, by introducing text sentiment analysis, determines the consumer emotion tendency, which can help with the electric business improvement project for merchants to provide accurate marketing, set up new businesses evaluation way, dynamically monitor customer emotional tendency, and timely grasp the emotional trend of E-commerce industry.