Search

CN-117149965-B - Dialogue processing method, dialogue processing device, computer equipment and computer readable storage medium

CN117149965BCN 117149965 BCN117149965 BCN 117149965BCN-117149965-B

Abstract

The application discloses a dialogue processing method, a dialogue processing device, a computer device and a computer readable storage medium, wherein the method can comprise the steps of acquiring at least two dialogue contents of a user; the method comprises the steps of analyzing at least two dialogue contents to obtain corresponding text contents, extracting dialogue keywords in the text contents, associating the at least two dialogue contents according to the dialogue keywords, determining target texts and emotion intentions of users, and carrying out dialogue with the users according to the target texts and the emotion intentions. Therefore, the technical scheme of the application improves the accuracy of identifying the chat content and emotion of the user by correlating the dialogue keywords in at least two dialogue contents, and increases the naturalness of man-machine dialogue with the user according to the target text and emotion intention. Therefore, the fluency and conversation effect of the man-machine conversation are improved.

Inventors

  • Huang Runqian
  • ZHANG WEIBIN
  • CHEN DONGPENG
  • LI YATONG

Assignees

  • 深圳市声扬科技有限公司

Dates

Publication Date
20260512
Application Date
20230803

Claims (10)

  1. 1. A method of dialog processing, the method comprising: acquiring at least two dialogue contents of a user; Analyzing the at least two dialogue contents to obtain corresponding text contents, wherein the text contents comprise different dialogue keywords which express different emotion intentions of the user; Inquiring whether a reference content exists in the context of the text content, wherein the reference content is at least two keywords in the same category and different ranges, and if so, extracting the reference content from the text content to obtain at least two corresponding dialogue keywords; Associating at least two text contents in which the at least two dialogue keywords are located, integrating the at least two text contents according to the at least two dialogue keywords to obtain a target text, and determining the emotional intent of the user according to the target text; And carrying out dialogue with the user according to the target text and the emotion intention.
  2. 2. The method of claim 1, wherein the method further comprises: Determining the dialogue type corresponding to the at least two dialogue contents, wherein the dialogue type is associated with a corresponding analysis module, and the analysis module executes a corresponding analysis mode; The analyzing the at least two dialogue contents to obtain corresponding text contents comprises the following steps: And analyzing the at least two dialogue contents by using the analysis module corresponding to the dialogue type to obtain corresponding text contents.
  3. 3. The method of claim 2, wherein in the case that the dialog type is a picture type, the analyzing the at least two dialog contents using the analysis module corresponding to the dialog type to obtain corresponding text contents includes: Identifying picture information in the dialogue content by using a picture analysis module so as to determine at least one target object in the picture information; And determining text content corresponding to the dialogue content according to the at least one target object.
  4. 4. The method of claim 2, wherein in the case that the dialog type is a video type, the analyzing the at least two dialog contents using the analysis module corresponding to the dialog type to obtain corresponding text contents includes: Analyzing the video information in the dialogue content by using a video analysis module to determine a target object of at least one of the video information and action information of at least one of the target objects; And determining text content corresponding to the dialogue content according to the at least one target object and the action information of at least one corresponding to the target object.
  5. 5. The method of claim 2, wherein in the case that the dialog type is an audio type, the analyzing the at least two dialog contents using the analysis module corresponding to the dialog type to obtain corresponding text contents includes: And analyzing the audio information in the dialogue content by using an audio analysis module to obtain text content corresponding to the audio information.
  6. 6. The method of claim 1, wherein the method further comprises: Integrating the text content with the text content in the dialogue content to obtain integrated text content; querying whether a reference content exists in the context of the text content, wherein the reference content is at least two keywords with the same category and different ranges, and if so, extracting the reference content from the text content to obtain at least two corresponding dialogue keywords, wherein the method comprises the following steps: Inquiring whether a reference content exists in the context of the integrated text content, wherein the reference content is at least two keywords with the same category and different ranges; and if the text content exists, extracting the reference content from the integrated text content to obtain at least two corresponding dialogue keywords.
  7. 7. The method of claim 6, wherein the determining the target text and the emotional intent of the user based on the associating the at least two conversation contents with the conversation keywords comprises: Associating at least two text contents in which the at least two dialogue keywords are located; integrating the at least two text contents according to the at least two dialogue keywords to obtain a target text; and determining the emotional intention of the user according to the target text.
  8. 8. A dialog processing device, the dialog processing device comprising: an acquisition unit for acquiring at least two dialogue contents of a user; The identification unit is used for analyzing the at least two dialogue contents to obtain corresponding text contents, wherein the text contents comprise different dialogue keywords which express different emotion intentions of the user; The extraction unit is used for extracting dialogue keywords in the text content, and inquiring whether index content exists in the context of the text content, wherein the index content is at least two keywords in the same category and different ranges, and if the index content exists, the index content is extracted from the text content to obtain at least two corresponding dialogue keywords; A first determining unit, configured to determine, according to the dialogue keyword, a target text and an emotional intention of the user, where the dialogue content is associated with the at least two dialogue contents; associating at least two text contents where the at least two dialogue keywords are located, integrating the at least two text contents according to the at least two dialogue keywords to obtain a target text, and determining the emotional intent of the user according to the target text; and the dialogue unit is used for carrying out dialogue with the user according to the target text and the emotion intention.
  9. 9. A computer device comprising a memory storing a computer program and a processor invoking the computer program to implement the method of any of claims 1-7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program or computer instructions, which, when executed by a processor, implement the method of any of claims 1-7.

Description

Dialogue processing method, dialogue processing device, computer equipment and computer readable storage medium Technical Field The present application relates to the field of artificial intelligence technology, and in particular, to a method and apparatus for processing a dialogue, a computer device, and a computer readable storage medium. Background With the continued development of artificial intelligence, a smooth conversation between people and machines has been enabled. In the related art, a manner of implementing a conversation between a person and a machine is to identify chat contents of a user and determine reply contents of the user in a conversation process. However, the accuracy of the results of identifying chat content of users is currently low. Accordingly, the reply content is difficult to reply to the user effectively, and the naturalness of the man-machine conversation is poor. Therefore, the problems of low accuracy of chat content recognition results, poor naturalness of man-machine conversation and the like cause the problems of low fluency and poor conversation effect when conversation is carried out between people and machines. Disclosure of Invention The embodiment of the application provides a dialogue processing method, a dialogue processing device, computer equipment and a computer readable storage medium, which can improve the fluency and dialogue effect of man-machine dialogue. In a first aspect, an embodiment of the present application discloses a method for processing a dialogue, where the method includes: acquiring at least two dialogue contents of a user; analyzing the at least two dialogue contents to obtain corresponding text contents; Extracting dialogue keywords in the text content; according to the dialogue keywords, associating the at least two dialogue contents, and determining target texts and emotional intentions of the users; And carrying out dialogue with the user according to the target text and the emotion intention. In a second aspect, an embodiment of the present application discloses a dialogue processing apparatus, including: an acquisition unit for acquiring at least two dialogue contents of a user; The identification unit is used for analyzing the at least two dialogue contents to obtain corresponding text contents; an extracting unit, configured to extract dialogue keywords in the text content; A first determining unit, configured to determine, according to the dialogue keyword, a target text and an emotional intent of the user, in association with the at least two dialogue contents; and the dialogue unit is used for carrying out dialogue with the user according to the target text and the emotion intention. In a third aspect, an embodiment of the present application discloses a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the processor invokes the computer program to implement the above-mentioned dialog processing method. In a fourth aspect, an embodiment of the present application discloses a readable storage medium storing program code that is called by a processor to implement the above-described dialog processing method. In a fifth aspect, the application discloses a computer program product comprising computer program code which, when run by a processor, causes the above-mentioned communication method to be performed. According to the embodiment of the application, the user can obtain at least two dialogue contents, analyze the at least two dialogue contents to obtain corresponding text contents, extract dialogue keywords in the text contents, associate the at least two dialogue contents according to the dialogue keywords, determine the target text and the emotional intention of the user, and perform dialogue with the user according to the target text and the emotional intention. Therefore, the technical scheme of the application associates the dialogue keywords in at least two dialogue contents, improves the accuracy of identifying the chat contents and the emotion of the user, carries out dialogue with the user according to the target text and the emotion intention, and increases the naturalness of man-machine dialogue. Therefore, the fluency and conversation effect of the man-machine conversation are improved. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. FIG. 1 is a schematic diagram of an architecture of an interactive system disclosed in an embodiment of the present application; FIG. 2 is a flow chart of a dialogue processing method disclosed in an embodimen