This invention discloses a method for constructing an emotional dictionary for
urban planning across multiple stakeholders, relating to the fields of
natural language processing and
urban planning information technology. This method addresses the differences in planning commentary discourse among three stakeholders: officials, experts, and the general public. First, it collects multi-source corpora and performs preprocessing such as
text segmentation, word segmentation, and part-of-speech tagging. Then, it uses the TF-IDF-POS
algorithm with incorporating part-of-speech weights to select seed words, and combines this with an improved PMI
algorithm with adaptive thresholds and scaling factors to mine new domain-specific words. Subsequently, it constructs a three-layer association of "text—topic—emotional words" through formal concept analysis to achieve
semantic expansion of the dictionary. Finally, it uses SO-PMI to complete preliminary polarity labeling, fine-tunes the BERT model to achieve accurate sentiment classification, and generates a subject-specific emotional dictionary. This invention solves the problems of poor domain adaptability, insufficient subject differentiation, and low sentiment recognition accuracy of general emotional dictionaries. The constructed dictionary is highly targeted and semantically rich, achieving an accuracy rate of 88.46% in
sentiment analysis of expert comments, effectively supporting precise decision-making and governance in
urban planning.