WO2021244574A1 - Method and device for establishing question-answer pair - Google Patents

Method and device for establishing question-answer pair Download PDF

Info

Publication number
WO2021244574A1
WO2021244574A1 PCT/CN2021/097937 CN2021097937W WO2021244574A1 WO 2021244574 A1 WO2021244574 A1 WO 2021244574A1 CN 2021097937 W CN2021097937 W CN 2021097937W WO 2021244574 A1 WO2021244574 A1 WO 2021244574A1
Authority
WO
WIPO (PCT)
Prior art keywords
question
answer pair
reply message
current
customer service
Prior art date
Application number
PCT/CN2021/097937
Other languages
French (fr)
Chinese (zh)
Inventor
胡尧
詹泽
娄伟锋
宋长福
Original Assignee
支付宝(杭州)信息技术有限公司
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 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021244574A1 publication Critical patent/WO2021244574A1/en

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/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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition

Definitions

  • This specification relates to the field of Internet technology, and in particular to a method and device for establishing question and answer pairs.
  • this specification provides a method and device for establishing question and answer pairs.
  • a method for establishing a question and answer pair includes: monitoring a paste operation of a human customer service; and using the text corresponding to the paste operation as the current reply message to the current user question ; Determine the number of historical reply messages matching the current reply message in the current period, the historical reply message is input by the manual customer service; if the number of historical reply messages meets a preset condition, according to the current reply The message and the current user question generate a question and answer pair; the question and answer pair is stored in the knowledge base.
  • a device for establishing question and answer pairs comprising: a monitoring unit for monitoring a paste operation of a human customer service; an acquisition unit for taking the text corresponding to the pasting operation as a current reply message to a current user question; and a counting unit , Used to determine the number of historical reply messages matching the current reply message in the current period, the historical reply message being input by the manual customer service; the judging unit, used to determine if the number of historical reply messages meets a preset condition , The question and answer pair is generated according to the current reply message and the current user question; the storage unit is used to store the question and answer pair in the knowledge base.
  • a device for establishing question and answer pairs includes: a processor; a memory for storing machine executable instructions; wherein, by reading and executing the machine executable instructions corresponding to the method for establishing question and answer pairs stored in the memory, the The processor is prompted to: monitor the paste operation of the human customer service; use the text corresponding to the paste operation as the current reply message of the current user question; determine the number of historical reply messages matching the current reply message in the current period, the The historical reply message is input by the manual customer service; if the number of historical reply messages meets a preset condition, a question-and-answer pair is generated based on the current reply message and the current user question; the question-and-answer pair is stored in the knowledge base .
  • An embodiment of this specification realizes that the pasting operation of the human customer service is monitored, and the text corresponding to the pasting operation is used as the current reply message, and then the reply message is matched with the historical reply message in the current period.
  • a question-and-answer pair is generated according to the reply message and the corresponding user question, and the question-and-answer pair is stored in the knowledge base.
  • it if it is monitored that the human customer service enters similar reply messages multiple times in a cycle, it means that the reply message is used more frequently. Subsequent questions and answers can be generated and saved based on the reply message and the corresponding user question. right.
  • the method of this embodiment saves labor costs and is more efficient; compared with the establishment of question and answer pairs through machine learning algorithms, the method of this embodiment not only reduces the pressure on server performance, It also has better timeliness.
  • Fig. 1 is a schematic flowchart of a method for establishing question and answer pairs according to an exemplary embodiment of the present specification.
  • Fig. 2 is a schematic flowchart of another method for establishing question and answer pairs according to an exemplary embodiment of the present specification.
  • Fig. 3 is a schematic structural diagram of an apparatus for establishing question and answer pairs according to an exemplary embodiment of the present specification.
  • Fig. 4 is a block diagram of a device for establishing question and answer pairs according to an exemplary embodiment of the present specification.
  • first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word “if” as used herein can be interpreted as "when” or “when” or “in response to a certainty”.
  • the customer service system refers to a system for responding to user inquiries. In order to improve the response efficiency, it is mainly aimed at the response efficiency of repeated questions.
  • a question and answer pair can be established, and the question and answer pair is usually a mapping relationship between the question and the answer.
  • the customer service system receives the user's question, it can query the question and answer pair, and if the corresponding answer is inquired, it can automatically reply to the user, or give a reference to the reply message.
  • how to screen them and establish effective question and answer pairs in a timely manner has become an urgent problem to be solved.
  • manual input can be used to establish question-and-answer pairs.
  • a human customer service can, based on experience, enter a user question with a higher frequency and a reply message corresponding to the user question into the knowledge base that stores the question and answer pairs.
  • intelligent algorithms can also be used for data mining to establish question-and-answer pairs.
  • the customer service system usually needs to obtain a large number of user questions and corresponding reply messages, and then build a model based on these data to dig out effective question and answer pairs.
  • this method requires a large amount of data to be collected in advance, making the establishment of question and answer pairs lagging behind, and time-sensitive user questions cannot be added in time.
  • the question-and-answer pairs established by this method have low accuracy, require a lot of calculations, and consume equipment performance.
  • this manual proposes a method for establishing question-and-answer pairs.
  • you can monitor the reply message entered by the manual customer service for the user's question, and then match the reply message with the historical reply message in the current period. When the number of matching historical reply messages meets the preset condition, a question-and-answer pair is generated according to the reply message and the corresponding user question.
  • the method of this manual has less manual participation and less pressure on the server. While establishing question and answer pairs efficiently, it can also have higher accuracy and timeliness.
  • the method of this manual is applied to a customer service system.
  • the client of the customer service system can display user questions, reply messages or other prompt messages through the conversation window.
  • the server of the customer service system stores a knowledge base and performs calculations and searches. deal with.
  • the client and server can interact through the network.
  • the knowledge base is a database or data table used to store question and answer pairs.
  • users can manually input question and answer pairs that are frequently used to the knowledge base. Then, question and answer pairs can be generated according to the method in this manual and stored in the knowledge base.
  • the question-and-answer pair in the knowledge base can use the key words of the question as the user's question, and the complete sentence as the reply message.
  • the server of the customer service system can use a preset algorithm to obtain one or more keywords in the user question, and then query the response corresponding to the keyword in the knowledge base information.
  • extracting keywords reference may be made to related technologies, which will not be repeated in this embodiment.
  • the question and answer pair in the knowledge base can also save both the user's question and the reply message as a complete sentence.
  • the server of the customer service system can use a preset algorithm to match the received user question with the user question in the knowledge base question and answer pair one by one. If the matching is successful, then get The reply message of the matched question and answer pair.
  • the server can query whether there is a question-and-answer pair in the knowledge base that matches the user’s question, such as extracting keywords in the user’s question and storing it in the knowledge base. Query the keyword in the database; or directly match the user question with the user question in the knowledge base question and answer pair.
  • the reply message of the queried question and answer pair can be returned to the user.
  • This process does not require manual customer service to participate, and it can also be called intelligent customer service.
  • the customer service system when the customer service system receives a user question, on the one hand, it assigns a human customer service to the user question, and on the other hand, it can use the server to query whether there is a matching user question in the knowledge base. Q&A right.
  • the server will return the reply message in the queried Q&A pair to the client, and the client will display the received reply message through floating windows or embedded interfaces, and then the human customer service can determine whether the reply message is suitable for use as The reply message of the user's question, and operations such as editing and sending can be performed on the reply message.
  • the server informs the client that the query result is a query failure, and the client can notify the manual customer service of the query failure through a pop-up window, and listen to the reply message entered by the manual customer service in the conversation window, and the follow-up can be based on the reply message of the manual customer service To generate question and answer pairs.
  • Step S102 monitor the paste operation of the human customer service
  • Step S104 use the text corresponding to the paste operation as the current reply message of the current user question.
  • the customer service system can assign manual customer service to the user's problem through the server, and create a new conversation window on the client of the designated manual customer service to display the user's problem, and then monitor the conversation window through the client to obtain the manual customer service
  • the reply message monitored by the client can be called the current reply message.
  • a manual customer service such as randomly selecting a manual customer service that is in an idle state, or assigning a corresponding type of manual customer service to the user's problem according to the category to which the user belongs, etc., which can be assigned according to the actual situation.
  • a manual customer service such as randomly selecting a manual customer service that is in an idle state, or assigning a corresponding type of manual customer service to the user's problem according to the category to which the user belongs, etc., which can be assigned according to the actual situation.
  • assign a manual customer service such as randomly selecting a manual customer service that is in an idle state, or assigning a corresponding type of manual customer service to the user's problem according to the category to which the user belongs, etc., which can be assigned according to the actual situation.
  • the human customer service can manually enter the corresponding reply message in the input box of the conversation window.
  • the client can monitor the input operation in the conversation window and use the input as the current reply message.
  • the human customer service can also copy the reply message from other materials and paste it into the input box.
  • the client can monitor the paste operation in the conversation window, and use the text corresponding to the paste operation as the current reply message.
  • the pasted text is generally more fixed and used more frequently.
  • Monitoring the pasting operation of the client can increase the threshold for generating question and answer pairs, reduce low-quality question and answer pairs, and reduce customer service personnel
  • the workload of the review and at the same time, when the customer service staff does not conduct the review and automatically puts the question and answer into the database, the quality of the question and answer pair can be guaranteed to a certain extent.
  • Step S106 Determine the number of historical reply messages matching the current reply message in the current period, and the historical reply messages are input by the manual customer service.
  • the historical reply message may be manually input by a human customer service, or it may be input by a manual customer service by pasting.
  • the customer service system may store historical reply messages that the human customer service has replied on the server side, for example, maintain a list of historical reply messages.
  • the historical reply message and the timestamp of the historical reply message may be recorded, and the timestamp may be the reply time of the historical reply message.
  • the historical reply messages can be cleaned up regularly.
  • each historical reply message can be polled regularly, and the corresponding historical reply message can be judged whether the corresponding historical reply message has been longer than one month based on the timestamp. If it exceeds, the historical reply message can be deleted.
  • historical reply messages can be recorded in the historical reply message list, and the aging time can be set for the historical reply messages.
  • the aging time is the length of a cycle, such as 1 day, 1 week, or 1 month.
  • start timing when the historical reply message is stored in the list and delete the historical reply message when the aging time is exceeded. It is understandable that if the method of this embodiment is adopted, all historical reply messages in the list are in the "current period".
  • the reply message saved in the history reply message list is a complete sentence.
  • the reply message entered by the manual customer service is "today can be shipped"
  • the reply message is saved in the history reply message list.
  • the historical reply message list may also store one or more keywords of the reply message. For example, in the above example, it can be determined that the keywords of the reply message are "today” and "delivery", and then these two keywords can be saved.
  • the historical reply message list may also store the correspondence between reply messages and reply message keywords.
  • the entries shown in Table 1 can be saved.
  • the user question corresponding to the reply message can also be saved in the historical reply message list, which is determined according to actual needs and is not limited here.
  • the number of historical reply messages matching the current reply message in the current period can be determined through the steps shown in FIG. 2.
  • Step S1062 Obtain one or more keywords in the current reply message.
  • Step S1064 Judging whether the current reply message matches each historical reply message in the current period according to the keywords in the current reply message.
  • first search for historical reply messages in the current period corresponds to the method of recording historical reply messages. Taking the method of recording historical reply messages in the above two embodiments as an example, the following method can be used to find historical reply messages in the current period.
  • the method of recording the timestamp of historical reply messages for each historical reply message, it is judged whether it is in the current cycle according to the timestamp. For example, the time difference between the current time and the time stamp of the historical reply message can be calculated, and if the time difference is less than the duration of one period, it is determined that the historical reply message is in the current period.
  • the current reply messages can be compared with the historical reply messages one by one.
  • the keywords of the historical reply message can be compared with the keywords of the current reply message.
  • the ratio of the two keywords that are the same or similar is determined as the keyword matching rate. If the keyword matching rate exceeds a preset threshold, it can be considered that the current reply message matches the historical reply message.
  • the method for judging whether keywords are similar may include whether the distance between the word vectors of the keywords meets a preset condition; or a word database of synonyms may be established in advance. The specific method is determined according to actual needs, and is not limited here.
  • a historical reply message list is used to save historical reply messages, and the time stamp of each historical reply message is also recorded in the list, as shown in Table 2.
  • Timestamp 1 Can be shipped today delivery today 2020/1/1 7:00 2 The product is out of stock, please apply for a return Sold Out 2020/1/1 8:00 3 Delivery location is Guangzhou Guangzhou, delivery 2020/1/1 9:00
  • the current reply message is "The warehouse is already packing and will be shipped today", and the current time is 10:00 on 1/1, 2020.
  • the threshold of the keyword matching rate is 90%, it can be determined that the historical reply message with sequence number 1 matches the current reply message, and other historical reply messages do not match the current reply message.
  • reply message keywords are not saved, it is also necessary to first extract the keywords of the historical reply message to be compared, and then the extracted The keywords are compared with the keywords of the current reply message.
  • Step S1066 Count the number of historical reply messages matching the current reply message.
  • Step S108 If the number of historical reply messages meets a preset condition, a question-and-answer pair is generated according to the current reply message and the current user question.
  • the preset conditions may include a quantity threshold and a judgment condition. For example, when the number of historical reply messages is greater than the number threshold, the preset condition is met; or, when the number of historical reply messages is not less than the number threshold, the preset condition is met.
  • a relatively high number threshold can be set, for example, when the number of historical reply messages matching the current reply message is not less than 10 Next, generate question and answer pairs.
  • the number of question and answer pairs in the knowledge base is relatively small.
  • the requirement for the establishment of question and answer pairs is relatively low.
  • a relatively low number threshold can be set, such as the number of historical reply messages that match the current reply message. If there is no less than 1 item, a question-and-answer pair is generated.
  • this embodiment does not generate all user questions and reply messages to generate question and answer pairs, but uses preset conditions to set the threshold for generating question and answer pairs, and achieve The question-and-answer pairs of this generation threshold generally have relatively good reproducibility and generalizability.
  • the established question and answer pair may include the corresponding relationship between the keywords of the user’s question and the current reply message.
  • the specific method is as follows: First, the keyword in the user’s question is determined according to the user’s question, and the specific method of determining the keyword can be referred to Related technologies are not limited here.
  • step S104 if the user's question is "when will it be shipped", it can be determined that the keyword of the user's question is "delivery time".
  • the generated question and answer pairs can be as shown in Table 3.
  • Step S110 Store the question and answer pair in the knowledge base.
  • the customer service system may directly store the established question and answer pairs in the knowledge base for subsequent use in replying to messages.
  • the customer service system stores the question and answer pairs approved by the manual customer service in the knowledge base.
  • the client displays the question and answer pair through a floating window, and provides options such as pass and reject; then, the client obtains the manual customer service
  • the audit result is sent to the server; then, the server judges the audit result received from the client, and if the audit result indicates that the question and answer pair passed the audit, then the question and answer pair Add to the knowledge base; if the review result indicates that the question and answer pair has not passed the review, the question and answer pair will be deleted.
  • the customer service system can preset two knowledge bases, one is a personal knowledge base for each manual customer service, which can be used by the corresponding manual customer service personnel, and the other is a public knowledge base shared by the manual customer service All manual customer service use.
  • the customer service system can first display the Q&A pair to the human customer service who sent the current reply message in the Q&A pair, and the manual customer service will review the Q&A pair. If the review is passed, the Q&A pair will be stored To the personal knowledge base of the human customer service.
  • the Q&A pair can be displayed to multiple manual customer service personnel in a specific review team, and the review results of the multiple manual customer service personnel can be integrated. If the review is passed, the Q&A pair will be stored in public knowledge In the library.
  • the customer service system may store the question and answer pairs that have not been reviewed by the manual customer service in the knowledge base.
  • the customer service system can preset a timeout period, such as 3 days. If the manual customer service does not review the question and answer pair within the timeout period, the customer service system automatically adds the question and answer pair to the knowledge base.
  • the steps in Figure 1 can be applied to the server side of the customer service system.
  • the server side can receive the reply message monitored by the client, then perform processing such as matching the reply message, and finally generate and save the question and answer pair.
  • the steps in Figure 1 can also be applied to the client.
  • the client monitors the current reply message, and then determines the number of historical reply messages, and processes such as the generation and storage of question and answer pairs.
  • each step in FIG. 1 can also be performed by the client and the server respectively, which will not be repeated here.
  • a new question and answer pair can be generated.
  • the method in this embodiment can efficiently screen out reply messages with a high frequency of use, and has less human involvement, saving labor costs.
  • the method in this embodiment has good timeliness and consumes energy on the server. Also less.
  • this embodiment can greatly improve the efficiency of the customer service system in replying to messages.
  • the customer service system can extract the keywords in the user's question, and then search the knowledge base for question and answer pairs that match the keyword. If the query is successful, the reply message in the question and answer pair can be sent to the user to increase the automatic reply rate and reduce the manual participation rate; or the reply message in the question and answer pair can be displayed in the conversation window for reference by manual customer service.
  • the customer service can directly refer to the question and answer pair to reply, instead of manually inputting or consulting data, etc., greatly improving the reply speed.
  • this embodiment may also delete the question and answer pairs in the knowledge base.
  • question and answer pairs that are used less frequently can be deleted from the knowledge base.
  • the customer service system can preset a timeout period, such as 30 days. For each question and answer pair in the knowledge base, if a user question that matches the question and answer pair is not received within the timeout period, it will be deleted from the knowledge base. Q&A right.
  • this specification also provides an embodiment of a device for establishing a question and answer pair.
  • the embodiment of the device for establishing question-and-answer pairs in this specification can be applied to the server.
  • the device embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the server where it is located. From a hardware perspective, as shown in FIG. 3, an exemplary embodiment of this specification shows a structural schematic diagram of a device for establishing question and answer pairs, which is used to indicate a hardware of the server where the device for establishing question and answer pairs is located in this specification.
  • the server where the device is located in the embodiment usually includes other hardware according to the actual function of the server. Go into details.
  • Fig. 4 is a block diagram of a device for establishing question and answer pairs according to an exemplary embodiment of the present specification.
  • the device 400 for establishing question and answer pairs can be applied to the server shown in FIG.
  • the text corresponding to the pasting operation is used as the current reply message of the current user question;
  • the counting unit 406 is used to determine the number of historical reply messages matching the current reply message in the current period, and the historical reply message is input by the manual customer service Judging unit 408, if the number of historical reply messages meets a preset condition, generate question and answer pairs according to the current reply message and the current user question; storage unit 410, used to store the question and answer pairs in In the knowledge base.
  • the counting unit 406 is configured to: obtain one or more keywords in the current reply message; determine whether the current reply message matches each historical reply message in the current period according to the keywords; The number of historical reply messages matching the current reply message.
  • the generating a question-and-answer pair according to the current reply message and the current user question includes: obtaining one or more keywords in the current user question; saving the keyword and the current reply message The corresponding relationship of is used as the generated question and answer pair.
  • the storage unit 410 displays the question and answer pair to a human customer service through a visual interface; receives the review result sent by the manual customer service for the question and answer pair; and indicates that the question and answer pair has passed the review in the review result.
  • the question and answer pair is stored in the knowledge base; if the review result sent by the manual customer service for the question and answer pair is not received within the first preset time, the question and answer pair is stored in the knowledge base.
  • the device further includes: a first assigning unit 412, configured to: when a user question is received, query whether there is a question and answer pair matching the user question in the knowledge base; In the case of a matching question and answer pair, the reply message in the matching question and answer pair is returned as the reply message of the user question; in the case that there is no question and answer pair matching the user question, the user question is assigned Manual customer service.
  • a first assigning unit 412 configured to: when a user question is received, query whether there is a question and answer pair matching the user question in the knowledge base; In the case of a matching question and answer pair, the reply message in the matching question and answer pair is returned as the reply message of the user question; in the case that there is no question and answer pair matching the user question, the user question is assigned Manual customer service.
  • the device further includes: a second assigning unit 414, configured to: when a user problem is received, assign a manual customer service to the user problem, and query whether there is a problem in the knowledge base that is related to the user problem. Matched question and answer pair; in the case that there is a question and answer pair that matches the user's question, display the reply message of the matched question and answer pair to the human customer service.
  • a second assigning unit 414 configured to: when a user problem is received, assign a manual customer service to the user problem, and query whether there is a problem in the knowledge base that is related to the user problem. Matched question and answer pair; in the case that there is a question and answer pair that matches the user's question, display the reply message of the matched question and answer pair to the human customer service.
  • the device further includes: a deleting unit 416, configured to: for each question and answer pair in the knowledge base, in the case that a user question matching the question and answer pair is not received within a second preset time , Delete the question and answer pair from the knowledge base.
  • a deleting unit 416 configured to: for each question and answer pair in the knowledge base, in the case that a user question matching the question and answer pair is not received within a second preset time , Delete the question and answer pair from the knowledge base.
  • the device embodiment since it basically corresponds to the method embodiment, please refer to the part of the description of the method embodiment for related parts.
  • the device embodiments described above are merely illustrative, where the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative work.
  • a typical implementation device is a computer.
  • the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game control A console, a tablet computer, a wearable device, or a combination of any of these devices.
  • this specification also provides a device for establishing question and answer pairs.
  • the device includes a processor and a memory for storing machine executable instructions.
  • the processor and the memory are usually connected to each other via an internal bus.
  • the device may also include an external interface to be able to communicate with other devices or components.
  • the processor is prompted to: monitor the paste operation of the human customer service; and correspond to the paste operation
  • the text of is used as the current reply message of the current user question; the number of historical reply messages matching the current reply message in the current period is determined, and the historical reply message is input by the manual customer service; if the number of historical reply messages meets With a preset condition, a question-and-answer pair is generated according to the current reply message and the current user question; the question-and-answer pair is stored in the knowledge base.
  • the determining the number of historical reply messages matching the current reply message in the current period includes: acquiring one or more keywords in the current reply message; judging the current reply message according to the keywords Whether the reply message matches each historical reply message in the current period; count the number of historical reply messages matching the current reply message.
  • the generating a question-and-answer pair according to the current reply message and the current user question includes: obtaining one or more keywords in the current user question; saving the keyword and the current reply message The corresponding relationship of is used as the generated question and answer pair.
  • the storing the question and answer pair in the knowledge base includes: displaying the question and answer pair to a human customer service through a visual interface; receiving the review result sent by the manual customer service regarding the question and answer pair; if the review is The result indicates that the question and answer pair is approved, and the question and answer pair is stored in the knowledge base.
  • the storing the question-and-answer pair in the knowledge base further includes: if the review result sent by the manual customer service for the question-and-answer pair is not received within the first preset time, storing the question-and-answer pair The pair is stored in the knowledge base.
  • the following steps are also implemented: when a user question is received, query whether there is a question and answer pair that matches the user question in the knowledge base; if it exists, the reply message in the matched question and answer pair is sent Return as a reply message to the user question; if it does not exist, assign a human customer service to the user question.
  • the following steps are also implemented: when a user question is received, assign a human customer service to the user question, and query whether there is a question-and-answer pair matching the user question in the knowledge base;
  • the manual customer service displays the reply message in the matching question and answer pair.
  • the following step is further implemented: for each question and answer pair in the knowledge base, if a user question that matches the question and answer pair is not received within a second preset time, delete the question and answer pair from the knowledge base Q&A right.
  • this specification also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented: Paste operation of manual customer service; use the text corresponding to the paste operation as the current reply message of the current user question; determine the number of historical reply messages matching the current reply message in the current period, and the historical reply message is determined by the manual Customer service input; if the number of historical reply messages meets a preset condition, a question-and-answer pair is generated according to the current reply message and the current user question; the question-and-answer pair is stored in the knowledge base.
  • the determining the number of historical reply messages matching the current reply message in the current period includes: acquiring one or more keywords in the current reply message; judging the current reply message according to the keywords Whether the reply message matches each historical reply message in the current period; count the number of historical reply messages matching the current reply message.
  • the generating a question-and-answer pair according to the current reply message and the current user question includes: obtaining one or more keywords in the current user question; saving the keyword and the current reply message The corresponding relationship of is used as the generated question and answer pair.
  • the storing the question and answer pair in the knowledge base includes: displaying the question and answer pair to a human customer service through a visual interface; receiving the review result sent by the manual customer service regarding the question and answer pair; if the review is The result indicates that the question and answer pair is approved, and the question and answer pair is stored in the knowledge base.
  • the storing the question-and-answer pair in the knowledge base further includes: if the review result sent by the manual customer service for the question-and-answer pair is not received within the first preset time, storing the question-and-answer pair The pair is stored in the knowledge base.
  • the following steps are further implemented: when a user question is received, query whether there is a question and answer pair that matches the user question in the knowledge base; if there is, the reply message in the matched question and answer pair is sent Return as a reply message to the user question; if it does not exist, assign a human customer service to the user question.
  • the following steps are also implemented: when a user question is received, assign a human customer service to the user question, and query whether there is a question-and-answer pair matching the user question in the knowledge base;
  • the manual customer service displays the reply message in the matching question and answer pair.
  • the following step is further implemented: for each question and answer pair in the knowledge base, if a user question that matches the question and answer pair is not received within a second preset time, delete the question and answer pair from the knowledge base Q&A right.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method and device for establishing a question-answer pair. The method comprises: monitoring a pasting operation of a manual customer service (S102); taking a text corresponding to the pasting operation as a current reply message of the current user question (S104); determining the number of historical reply messages matching the current reply message within the current period, the historical reply messages being input by the manual customer service (S106); if the number of the historical reply messages satisfies a preset condition, generating a question-answer pair according to the current reply message and the current user question (S108); and storing the question-answer pair in a knowledge base (S110).

Description

一种建立问答对的方法及装置Method and device for establishing question and answer pairs 技术领域Technical field
本说明书涉及互联网技术领域,尤其涉及一种建立问答对的方法及装置。This specification relates to the field of Internet technology, and in particular to a method and device for establishing question and answer pairs.
背景技术Background technique
在咨询、客服等即时通信技术的应用场景中,往往需要回复很多相同的问题。为了能提高消息的回复效率,系统通常会预设标准的问答对,使得在后续接收到相同问题时能提高回复速度。In application scenarios of instant messaging technologies such as consultation and customer service, many of the same questions often need to be answered. In order to improve the efficiency of message reply, the system usually presets standard question and answer pairs, so that the reply speed can be increased when the same question is received later.
然而,问答对的建立需要收集大量的问题和回复消息,具有一定的滞后性,如何及时建立问答对已成为亟待解决的问题。However, the establishment of question and answer pairs requires the collection of a large number of questions and reply messages, which has a certain lag. How to establish question and answer pairs in a timely manner has become an urgent problem to be solved.
发明内容Summary of the invention
有鉴于此,本说明书提供一种建立问答对的方法及装置。In view of this, this specification provides a method and device for establishing question and answer pairs.
具体地,本说明书是通过如下技术方案实现的:一种建立问答对的方法,所述方法包括:监听到人工客服的粘贴操作;将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;将所述问答对存储到知识库中。Specifically, this specification is implemented through the following technical solution: a method for establishing a question and answer pair, the method includes: monitoring a paste operation of a human customer service; and using the text corresponding to the paste operation as the current reply message to the current user question ; Determine the number of historical reply messages matching the current reply message in the current period, the historical reply message is input by the manual customer service; if the number of historical reply messages meets a preset condition, according to the current reply The message and the current user question generate a question and answer pair; the question and answer pair is stored in the knowledge base.
一种建立问答对的装置,所述装置包括:监听单元,用于监听到人工客服的粘贴操作;获取单元,用于将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;计数单元,用于确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;判断单元,用于若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;存储单元,用于将所述问答对存储到知识库中。A device for establishing question and answer pairs, the device comprising: a monitoring unit for monitoring a paste operation of a human customer service; an acquisition unit for taking the text corresponding to the pasting operation as a current reply message to a current user question; and a counting unit , Used to determine the number of historical reply messages matching the current reply message in the current period, the historical reply message being input by the manual customer service; the judging unit, used to determine if the number of historical reply messages meets a preset condition , The question and answer pair is generated according to the current reply message and the current user question; the storage unit is used to store the question and answer pair in the knowledge base.
一种建立问答对的装置,包括:处理器;用于存储机器可执行指令的存储器;其中,通过读取并执行所述存储器存储的与建立问答对的方法对应的机器可执行指令,所述处理器被促使:监听到人工客服的粘贴操作;将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;确定当前周期内与所述当前回复消息匹配的历史回复消息的数量, 所述历史回复消息由所述人工客服输入;若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;将所述问答对存储到知识库中。A device for establishing question and answer pairs includes: a processor; a memory for storing machine executable instructions; wherein, by reading and executing the machine executable instructions corresponding to the method for establishing question and answer pairs stored in the memory, the The processor is prompted to: monitor the paste operation of the human customer service; use the text corresponding to the paste operation as the current reply message of the current user question; determine the number of historical reply messages matching the current reply message in the current period, the The historical reply message is input by the manual customer service; if the number of historical reply messages meets a preset condition, a question-and-answer pair is generated based on the current reply message and the current user question; the question-and-answer pair is stored in the knowledge base .
本说明书一个实施例实现了,监听人工客服的粘贴操作,并将粘贴操作对应的文本作为当前回复消息,然后将该回复消息与当前周期内的历史回复消息进行匹配。在相匹配的历史回复消息的数量满足预设条件的情况下,根据该回复消息、以及对应的用户问题生成问答对,并将问答对存储到知识库中。在本实施例中,若一个周期内监听到人工客服多次输入相似的回复消息,则说明该回复消息被使用的频率较高,后续可以根据该回复消息、以及对应的用户问题生成并保存问答对。An embodiment of this specification realizes that the pasting operation of the human customer service is monitored, and the text corresponding to the pasting operation is used as the current reply message, and then the reply message is matched with the historical reply message in the current period. When the number of matched historical reply messages meets the preset condition, a question-and-answer pair is generated according to the reply message and the corresponding user question, and the question-and-answer pair is stored in the knowledge base. In this embodiment, if it is monitored that the human customer service enters similar reply messages multiple times in a cycle, it means that the reply message is used more frequently. Subsequent questions and answers can be generated and saved based on the reply message and the corresponding user question. right.
与传统的手动录入问答对相比,本实施例的方法节省了人工成本,且效率较高;与通过机器学习的算法来建立问答对相比,本实施例的方法既减轻了服务器性能压力,又具有更好的时效性。Compared with the traditional manual entry of question and answer pairs, the method of this embodiment saves labor costs and is more efficient; compared with the establishment of question and answer pairs through machine learning algorithms, the method of this embodiment not only reduces the pressure on server performance, It also has better timeliness.
附图说明Description of the drawings
图1是本说明书一示例性实施例示出的一种建立问答对方法的流程示意图。Fig. 1 is a schematic flowchart of a method for establishing question and answer pairs according to an exemplary embodiment of the present specification.
图2是本说明书一示例性实施例示出的另一种建立问答对方法的流程示意图。Fig. 2 is a schematic flowchart of another method for establishing question and answer pairs according to an exemplary embodiment of the present specification.
图3是本说明书一示例性实施例示出的一种用于建立问答对装置的一结构示意图。Fig. 3 is a schematic structural diagram of an apparatus for establishing question and answer pairs according to an exemplary embodiment of the present specification.
图4是本说明书一示例性实施例示出的一种建立问答对装置的框图。Fig. 4 is a block diagram of a device for establishing question and answer pairs according to an exemplary embodiment of the present specification.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with this specification. On the contrary, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this specification are only for the purpose of describing specific embodiments, and are not intended to limit the specification. The singular forms of "a", "said" and "the" used in this specification and appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在 不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to a certainty".
客服系统是指用于回复用户咨询的问题的系统,为了提高回复效率,主要是针对重复问题的回复效率,可以建立问答对,所述问答对通常为问题和答案之间的映射关系。客服系统在接收到用户问题时,可以查询问答对,若查询到对应的答案可自动回复给用户,或者给出回复消息的参考。然而,面对大量的用户问题和回复消息,如何对其进行筛选以及时建立有效的问答对,成了亟待解决的问题。The customer service system refers to a system for responding to user inquiries. In order to improve the response efficiency, it is mainly aimed at the response efficiency of repeated questions. A question and answer pair can be established, and the question and answer pair is usually a mapping relationship between the question and the answer. When the customer service system receives the user's question, it can query the question and answer pair, and if the corresponding answer is inquired, it can automatically reply to the user, or give a reference to the reply message. However, in the face of a large number of user questions and reply messages, how to screen them and establish effective question and answer pairs in a timely manner has become an urgent problem to be solved.
在相关技术中,可以采用人工手动录入的方式来建立问答对。例如,人工客服可以根据经验,将出现频率较高的用户问题、以及该用户问题对应的答复消息录入到保存问答对的知识库中。In related technologies, manual input can be used to establish question-and-answer pairs. For example, a human customer service can, based on experience, enter a user question with a higher frequency and a reply message corresponding to the user question into the knowledge base that stores the question and answer pairs.
然而,人工手动录入的方法虽然准确较高,但是手动操作的效率低,不能及时地添加问答对。However, although the manual input method is more accurate, the manual operation efficiency is low, and the question and answer pairs cannot be added in time.
在另一种相关技术中,还可以采用智能算法来进行数据挖掘,以建立问答对。在这种方法中,客服系统通常需要获取大量的用户问题和对应的回复消息,然后根据这些数据来建立模型,以挖掘出有效的问答对。In another related technology, intelligent algorithms can also be used for data mining to establish question-and-answer pairs. In this method, the customer service system usually needs to obtain a large number of user questions and corresponding reply messages, and then build a model based on these data to dig out effective question and answer pairs.
然而,本方法需要预先收集大量数据,使得建立的问答对较为滞后,不能及时添加有时效性的用户问题。此外,这种方法建立的问答对的准确性低,并且需要大量计算,耗费设备性能。However, this method requires a large amount of data to be collected in advance, making the establishment of question and answer pairs lagging behind, and time-sensitive user questions cannot be added in time. In addition, the question-and-answer pairs established by this method have low accuracy, require a lot of calculations, and consume equipment performance.
有鉴于此,本说明书提出了一种建立问答对的方法。本说明书中,可监听人工客服针对用户问题输入的回复消息,然后将该回复消息与当前周期内的历史回复消息进行匹配。在相匹配的历史回复消息的数量满足预设条件的情况下,根据该回复消息、以及对应的用户问题生成问答对。In view of this, this manual proposes a method for establishing question-and-answer pairs. In this manual, you can monitor the reply message entered by the manual customer service for the user's question, and then match the reply message with the historical reply message in the current period. When the number of matching historical reply messages meets the preset condition, a question-and-answer pair is generated according to the reply message and the corresponding user question.
与相关技术相比,本说明书的方法人工参与较少,对服务器的压力也较小,在高效率的建立问答对的同时,也能具有较高的准确性和及时性。Compared with related technologies, the method of this manual has less manual participation and less pressure on the server. While establishing question and answer pairs efficiently, it can also have higher accuracy and timeliness.
本说明书方法应用于客服系统,该客服系统的客户端可通过会话窗口展示用户问题、回复消息或者其他提示消息等,该客服系统的服务端存储有知识库,并执行计算、查找等较为复杂的处理。客户端与服务端可以通过网络进行交互。The method of this manual is applied to a customer service system. The client of the customer service system can display user questions, reply messages or other prompt messages through the conversation window. The server of the customer service system stores a knowledge base and performs calculations and searches. deal with. The client and server can interact through the network.
其中,知识库为用于保存问答对的数据库或数据表。在客服系统建立初期,可以通 过用户手工录入的方式向知识库添加使用频率较高的问答对,而后,可以根据本说明书方法生成问答对,并存储到知识库中。Among them, the knowledge base is a database or data table used to store question and answer pairs. In the initial stage of the establishment of the customer service system, users can manually input question and answer pairs that are frequently used to the knowledge base. Then, question and answer pairs can be generated according to the method in this manual and stored in the knowledge base.
可选地,知识库中的问答对可以以问题的关键词作为用户问题,以完整的句子作为回复消息。在接收到用户问题并查询匹配的问答对时,客服系统的服务端可以使用预设的算法来获取该用户问题中的一个或多个关键词,然后在知识库中查询该关键词对应的回复消息。提取关键词的具体方法可以参考相关技术,本实施例中不再赘述。Optionally, the question-and-answer pair in the knowledge base can use the key words of the question as the user's question, and the complete sentence as the reply message. When receiving a user question and querying the matching question and answer pair, the server of the customer service system can use a preset algorithm to obtain one or more keywords in the user question, and then query the response corresponding to the keyword in the knowledge base information. For the specific method of extracting keywords, reference may be made to related technologies, which will not be repeated in this embodiment.
可选地,知识库中的问答对也可以将用户问题和回复消息均保存为完整的句子。在接收到用户问题并查询匹配的问答对时,客服系统的服务端可以使用预设算法,将接收到的用户问题与知识库问答对中的用户问题一一进行匹配,若匹配成功,则获取该匹配到的问答对中的回复消息。将两个完整句子进行匹配的方法较多,例如使用zSearch进行分词匹配,本实施例中不再赘述。Optionally, the question and answer pair in the knowledge base can also save both the user's question and the reply message as a complete sentence. When receiving a user question and querying the matching question and answer pair, the server of the customer service system can use a preset algorithm to match the received user question with the user question in the knowledge base question and answer pair one by one. If the matching is successful, then get The reply message of the matched question and answer pair. There are many methods for matching two complete sentences, such as using zSearch for word segmentation matching, which will not be repeated in this embodiment.
在一个可选的实施例中,当客服系统接收到用户问题后,服务端可查询知识库中是否存在与该用户问题相匹配的问答对,例如提取用户问题中的关键词,并在知识库中查询该关键词;或者直接将用户问题与知识库问答对中的用户问题进行分词匹配。In an optional embodiment, after the customer service system receives the user’s question, the server can query whether there is a question-and-answer pair in the knowledge base that matches the user’s question, such as extracting keywords in the user’s question and storing it in the knowledge base. Query the keyword in the database; or directly match the user question with the user question in the knowledge base question and answer pair.
若查询成功,则可将查询到的问答对的回复消息返回给用户。这个过程无需人工客服参与,也可称之为智能客服。If the query is successful, the reply message of the queried question and answer pair can be returned to the user. This process does not require manual customer service to participate, and it can also be called intelligent customer service.
若查询失败,则为该用户问题指派人工客服,并监听会话窗口中人工客服输入的回复消息,后续可基于人工客服的回复消息来生成问答对。If the query fails, assign a human customer service to the user's question, and listen to the reply message input by the manual customer service in the conversation window, and subsequently generate a question and answer pair based on the reply message of the manual customer service.
在另一个可选的实施例中,当客服系统接收到用户问题后,一方面为该用户问题指派人工客服,另一方面可通过服务端来查询知识库中是否存在与该用户问题相匹配的问答对。In another optional embodiment, when the customer service system receives a user question, on the one hand, it assigns a human customer service to the user question, and on the other hand, it can use the server to query whether there is a matching user question in the knowledge base. Q&A right.
若查询成功,则服务端将查询到的问答对中的回复消息返回给客户端,客户端通过浮窗或嵌入界面等方式展示接收到的回复消息,然后人工客服可以判断该回复消息是否适合作为该用户问题的回复消息,并可对该回复消息执行编辑、发送等操作。If the query is successful, the server will return the reply message in the queried Q&A pair to the client, and the client will display the received reply message through floating windows or embedded interfaces, and then the human customer service can determine whether the reply message is suitable for use as The reply message of the user's question, and operations such as editing and sending can be performed on the reply message.
若查询失败,则服务端通知客户端查询结果为查询失败,客户端可以以弹窗等方式通知人工客服查询失败,并监听会话窗口中人工客服输入的回复消息,后续可基于人工客服的回复消息来生成问答对。If the query fails, the server informs the client that the query result is a query failure, and the client can notify the manual customer service of the query failure through a pop-up window, and listen to the reply message entered by the manual customer service in the conversation window, and the follow-up can be based on the reply message of the manual customer service To generate question and answer pairs.
可见,知识库中的问答对内容越完善,客服系统回复用户问题的效率越高。It can be seen that the more complete the content of the question and answer in the knowledge base, the more efficient the customer service system will be to respond to user questions.
下面结合图1来对本说明书中建立问答对的方法进行说明。The method for establishing question and answer pairs in this specification will be described below in conjunction with FIG. 1.
如图1所示,包括以下步骤:步骤S102:监听到人工客服的粘贴操作;步骤S104:将所述粘贴操作对应的文本作为当前用户问题的当前回复消息。As shown in Fig. 1, the following steps are included: Step S102: monitor the paste operation of the human customer service; Step S104: use the text corresponding to the paste operation as the current reply message of the current user question.
本步骤,客服系统可以通过服务端来为用户问题指派人工客服,并在该指定的人工客服的客户端新建立一会话窗口,展示该用户问题,然后通过客户端来监听会话窗口,获取人工客服输入的回复消息,为便于区分,可将客户端监听到的回复消息称为当前回复消息。In this step, the customer service system can assign manual customer service to the user's problem through the server, and create a new conversation window on the client of the designated manual customer service to display the user's problem, and then monitor the conversation window through the client to obtain the manual customer service In order to distinguish the input reply message, the reply message monitored by the client can be called the current reply message.
其中,指派人工客服的方法有多种,例如随机选择一位处于空闲状态的人工客服,或者根据用户所属的类别为该用户问题指派对应类别的人工客服等,具体可以根据实际情况来指派,这里不进行限定。Among them, there are many ways to assign a manual customer service, such as randomly selecting a manual customer service that is in an idle state, or assigning a corresponding type of manual customer service to the user's problem according to the category to which the user belongs, etc., which can be assigned according to the actual situation. Here Not limited.
人工客服在接收到用户问题后,可以在会话窗口的输入框中手动输入对应的回复消息。客户端可以监听会话窗口中的输入操作,将输入的内容作为当前回复消息。After receiving the user's question, the human customer service can manually enter the corresponding reply message in the input box of the conversation window. The client can monitor the input operation in the conversation window and use the input as the current reply message.
或者,人工客服也可以从其他资料中复制回复消息并将粘贴到输入框中。客户端可以监听会话窗口中的粘贴操作,并将该粘贴操作对应的文本作为当前回复消息。Alternatively, the human customer service can also copy the reply message from other materials and paste it into the input box. The client can monitor the paste operation in the conversation window, and use the text corresponding to the paste operation as the current reply message.
举例来说,假设用户问题为:“请问什么时候发货”,人工客服可以针对该问题手动输入或者粘贴输入回复消息“仓库已经在打包,今天发货”,客户端将该“仓库已经在打包,今天发货”作为当前回复消息。For example, suppose the user’s question is: "When will it be shipped", the human customer service can manually enter or paste the reply message "The warehouse is already packing, shipping today" for this question, and the client will say "The warehouse is already packing." , Ship today" as the current reply message.
需要说明的是,与输入的文本相比,一般情况下粘贴的文本更固定且使用频率更高,监听客户端的粘贴操作可以提高问答对的生成门槛,减少低质量的问答对,降低客服人员在审核时的工作量,同时,在客服人员不进行审核而将问答自动入库时,可以在一定程度上保证问答对的质量。It should be noted that compared with the input text, the pasted text is generally more fixed and used more frequently. Monitoring the pasting operation of the client can increase the threshold for generating question and answer pairs, reduce low-quality question and answer pairs, and reduce customer service personnel The workload of the review, and at the same time, when the customer service staff does not conduct the review and automatically puts the question and answer into the database, the quality of the question and answer pair can be guaranteed to a certain extent.
步骤S106:确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入。Step S106: Determine the number of historical reply messages matching the current reply message in the current period, and the historical reply messages are input by the manual customer service.
其中,历史回复消息可以是人工客服手动输入,也可以是人工客服通过粘贴的方式输入。Among them, the historical reply message may be manually input by a human customer service, or it may be input by a manual customer service by pasting.
本实施例中,客服系统可以在服务端保存人工客服曾回复过的历史回复消息,例如维护历史回复消息列表。In this embodiment, the customer service system may store historical reply messages that the human customer service has replied on the server side, for example, maintain a list of historical reply messages.
作为一个可选的实施例,可以记录历史回复消息和该历史回复消息的时间戳,所述 时间戳可以为所述历史回复消息的回复时间。可选地,为了防止数据过多降低查询效率,可以定时对历史回复消息进行清理。As an optional embodiment, the historical reply message and the timestamp of the historical reply message may be recorded, and the timestamp may be the reply time of the historical reply message. Optionally, in order to prevent excessive data from reducing query efficiency, the historical reply messages can be cleaned up regularly.
以时间周期是1个月为例,可以定时轮询各历史回复消息,根据时间戳判断对应历史回复消息距今时长是否超出一个月,若超出,则可删除所述历史回复消息。Taking the time period of 1 month as an example, each historical reply message can be polled regularly, and the corresponding historical reply message can be judged whether the corresponding historical reply message has been longer than one month based on the timestamp. If it exceeds, the historical reply message can be deleted.
作为另一个可选的实施例,可以在历史回复消息列表中记录历史回复消息,并为该历史回复消息设置老化时间。该老化时间即为一个周期的时长,例如1天、1周或1个月等。针对每条历史回复消息,从该历史回复消息存储到列表中时开始计时,当超过老化时间时,删除该历史回复消息。可以理解的是,若采用本实施例的方法,则列表中的所有历史回复消息均处于“当前周期”。As another optional embodiment, historical reply messages can be recorded in the historical reply message list, and the aging time can be set for the historical reply messages. The aging time is the length of a cycle, such as 1 day, 1 week, or 1 month. For each historical reply message, start timing when the historical reply message is stored in the list, and delete the historical reply message when the aging time is exceeded. It is understandable that if the method of this embodiment is adopted, all historical reply messages in the list are in the "current period".
可选地,历史回复消息列表中保存的回复消息为完整的句子。Optionally, the reply message saved in the history reply message list is a complete sentence.
例如针对用户问题,人工客服的输入的回复消息为“今天可以发货”,则将该回复消息保存到历史回复消息列表中。For example, for a user problem, if the reply message entered by the manual customer service is "today can be shipped", the reply message is saved in the history reply message list.
可选地,历史回复消息列表也可以保存回复消息的一个或多个关键词。例如上述例子中,可以确定该回复消息的关键词为“今天”、“发货”,则可以保存这两个关键词。Optionally, the historical reply message list may also store one or more keywords of the reply message. For example, in the above example, it can be determined that the keywords of the reply message are "today" and "delivery", and then these two keywords can be saved.
可选地,历史回复消息列表还可以保存回复消息与回复消息关键词的对应关系。例如上述例子中,可以保存如表1所示的表项。Optionally, the historical reply message list may also store the correspondence between reply messages and reply message keywords. For example, in the above example, the entries shown in Table 1 can be saved.
回复消息Reply message 回复消息关键词Reply message keywords 时间戳Timestamp
今天可以发货Can be shipped today 今天、发货delivery today 2020/1/1 00:002020/1/1 00:00
表1Table 1
当然,历史回复消息列表中还可以保存与回复消息对应的用户问题,根据实际需求而定,这里不进行限定。Of course, the user question corresponding to the reply message can also be saved in the historical reply message list, which is determined according to actual needs and is not limited here.
作为一个可选的实施例,可以通过如图2所示的步骤来确定当前周期内与当前回复消息匹配的历史回复消息的数量。As an optional embodiment, the number of historical reply messages matching the current reply message in the current period can be determined through the steps shown in FIG. 2.
步骤S1062:获取当前回复消息中的一个或多个关键词。Step S1062: Obtain one or more keywords in the current reply message.
以步骤S104中的当前回复消息为例,可以确定“仓库已经在打包,今天发货”中的关键词为“今天”和“发货”。Taking the current reply message in step S104 as an example, it can be determined that the keywords in "the warehouse is already packing and shipping today" are "today" and "shipping".
步骤S1064:根据当前回复消息中的关键词判断当前回复消息与当前周期内各历史 回复消息是否匹配。Step S1064: Judging whether the current reply message matches each historical reply message in the current period according to the keywords in the current reply message.
本步骤中,首先查找处于当前周期内的历史回复消息。查找的方法与记录历史回复消息的方法相对应,以上述两个实施例中的记录历史回复消息的方法为例,可以采用下述方法来查找当前周期内的历史回复消息。In this step, first search for historical reply messages in the current period. The method of searching corresponds to the method of recording historical reply messages. Taking the method of recording historical reply messages in the above two embodiments as an example, the following method can be used to find historical reply messages in the current period.
若采用记录历史回复消息时间戳的方法,针对每条历史回复消息,根据时间戳判断其是否处于当前周期。例如可以计算当前时刻与该历史回复消息时间戳的时间差,若该时间差小于一个周期的时长,则确定该历史回复消息处于当前周期。If the method of recording the timestamp of historical reply messages is adopted, for each historical reply message, it is judged whether it is in the current cycle according to the timestamp. For example, the time difference between the current time and the time stamp of the historical reply message can be calculated, and if the time difference is less than the duration of one period, it is determined that the historical reply message is in the current period.
若采用在记录历史回复消息时,还为每条历史回复消息设置老化时间的方法,则记录的历史回复消息均处于当前周期,无需再次判断。If the method of setting the aging time for each historical reply message is adopted when recording historical reply messages, the recorded historical reply messages are all in the current period, and there is no need to judge again.
在确定处于当前周期内的历史回复消息后,可以将当前回复消息与历史回复消息一一进行比对。After determining the historical reply messages in the current period, the current reply messages can be compared with the historical reply messages one by one.
可选地,可以将历史回复消息的关键词与当前回复消息的关键词进行比对。将两者相同或相似的关键词的比例确定为关键词匹配率,若该关键词匹配率超过预设阈值,则可以认为当前回复消息与该历史回复消息匹配。其中,判断关键词是否相似的方法可以包括根据关键词的词向量之间的距离是否满足预设条件;或者可以预先建立同义词的词语库等,具体方法根据实际需求来确定,这里不进行限定。Optionally, the keywords of the historical reply message can be compared with the keywords of the current reply message. The ratio of the two keywords that are the same or similar is determined as the keyword matching rate. If the keyword matching rate exceeds a preset threshold, it can be considered that the current reply message matches the historical reply message. Among them, the method for judging whether keywords are similar may include whether the distance between the word vectors of the keywords meets a preset condition; or a word database of synonyms may be established in advance. The specific method is determined according to actual needs, and is not limited here.
假设使用历史回复消息列表来保存历史回复消息,且该列表中还记录各历史回复消息的时间戳,如表2所示。Suppose that a historical reply message list is used to save historical reply messages, and the time stamp of each historical reply message is also recorded in the list, as shown in Table 2.
序号Serial number 回复消息Reply message 回复消息关键词Reply message keywords 时间戳Timestamp
11 今天可以发货Can be shipped today 今天、发货delivery today 2020/1/1 7:002020/1/1 7:00
22 商品无货,请您申请退货The product is out of stock, please apply for a return 无货Sold Out 2020/1/1 8:002020/1/1 8:00
33 发货地点是广州Delivery location is Guangzhou 广州、发货Guangzhou, delivery 2020/1/1 9:002020/1/1 9:00
表2Table 2
假设当前回复消息为“仓库已经在打包,今天发货”,当前时刻为2020/1/1 10:00。计算表2中各历史回复消息与当前时刻的时间差,分别为3小时、2小时和1小时,以周期时长为1周为例,可以确定表2中的各历史回复消息均处于当前周期。Suppose that the current reply message is "The warehouse is already packing and will be shipped today", and the current time is 10:00 on 1/1, 2020. Calculate the time difference between each historical reply message in Table 2 and the current moment, which are 3 hours, 2 hours, and 1 hour, respectively. Taking a period of 1 week as an example, it can be determined that each historical reply message in Table 2 is in the current period.
将当前回复消息的关键词(即“今天”、“发货”)与表2中的各历史回复消息的关键词比对,可以确定,序号为1的历史回复消息与当前回复消息的关键词匹配率为 100%;序号为2的历史回复消息与当前回复消息的关键词匹配率为0%;序号为3的历史回复消息与当前回复消息的关键词匹配率为50%。Compare the keywords of the current reply message (ie, "today", "delivery") with the keywords of each historical reply message in Table 2, and you can determine that the historical reply message with serial number 1 and the keywords of the current reply message The matching rate is 100%; the keyword matching rate of the historical reply message with serial number 2 and the current reply message is 0%; the keyword matching rate of the historical reply message with serial number 3 and the current reply message is 50%.
假设关键词匹配率的阈值为90%,则可以确定序号为1的历史回复消息与当前回复消息匹配,其他历史回复消息与当前回复消息不匹配。Assuming that the threshold of the keyword matching rate is 90%, it can be determined that the historical reply message with sequence number 1 matches the current reply message, and other historical reply messages do not match the current reply message.
在另一实施例中,如果历史消息列表中仅保存回复消息的完整句子,而未保存回复消息关键词,则还需要先提取待比对的历史回复消息的关键词,然后再将该提取的关键词与当前回复消息的关键词进行比对。In another embodiment, if only the complete sentence of the reply message is saved in the history message list, but the reply message keywords are not saved, it is also necessary to first extract the keywords of the historical reply message to be compared, and then the extracted The keywords are compared with the keywords of the current reply message.
步骤S1066:统计与当前回复消息匹配的历史回复消息的数量。Step S1066: Count the number of historical reply messages matching the current reply message.
在上述例子中,可以确定与当前回复消息匹配的历史回复消息共有1条。In the above example, it can be determined that there is one historical reply message matching the current reply message.
步骤S108:若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对。Step S108: If the number of historical reply messages meets a preset condition, a question-and-answer pair is generated according to the current reply message and the current user question.
其中,预设条件可以包括数量阈值和判断条件。例如当历史回复消息的数量大于数量阈值时满足预设条件;或者,当历史回复消息的数量不小于数量阈值时满足预设条件。Among them, the preset conditions may include a quantity threshold and a judgment condition. For example, when the number of historical reply messages is greater than the number threshold, the preset condition is met; or, when the number of historical reply messages is not less than the number threshold, the preset condition is met.
若知识库中的问答对数量较多,则一般对问答对建立的要求较高,可以设定比较高的数量阈值,例如在与当前回复消息匹配的历史回复消息的数量不小于10条的情况下,生成问答对。If there are a large number of question and answer pairs in the knowledge base, the requirements for the establishment of question and answer pairs are generally higher, and a relatively high number threshold can be set, for example, when the number of historical reply messages matching the current reply message is not less than 10 Next, generate question and answer pairs.
或者,在知识库建立初期,知识库中的问答对数量较少,一般对问答对建立的要求较低,可以设定比较低的数量阈值,例如在与当前回复消息匹配的历史回复消息的数量不小于1条的情况下,生成问答对。Or, in the initial stage of the establishment of the knowledge base, the number of question and answer pairs in the knowledge base is relatively small. Generally, the requirement for the establishment of question and answer pairs is relatively low. A relatively low number threshold can be set, such as the number of historical reply messages that match the current reply message. If there is no less than 1 item, a question-and-answer pair is generated.
可以理解的是,由于单次的回答不具有可推广性,本实施例没有将所有的用户问题和回复消息都生成问答对,而是利用预设条件来设定了生成问答对的门槛,达到该生成门槛的问答对,一般都具有较为良好的可复制性和可推广性。It is understandable that since a single answer is not generalizable, this embodiment does not generate all user questions and reply messages to generate question and answer pairs, but uses preset conditions to set the threshold for generating question and answer pairs, and achieve The question-and-answer pairs of this generation threshold generally have relatively good reproducibility and generalizability.
本实施例中,建立的问答对可以包括用户问题的关键词与当前回复消息的对应关系,具体方法如下:首先,根据用户问题确定该用户问题中的关键词,确定关键词的具体方法可以参考相关技术,这里不进行限定。In this embodiment, the established question and answer pair may include the corresponding relationship between the keywords of the user’s question and the current reply message. The specific method is as follows: First, the keyword in the user’s question is determined according to the user’s question, and the specific method of determining the keyword can be referred to Related technologies are not limited here.
仍以步骤S104中的例子为例,用户问题为“请问什么时候发货”,则可以确定该用户问题的关键词为“发货时间”。Still taking the example in step S104 as an example, if the user's question is "when will it be shipped", it can be determined that the keyword of the user's question is "delivery time".
然后,保存上述关键词与当前回复消息的对应关系,作为生成的所述问答对。Then, the corresponding relationship between the above keywords and the current reply message is saved as the generated question and answer pair.
在上述例子中,生成的问答对可以如表3所示。In the above example, the generated question and answer pairs can be as shown in Table 3.
用户问题User problem 答复消息Reply message
发货时间Delivery time 仓库已经在打包,今天发货The warehouse is already packing and will ship today
表3table 3
步骤S110:将所述问答对存储到知识库中。Step S110: Store the question and answer pair in the knowledge base.
作为一个可选的实施例,客服系统可以将建立的问答对直接存储到知识库中,供后续回复消息时使用。As an optional embodiment, the customer service system may directly store the established question and answer pairs in the knowledge base for subsequent use in replying to messages.
作为另一个可选的实施例,客服系统将人工客服审核通过的问答对存储到知识库中。As another optional embodiment, the customer service system stores the question and answer pairs approved by the manual customer service in the knowledge base.
首先,通过客户端的可视化界面向人工客服展示所述问答对,并提供审核选项,例如,客户端通过悬浮窗口的方式展示问答对,并提供通过、拒绝等可选项;然后,客户端获取人工客服针对该问答对的审核结果,并将该审核结果发送给服务端;接着,服务端对从客户端接收到的审核结果进行判断,若该审核结果指示该问答对通过审核,则将该问答对添加到知识库中;若该审核结果指示该问答对未通过审核,则删除该问答对。First, display the question and answer pair to the human customer service through the visual interface of the client, and provide review options. For example, the client displays the question and answer pair through a floating window, and provides options such as pass and reject; then, the client obtains the manual customer service According to the audit result of the question and answer pair, the audit result is sent to the server; then, the server judges the audit result received from the client, and if the audit result indicates that the question and answer pair passed the audit, then the question and answer pair Add to the knowledge base; if the review result indicates that the question and answer pair has not passed the review, the question and answer pair will be deleted.
可选地,客服系统可以预设有两种知识库,一种为每个人工客服的个人知识库,可供对应的人工客服个人使用,另一种为人工客服公用的公共知识库,可供所有人工客服使用。Optionally, the customer service system can preset two knowledge bases, one is a personal knowledge base for each manual customer service, which can be used by the corresponding manual customer service personnel, and the other is a public knowledge base shared by the manual customer service All manual customer service use.
针对新建立的问答对,客服系统可先将该问答对展示给发送该问答对中的当前回复消息的人工客服,该人工客服对该问答对进行审核,若审核通过,则将该问答对存储到该人工客服的个人知识库中。For the newly created Q&A pair, the customer service system can first display the Q&A pair to the human customer service who sent the current reply message in the Q&A pair, and the manual customer service will review the Q&A pair. If the review is passed, the Q&A pair will be stored To the personal knowledge base of the human customer service.
在该人工客服审核通过后,还可以将该问答对展示给特定的审核小组中的多位人工客服,综合该多位人工客服的审核结果,若审核通过,则将该问答对存储到公共知识库中。After the manual customer service is approved, the Q&A pair can be displayed to multiple manual customer service personnel in a specific review team, and the review results of the multiple manual customer service personnel can be integrated. If the review is passed, the Q&A pair will be stored in public knowledge In the library.
作为另一个可选的实施例,客服系统可以将人工客服未审核的问答对存储到知识库中。客服系统可以预设一个超时时间,例如3天,若在该超时时间内,人工客服未对问答对进行审核,则客服系统自动将该问答对添加到知识库中。As another optional embodiment, the customer service system may store the question and answer pairs that have not been reviewed by the manual customer service in the knowledge base. The customer service system can preset a timeout period, such as 3 days. If the manual customer service does not review the question and answer pair within the timeout period, the customer service system automatically adds the question and answer pair to the knowledge base.
至此,完成了图1所示的流程。图1中的各个步骤,可以应用于客服系统的服务端,例如服务端可以接收客户端监听到的回复消息,然后对该回复消息进行匹配等处理,最后生成并保存问答对。或者,图1的各个步骤也可以应用于客户端,例如客户端监听当 前回复消息,然后进行历史回复消息的数量确定,以及问答对的生成和保存等处理。当然,图1的各个步骤也可以由客户端和服务端分别执行,这里不再赘述。So far, the process shown in Figure 1 is completed. The steps in Figure 1 can be applied to the server side of the customer service system. For example, the server side can receive the reply message monitored by the client, then perform processing such as matching the reply message, and finally generate and save the question and answer pair. Alternatively, the steps in Figure 1 can also be applied to the client. For example, the client monitors the current reply message, and then determines the number of historical reply messages, and processes such as the generation and storage of question and answer pairs. Of course, each step in FIG. 1 can also be performed by the client and the server respectively, which will not be repeated here.
通过图1所示的方法,可以生成新的问答对。本实施例中的方法,能高效率地筛选出使用频率较高的回复消息,并且人为参与少,节省了人工成本,同时,本实施例的方法具有很好的时效性,对服务器的耗能也较少。Through the method shown in Figure 1, a new question and answer pair can be generated. The method in this embodiment can efficiently screen out reply messages with a high frequency of use, and has less human involvement, saving labor costs. At the same time, the method in this embodiment has good timeliness and consumes energy on the server. Also less.
通过将生成的问答对存储到知识库中,本实施例可以大大提高客服系统回复消息的效率。客服系统在接收到用户问题后,可以提取该用户问题中的关键词,然后在知识库中查询与该关键词匹配的问答对。若查询成功,则可以将该问答对中的回复消息发送给用户,提升自动回复率,降低了人工参与率;或者可以将该问答对中的回复消息展示在会话窗口,供人工客服参考,人工客服可以直接参考该问答对进行回复,而避免了手动输入或查阅资料等,大大提高回复速度。By storing the generated question and answer pairs in the knowledge base, this embodiment can greatly improve the efficiency of the customer service system in replying to messages. After receiving the user's question, the customer service system can extract the keywords in the user's question, and then search the knowledge base for question and answer pairs that match the keyword. If the query is successful, the reply message in the question and answer pair can be sent to the user to increase the automatic reply rate and reduce the manual participation rate; or the reply message in the question and answer pair can be displayed in the conversation window for reference by manual customer service. The customer service can directly refer to the question and answer pair to reply, instead of manually inputting or consulting data, etc., greatly improving the reply speed.
此外,为了防止知识库中的问答对数量过多影响查询效率,本实施例还可以对知识库中的问答对进行删除。In addition, in order to prevent the excessive number of question and answer pairs in the knowledge base from affecting the query efficiency, this embodiment may also delete the question and answer pairs in the knowledge base.
可选地,可以将使用频率较低的问答对从知识库中删除。例如客服系统可以预设一个超时时间,例如30天,针对知识库中的每一个问答对,若在该超时时间内未接收到与该问答对相匹配的用户问题,则从知识库中删除该问答对。Optionally, question and answer pairs that are used less frequently can be deleted from the knowledge base. For example, the customer service system can preset a timeout period, such as 30 days. For each question and answer pair in the knowledge base, if a user question that matches the question and answer pair is not received within the timeout period, it will be deleted from the knowledge base. Q&A right.
与前述建立问答对方法的实施例相对应,本说明书还提供了建立问答对装置的实施例。Corresponding to the foregoing embodiment of the method for establishing a question and answer pair, this specification also provides an embodiment of a device for establishing a question and answer pair.
本说明书建立问答对装置的实施例可以应用在服务器上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在服务器的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图3所示,为本说明书一示例性实施例示出的一种用于建立问答对装置的一结构示意图,用于示意本说明书建立问答对装置所在服务器的一种硬件结构,除了图3所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的服务器通常根据该服务器的实际功能,还可以包括其他硬件,对此不再赘述。The embodiment of the device for establishing question-and-answer pairs in this specification can be applied to the server. The device embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the server where it is located. From a hardware perspective, as shown in FIG. 3, an exemplary embodiment of this specification shows a structural schematic diagram of a device for establishing question and answer pairs, which is used to indicate a hardware of the server where the device for establishing question and answer pairs is located in this specification. In addition to the processor, memory, network interface, and non-volatile memory shown in FIG. 3, the server where the device is located in the embodiment usually includes other hardware according to the actual function of the server. Go into details.
图4是本说明书一示例性实施例示出的一种建立问答对装置的框图。Fig. 4 is a block diagram of a device for establishing question and answer pairs according to an exemplary embodiment of the present specification.
请参考图4,所述建立问答对的装置400可以应用在前述图3所示的服务器中,包括有:监听单元402,用于监听到人工客服的粘贴操作;获取单元404,用于将所述粘 贴操作对应的文本作为当前用户问题的当前回复消息;计数单元406,用于确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;判断单元408,用于若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;存储单元410,用于将所述问答对存储到知识库中。Please refer to FIG. 4, the device 400 for establishing question and answer pairs can be applied to the server shown in FIG. The text corresponding to the pasting operation is used as the current reply message of the current user question; the counting unit 406 is used to determine the number of historical reply messages matching the current reply message in the current period, and the historical reply message is input by the manual customer service Judging unit 408, if the number of historical reply messages meets a preset condition, generate question and answer pairs according to the current reply message and the current user question; storage unit 410, used to store the question and answer pairs in In the knowledge base.
可选地,所述计数单元406用于:获取所述当前回复消息中的一个或多个关键词;根据所述关键词判断所述当前回复消息与当前周期内各历史回复消息是否匹配;统计与所述当前回复消息匹配的历史回复消息的数量。Optionally, the counting unit 406 is configured to: obtain one or more keywords in the current reply message; determine whether the current reply message matches each historical reply message in the current period according to the keywords; The number of historical reply messages matching the current reply message.
可选地,所述根据所述当前回复消息和所述当前用户问题生成问答对,包括:获取所述当前用户问题中的一个或多个关键词;保存所述关键词与所述当前回复消息的对应关系,作为生成的所述问答对。Optionally, the generating a question-and-answer pair according to the current reply message and the current user question includes: obtaining one or more keywords in the current user question; saving the keyword and the current reply message The corresponding relationship of is used as the generated question and answer pair.
可选地,所述存储单元410:通过可视化界面向人工客服展示所述问答对;接收所述人工客服针对所述问答对发送的审核结果;在所述审核结果指示所述问答对通过审核的情况下,将所述问答对存储至知识库;在第一预设时间内未接收到所述人工客服针对所述问答对发送的审核结果的情况下,将所述问答对存储至知识库。Optionally, the storage unit 410: displays the question and answer pair to a human customer service through a visual interface; receives the review result sent by the manual customer service for the question and answer pair; and indicates that the question and answer pair has passed the review in the review result. In this case, the question and answer pair is stored in the knowledge base; if the review result sent by the manual customer service for the question and answer pair is not received within the first preset time, the question and answer pair is stored in the knowledge base.
可选地,所述装置还包括:第一指派单元412,用于:在接收到用户问题时,查询所述知识库中是否存在与该用户问题相匹配的问答对;在存在与用户问题相匹配的问答对的情况下,将所述相匹配的问答对中的回复消息作为该用户问题的回复消息返回;在不存在与用户问题相匹配的问答对的情况下,为所述用户问题指派人工客服。Optionally, the device further includes: a first assigning unit 412, configured to: when a user question is received, query whether there is a question and answer pair matching the user question in the knowledge base; In the case of a matching question and answer pair, the reply message in the matching question and answer pair is returned as the reply message of the user question; in the case that there is no question and answer pair matching the user question, the user question is assigned Manual customer service.
可选地,所述装置还包括:第二指派单元414,用于:在接收到用户问题时,为所述用户问题指派人工客服,并查询所述知识库中是否存在与所述用户问题相匹配的问答对;在存在与用户问题相匹配的问答对的情况下,向所述人工客服展示相匹配的问答对中的回复消息。Optionally, the device further includes: a second assigning unit 414, configured to: when a user problem is received, assign a manual customer service to the user problem, and query whether there is a problem in the knowledge base that is related to the user problem. Matched question and answer pair; in the case that there is a question and answer pair that matches the user's question, display the reply message of the matched question and answer pair to the human customer service.
可选地,所述装置还包括:删除单元416,用于:针对所述知识库中的各问答对,在第二预设时间内未接收到与该问答对相匹配的用户问题的情况下,从所述知识库中删除该问答对。Optionally, the device further includes: a deleting unit 416, configured to: for each question and answer pair in the knowledge base, in the case that a user question matching the question and answer pair is not received within a second preset time , Delete the question and answer pair from the knowledge base.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and roles of each unit in the above-mentioned device, refer to the implementation process of the corresponding steps in the above-mentioned method for details, which will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实 施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, please refer to the part of the description of the method embodiment for related parts. The device embodiments described above are merely illustrative, where the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative work.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules, or units explained in the foregoing embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. The specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game control A console, a tablet computer, a wearable device, or a combination of any of these devices.
与前述建立问答对的方法的实施例相对应,本说明书还提供一种建立问答对的装置,该装置包括:处理器以及用于存储机器可执行指令的存储器。其中,处理器和存储器通常借由内部总线相互连接。在其他可能的实现方式中,所述设备还可能包括外部接口,以能够与其他设备或者部件进行通信。Corresponding to the foregoing embodiment of the method for establishing question and answer pairs, this specification also provides a device for establishing question and answer pairs. The device includes a processor and a memory for storing machine executable instructions. Among them, the processor and the memory are usually connected to each other via an internal bus. In other possible implementation manners, the device may also include an external interface to be able to communicate with other devices or components.
在本实施例中,通过读取并执行所述存储器存储的与建立问答对的逻辑对应的机器可执行指令,所述处理器被促使:监听到人工客服的粘贴操作;将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;将所述问答对存储到知识库中。In this embodiment, by reading and executing the machine executable instructions stored in the memory and corresponding to the logic for establishing question and answer pairs, the processor is prompted to: monitor the paste operation of the human customer service; and correspond to the paste operation The text of is used as the current reply message of the current user question; the number of historical reply messages matching the current reply message in the current period is determined, and the historical reply message is input by the manual customer service; if the number of historical reply messages meets With a preset condition, a question-and-answer pair is generated according to the current reply message and the current user question; the question-and-answer pair is stored in the knowledge base.
可选地,所述确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,包括:获取所述当前回复消息中的一个或多个关键词;根据所述关键词判断所述当前回复消息与当前周期内各历史回复消息是否匹配;统计与所述当前回复消息匹配的历史回复消息的数量。Optionally, the determining the number of historical reply messages matching the current reply message in the current period includes: acquiring one or more keywords in the current reply message; judging the current reply message according to the keywords Whether the reply message matches each historical reply message in the current period; count the number of historical reply messages matching the current reply message.
可选地,所述根据所述当前回复消息和所述当前用户问题生成问答对,包括:获取所述当前用户问题中的一个或多个关键词;保存所述关键词与所述当前回复消息的对应关系,作为生成的所述问答对。Optionally, the generating a question-and-answer pair according to the current reply message and the current user question includes: obtaining one or more keywords in the current user question; saving the keyword and the current reply message The corresponding relationship of is used as the generated question and answer pair.
可选地,所述将所述问答对存储到知识库中,包括:通过可视化界面向人工客服展示所述问答对;接收所述人工客服针对所述问答对发送的审核结果;若所述审核结果 指示所述问答对通过审核,则将所述问答对存储至知识库。Optionally, the storing the question and answer pair in the knowledge base includes: displaying the question and answer pair to a human customer service through a visual interface; receiving the review result sent by the manual customer service regarding the question and answer pair; if the review is The result indicates that the question and answer pair is approved, and the question and answer pair is stored in the knowledge base.
可选地,所述将所述问答对存储到知识库中,还包括:若在第一预设时间内未接收到所述人工客服针对所述问答对发送的审核结果,则将所述问答对存储至知识库。Optionally, the storing the question-and-answer pair in the knowledge base further includes: if the review result sent by the manual customer service for the question-and-answer pair is not received within the first preset time, storing the question-and-answer pair The pair is stored in the knowledge base.
可选地,还实现以下步骤:在接收到用户问题时,查询所述知识库中是否存在与该用户问题相匹配的问答对;若存在,则将所述相匹配的问答对中的回复消息作为该用户问题的回复消息返回;若不存在,则为所述用户问题指派人工客服。Optionally, the following steps are also implemented: when a user question is received, query whether there is a question and answer pair that matches the user question in the knowledge base; if it exists, the reply message in the matched question and answer pair is sent Return as a reply message to the user question; if it does not exist, assign a human customer service to the user question.
可选地,还实现以下步骤:在接收到用户问题时,为所述用户问题指派人工客服,并查询所述知识库中是否存在与所述用户问题相匹配的问答对;若存在,则向所述人工客服展示相匹配的问答对中的回复消息。Optionally, the following steps are also implemented: when a user question is received, assign a human customer service to the user question, and query whether there is a question-and-answer pair matching the user question in the knowledge base; The manual customer service displays the reply message in the matching question and answer pair.
可选地,还实现以下步骤:针对所述知识库中的各问答对,若在第二预设时间内未接收到与该问答对相匹配的用户问题,则从所述知识库中删除该问答对。Optionally, the following step is further implemented: for each question and answer pair in the knowledge base, if a user question that matches the question and answer pair is not received within a second preset time, delete the question and answer pair from the knowledge base Q&A right.
与前述建立问答对方法的实施例相对应,本说明书还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现以下步骤:监听到人工客服的粘贴操作;将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;将所述问答对存储到知识库中。Corresponding to the foregoing embodiment of the method for establishing question and answer pairs, this specification also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented: Paste operation of manual customer service; use the text corresponding to the paste operation as the current reply message of the current user question; determine the number of historical reply messages matching the current reply message in the current period, and the historical reply message is determined by the manual Customer service input; if the number of historical reply messages meets a preset condition, a question-and-answer pair is generated according to the current reply message and the current user question; the question-and-answer pair is stored in the knowledge base.
可选地,所述确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,包括:获取所述当前回复消息中的一个或多个关键词;根据所述关键词判断所述当前回复消息与当前周期内各历史回复消息是否匹配;统计与所述当前回复消息匹配的历史回复消息的数量。Optionally, the determining the number of historical reply messages matching the current reply message in the current period includes: acquiring one or more keywords in the current reply message; judging the current reply message according to the keywords Whether the reply message matches each historical reply message in the current period; count the number of historical reply messages matching the current reply message.
可选地,所述根据所述当前回复消息和所述当前用户问题生成问答对,包括:获取所述当前用户问题中的一个或多个关键词;保存所述关键词与所述当前回复消息的对应关系,作为生成的所述问答对。Optionally, the generating a question-and-answer pair according to the current reply message and the current user question includes: obtaining one or more keywords in the current user question; saving the keyword and the current reply message The corresponding relationship of is used as the generated question and answer pair.
可选地,所述将所述问答对存储到知识库中,包括:通过可视化界面向人工客服展示所述问答对;接收所述人工客服针对所述问答对发送的审核结果;若所述审核结果指示所述问答对通过审核,则将所述问答对存储至知识库。Optionally, the storing the question and answer pair in the knowledge base includes: displaying the question and answer pair to a human customer service through a visual interface; receiving the review result sent by the manual customer service regarding the question and answer pair; if the review is The result indicates that the question and answer pair is approved, and the question and answer pair is stored in the knowledge base.
可选地,所述将所述问答对存储到知识库中,还包括:若在第一预设时间内未接收到所述人工客服针对所述问答对发送的审核结果,则将所述问答对存储至知识库。Optionally, the storing the question-and-answer pair in the knowledge base further includes: if the review result sent by the manual customer service for the question-and-answer pair is not received within the first preset time, storing the question-and-answer pair The pair is stored in the knowledge base.
可选地,还实现以下步骤:在接收到用户问题时,查询所述知识库中是否存在与该用户问题相匹配的问答对;若存在,则将所述相匹配的问答对中的回复消息作为该用户问题的回复消息返回;若不存在,则为所述用户问题指派人工客服。Optionally, the following steps are further implemented: when a user question is received, query whether there is a question and answer pair that matches the user question in the knowledge base; if there is, the reply message in the matched question and answer pair is sent Return as a reply message to the user question; if it does not exist, assign a human customer service to the user question.
可选地,还实现以下步骤:在接收到用户问题时,为所述用户问题指派人工客服,并查询所述知识库中是否存在与所述用户问题相匹配的问答对;若存在,则向所述人工客服展示相匹配的问答对中的回复消息。Optionally, the following steps are also implemented: when a user question is received, assign a human customer service to the user question, and query whether there is a question-and-answer pair matching the user question in the knowledge base; The manual customer service displays the reply message in the matching question and answer pair.
可选地,还实现以下步骤:针对所述知识库中的各问答对,若在第二预设时间内未接收到与该问答对相匹配的用户问题,则从所述知识库中删除该问答对。Optionally, the following step is further implemented: for each question and answer pair in the knowledge base, if a user question that matches the question and answer pair is not received within a second preset time, delete the question and answer pair from the knowledge base Q&A right.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。The above descriptions are only the preferred embodiments of this specification and are not intended to limit this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in this specification. Within the scope of protection.

Claims (17)

  1. 一种建立问答对的方法,所述方法包括:A method for establishing question and answer pairs, the method comprising:
    监听到人工客服的粘贴操作;Monitor the paste operation of the manual customer service;
    将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;Use the text corresponding to the paste operation as the current reply message to the current user question;
    确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;Determining the number of historical reply messages matching the current reply message in the current period, the historical reply message being input by the manual customer service;
    若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;If the number of historical reply messages meets a preset condition, generating a question-and-answer pair according to the current reply message and the current user question;
    将所述问答对存储到知识库中。Store the question and answer pair in the knowledge base.
  2. 根据权利要求1所述的方法,所述确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,包括:The method according to claim 1, wherein the determining the number of historical reply messages matching the current reply message in the current period comprises:
    获取所述当前回复消息中的一个或多个关键词;Obtain one or more keywords in the current reply message;
    根据所述关键词判断所述当前回复消息与当前周期内各历史回复消息是否匹配;Judging whether the current reply message matches each historical reply message in the current period according to the keyword;
    统计与所述当前回复消息匹配的历史回复消息的数量。Count the number of historical reply messages matching the current reply message.
  3. 根据权利要求1所述的方法,所述根据所述当前回复消息和所述当前用户问题生成问答对,包括:The method according to claim 1, wherein said generating a question-and-answer pair according to said current reply message and said current user question comprises:
    获取所述当前用户问题中的一个或多个关键词;Obtain one or more keywords in the current user question;
    保存所述关键词与所述当前回复消息的对应关系,作为生成的所述问答对。The corresponding relationship between the keyword and the current reply message is saved as the generated question and answer pair.
  4. 根据权利要求1所述的方法,所述将所述问答对存储到知识库中,包括:The method according to claim 1, said storing said question-and-answer pair in a knowledge base, comprising:
    通过可视化界面向人工客服展示所述问答对;Display the question and answer pair to the human customer service through a visual interface;
    接收所述人工客服针对所述问答对发送的审核结果;Receiving the review result sent by the manual customer service for the question and answer pair;
    若所述审核结果指示所述问答对通过审核,则将所述问答对存储至知识库。If the review result indicates that the question and answer pair passes the review, the question and answer pair is stored in the knowledge base.
  5. 根据权利要求4所述的方法,所述将所述问答对存储到知识库中,还包括:The method according to claim 4, said storing said question and answer pair in a knowledge base, further comprising:
    若在第一预设时间内未接收到所述人工客服针对所述问答对发送的审核结果,则将所述问答对存储至知识库。If the review result sent by the manual customer service for the question and answer pair is not received within the first preset time, the question and answer pair is stored in the knowledge base.
  6. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    在接收到用户问题时,查询所述知识库中是否存在与该用户问题相匹配的问答对;When a user question is received, query whether there is a question and answer pair matching the user question in the knowledge base;
    若存在,则将所述相匹配的问答对中的回复消息作为该用户问题的回复消息返回;If it exists, return the reply message in the matched question-and-answer pair as the reply message of the user question;
    若不存在,则为所述用户问题指派人工客服。If it does not exist, assign a human customer service to the user problem.
  7. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    在接收到用户问题时,为所述用户问题指派人工客服,并查询所述知识库中是否存 在与所述用户问题相匹配的问答对;When receiving a user question, assign a human customer service to the user question, and query whether there is a question-and-answer pair matching the user question in the knowledge base;
    若存在,则向所述人工客服展示相匹配的问答对中的回复消息。If it exists, display the reply message of the matching question and answer pair to the human customer service.
  8. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    针对所述知识库中的各问答对,若在第二预设时间内未接收到与该问答对相匹配的用户问题,则从所述知识库中删除该问答对。For each question-answer pair in the knowledge base, if a user question matching the question-answer pair is not received within the second preset time, the question-answer pair is deleted from the knowledge base.
  9. 一种建立问答对的装置,所述装置包括:A device for establishing question and answer pairs, the device comprising:
    监听单元,用于监听到人工客服的粘贴操作;The monitoring unit is used to monitor the paste operation of the manual customer service;
    获取单元,用于将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;An obtaining unit, configured to use the text corresponding to the paste operation as the current reply message to the current user question;
    计数单元,用于确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;A counting unit, configured to determine the number of historical reply messages matching the current reply message in the current period, the historical reply messages being input by the manual customer service;
    判断单元,用于若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;A judging unit, configured to generate a question-and-answer pair according to the current reply message and the current user question if the number of the historical reply messages meets a preset condition;
    存储单元,用于将所述问答对存储到知识库中。The storage unit is used to store the question and answer pair in the knowledge base.
  10. 根据权利要求9所述的装置,所述计数单元用于:The device according to claim 9, wherein the counting unit is used for:
    获取所述当前回复消息中的一个或多个关键词;Obtain one or more keywords in the current reply message;
    根据所述关键词判断所述当前回复消息与当前周期内各历史回复消息是否匹配;Judging whether the current reply message matches each historical reply message in the current period according to the keyword;
    统计与所述当前回复消息匹配的历史回复消息的数量。Count the number of historical reply messages matching the current reply message.
  11. 根据权利要求9所述的装置,所述根据所述当前回复消息和所述当前用户问题生成问答对,包括:The apparatus according to claim 9, wherein said generating a question-and-answer pair according to said current reply message and said current user question comprises:
    获取所述当前用户问题中的一个或多个关键词;Obtain one or more keywords in the current user question;
    保存所述关键词与所述当前回复消息的对应关系,作为生成的所述问答对。The corresponding relationship between the keyword and the current reply message is saved as the generated question and answer pair.
  12. 根据权利要求9所述的装置,所述存储单元:The device according to claim 9, wherein the storage unit:
    通过可视化界面向人工客服展示所述问答对;Display the question and answer pair to the human customer service through a visual interface;
    接收所述人工客服针对所述问答对发送的审核结果;Receiving the review result sent by the manual customer service for the question and answer pair;
    在所述审核结果指示所述问答对通过审核的情况下,将所述问答对存储至知识库。In the case where the review result indicates that the question and answer pair passes the review, the question and answer pair is stored in the knowledge base.
  13. 根据权利要求12所述的装置,所述存储单元:The device according to claim 12, the storage unit:
    在第一预设时间内未接收到所述人工客服针对所述问答对发送的审核结果的情况下,将所述问答对存储至知识库。If the review result sent by the manual customer service for the question and answer pair is not received within the first preset time, the question and answer pair is stored in the knowledge base.
  14. 根据权利要求9所述的装置,所述装置还包括:The device according to claim 9, further comprising:
    第一指派单元,用于在接收到用户问题时,查询所述知识库中是否存在与该用户问题相匹配的问答对;在存在与用户问题相匹配的问答对的情况下,将所述相匹配的问答 对中的回复消息作为该用户问题的回复消息返回;在不存在与用户问题相匹配的问答对的情况下,为所述用户问题指派人工客服。The first assignment unit is used to query whether there is a question and answer pair matching the user question in the knowledge base when a user question is received; if there is a question and answer pair matching the user question, compare the corresponding question and answer pair The reply message in the matched question and answer pair is returned as the reply message of the user question; if there is no question and answer pair matching the user question, manual customer service is assigned to the user question.
  15. 根据权利要求9所述的装置,所述装置还包括:The device according to claim 9, further comprising:
    第二指派单元,用于在接收到用户问题时,为所述用户问题指派人工客服,并查询所述知识库中是否存在与所述用户问题相匹配的问答对;在存在与用户问题相匹配的问答对的情况下,向所述人工客服展示相匹配的问答对中的回复消息。The second assignment unit is used to assign a human customer service to the user question when the user question is received, and to query whether there is a question and answer pair matching the user question in the knowledge base; when there is a question matching the user question In the case of a question-and-answer pair, the response message of the matching question-and-answer pair is displayed to the human customer service.
  16. 根据权利要求9所述的装置,所述装置还包括:The device according to claim 9, further comprising:
    删除单元,用于针对所述知识库中的各问答对,在第二预设时间内未接收到与该问答对相匹配的用户问题的情况下,从所述知识库中删除该问答对。The deleting unit is configured to delete the question and answer pair from the knowledge base when the user question matching the question and answer pair is not received within the second preset time for each question and answer pair in the knowledge base.
  17. 一种建立问答对的装置,包括:A device for establishing question and answer pairs, including:
    处理器;processor;
    用于存储机器可执行指令的存储器;Memory used to store machine executable instructions;
    其中,通过读取并执行所述存储器存储的与建立问答对的逻辑对应的机器可执行指令,所述处理器被促使:Wherein, by reading and executing the machine executable instructions stored in the memory and corresponding to the logic for establishing question and answer pairs, the processor is prompted to:
    监听到人工客服的粘贴操作;Monitor the paste operation of the manual customer service;
    将所述粘贴操作对应的文本作为当前用户问题的当前回复消息;Use the text corresponding to the paste operation as the current reply message to the current user question;
    确定当前周期内与所述当前回复消息匹配的历史回复消息的数量,所述历史回复消息由所述人工客服输入;Determining the number of historical reply messages matching the current reply message in the current period, the historical reply message being input by the manual customer service;
    若所述历史回复消息的数量满足预设条件,则根据所述当前回复消息和所述当前用户问题生成问答对;If the number of historical reply messages meets a preset condition, generating a question-and-answer pair according to the current reply message and the current user question;
    将所述问答对存储到知识库中。Store the question and answer pair in the knowledge base.
PCT/CN2021/097937 2020-06-05 2021-06-02 Method and device for establishing question-answer pair WO2021244574A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010504143.1 2020-06-05
CN202010504143.1A CN111400482B (en) 2020-06-05 2020-06-05 Method and device for establishing question-answer pairs

Publications (1)

Publication Number Publication Date
WO2021244574A1 true WO2021244574A1 (en) 2021-12-09

Family

ID=71429940

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097937 WO2021244574A1 (en) 2020-06-05 2021-06-02 Method and device for establishing question-answer pair

Country Status (2)

Country Link
CN (2) CN112131338B (en)
WO (1) WO2021244574A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114490975A (en) * 2021-12-31 2022-05-13 马上消费金融股份有限公司 User question labeling method and device
CN115907785A (en) * 2022-11-22 2023-04-04 深圳市米糠云科技有限公司 Intelligent customer service question and answer assisting method and device based on associated keywords

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131338B (en) * 2020-06-05 2024-02-09 支付宝(杭州)信息技术有限公司 Method and device for establishing question-answer pairs
CN112632232B (en) * 2021-03-09 2022-03-15 北京世纪好未来教育科技有限公司 Text matching method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150088998A1 (en) * 2013-09-26 2015-03-26 International Business Machines Corporation Automatic Question Generation and Answering Based on Monitored Messaging Sessions
CN109308240A (en) * 2017-07-26 2019-02-05 腾讯科技(深圳)有限公司 Operation processing method and device, storage medium
CN110162603A (en) * 2018-11-30 2019-08-23 腾讯科技(深圳)有限公司 A kind of Intelligent dialogue method, dynamic storage method and device
CN110445707A (en) * 2019-07-23 2019-11-12 精硕科技(北京)股份有限公司 Message processing method and device
CN111400482A (en) * 2020-06-05 2020-07-10 支付宝(杭州)信息技术有限公司 Method and device for establishing question-answer pairs

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335400B (en) * 2014-07-22 2018-11-23 阿里巴巴集团控股有限公司 Enquirement for user is intended to obtain the method and device of answer information
CN105786851A (en) * 2014-12-23 2016-07-20 北京奇虎科技有限公司 Question and answer knowledge base construction method as well as search provision method and apparatus
US9858335B2 (en) * 2015-04-21 2018-01-02 International Business Machines Corporation Providing searching strategy in connection with answering question in message
CN108763494B (en) * 2018-05-30 2020-02-21 苏州思必驰信息科技有限公司 Knowledge sharing method between conversation systems, conversation method and device
CN109408624B (en) * 2018-11-06 2020-11-27 江西师范大学 Visual chat robot session generation method
CN110457453A (en) * 2019-07-12 2019-11-15 平安普惠企业管理有限公司 Customer problem and customer service interconnection method, device, medium, electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150088998A1 (en) * 2013-09-26 2015-03-26 International Business Machines Corporation Automatic Question Generation and Answering Based on Monitored Messaging Sessions
CN109308240A (en) * 2017-07-26 2019-02-05 腾讯科技(深圳)有限公司 Operation processing method and device, storage medium
CN110162603A (en) * 2018-11-30 2019-08-23 腾讯科技(深圳)有限公司 A kind of Intelligent dialogue method, dynamic storage method and device
CN110445707A (en) * 2019-07-23 2019-11-12 精硕科技(北京)股份有限公司 Message processing method and device
CN111400482A (en) * 2020-06-05 2020-07-10 支付宝(杭州)信息技术有限公司 Method and device for establishing question-answer pairs

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114490975A (en) * 2021-12-31 2022-05-13 马上消费金融股份有限公司 User question labeling method and device
CN115907785A (en) * 2022-11-22 2023-04-04 深圳市米糠云科技有限公司 Intelligent customer service question and answer assisting method and device based on associated keywords
CN115907785B (en) * 2022-11-22 2023-09-19 深圳市米糠云科技有限公司 Customer service question-answering intelligent auxiliary method and device based on associated keywords

Also Published As

Publication number Publication date
CN111400482A (en) 2020-07-10
CN112131338B (en) 2024-02-09
CN111400482B (en) 2020-09-01
CN112131338A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
WO2021244574A1 (en) Method and device for establishing question-answer pair
US11455599B2 (en) Systems and methods for improved meeting engagement
TWI615792B (en) Session content combining method and system
US8296372B2 (en) Method and system for merging electronic messages
CN106095842B (en) Online course searching method and device
CN111353693A (en) Work order dispatching, processing and analyzing system and method thereof
CN114124861A (en) Message group sending method and device, computer equipment and storage medium
US20190042950A1 (en) Learning computing activities and relationships using graphs
US20130339082A1 (en) Contextual information retrieval for groupware integration
US20220318319A1 (en) Focus Events
US11593741B2 (en) Personal data fusion
US20090083221A1 (en) System and Method for Estimating and Storing Skills for Reuse
CN111444287A (en) Graph database construction method, associated information query method, device and computing equipment
CN113127307A (en) Method for processing tracing request, related device, system and storage medium
WO2023222109A1 (en) Network wakeup management method and apparatus, electronic device, and storage medium
US20200186371A1 (en) Apparatus and method
US11429877B2 (en) Unified logging of actions for labeling
JP2016021178A (en) Associated topic display control device, associated topic display control method, and program
US11650998B2 (en) Determining authoritative documents based on implicit interlinking and communication signals
US20190042951A1 (en) Analysis of computing activities using graph data structures
WO2017024966A1 (en) Table classification method and device
CN115062676B (en) Data processing method, device and computer readable storage medium
CN112818223B (en) User portrait query processing method, device, equipment, program product and medium
US20200026923A1 (en) System for automatically detecting new home construction progress
EP1515255A2 (en) Participant segmentation for managing communications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21818412

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21818412

Country of ref document: EP

Kind code of ref document: A1