The invention discloses a text positive and negative
emotion classification method. The method comprises the steps that all texts in a text set are preprocessed to form a noiseless positive and negative text set; unigram word segmentation and
bigram word segmentation are performed on positive and negative texts; after stop words are removed, a non-repeat multidimensional
feature vector space is formed; inverse document frequency calculation is performed on variant word frequency of all-dimensional feature vectors in the multidimensional
feature vector space; and finally after training is performed with a formed
lexical item-document matrix being a supervised classifier
support vector machine and an input factor of logic regression in combination with marked positive and negative emotion category tags, a final text
linear classifier prediction model is obtained, that is,
emotion classification can be performed on a new unknown text. Through the method, the characteristic that emotional words in a marked corpus have innate classification capability is effectively utilized, a new calculation method is proposed to maximize category discrimination of the emotional words, and therefore the precision of text
emotion classification through a computer is improved.