Under the background of the new era, the ideological and political theory courses in universities are the key courses to cultivate people by virtue. It is very important for college students in their own ideological and political construction and consciousness. At the present stage, there is little research on the ideological and political current situation of college students, most of them improve the teaching program from the teacher level, and there is no research on the ideological and political evaluation system of college students. In order to understand the current situation of the ideological and political evaluation of college students, we will study it from the two aspects of the school and the society. This paper excavates and analyzes the ideological and political aspects of college students and those in the society: first of all, the ideological and political evaluation of teachers on large social platforms such as Zhihu and Weibo and the moral quality and political consciousness of college students in the society. It was then processed and analyzed using the Python language. Draw the word frequency and word cloud map of the keywords in the evaluation for analysis. Then, use the text data preprocessing method based on the word frequency statistics law (Data Preprocessing Based on Term Frequency Statistics Rules (DPTFSR)). Processing the text data and finally conducting the relevant emotional analysis show the university ideological and political system to understand the ideological and political situation of college students in the new era and to improve the ideological and political education program according to its performance.