CN112860874A - Question-answer interaction method, device, equipment and storage medium - Google Patents

Question-answer interaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN112860874A
CN112860874A CN202110313699.7A CN202110313699A CN112860874A CN 112860874 A CN112860874 A CN 112860874A CN 202110313699 A CN202110313699 A CN 202110313699A CN 112860874 A CN112860874 A CN 112860874A
Authority
CN
China
Prior art keywords
question
answer
current candidate
historical
candidate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110313699.7A
Other languages
Chinese (zh)
Other versions
CN112860874B (en
Inventor
钟鹏飞
张宁
车炜春
廖加威
任晓华
黄晓琳
董粤强
赵慧斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110313699.7A priority Critical patent/CN112860874B/en
Publication of CN112860874A publication Critical patent/CN112860874A/en
Application granted granted Critical
Publication of CN112860874B publication Critical patent/CN112860874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor
    • G06F16/345Summarisation for human users
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a question-answer interaction method, a question-answer interaction device, question-answer interaction equipment and a storage medium, and relates to the technical field of computers, in particular to the technical field of human-computer interaction. The specific implementation scheme is as follows: determining a current candidate question-answer pair of a target scene in a current question-answer period according to hot news in a global scene and the historical question-answer pair of the target scene in the historical question-answer period; and performing question-answer interaction with the user in the target scene based on the current candidate question-answer pairs. The question-answer interaction method and device can improve the question-answer interaction efficiency of the target scene.

Description

Question-answer interaction method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for question and answer interaction.
Background
With the development of computer technology, intelligent question-answering products are more and more widely applied. The intelligent question-answering product can acquire the questions of the user and specifically answer and ask the user for confusion.
However, due to the openness of the question and answer products, the user questions are numerous and complicated. Therefore, how to perform question-answering interaction is very important.
Disclosure of Invention
The disclosure provides a question-answer interaction method, a question-answer interaction device, a question-answer interaction equipment and a storage medium.
According to an aspect of the present disclosure, there is provided a question-answer interaction method, including:
determining a current candidate question-answer pair of a target scene in a current question-answer period according to hot news in a global scene and the historical question-answer pair of the target scene in the historical question-answer period;
and performing question-answer interaction with the user in the target scene based on the current candidate question-answer pairs.
According to another aspect of the present disclosure, there is provided a question-answer interaction device, including:
the question-answer pair determining module is used for determining a current candidate question-answer pair of the target scene in a current question-answer period according to the hot news in the global scene and the historical question-answer pair of the target scene in the historical question-answer period;
and the question-answer interaction module is used for carrying out question-answer interaction with the user in the target scene based on the current candidate question-answer pairs.
According to still another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the question-answer interaction method provided by any embodiment of the present disclosure.
According to yet another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the question-answer interaction method provided by any of the embodiments of the present disclosure.
According to yet another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the question-answer interaction method provided by any of the embodiments of the present disclosure.
According to the technology disclosed by the invention, the question-answer interaction efficiency of the target scene can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram of a question-answer interaction method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another question-answer interaction method according to an embodiment of the present disclosure;
FIG. 3a is a schematic diagram of another method of question-answer interaction according to an embodiment of the present disclosure;
FIGS. 3b and 3c are schematic diagrams of a candidate question presentation interface provided in accordance with an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a question-answer interaction device according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing a question-answer interaction method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The scheme provided by the embodiment of the disclosure is described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a question-answer interaction method provided according to an embodiment of the present disclosure, which is applicable to a case where an intelligent question-answer service is provided for a user in a target scene. The method can be executed by a question-answering interaction device, which can be realized in a hardware and/or software mode and can be configured in an interactive electronic device. Referring to fig. 1, the method specifically includes the following steps:
s110, determining current candidate question-answer pairs of the target scene in the current question-answer period according to the hot news in the global scene and the historical question-answer pairs of the target scene in the historical question-answer period;
and S120, performing question-answer interaction with the user in the target scene based on the current candidate question-answer pairs.
The global scene is not limited by a specific scene and can be applied to at least two scenes; the target scene is a working scene of the interactive device, and can be a library, a market, a hospital and the like. The time step of a single question-answering period can be a first time interval, namely, a question-answering period is set every first time; the historical question-answer period refers to at least two question-answer periods before the current question-answer period, and the historical question-answer pair refers to a question-answer pair used by the user in the interaction process of the historical question-answer period, namely, a question actually asked by the user and an answer associated with the question. The current candidate question-answer pair refers to candidate questions and answers of the candidate questions, which are provided to the user for selection by the interactive device in the current question-answer period.
Specifically, hot news searching list capturing can be performed from the internet to obtain hot news in the global scene; historical question-answer pairs used by each interactive device in the target scene in the historical question-answer period interactive process can be acquired, and the current candidate question-answer pairs of the target scene in the current question-answer period are determined by combining the hot news and the historical question-answer pairs of the target scene; the current candidate question in the current candidate question-answer pair is presented to the user, and in the event that the user selects any one of the current candidate questions, the answer to the current candidate question is provided to the user. It should be noted that, the screen of the interactive device may be adopted to display the current candidate questions in a scrolling manner, so that the user can select a question of interest from the current candidate questions and interact with the interactive device.
The current candidate question-answer pair of the target scene is determined according to the hot news and the historical question-answer pair of the target scene, so that the current candidate question-answer can not only provide heat search information for a user and meet the attention requirement of the user on the global scene, but also take the use characteristics of the target scene into consideration, namely the current candidate question-answer pair can meet the user requirement on the target scene, the interaction efficiency of the user in the target scene is improved, and the use requirement of the user in the target scene is met.
According to the technical scheme of the embodiment, the current candidate question-answer pair of the target scene in the current question-answer period is determined according to the hot news in the global scene and the historical question-answer pair of the target scene in the historical question-answer period, so that the real-time performance of the hot news and the use characteristics of the target scene can be considered by the current candidate question-answer pair, the hit rate of the current candidate question-answer pair on the user requirement in the target scene is improved, and the interaction efficiency with the user in the target scene is improved.
Fig. 2 is a schematic flow chart of another question-answer interaction method provided according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 2, the question-answer interaction method provided in this embodiment includes:
s210, selecting at least one piece of hot news in the global scene as current candidate news, and generating a hot news question-answer pair according to the current candidate news to serve as the current candidate question-answer pair;
s220, selecting at least one historical question-answer pair in a historical question-answer period of a target scene as the current candidate question-answer pair;
and S230, performing question-answer interaction with the user in the target scene based on the current candidate question-answer pairs.
Specifically, the hot news can be ranked according to the popularity, and at least one piece of hot news with relatively high popularity is selected as the current candidate news; and for each current candidate news, determining the question and answer of the current candidate news, namely generating a hot spot news question-answer pair, and providing the question of the current candidate news for the user in the interaction process with the user.
Specifically, the user question-answer frequency of the historical question-answer pairs of each historical question-answer period in the target scene can be counted, the historical question-answer pairs are sorted according to the user question-answer frequency, and the historical question-answer pairs with relatively more user question-answer frequency are selected as the current candidate question-answer pairs. The total number of current candidate question-answer pairs in the current question-answer period, the number of current candidate question-answer pairs determined according to hot news and the number of current candidate question-answer pairs determined according to historical question-answer pairs can be fixed numerical values, such as 10; also, half of the current candidate question-answer pairs may be from hot news and the other half may be from historical question-answer pairs. By selecting the current candidate question-answer pair according to the popularity of the hot news and the question frequency of the historical question-answer pair, the matching degree of the current candidate question-answer pair and the question requirement of the user can be improved, namely the utilization rate of the current candidate question-answer pair by the user is improved, and the interaction efficiency between the current candidate question-answer pair and the user is further improved.
In the initialization phase of the target scene, the current candidate question-answer pairs may all be from hot news. For example, in the initial stage of the target scene, 10 current candidate question-answer pairs are all from hot news; in the use stage of the target scene, 5 current candidate question-answer pairs from the hot news and 5 historical question-answer pairs from the target scene may be selected from the 10 current candidate question-answer pairs. Specifically, in the initialization stage of a target scene, N current candidate news are selected from hot news of a global scene, and N current candidate question-answer pairs are generated according to current candidate behaviors; in the use stage of the target scene, selecting N1 current candidate news from the hot news of the global scene, selecting N2 historical question-answer pairs from the historical question-answer pairs of the target scene, and generating N current candidate news according to the N1 current candidate news and the N2 historical question-answer pairs, wherein N is the sum of N1 and N2.
It should be noted that, in the use stage of the target scene, the first hot news in the panoramic scene may also be obtained at regular time at the second time interval, and in the case that the first hot news does not belong to the current candidate news, the first hot news is added to the current candidate news, for example, the first hot news is used as the first hot news in the current candidate news, and the last hot news in the current candidate news is deleted. Wherein the second time interval is less than the time step of a single question-answering cycle. By adding the first hot news into the current candidate news at regular time, the timeliness of the current candidate question-answer pairs is improved, and the hit rate of the current candidate question-answer pairs to the user requirements is further improved.
In an alternative embodiment, generating a hot news question-answer pair according to the current candidate news comprises: determining the hot news question-answer pair according to the current candidate news based on a natural language processing technology; wherein the number of the question words in the hot news question-answer pair is less than the word number threshold.
Specifically, the current candidate news can be processed into a question-answer form based on a natural language processing technology, so as to obtain a hot news question-answer pair. The number of the questions words in the hot news question-answer pair may be smaller than the word number threshold (for example, 8 characters), that is, the questions in the hot news question-answer pair may be short questions. Through the hot news question-answer pair of the short question, the question is convenient to display, the user is convenient to ask, and the interaction efficiency can be further improved.
In an alternative embodiment, selecting at least one of the historical question-answer pairs in the historical question-answer period from the target scene as the current candidate question-answer pair includes: acquiring historical question-answer pairs acquired by interactive equipment in a historical question-answer period in the target scene; removing the repeated historical question-answer pairs from the hot news question-answer pairs; and selecting at least one from the remaining historical question-answer pairs as the current candidate question-answer pair according to the historical question-answer frequency.
Specifically, in the process of selecting the current candidate question-answer pair from the historical question-answer pairs of the target scene, the historical question-answer pairs which are repeated with the hot news question-answer pairs are also removed, so that the current candidate question-answer pair determined according to the hot news and the current candidate question-answer pair determined according to the historical question-answer pairs are prevented from being repeated, and the quality of the current candidate question-answer pair is further improved.
According to the technical scheme of the embodiment, the current candidate question-answer pair is selected according to the popularity of the hot news and the question frequency of the historical question-answer pair, so that the utilization rate of the current candidate question-answer pair by the user can be improved, and the interaction efficiency with the user is further improved; and by generating the current candidate question-answer pairs of the short questions and removing the repeated historical question-answer pairs with the hot news question-answer pairs, the interaction efficiency and the quality of the current candidate question-answer pairs are further improved.
Fig. 3a is a schematic flow chart of another question-answer interaction method provided according to an embodiment of the present disclosure. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 3a, the question-answer interaction method provided in this embodiment includes:
s310, determining a current candidate question-answer pair of the target scene in the current question-answer period according to the hot news in the global scene and the historical question-answer pair of the target scene in the historical question-answer period;
s320, displaying candidate questions in the current candidate question-answer pair in a rolling mode by adopting interaction equipment in a target scene;
and S330, broadcasting the answer associated with the candidate question when the situation that the user selects any candidate question is identified.
The interactive device may be an intelligent robot with a screen or an intelligent sound box with a screen, and the disclosure is not limited specifically. Specifically, candidate questions in the current candidate question pair can be displayed in a rolling mode through the interaction device in the target scene, so that the user can selectively ask questions according to the candidate questions displayed by the interaction device and answer the questions of the user. The candidate problems are displayed to the user through the interaction equipment, so that the user can select the problem concerned by the user from the candidate problems without organizing the problems by the user, the user can be guided to participate in the interaction process, and the interaction efficiency is improved; moreover, the answers associated with the candidate questions are predetermined and can be directly used, so that the interaction efficiency can be further improved.
The embodiment of the present disclosure does not specifically limit the user interaction manner. Responding to the touch operation of the user on any candidate question book displayed in a rolling mode, and taking answer content associated with the candidate question book as interaction information with the user; or in the case that the user inputs any candidate question through voice, the answer content associated with the candidate question can be used as the interaction information with the user, that is, the user can be supported to interact through touch and voice.
In an optional implementation manner, the displaying, by the interactive device in the target scenario, the candidate questions in the current candidate question-answer pair in a scrolling manner includes: and displaying the candidate questions in the current candidate question-answer pair in a rolling manner by adopting interactive equipment in a target scene through a dynamic fading-in and fading-out effect.
Specifically, the display sequence of each candidate question in the current candidate question-answer pair is determined, the candidate questions are displayed in a rolling mode in a visual window according to the display sequence through a dynamic fading-in and fading-out effect, for example, the candidate questions at the top of the visual window gradually appear, the candidate questions at the bottom of the visual window are gradually hidden, the visual continuity display of each candidate question can be achieved, the visual fault caused by the fact that the candidate questions roll in the whole screen can be avoided, a user can focus on browsing the candidate questions, and the user can browse conveniently. FIGS. 3b and 3c are schematic diagrams of a candidate question presentation interface provided in accordance with an embodiment of the present disclosure; referring to fig. 3B and 3C, the ith visualization window 31 may show candidate question C, candidate question D and candidate question E, and further candidate question a, candidate question B, candidate question F, candidate question G, …, and candidate question J are all hidden, and from the ith visualization window 31 to the (I + 1) th visualization window 32, the top candidate question B may gradually appear, and the bottom candidate question E of the visualization window 31 may gradually be hidden, so that candidate question B, candidate question C and candidate question D are shown in the (I + 1) th visualization window 32, and further candidate question J, candidate question a, candidate question E, candidate question F, …, and candidate question I are all hidden.
In addition, the embodiment of the present disclosure does not specifically limit the implementation manner of the rolling display of the candidate problem in the interactive device. Specifically, a text presentation element may be obtained, the text presentation element is used as a visualization window, and an attribute value of the visualization window is set, for example, a text box (TextView) tag of an inline element is used to obtain content and font size of a text to be scrolled, and a width of the text to be scrolled is determined according to the content and font size of the text to be scrolled; characters obtained by text box labels of the elements in the line are arranged longitudinally and centrally; creating a linear layout (linear layout) for wrapping the characters to be scrolled in a visualization window, taking the width of the characters to be scrolled as the width of the linear layout, and setting the absolute position of the linear layout in the visualization window; rolling the linear layout in the visual window, and rolling upwards at a fixed height every other first preset stay time, wherein a preset time interval is arranged between the first preset stay time and the second preset stay time, and the preset time interval is the character stay time of each text box label;
different transparency change values are added and divided in the visual window area, so that the dynamic effect that the linear layout is gradually hidden and gradually appeared in the character rolling process can be achieved. Specifically, the method can upwards scroll for a fixed height every a first preset time, and after the first scroll time, whether the label text field of the text box of the visual window needs to be continuously displayed is judged, if yes, the label text field of the TextView sequentially enters the end of a linear layout queue wrapping the scroll text; otherwise, the field is discarded. And acquiring a new field sequence in real time to enter the tail of a linear layout queue of the package rolling characters.
Wherein, the setting of the visualization window can comprise: and displaying the area of the scroll characters in the visually displayed screen, wherein the height is a self-defined absolute value, the width is greater than the width of the linear layout, and the width of the linear layout is equal to the width of the scroll characters. Also, the absolute position of the linear layout within the visualization window may be set by: the linear layout and the visual window are centered left and right at the beginning, and the upper edge of the linear layout and the upper edge of the visual window are fixed at a distance.
Specifically, the dynamic fade-in and fade-out effect can be realized by the following method: and dividing the transparency value in the visual window area from top to bottom, wherein the transparency value is in a mountain peak shape. For example, the transparency value in the visualization window may be: 0. 50, 100, 50, 0, at least two text box label text fields may be included in the visualization window area up to a transparency of about 50 for the top text, 100 for the middle text and about 50 for the bottom text. Through the change of the character transparency levels, the purposes that when the linear layout rolls from bottom to top, the bottom character animation disappears and the top character animation appears in the visual window area are achieved, and the continuity of the user on the character visual experience of the rolling effect is achieved.
According to the technical scheme of the embodiment of the disclosure, the accuracy of the candidate problem content is improved by dynamically determining the candidate problem rolling in the visual window, so that the hit rate of the candidate problem to the user requirement is improved, the frequency of using the candidate problem by the user is increased, and the utilization rate is improved. Moreover, continuity in visual experience is realized through continuous rolling; and multiple interaction modes of touch control and voice are supported, and interaction convenience is improved.
Fig. 4 is a schematic diagram of a question-answer interaction device according to an embodiment of the present disclosure, where the embodiment is applicable to a case where an intelligent question-answer service is provided for a user in a target scene, and the device is configured in an electronic device, and can implement a question-answer interaction method according to any embodiment of the present disclosure. The question-answer interaction device 400 specifically includes the following:
the question-answer pair determining module 401 is configured to determine, according to the hot news in the global scene and the historical question-answer pairs of the target scene in the historical question-answer period, current candidate question-answer pairs of the target scene in the current question-answer period;
and a question-answer interaction module 402, configured to perform question-answer interaction with the user in the target scene based on the current candidate question-answer pair.
In an alternative embodiment, the question-answer pair determination module 401 includes:
the news question-answer unit is used for selecting at least one piece of hot news in the global scene as current candidate news, and generating a hot news question-answer pair according to the current candidate news to serve as the current candidate question-answer pair;
and the historical question-answering unit is used for selecting at least one of the historical question-answering pairs of the historical question-answering period of the target scene as the current candidate question-answering pair.
In an optional implementation manner, the news question-answering unit is specifically configured to:
determining the hot news question-answer pair according to the current candidate news based on a natural language processing technology; wherein the number of the question words in the hot news question-answer pair is less than the word number threshold.
In an optional implementation manner, the historical question and answer unit is specifically configured to:
acquiring historical question-answer pairs acquired by interactive equipment in a historical question-answer period in the target scene;
removing the repeated historical question-answer pairs from the hot news question-answer pairs;
and selecting at least one from the remaining historical question-answer pairs as the current candidate question-answer pair according to the historical question-answer frequency.
In an alternative embodiment, the question-answer interaction module 402 includes:
the question display unit is used for displaying candidate questions in the current candidate question-answer pair in a rolling mode by adopting interaction equipment in a target scene;
and the answer broadcasting unit is used for broadcasting the answer associated with any candidate question under the condition that the user is identified to select the candidate question.
In an alternative embodiment, the question presentation unit is specifically configured to:
and displaying the candidate questions in the current candidate question-answer pair in a rolling manner by adopting interactive equipment in a target scene through a dynamic fading-in and fading-out effect.
According to the technical scheme, the accuracy of the candidate problem content is improved by dynamically determining the candidate problem rolling in the visual window, so that the hit rate of the candidate problem to the user requirements is improved, the frequency of using the candidate problem by the user is increased, and the utilization rate is improved. Moreover, continuity in visual experience is realized through continuous rolling; and multiple interaction modes of touch control and voice are supported, and interaction convenience is improved.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units that perform machine learning model algorithms, a digital information processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 executes the respective methods and processes described above, such as the question-answer interaction method. For example, in some embodiments, the question-answer interaction method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When loaded into RAM503 and executed by computing unit 501, may perform one or more of the steps of the question-answer interaction method described above. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the question-answer interaction method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs executing on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the information desired by the technical solution disclosed in the present disclosure can be realized.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A question-answer interaction method comprises the following steps:
determining a current candidate question-answer pair of a target scene in a current question-answer period according to hot news in a global scene and the historical question-answer pair of the target scene in the historical question-answer period;
and performing question-answer interaction with the user in the target scene based on the current candidate question-answer pairs.
2. The method of claim 1, wherein the determining, according to the hot news in the global scene and the historical question-answer pairs of the target scene in the historical question-answer period, the current candidate question-answer pair of the target scene in the current question-answer period comprises:
selecting at least one piece of hot news in the global scene as current candidate news, and generating a hot news question-answer pair according to the current candidate news to serve as the current candidate question-answer pair;
and selecting at least one of the historical question-answer pairs of the historical question-answer period of the target scene as the current candidate question-answer pair.
3. The method of claim 2, wherein the generating a hot news question-answer pair from the current candidate news comprises:
determining the hot news question-answer pair according to the current candidate news based on a natural language processing technology; wherein the number of the question words in the hot news question-answer pair is less than the word number threshold.
4. The method of claim 2, wherein the selecting at least one of the historical question-answer pairs of the historical question-answer cycle from the target scene as the current candidate question-answer pair comprises:
acquiring historical question-answer pairs acquired by interactive equipment in a historical question-answer period in the target scene;
removing the repeated historical question-answer pairs from the hot news question-answer pairs;
and selecting at least one from the remaining historical question-answer pairs as the current candidate question-answer pair according to the historical question-answer frequency.
5. The method of claim 1, wherein the performing a question-answer interaction with a user in the target scenario based on the current candidate question-answer pair comprises:
displaying candidate questions in the current candidate question-answer pair in a rolling mode by adopting interaction equipment in a target scene;
in the event that it is identified that the user selects any of the candidate questions, the answer associated with that candidate question is announced.
6. The method of claim 5, wherein the presenting the candidate questions in the current candidate question-answer pair with the interactive device in the target scenario by scrolling comprises:
and displaying the candidate questions in the current candidate question-answer pair in a rolling manner by adopting interactive equipment in a target scene through a dynamic fading-in and fading-out effect.
7. A question-answer interaction device comprising:
the question-answer pair determining module is used for determining a current candidate question-answer pair of the target scene in a current question-answer period according to the hot news in the global scene and the historical question-answer pair of the target scene in the historical question-answer period;
and the question-answer interaction module is used for carrying out question-answer interaction with the user in the target scene based on the current candidate question-answer pairs.
8. The apparatus of claim 7, wherein the question-answer pair determination module comprises:
the news question-answer unit is used for selecting at least one piece of hot news in the global scene as current candidate news, and generating a hot news question-answer pair according to the current candidate news to serve as the current candidate question-answer pair;
and the historical question-answering unit is used for selecting at least one of the historical question-answering pairs of the historical question-answering period of the target scene as the current candidate question-answering pair.
9. The apparatus of claim 8, wherein the news question-answering unit is specifically configured to:
determining the hot news question-answer pair according to the current candidate news based on a natural language processing technology; wherein the number of the question words in the hot news question-answer pair is less than the word number threshold.
10. The apparatus according to claim 8, wherein the historical question answering unit is specifically configured to:
acquiring historical question-answer pairs acquired by interactive equipment in a historical question-answer period in the target scene;
removing the repeated historical question-answer pairs from the hot news question-answer pairs;
and selecting at least one from the remaining historical question-answer pairs as the current candidate question-answer pair according to the historical question-answer frequency.
11. The apparatus of claim 7, wherein the question-answer interaction module comprises:
the question display unit is used for displaying candidate questions in the current candidate question-answer pair in a rolling mode by adopting interaction equipment in a target scene;
and the answer broadcasting unit is used for broadcasting the answer associated with any candidate question under the condition that the user is identified to select the candidate question.
12. The apparatus according to claim 11, wherein the question presentation unit is specifically configured to:
and displaying the candidate questions in the current candidate question-answer pair in a rolling manner by adopting interactive equipment in a target scene through a dynamic fading-in and fading-out effect.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202110313699.7A 2021-03-24 2021-03-24 Question-answer interaction method, device, equipment and storage medium Active CN112860874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110313699.7A CN112860874B (en) 2021-03-24 2021-03-24 Question-answer interaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110313699.7A CN112860874B (en) 2021-03-24 2021-03-24 Question-answer interaction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112860874A true CN112860874A (en) 2021-05-28
CN112860874B CN112860874B (en) 2024-06-25

Family

ID=75992579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110313699.7A Active CN112860874B (en) 2021-03-24 2021-03-24 Question-answer interaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112860874B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164427A (en) * 2011-12-13 2013-06-19 中国移动通信集团公司 Method and device of news aggregation
CN106951435A (en) * 2017-02-08 2017-07-14 广州神马移动信息科技有限公司 News recommends method, equipment and programmable device
CN107562843A (en) * 2017-08-25 2018-01-09 贵州耕云科技有限公司 A kind of hot news Phrase extraction method based on title high frequency cutting
CA3012211A1 (en) * 2017-07-28 2019-01-28 Virq Inc. System and method of distributing tokens
CN109635098A (en) * 2018-12-20 2019-04-16 东软集团股份有限公司 A kind of intelligent answer method, apparatus, equipment and medium
CN110162603A (en) * 2018-11-30 2019-08-23 腾讯科技(深圳)有限公司 A kind of Intelligent dialogue method, dynamic storage method and device
CN110197454A (en) * 2018-02-27 2019-09-03 深圳微盐传媒科技有限公司 A kind of knowledge question processing method and interactive terminal
CN111984775A (en) * 2020-08-12 2020-11-24 北京百度网讯科技有限公司 Question and answer quality determination method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164427A (en) * 2011-12-13 2013-06-19 中国移动通信集团公司 Method and device of news aggregation
CN106951435A (en) * 2017-02-08 2017-07-14 广州神马移动信息科技有限公司 News recommends method, equipment and programmable device
CA3012211A1 (en) * 2017-07-28 2019-01-28 Virq Inc. System and method of distributing tokens
CN107562843A (en) * 2017-08-25 2018-01-09 贵州耕云科技有限公司 A kind of hot news Phrase extraction method based on title high frequency cutting
CN110197454A (en) * 2018-02-27 2019-09-03 深圳微盐传媒科技有限公司 A kind of knowledge question processing method and interactive terminal
CN110162603A (en) * 2018-11-30 2019-08-23 腾讯科技(深圳)有限公司 A kind of Intelligent dialogue method, dynamic storage method and device
CN109635098A (en) * 2018-12-20 2019-04-16 东软集团股份有限公司 A kind of intelligent answer method, apparatus, equipment and medium
CN111984775A (en) * 2020-08-12 2020-11-24 北京百度网讯科技有限公司 Question and answer quality determination method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘瑜;袁健;: "基于RTEM模型的问答社区候选答案排序方法", 电子科技, no. 05, 15 May 2016 (2016-05-15) *
黄克敏;先科;李帅;魏洪凯;冯建巩;: "网络舆情热点新闻发现技术研究", 网络安全技术与应用, no. 06, 15 June 2017 (2017-06-15) *

Also Published As

Publication number Publication date
CN112860874B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
CN113590776A (en) Text processing method and device based on knowledge graph, electronic equipment and medium
CN114154013A (en) Video recommendation method, device, equipment and storage medium
CN112560461A (en) News clue generation method and device, electronic equipment and storage medium
CN113655895B (en) Information recommendation method and device applied to input method and electronic equipment
CN114461919A (en) Information recommendation model training method and device
CN114374885A (en) Video key segment determination method and device, electronic equipment and readable storage medium
CN114880498B (en) Event information display method and device, equipment and medium
CN112860874B (en) Question-answer interaction method, device, equipment and storage medium
CN113535916B (en) Question and answer method and device based on table and computer equipment
CN113110782B (en) Image recognition method and device, computer equipment and storage medium
CN112714340B (en) Video processing method, device, equipment, storage medium and computer program product
CN115238652A (en) Table data generation method and device, electronic equipment and readable storage medium
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN114880562A (en) Method and device for recommending information
CN113886637A (en) Video coarse sorting method and device, electronic equipment and storage medium
CN112650401A (en) Information carousel method and device, electronic equipment and storage medium
CN114942817B (en) Display method and device of design interface, electronic equipment, storage medium and product
CN114417808B (en) Article generation method and device, electronic equipment and storage medium
CN112667880A (en) Search result display method, device, equipment, storage medium and program product
CN114912046A (en) Method and device for generating page
CN117744590A (en) Presentation generation method and device, electronic equipment and storage medium
CN117971661A (en) Large model test method and device, electronic equipment and storage medium
CN117407495A (en) Broadcasting method and device of generated content, electronic equipment and storage medium
CN117278777A (en) Video processing method and device and electronic equipment
CN114494950A (en) Video processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant