CN111090721B - Question answering method and device and electronic equipment - Google Patents

Question answering method and device and electronic equipment Download PDF

Info

Publication number
CN111090721B
CN111090721B CN201911166322.2A CN201911166322A CN111090721B CN 111090721 B CN111090721 B CN 111090721B CN 201911166322 A CN201911166322 A CN 201911166322A CN 111090721 B CN111090721 B CN 111090721B
Authority
CN
China
Prior art keywords
memo information
candidate
memo
information
information list
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.)
Active
Application number
CN201911166322.2A
Other languages
Chinese (zh)
Other versions
CN111090721A (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.)
Go Out And Ask Suzhou Information Technology Co ltd
Original Assignee
Go Out And Ask Suzhou Information 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 Go Out And Ask Suzhou Information Technology Co ltd filed Critical Go Out And Ask Suzhou Information Technology Co ltd
Priority to CN201911166322.2A priority Critical patent/CN111090721B/en
Publication of CN111090721A publication Critical patent/CN111090721A/en
Application granted granted Critical
Publication of CN111090721B publication Critical patent/CN111090721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/31Indexing; Data structures therefor; Storage structures
    • 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/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Landscapes

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

Abstract

The application discloses a question and answer method, a question and answer device and electronic equipment. An embodiment of the method comprises: acquiring query language information; selecting a pre-selected memo information list and a candidate memo information list corresponding to the query language information from a question-answer library; determining pre-selected memo information in the pre-selected memo information list or candidate memo information in the candidate memo information list as quasi-memo information. According to the embodiment of the application, the similarity score of each candidate memo information in the candidate memo information list is calculated, and whether the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value is detected; then determining to adopt the candidate memo information in the candidate memo information list or the preselected memo information in the preselected memo information list as the quasi-memo information according to the detection result; therefore, the retrieval recall rate can be improved, the response accuracy rate is further improved, and the user experience is improved.

Description

Question answering method and device and electronic equipment
Technical Field
The application belongs to the technical field of intelligence, and particularly relates to a question answering method, a question answering device and electronic equipment.
Background
Voice interaction is a man-machine interaction mode. Unlike traditional graphical interface interactions, voice interactions can enable people to speak naturally and computers to complete information interactions and instruction communication, just as if people were communicating with each other in natural language at ordinary times. The voice memo system is characterized in that a user can use a voice interaction mode to enable intelligent interaction equipment to record specific memo contents. Meanwhile, various memorandum information stored in the mobile phone can be obtained by means of voice searching.
The existing retrieval method generally uses the problem date and the problem theme as retrieval words to search; however, there are questions that do not include a date, such as "what is my room number? "not including date; some questions include dates such as "what is i about to buy in tomorrow? "comprising date" tomorrow ". When searching, if the problem date is not empty, the problem date is required to be completely matched with the memo date of the storage module to return; also, if the question topic is not empty, a complete match of the question topic with the memo topic of the memory module is required to return. However, the form of the user input question is not limited, so that the actual question date and question theme are different from the question date and question theme analyzed by the analysis module, and finally, the correct memo information is not retrieved and returned due to the fact that the date and the theme are not matched.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a question-answering method, apparatus, and electronic device, which can improve the accuracy of answering while improving the recall rate of retrieval.
In order to achieve the above object, according to a first aspect of the embodiments of the present application, a question answering method is provided.
The question answering method of the embodiment of the application comprises the following steps: acquiring query language information; selecting a pre-selected memo information list and a candidate memo information list corresponding to the query language information from a question-answer library; determining pre-selected memo information in the pre-selected memo information list or candidate memo information in the candidate memo information list as quasi-memo information.
Optionally, the selecting a pre-selected memo information list and a candidate memo information list corresponding to the query language information from the question-answering library includes: selecting a pre-selected memo information list matched with the query language information from a question-answer library in a character string matching mode; performing topic analysis and/or time analysis on the query language information to generate a first keyword index; and selecting a candidate memo information list matched with the query language information from a question-answer library according to the generated first keyword index.
Optionally, the selecting, according to the generated first keyword index, a candidate memo information list matched with the query language information from a question-answer library includes: traversing the second keyword index in the question-answering library, and inquiring whether the second keyword index consistent with the first keyword index exists or not; and if the second keyword index consistent with the first keyword index exists in the query, selecting a candidate memo information list matched with the query language information according to the second keyword index.
Optionally, the determining the pre-selected memo information in the pre-selected memo information list or the candidate memo information in the candidate memo information list as the quasi-memo information includes: calculating a similarity score between each candidate memo information in the candidate memo information list and the query language information; detecting whether the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value; and if the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value, selecting the pre-selected memo information in the pre-selected memo information list as the quasi-memo information.
Optionally, the determining the pre-selected memo information in the pre-selected memo information list or the candidate memo information in the candidate memo information list as the quasi-memo information further includes: and if the highest value of the similarity score of the candidate memo information is not smaller than a preset threshold value, selecting the candidate memo information with the highest similarity score from the candidate memo information list as quasi-memo information.
Optionally, the selecting the pre-selected memo information in the pre-selected memo information list as the quasi-memo information includes: calculating a similarity score between each pre-selected memo information in the pre-selected memo information list and the query language information; detecting whether the highest value of the similarity score of the pre-selected memo information is smaller than a preset threshold value; and if the highest value of the similarity score of the pre-selected memo information is not smaller than a preset threshold value, selecting the pre-selected memo information with the highest similarity score from a pre-selected memo information list as the quasi-memo information.
In order to achieve the above object, according to a second aspect of the embodiment of the present application, a question answering device is further provided.
The question answering device of the embodiment of the application comprises: the acquisition module is used for acquiring query language information; the selecting module is used for selecting a pre-selected memo information list and a candidate memo information list which correspond to the query language information from the question-answer library; and the determining module is used for determining the pre-selected memo information in the pre-selected memo information list or the candidate memo information in the candidate memo information list as the standard memo information.
Optionally, the selecting module includes: the selecting unit is used for selecting a pre-selected memo information list matched with the query language information from the question-answer library in a character string matching mode; the analysis unit is used for carrying out topic analysis and/or time analysis on the query language information to generate a first keyword index; and the candidate memo unit is used for selecting a candidate memo information list matched with the query language information from the question-answer library according to the generated first keyword index.
Optionally, the candidate memo unit includes: a query subunit, configured to traverse the second keyword index in the question-answer library, and query whether a second keyword index consistent with the first keyword index exists; and the selecting subunit is used for selecting a candidate memo information list matched with the query language information according to the second keyword index if the second keyword index consistent with the first keyword index exists in the query.
Optionally, the determining module includes: a calculation unit configured to calculate a similarity score between each candidate memo information in the candidate memo information list and the query language information; a detection unit, configured to detect whether a highest value of a similarity score of the candidate memo information is smaller than a preset threshold; and the pre-selected memo unit is used for selecting the pre-selected memo information in the pre-selected memo information list as the quasi-memo information if the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value.
Optionally, the determining module further includes: and the candidate quasi-memo unit is used for selecting the candidate memo information with the highest similarity score from the candidate memo information list as quasi-memo information if the highest similarity score of the candidate memo information is not smaller than a preset threshold.
Optionally, the preselecting preparation forgetting unit includes: a calculating subunit, configured to calculate a similarity score between each of the pre-selected memo information in the pre-selected memo information list and the query language information; a detection subunit, configured to detect whether a highest value of the similarity score of the pre-selected memo information is less than a preset threshold; and the selecting subunit is used for selecting the pre-selected memo information with the highest similarity score from the pre-selected memo information list as the quasi-memo information if the highest similarity score of the pre-selected memo information is not smaller than a preset threshold.
To achieve the above object, according to a third aspect of the embodiment of the present application, there is also provided an electronic device.
An electronic device of an embodiment of the present application includes: one or more processors; and a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the question-answering method according to the first aspect.
To achieve the above object, according to a fourth aspect of the embodiments of the present application, there is also provided a computer-readable medium.
A computer-readable medium of an embodiment of the present application has stored thereon a computer program which, when executed by a processor, implements the question-answering method according to the first aspect.
One embodiment of the above application has the following advantages or benefits: selecting a pre-selected memo information list and a candidate memo information list corresponding to the query language information from a question and answer library, and determining pre-selected memo information in the pre-selected memo information list or candidate memo information in the candidate memo information list as standard memo information; thereby improving the retrieval recall rate and further improving the response accuracy.
Further effects of the above-described non-conventional alternatives are described below in connection with the detailed description.
Drawings
The drawings are included to provide a better understanding of the application and are not to be construed as unduly limiting the application. Wherein: in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 is a flow chart of a question answering method according to an embodiment of the present application;
FIG. 2 is a flow chart of a question answering method according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a question answering apparatus according to an embodiment of the present application;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 5 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a question answering method according to an embodiment of the present application. As shown in fig. 1, the question answering method according to the embodiment of the present application includes:
s101: acquiring query language information;
specifically, the query information is input into the system by a manual typing mode or by a voice recording mode. The inquiry language information of the system is input by a voice recording mode, and the inquiry language information is automatically converted into a text form in the system.
For example, the query information is "what is i'm you want to buy in tomorrow? ".
S102: selecting a pre-selected memo information list and a candidate memo information list corresponding to the query language information from a question-answer library;
specifically, subject analysis and/or time analysis are carried out on the query language information, and a first keyword index is generated; and selecting a candidate memo information list matched with the query language information from a question-answer library according to the generated first keyword index. And selecting a pre-selected memo information list matched with the query language information from the question-answering library in a character string matching mode.
For example, first, for the query information "what is i'm you to buy in tomorrow? Performing topic analysis to generate topic keyword indexes, performing time analysis on query term information of what is to be purchased by tomorrow, generating time keyword indexes, and collectively called the topic keyword indexes and the time keyword indexes as first keyword indexes; and selecting a plurality of candidate memo information matched with the query language information from the question-answer library according to the generated first keyword index, wherein the candidate memo information forms a candidate memo information list. Secondly, the time and the theme of the query language information 'what is to be bought by tomorrow me' are set empty, character string matching is carried out on the query language information, a plurality of pre-selected memo information matched with the query language information is obtained, and the pre-selected memo information forms a pre-selected memo information list.
It should be understood that when only topic information is included in the query language information and no time information is included, only topic keyword indexes of the query language information can be obtained through the topic parsing module.
S103: determining pre-selected memo information in the pre-selected memo information list or candidate memo information in the candidate memo information list as quasi-memo information.
For example, it is determined to use the candidate memo information or the pre-selected memo information as the quasi-memo information by a specific algorithm and/or a preset rule.
It should also be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and the inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
According to the embodiment of the application, the query language information is obtained, and a candidate memo information list and a pre-selected memo information list corresponding to the query language information are selected from a question-answer library; then determining pre-selected memo information in the pre-selected memo information list or candidate memo information in the candidate memo information list as quasi-memo information; therefore, the retrieval recall rate can be improved, and the response accuracy is further improved.
Fig. 2 is a flowchart of a question answering method according to another embodiment of the present application. As shown in fig. 2, the question answering method implemented by the application comprises the following steps:
s201: acquiring query language information;
s202: selecting a pre-selected memo information list matched with the query language information from a question-answer library in a character string matching mode;
s203: performing topic analysis and/or time analysis on the query language information to generate a first keyword index;
s204: selecting a candidate memo information list matched with the query language information from a question-answer library according to the generated first keyword index;
specifically, traversing a second keyword index in the question-answering library, and inquiring whether a second keyword index consistent with the first keyword index exists or not; and if the second keyword index consistent with the first keyword index exists in the query, selecting a candidate memo information list matched with the query language information according to the second keyword index.
S205: calculating a similarity score between each candidate memo information in the candidate memo information list and the query language information;
s206: judging whether the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value or not;
s207: if yes, selecting the pre-selected memo information in the pre-selected memo information list as quasi-memo information;
specifically, if the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value, calculating the similarity score between each piece of pre-selected memo information in the pre-selected memo information list and the query language information; detecting whether the highest value of the similarity score of the pre-selected memo information is smaller than a preset threshold value; if the highest value of the similarity score of the pre-selected memo information is not smaller than a preset threshold value, selecting the pre-selected memo information with the highest similarity score from a pre-selected memo information list as quasi-memo information; and if the highest value of the similarity score of the pre-selected memo information is smaller than a preset threshold value, indicating that the pre-selected memo information which is not matched with the query language information exists in the pre-selected memo information list.
S208: if not, selecting the candidate memo information with the highest similarity score from the candidate memo information list as the quasi memo information.
Specifically, if the highest value of the similarity score of the candidate memo information is not smaller than a preset threshold, selecting the candidate memo information with the highest similarity score from the candidate memo information list as the quasi-memo information.
It should be understood that the preset threshold in the embodiment of the present application is set manually according to actual requirements, for example, the preset threshold may be 0.1.
It should also be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and the inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
According to the embodiment of the application, the similarity score of each candidate memo information in the candidate memo information list is calculated, and whether the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value is detected; then determining to adopt the candidate memo information in the candidate memo information list or the preselected memo information in the preselected memo information list as the quasi-memo information according to the detection result; therefore, the retrieval recall rate can be improved, the response accuracy rate is further improved, and the user experience is improved.
Fig. 3 is a schematic diagram of a question answering device according to an embodiment of the application. The apparatus 300 includes: an obtaining module 301, configured to obtain query language information; a selecting module 302, configured to select a pre-selected memo information list and a candidate memo information list corresponding to the query language information from a question-answer library; a determining module 303, configured to determine that the pre-selected memo information in the pre-selected memo information list or the candidate memo information in the candidate memo information list is the standard memo information.
In an alternative embodiment, the selecting module includes: the selecting unit is used for selecting a pre-selected memo information list matched with the query language information from the question-answer library in a character string matching mode; the analysis unit is used for carrying out topic analysis and/or time analysis on the query language information to generate a first keyword index; and the candidate memo unit is used for selecting a candidate memo information list matched with the query language information from the question-answer library according to the generated first keyword index.
In an alternative embodiment, the candidate memo unit includes: a query subunit, configured to traverse the second keyword index in the question-answer library, and query whether a second keyword index consistent with the first keyword index exists; and the selecting subunit is used for selecting a candidate memo information list matched with the query language information according to the second keyword index if the second keyword index consistent with the first keyword index exists in the query.
In an alternative embodiment, the determining module includes: a calculation unit configured to calculate a similarity score between each candidate memo information in the candidate memo information list and the query language information; a detection unit, configured to detect whether a highest value of a similarity score of the candidate memo information is smaller than a preset threshold; and the pre-selected memo unit is used for selecting the pre-selected memo information in the pre-selected memo information list as the quasi-memo information if the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value.
In an alternative embodiment, the determining module further includes: and the candidate quasi-memo unit is used for selecting the candidate memo information with the highest similarity score from the candidate memo information list as quasi-memo information if the highest similarity score of the candidate memo information is not smaller than a preset threshold.
In an alternative embodiment, the preselection preparation forgetting unit includes: a calculating subunit, configured to calculate a similarity score between each of the pre-selected memo information in the pre-selected memo information list and the query language information; a detection subunit, configured to detect whether a highest value of the similarity score of the pre-selected memo information is less than a preset threshold; and the selecting subunit is used for selecting the pre-selected memo information with the highest similarity score from the pre-selected memo information list as the quasi-memo information if the highest similarity score of the pre-selected memo information is not smaller than a preset threshold.
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present application may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 is used as a medium to provide communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 405 via the network 404 using the terminal devices 401, 402, 403 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (by way of example only) that provides support for click events generated by users using the terminal devices 401, 402, 403. The background management server may analyze the received click data, text content, and other data, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the question answering method provided in the embodiment of the present application is generally executed by the server 405, and accordingly, the question answering device is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
According to an embodiment of the application, the application further provides an electronic device and a computer readable medium.
The electronic device of the present application includes: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize a question-answering method according to the embodiment of the application.
The computer readable medium of the present application has stored thereon a computer program which, when executed by a processor, implements a question-answering method of an embodiment of the present application.
Reference is now made to fig. 5, which illustrates a schematic diagram of a computer system suitable for use in implementing the terminal device or server of an embodiment. The terminal device shown in fig. 5 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the system 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504. The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not constitute a limitation on the unit itself in some cases, and for example, the transmitting module may also be described as "a module that transmits a picture acquisition request to a connected server".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: acquiring query language information; selecting a pre-selected memo information list and a candidate memo information list corresponding to the query language information from a question-answer library; determining pre-selected memo information in the pre-selected memo information list or candidate memo information in the candidate memo information list as quasi-memo information.
From the above description, the embodiment of the application obtains the query language information and selects the candidate memo information list and the pre-selected memo information list corresponding to the query language information from the question-answer library; then, calculating the similarity score of each candidate memo information in the candidate memo information list, and detecting whether the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value; determining to adopt the candidate memo information in the candidate memo information list or the pre-selected memo information in the pre-selected memo information list as the quasi-memo information according to the detection result; therefore, the retrieval recall rate can be improved, the response accuracy rate is further improved, and the user experience is improved.
The product can execute the question-answering method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the question-answering method. Technical details not described in detail in this embodiment may be found in the methods provided in the embodiments of the present application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The foregoing is merely a specific implementation path of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and it is intended to cover the same. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (5)

1. A question-answering method, the method comprising:
acquiring query language information;
selecting a pre-selected memo information list and a candidate memo information list corresponding to the query language information from a question-answer library;
determining pre-selected memo information in the pre-selected memo information list or candidate memo information in the candidate memo information list as quasi-memo information;
selecting a pre-selected memo information list matched with the query language information from a question-answer library in a character string matching mode;
performing topic analysis and/or time analysis on the query language information to generate a first keyword index;
selecting a candidate memo information list matched with the query language information from a question-answer library according to the generated first keyword index;
traversing the second keyword index in the question-answering library, and inquiring whether the second keyword index consistent with the first keyword index exists or not;
if the second keyword index consistent with the first keyword index exists in the query, selecting a candidate memo information list matched with the query language information according to the second keyword index;
calculating a similarity score between each candidate memo information in the candidate memo information list and the query language information;
detecting whether the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value;
and if the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value, selecting the pre-selected memo information in the pre-selected memo information list as the quasi-memo information.
2. The method of claim 1, wherein the determining the preselected memo information in the preselected memo information list or the candidate memo information in the candidate memo information list as the quasi memo information further comprises:
and if the highest value of the similarity score of the candidate memo information is not smaller than a preset threshold value, selecting the candidate memo information with the highest similarity score from the candidate memo information list as quasi-memo information.
3. The method of claim 1 wherein selecting the preselected memo information in the list of preselected memo information as the quasi-memo information comprises:
calculating a similarity score between each pre-selected memo information in the pre-selected memo information list and the query language information;
detecting whether the highest value of the similarity score of the pre-selected memo information is smaller than a preset threshold value;
and if the highest value of the similarity score of the pre-selected memo information is not smaller than a preset threshold value, selecting the pre-selected memo information with the highest similarity score from a pre-selected memo information list as the quasi-memo information.
4. A question answering apparatus, comprising:
the acquisition module is used for acquiring query language information;
the selecting module is used for selecting a pre-selected memo information list and a candidate memo information list which correspond to the query language information from the question-answer library;
a determining module, configured to determine that the pre-selected memo information in the pre-selected memo information list or the candidate memo information in the candidate memo information list is quasi-memo information;
wherein, the selecting module includes:
the selecting unit is used for selecting a pre-selected memo information list matched with the query language information from the question-answer library in a character string matching mode;
the analysis unit is used for carrying out topic analysis and/or time analysis on the query language information to generate a first keyword index;
a candidate unit, configured to select a candidate memo information list matching the query language information from a question-answer library according to the generated first keyword index;
wherein the candidate unit comprises:
a query subunit, configured to traverse the second keyword index in the question-answer library, and query whether a second keyword index consistent with the first keyword index exists;
a selecting subunit, configured to select, if it is queried that there is a second keyword index that is consistent with the first keyword index, a candidate memo information list that matches the query language information according to the second keyword index;
the determining module is further used for calculating a similarity score between each candidate memo information in the candidate memo information list and the query language information; detecting whether the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value; and if the highest value of the similarity score of the candidate memo information is smaller than a preset threshold value, selecting the pre-selected memo information in the pre-selected memo information list as the quasi-memo information.
5. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-3.
CN201911166322.2A 2019-11-25 2019-11-25 Question answering method and device and electronic equipment Active CN111090721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911166322.2A CN111090721B (en) 2019-11-25 2019-11-25 Question answering method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911166322.2A CN111090721B (en) 2019-11-25 2019-11-25 Question answering method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111090721A CN111090721A (en) 2020-05-01
CN111090721B true CN111090721B (en) 2023-09-12

Family

ID=70394166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911166322.2A Active CN111090721B (en) 2019-11-25 2019-11-25 Question answering method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111090721B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933807A (en) * 2017-03-20 2017-07-07 北京光年无限科技有限公司 Memorandum event-prompting method and system
CN107038220A (en) * 2017-03-20 2017-08-11 北京光年无限科技有限公司 Method, intelligent robot and system for generating memorandum
CN108491433A (en) * 2018-02-09 2018-09-04 平安科技(深圳)有限公司 Chat answer method, electronic device and storage medium
CN108595696A (en) * 2018-05-09 2018-09-28 长沙学院 A kind of human-computer interaction intelligent answering method and system based on cloud platform
CN110033281A (en) * 2018-01-11 2019-07-19 中兴通讯股份有限公司 A kind of method and device that intelligent customer service is converted to artificial customer service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933807A (en) * 2017-03-20 2017-07-07 北京光年无限科技有限公司 Memorandum event-prompting method and system
CN107038220A (en) * 2017-03-20 2017-08-11 北京光年无限科技有限公司 Method, intelligent robot and system for generating memorandum
CN110033281A (en) * 2018-01-11 2019-07-19 中兴通讯股份有限公司 A kind of method and device that intelligent customer service is converted to artificial customer service
CN108491433A (en) * 2018-02-09 2018-09-04 平安科技(深圳)有限公司 Chat answer method, electronic device and storage medium
WO2019153613A1 (en) * 2018-02-09 2019-08-15 平安科技(深圳)有限公司 Chat response method, electronic device and storage medium
CN108595696A (en) * 2018-05-09 2018-09-28 长沙学院 A kind of human-computer interaction intelligent answering method and system based on cloud platform

Also Published As

Publication number Publication date
CN111090721A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN107679211B (en) Method and device for pushing information
CN109460513B (en) Method and apparatus for generating click rate prediction model
CN107832433B (en) Information recommendation method, device, server and storage medium based on conversation interaction
CN111428010B (en) Man-machine intelligent question-answering method and device
CN109145104B (en) Method and device for dialogue interaction
CN110069698B (en) Information pushing method and device
CN109858045B (en) Machine translation method and device
CN107908662B (en) Method and device for realizing search system
CN110019948B (en) Method and apparatus for outputting information
US20190188623A1 (en) Cognitive and dynamic business process generation
CN110059172B (en) Method and device for recommending answers based on natural language understanding
WO2020119173A1 (en) Information pushing method and apparatus
CN112182255A (en) Method and apparatus for storing media files and for retrieving media files
CN114119123A (en) Information pushing method and device
US20200210522A1 (en) Method and apparatus for determining a topic
US20220327147A1 (en) Method for updating information of point of interest, electronic device and storage medium
CN111090721B (en) Question answering method and device and electronic equipment
CN110881056A (en) Method and device for pushing information
CN110990528A (en) Question answering method and device and electronic equipment
US10877964B2 (en) Methods and systems to facilitate the generation of responses to verbal queries
CN110807089B (en) Question answering method and device and electronic equipment
CN110442615B (en) Resource information processing method and device, electronic equipment and storage medium
CN113780827A (en) Article screening method and device, electronic equipment and computer readable medium
US20210027155A1 (en) Customized models for on-device processing workflows
CN112148848A (en) Question and answer processing method and device

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
GR01 Patent grant