The Journal of China Universities of Posts and Telecommunications ›› 2022, Vol. 29 ›› Issue (2): 24-32.doi: 10. 19682/ j. cnki. 1005-8885. 2022. 0013

Special Issue: 文化计算专题

Previous Articles     Next Articles

Research on sentiment terms extraction and visualization of character sentimental interactions in A Dream of Red Mansions


  • Received:2022-01-18 Revised:2022-03-20 Online:2022-04-26 Published:2022-04-26
  • Supported by:
    Research on Cultural Communication Innovation in Personal Recommendation Platform


In the context of interdisciplinary research, using computer technology to further mine keywords in cultural texts and carry out semantic analysis can deepen the understanding of texts, and provide quantitative support and evidence for humanistic studies. Based on the novel A Dream of Red Mansions, the automatic extraction and classification of those sentiment terms in it were realized, and detailed analysis of large-scale sentiment terms was carried out. Bidirectional encoder representation from transformers (BERT) pretraining and fine-tuning model was used to construct the sentiment classifier of A Dream of Red Mansions. Sentiment terms of A Dream of Red Mansions are divided into eight sentimental categories, and the relevant people in sentences are extracted according to specific rules. It also tries to visually display the sentimental interactions between Twelve Girls of Jinling and Jia Baoyu along with the development of the episode. The overall F1 score of BERT-based sentiment classifier reached 84-89%. The best single sentiment score reached 91-15%. Experimental results show that the classifier can satisfactorily classify the text of A Dream of Red  Mansions, and the text classification and interactional analysis results can be mutually verified with the text interpretation of A dream of Red Mansions by literature experts.

Key words: A Dream of Red Mansions| sentiment term extraction| character sentiment interaction| BERT| data visualization