The application relates to the technical field of computers and discloses an automatic composition method, device and equipment based on emotional words and a storage medium, the method comprising the following steps: extracting emotional words from a to-be-processed
sentence and determining chord weight values corresponding to the emotional words; searching for corresponding chord groups from a preset mapping dictionary according to the chord weight values and the emotional words; generating an initial music piece based on the chord groups and detecting an
evaluation result of the initial music piece by a user; adjusting the chord weight values according to the
evaluation result to obtain target chord weight values; and generating a target music piece meeting a user's preference degree according to the target chord weight values. In the application, chord groups are determined and initial music pieces are generated through emotional words, and a target music piece is generated according to the
evaluation result of the initial music piece by the user, so that a music piece meeting the user's emotional tendency and the user's preference degree can be generated, and the individualization embodies the emotional features of the user.