Embodiments of the invention provide a document emotion analysis method and apparatus, an electronic device and a readable storage medium. The document emotion analysis method and apparatus can assistin improving an analysis effect, and enables emotion analysis to be closer to daily life. The method comprises the steps of obtaining a document, and preprocessing the document to obtain clauses andwords of the document; establishing index relationships between the clauses and the document, and between the words and the document; modeling the clauses and the words by utilizing a subject emotionmodel, generating emotions of the clauses and themes of the words in the document, and establishing corresponding relationships between the clauses and the words; according to the emotions of the clauses, the themes of the words, the corresponding relationships between the clauses and the words, and the index relationships between the clauses and the document, and between the words and the document, calculating probability distribution of "document-emotion-clause" and probability distribution of "document-theme-word"; and according to the probability distribution of "document-emotion-clause" and the probability distribution of "document-theme-word", calculating an emotional tendency of the document.