WO2021135322A1 - Automatic question setting method, apparatus and system - Google Patents

Automatic question setting method, apparatus and system Download PDF

Info

Publication number
WO2021135322A1
WO2021135322A1 PCT/CN2020/111954 CN2020111954W WO2021135322A1 WO 2021135322 A1 WO2021135322 A1 WO 2021135322A1 CN 2020111954 W CN2020111954 W CN 2020111954W WO 2021135322 A1 WO2021135322 A1 WO 2021135322A1
Authority
WO
WIPO (PCT)
Prior art keywords
question
answer
matching degree
code
matching
Prior art date
Application number
PCT/CN2020/111954
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 苏宁云计算有限公司
Priority to CA3166342A priority Critical patent/CA3166342A1/en
Publication of WO2021135322A1 publication Critical patent/WO2021135322A1/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/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis

Definitions

  • This application relates to the field of question and answer questions, and in particular to a method, device and system for automatically generating questions.
  • the intelligent customer service of an e-commerce platform is a question and answer scenario with users.
  • a question bank is set up in advance, and the test questions are selected from the question bank in accordance with a certain rule, such as a sequence, to simulate the user asking questions to the intelligent customer service to obtain the answer of the intelligent customer service, so as to detect the accuracy of the intelligent customer service's answer.
  • a certain rule such as a sequence
  • This application provides an automatic question generation method, device and system to solve the problem that the real scene cannot be simulated when simulating question and answer in the prior art, so that there is no relevance between the previous questions and the previous questions.
  • the first aspect of the present application provides a method for automatically generating questions, and the method includes:
  • the candidate test question is used as a target test question to be asked.
  • the method further includes:
  • the next question in the question bank is used as the target test question to be asked.
  • the calculating the first degree of matching between the question and answer content of each historical test question and the question and answer content of the current test question includes:
  • the first degree of matching is calculated according to the degree of matching between the question and the answer.
  • the selecting the next question of the first historical question with the highest matching degree as the candidate question includes:
  • the next question of the first history question with the highest matching degree among the candidate history questions is selected as the candidate question.
  • the method further includes:
  • a second aspect of the present application provides an automatic question generation device, the device including:
  • the current examination question acquisition unit to obtain the content of the question and answer for the current examination question
  • the first matching degree calculation unit is used to calculate the first matching degree between the question and answer content of each historical test question and the question and answer content of the current test question;
  • the candidate test question unit is used to select the next question of the first historical test question with the highest matching degree as the candidate test question;
  • the second matching degree calculation unit is used to calculate the second matching degree between the candidate test question and the next question in the question bank
  • the question-making unit is configured to use the candidate test question as a target test question when the second matching degree satisfies a preset condition.
  • the question generating unit is further configured to use the next question in the question bank as a target test question when the second matching degree does not satisfy a preset condition.
  • the first matching degree calculation unit includes a first coding unit, a question matching degree calculation unit, an answer matching degree calculation unit, and a first matching degree calculation subunit;
  • the first coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
  • the first coding unit is further configured to code the question and answer content of each historical test question according to a preset question and answer model to obtain the question code and answer code of each historical test question;
  • the question matching degree calculation unit is used to calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
  • the answer matching degree calculation unit is used to calculate the answer matching degree between the answer code of each historical test question and the answer code of the current test question;
  • the first matching degree calculation subunit is configured to calculate the first matching degree according to the matching degree of the question and the degree of matching of the answer.
  • the device further includes:
  • a second coding unit a third matching degree calculation unit, a fourth matching degree calculation unit, and an answer score calculation unit;
  • the second coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
  • the third matching degree calculation unit is used to calculate the third matching degree between the question code and the answer code of the current test question
  • the fourth matching degree calculation unit is configured to calculate the fourth matching degree between the answer of the current test question and the standard answer of the current test question according to a text similarity algorithm
  • the answer score calculation unit is configured to calculate the score of the answer to the current test question according to the third matching degree and the fourth matching degree.
  • the third aspect of this application provides a computer system, including:
  • One or more processors are One or more processors.
  • a memory associated with the one or more processors where the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, the method described above is executed.
  • the technical solution of this application selects the similar question and answer from the historical question and answer according to the current question and answer situation, and when the next sentence of the closest historical question and answer is highly similar to the next question in the question bank, select the next sentence of the historical question and answer As the next exam question. Realize that according to the user's answer to each question, automatically determine the relevant questions from the historical question and answer to continue to ask questions, build a scene-based simulation training, and improve the correlation between the test questions.
  • the degree of matching between the comprehensive standard answer and the test taker’s answer, and the degree of matching between the test question and the test taker’s answer are used to score the test taker’s answers, so that the scoring of the test taker’s answer meets the real scenario response and can be close to the standard answer specifications.
  • Figure 1 is the flow chart of the method of this application.
  • FIGS 2-4 are schematic diagrams of specific embodiments of the present application.
  • Fig. 5 is a structural diagram of a device according to an embodiment of the present application.
  • Figure 6 is a structural diagram of a computer system.
  • the way of preparing questions from the question bank in a preset order ignores the correlation between the question and answer of the previous question and the next question, so that the next question is separated from the question and answer of the previous question, resulting in correlation between the questions. Degree is low.
  • the purpose of this application is to provide a method for automatically generating questions, by selecting the closest historical question and answer from the historical question and answer according to the user’s question and answer to the current question, to determine the actual associated scene, and download the closest historical question and answer
  • One sentence is used as a candidate for the next question, and the final next question is determined based on the similarity between the candidate question and the next question in the question bank. Due to the combination of similar historical question and answer, the actual scene is determined, and the next question in the actual scene is used to ask questions, which will inevitably improve the correlation between the next question and the current question.
  • an automatic question generation method provided in Example 1 of this application includes:
  • the content of the question and answer for the current examination question is the question and answer of the current examination question.
  • the question and the answer can be associated and stored as a question to ⁇ Q, A>, where Q represents the question, and A represents the corresponding answer.
  • the Q&A content of historical test questions can be obtained by collecting data in actual scenarios.
  • the Q&A data of users and customer service on the e-commerce platform is collected as the Q&A content of historical test questions.
  • the question and answer content of each historical examination question can also be stored in association with one question to ⁇ Q,A>.
  • the actual scene associated with the current problem is determined. Selecting the next question in the actual scene as a candidate means that the question is selected based on the actual scene.
  • the candidate test question is used as a target test question for questioning.
  • the two steps S14 and S15 take into account that the actual scene must not deviate too much from the test questions in the question bank. Therefore, the candidate test questions selected by the calculation are matched with the next question in the question bank.
  • the matching degree meets the requirements, we think that the candidate test questions are also It satisfies the basic requirements for questioning, and is more relevant to the current exam questions than the next question in the question bank, so that the candidate exam questions are used as the target exam questions.
  • the method further includes:
  • step S12 When calculating the first matching degree in step S12, it can be performed in the following manner:
  • the first degree of matching is calculated according to the degree of matching between the question and the answer. Specifically, the two can be added together to calculate the first matching degree.
  • the above-mentioned encoding of the content of the question and answer can be performed by separately inputting the content into the question and answer model, and the vector sequence is obtained by encoding, which can be realized by using the existing question and answer model.
  • the relationship between the question matching degree of each historical examination question, the answer matching degree and their respective thresholds can be judged separately, and the question and answer content of all historical examination questions can be selected.
  • the historical test questions whose matching degree is greater than the first preset threshold and the answer matching degree is greater than the second preset threshold are used as candidate historical test questions;
  • the next question of the first history question with the highest matching degree among the candidate history questions is selected as the candidate question.
  • the part of the historical question and answer that deviates greatly from the current test question or answer can be eliminated, thereby further ensuring the overall relevance of the selected candidate test question and the current test question.
  • the user's answer can be scored, and the method further includes:
  • the fourth degree of matching between the answer of the current test question and the standard answer of the current test question is calculated.
  • the fourth matching degree can be calculated according to algorithms such as word segmentation comparison and keyword weight.
  • the final score combines the matching degree between the question and the answer and between the answer and the standard answer, which improves the accuracy of the score evaluation.
  • the above score can also be used as a feature value, combined with the difference in length between the user's answer and the standard answer, and the keyword matching degree of the standard answer, etc., to calculate the final score.
  • the corresponding feature score [9,5,8,0.5,2,1,0.38] is sent to the scoring model to get the final score -> 7.
  • Embodiment 2 of the present application provides an automatic question generation device. As shown in Fig. 5, the device includes:
  • the current examination question obtaining unit 51 obtains the question and answer content for the current examination question
  • the first matching degree calculation unit 52 is configured to calculate the first matching degree between the question and answer content of each historical test question and the question and answer content of the current test question;
  • the candidate test question unit 53 is used to select the next question of the first historical test question with the highest matching degree as the candidate test question;
  • the second matching degree calculation unit 54 is configured to calculate a second matching degree between the candidate test question and the next question in the question bank;
  • the question generating unit 55 is configured to use the candidate test question as a target test question when the second matching degree satisfies a preset condition.
  • the question generating unit 55 is further configured to use the next question in the question bank as a target test question when the second matching degree does not satisfy a preset condition.
  • the first matching degree calculation unit includes a first coding unit, a question matching degree calculation unit, an answer matching degree calculation unit, and a first matching degree calculation subunit;
  • the first coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
  • the first coding unit is further configured to code the question and answer content of each historical test question according to a preset question and answer model to obtain the question code and answer code of each historical test question;
  • the question matching degree calculation unit is used to calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
  • the answer matching degree calculation unit is used to calculate the answer matching degree between the answer code of each historical test question and the answer code of the current test question;
  • the first matching degree calculation subunit is configured to calculate the first matching degree according to the matching degree of the question and the degree of matching of the answer.
  • the candidate test question unit is specifically used to select all historical test questions in the question and answer content, the question matching degree is greater than the first preset threshold and the answer matching degree is greater than the second preset threshold of the historical test questions as the candidate historical test questions and select all The next question of the first history question with the highest matching degree among the candidate history questions is used as the candidate question.
  • the device further includes:
  • a second coding unit a third matching degree calculation unit, a fourth matching degree calculation unit, and an answer score calculation unit;
  • the second coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
  • the third matching degree calculation unit is configured to calculate the third matching degree between the question code and the answer code of the current test question
  • the fourth matching degree calculation unit is configured to calculate the fourth matching degree between the answer of the current test question and the standard answer of the current test question according to a text similarity algorithm
  • the answer score calculation unit is configured to calculate the score of the answer to the current test question according to the third matching degree and the fourth matching degree.
  • Embodiment 3 of the present application provides a computer system, including:
  • One or more processors are One or more processors.
  • a memory associated with the one or more processors where the memory is used to store program instructions that, when read and executed by the one or more processors, execute the method described in Embodiment 1 .
  • FIG. 6 exemplarily shows the architecture of a computer system, which may specifically include a processor 1510, a video display adapter 1511, a disk drive 1512, an input/output interface 1513, a network interface 1514, and a memory 1520.
  • the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, and the memory 1520 may be communicatively connected through the communication bus 1530.
  • the processor 1510 may be implemented in a general-purpose CPU (Central Processing Unit, central processing unit), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for Perform relevant procedures to realize the technical solutions provided in this application.
  • a general-purpose CPU Central Processing Unit, central processing unit
  • microprocessor microprocessor
  • application specific integrated circuit Application Specific Integrated Circuit, ASIC
  • integrated circuits etc.
  • the memory 1520 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory, random access memory), static storage device, dynamic storage device, etc.
  • the memory 1520 may store an operating system 1521 for controlling the operation of the computer system 1500, and a basic input output system (BIOS) for controlling the low-level operation of the computer system 1500.
  • BIOS basic input output system
  • a web browser 1523, a data storage management system 1524, and an icon font processing system 1525 can also be stored.
  • the foregoing icon font processing system 1525 may be an application program that specifically implements the foregoing steps in the embodiment of the present application.
  • the related program code is stored in the memory 1520 and is called and executed by the processor 1510.
  • the input/output interface 1513 is used to connect input/output modules to realize information input and output.
  • the input/output/module can be configured in the device as a component (not shown in the figure), or can be connected to the device to provide corresponding functions.
  • the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and an output device may include a display, a speaker, a vibrator, an indicator light, and the like.
  • the network interface 1514 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices.
  • the communication module can realize communication through wired means (such as USB, network cable, etc.), or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
  • the bus 1530 includes a path to transmit information between various components of the device (for example, the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, and the memory 1520).
  • various components of the device for example, the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, and the memory 1520.
  • the computer system 1500 can also obtain information about specific receiving conditions from the virtual resource object receiving condition information database 1541 for condition judgment, and so on.
  • the above device only shows the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, the memory 1520, the bus 1530, etc., in the specific implementation process, the The device may also include other components necessary for normal operation.
  • the above-mentioned device may also include only the components necessary to realize the solution of the present application, and not necessarily include all the components shown in the figure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Provided are an automatic question setting method, apparatus and system. The method comprises: acquiring question and answer content of the current examination question (S11); calculating a first matching degree between the question and answer content of each historical examination question and the question and answer content of the current examination question (S12); selecting the next question of the historical examination question with the highest first matching degree to be a candidate examination question (S13); calculating a second matching degree between the candidate examination question and the next question in a question library (S14); and if the second matching degree satisfies a preset condition, taking the candidate examination question as a target examination question for question setting (S15). According to the method, apparatus and system, an actual scenario can be simulated in order to automatically set questions.

Description

一种自动出题方法、装置及系统Method, device and system for automatically generating questions 技术领域Technical field
本申请涉及出题问答领域,特别是涉及一种自动出题方法、装置及系统。This application relates to the field of question and answer questions, and in particular to a method, device and system for automatically generating questions.
背景技术Background technique
在很多产品和平台中,常有问答场景出现。比如电商平台的智能客服与用户之间就是一种问答场景。为了提升智能客服应答的准确性,需要模拟用户提出问题,以对智能客服的应答进行评价,便于后续进行针对性的改进。In many products and platforms, Q&A scenarios often appear. For example, the intelligent customer service of an e-commerce platform is a question and answer scenario with users. In order to improve the accuracy of the intelligent customer service response, it is necessary to simulate the user's question to evaluate the intelligent customer service's response, so as to facilitate subsequent targeted improvements.
现有技术中,预先设有一个题库,按照一定的规则比如顺序从题库中选择考题模拟用户向智能客服发出提问,以获取智能客服的答案,以便检测智能客服回答的准确性。In the prior art, a question bank is set up in advance, and the test questions are selected from the question bank in accordance with a certain rule, such as a sequence, to simulate the user asking questions to the intelligent customer service to obtain the answer of the intelligent customer service, so as to detect the accuracy of the intelligent customer service's answer.
但现有技术中,题库出题的规则顺序是设定好的,不论针对当前问题的回答是什么,都会按照既定的规则从题库中选择下一题继续出题。这样的出题方式脱离实际的问答场景,前后问题之间不一定具有关联性。However, in the prior art, the rule order for question bank is set, and no matter what the answer to the current question is, the next question will be selected from the question bank to continue questioning according to the established rules. This way of questioning is out of the actual Q&A scenario, and the questions before and after may not necessarily have relevance.
其他问答场景下也具有相同的问题。The same problem exists in other Q&A scenarios.
发明内容Summary of the invention
本申请提供了一种自动出题方法、装置及系统,以解决现有技术中模拟问答时,无法模拟真实场景,使得前后问题之间不具有关联性的问题。This application provides an automatic question generation method, device and system to solve the problem that the real scene cannot be simulated when simulating question and answer in the prior art, so that there is no relevance between the previous questions and the previous questions.
本申请第一方面提供一种自动出题方法,所述方法包括:The first aspect of the present application provides a method for automatically generating questions, and the method includes:
获取针对当前考题的问答内容;Get the content of the question and answer for the current exam;
计算每一历史考题的问答内容与所述当前考题的问答内容的第一匹配度;Calculate the first degree of match between the question and answer content of each historical test question and the question and answer content of the current test question;
选取所述第一匹配度最高的历史考题的下一题作为候选考题;Selecting the next question of the first historical question with the highest matching degree as the candidate question;
计算所述候选考题与题库中的下一题的第二匹配度;Calculating the second degree of matching between the candidate test question and the next question in the question bank;
若所述第二匹配度满足预设条件,则将所述候选考题作为目标考题出题。If the second degree of matching satisfies a preset condition, the candidate test question is used as a target test question to be asked.
优选的,所述方法还包括:Preferably, the method further includes:
若所述第二匹配度不满足预设条件,则将所述题库中的下一题作为目标考题出题。If the second matching degree does not meet the preset condition, the next question in the question bank is used as the target test question to be asked.
优选的,所述计算每一历史考题的问答内容与所述当前考题的问答内容的第一匹配度包括:Preferably, the calculating the first degree of matching between the question and answer content of each historical test question and the question and answer content of the current test question includes:
根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;Encode the question and answer content of the current test question according to the preset question and answer model to obtain the question code and answer code of the current test question;
根据预设的问答模型对每一所述历史考题的问答内容进行编码,获得每一历史考题的问题编码和答案编码;Code the question and answer content of each historical test question according to the preset question and answer model, and obtain the question code and answer code of each historical test question;
计算每一历史考题的问题编码与所述当前考题的问题编码的问题匹配度;Calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
计算每一历史考题的答案编码与所述当前考题的答案编码的答案匹配度;Calculate the degree of match between the answer code of each historical test question and the answer code of the current test question;
根据所述问题匹配度与所述答案匹配度计算所述第一匹配度。The first degree of matching is calculated according to the degree of matching between the question and the answer.
优选的,所述选取所述第一匹配度最高的历史考题的下一题作为候选考题包括:Preferably, the selecting the next question of the first historical question with the highest matching degree as the candidate question includes:
选取所有历史考题中问答内容中,所述问题匹配度大于第一预设阈值且所述答案匹配度大于第二预设阈值的历史考题作为待选历史考题;Select all historical test questions in which the question matching degree is greater than the first preset threshold and the answer matching degree is greater than the second preset threshold among the question and answer content of all historical test questions as candidate historical test questions;
选取所述待选历史考题中所述第一匹配度最高的历史考题的下一题作为候选考题。The next question of the first history question with the highest matching degree among the candidate history questions is selected as the candidate question.
优选的,所述方法还包括:Preferably, the method further includes:
根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;Encode the question and answer content of the current test question according to the preset question and answer model to obtain the question code and answer code of the current test question;
计算所述当前考题的问题编码与答案编码的第三匹配度;Calculate the third degree of matching between the question code of the current test question and the answer code;
根据文本相似度算法,计算所述当前考题的答案与所述当前考题的标准答案的第四匹配度;According to the text similarity algorithm, calculate the fourth degree of matching between the answer of the current test question and the standard answer of the current test question;
根据所述第三匹配度和所述第四匹配度计算所述当前考题的答案的分数。Calculate the score of the answer to the current test question according to the third degree of matching and the fourth degree of matching.
本申请第二方面提供一种自动出题装置,所述装置包括:A second aspect of the present application provides an automatic question generation device, the device including:
当前考题获取单元,获取针对当前考题的问答内容;The current examination question acquisition unit, to obtain the content of the question and answer for the current examination question;
第一匹配度计算单元,用于计算每一历史考题的问答内容与所述当前考题 的问答内容的第一匹配度;The first matching degree calculation unit is used to calculate the first matching degree between the question and answer content of each historical test question and the question and answer content of the current test question;
候选考题单元,用于选取所述第一匹配度最高的历史考题的下一题作为候选考题;The candidate test question unit is used to select the next question of the first historical test question with the highest matching degree as the candidate test question;
第二匹配度计算单元,用于计算所述候选考题与题库中的下一题的第二匹配度;The second matching degree calculation unit is used to calculate the second matching degree between the candidate test question and the next question in the question bank;
出题单元,用于在所述第二匹配度满足预设条件时,将所述候选考题作为目标考题出题。The question-making unit is configured to use the candidate test question as a target test question when the second matching degree satisfies a preset condition.
优选的,所述出题单元,还用于在所述第二匹配度不满足预设条件时,将所述题库中的下一题作为目标考题出题。Preferably, the question generating unit is further configured to use the next question in the question bank as a target test question when the second matching degree does not satisfy a preset condition.
优选的,所述第一匹配度计算单元包括第一编码单元、问题匹配度计算单元、答案匹配度计算单元和第一匹配度计算子单元;Preferably, the first matching degree calculation unit includes a first coding unit, a question matching degree calculation unit, an answer matching degree calculation unit, and a first matching degree calculation subunit;
所述第一编码单元,用于根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;The first coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
所述第一编码单元,还用于根据预设的问答模型对每一所述历史考题的问答内容进行编码,获得每一历史考题的问题编码和答案编码;The first coding unit is further configured to code the question and answer content of each historical test question according to a preset question and answer model to obtain the question code and answer code of each historical test question;
所述问题匹配度计算单元,用于计算每一历史考题的问题编码与所述当前考题的问题编码的问题匹配度;The question matching degree calculation unit is used to calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
所述答案匹配度计算单元,用于计算每一历史考题的答案编码与所述当前考题的答案编码的答案匹配度;The answer matching degree calculation unit is used to calculate the answer matching degree between the answer code of each historical test question and the answer code of the current test question;
所述第一匹配度计算子单元,用于根据所述问题匹配度与所述答案匹配度计算所述第一匹配度。The first matching degree calculation subunit is configured to calculate the first matching degree according to the matching degree of the question and the degree of matching of the answer.
优选的,所述装置还包括:Preferably, the device further includes:
第二编码单元、第三匹配度计算单元、第四匹配度计算单元以及答案分数计算单元;A second coding unit, a third matching degree calculation unit, a fourth matching degree calculation unit, and an answer score calculation unit;
所述第二编码单元,用于根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;The second coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
所述第三匹配度计算单元,用于计算所述当前考题的问题编码与答案编码 的第三匹配度;The third matching degree calculation unit is used to calculate the third matching degree between the question code and the answer code of the current test question;
所述第四匹配度计算单元,用于根据文本相似度算法,计算所述当前考题的答案与所述当前考题的标准答案的第四匹配度;The fourth matching degree calculation unit is configured to calculate the fourth matching degree between the answer of the current test question and the standard answer of the current test question according to a text similarity algorithm;
所述答案分数计算单元,用于根据所述第三匹配度和所述第四匹配度计算所述当前考题的答案的分数。The answer score calculation unit is configured to calculate the score of the answer to the current test question according to the third matching degree and the fourth matching degree.
本申请第三方面提供一种计算机系统,包括:The third aspect of this application provides a computer system, including:
一个或多个处理器;以及One or more processors; and
与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行如上所述的方法。A memory associated with the one or more processors, where the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, the method described above is executed.
根据本申请提供的具体实施例,本申请公开了以下技术效果:According to the specific embodiments provided in this application, this application discloses the following technical effects:
本申请的技术方案根据当前考题问答情况,从历史问答中选择与其相近的问答,并在最相近的历史问答的下一句与题库中下一题相似度较高时,选择以历史问答的下一句作为下一考题。实现了根据用户对每题的回答情况自动从历史问答中确定出相关联的问题继续提问,构建场景化的模拟训练,提高了考题之间的关联度。The technical solution of this application selects the similar question and answer from the historical question and answer according to the current question and answer situation, and when the next sentence of the closest historical question and answer is highly similar to the next question in the question bank, select the next sentence of the historical question and answer As the next exam question. Realize that according to the user's answer to each question, automatically determine the relevant questions from the historical question and answer to continue to ask questions, build a scene-based simulation training, and improve the correlation between the test questions.
进一步的,本申请中综合标准答案和考生答案的匹配度、考题与考生答案的匹配度对考生答案进行评分,使得对考生答案的评分达到符合真实场景回覆并能贴近标准答案规范。Further, in this application, the degree of matching between the comprehensive standard answer and the test taker’s answer, and the degree of matching between the test question and the test taker’s answer are used to score the test taker’s answers, so that the scoring of the test taker’s answer meets the real scenario response and can be close to the standard answer specifications.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the embodiments. Obviously, the drawings in the following description are only some of the present application. Embodiments, for those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1是本申请方法流程图意图;Figure 1 is the flow chart of the method of this application;
图2-4是本申请具体实施例示意图;Figures 2-4 are schematic diagrams of specific embodiments of the present application;
图5是本申请实施例装置结构图;Fig. 5 is a structural diagram of a device according to an embodiment of the present application;
图6是计算机系统结构图。Figure 6 is a structural diagram of a computer system.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.
如背景技术所述,从题库中按照预设顺序出题的方式忽视了前一考题的问答情况与下一考题之间的关联性,使得下一考题脱离前一考题的问答,造成考题间关联度低。As mentioned in the background art, the way of preparing questions from the question bank in a preset order ignores the correlation between the question and answer of the previous question and the next question, so that the next question is separated from the question and answer of the previous question, resulting in correlation between the questions. Degree is low.
本申请旨在提供一种自动出题的方法,通过根据用户对当前考题的问答情况从历史问答中选择与之最相近的历史问答,以确定实际关联场景,将该最相近的历史问答的下一句作为下一问题的候选,结合该候选问题与题库中下一题的相似度确定最终的下一问题。由于结合了相近似的历史问答,确定了实际场景,以实际场景中的下一问题进行提问,必然提高了下一问题与当前问题的关联度。The purpose of this application is to provide a method for automatically generating questions, by selecting the closest historical question and answer from the historical question and answer according to the user’s question and answer to the current question, to determine the actual associated scene, and download the closest historical question and answer One sentence is used as a candidate for the next question, and the final next question is determined based on the similarity between the candidate question and the next question in the question bank. Due to the combination of similar historical question and answer, the actual scene is determined, and the next question in the actual scene is used to ask questions, which will inevitably improve the correlation between the next question and the current question.
实施例1Example 1
如图1所示,为本申请实施例1提供的一种自动出题方法,所述方法包括:As shown in Fig. 1, an automatic question generation method provided in Example 1 of this application includes:
S11、获取针对当前考题的问答内容。S11. Obtain the question and answer content for the current examination question.
针对当前考题的问答内容,是当前考题的问题与答案。The content of the question and answer for the current examination question is the question and answer of the current examination question.
为确定关联场景,首先需要获取用户针对当前考题的问题和答案。In order to determine the associated scenario, firstly, it is necessary to obtain the user's questions and answers for the current examination questions.
在具体实施例中,问题和答案可以作为一个问题对<Q,A>进行关联存储,Q表示问题,A表示对应的答案。In a specific embodiment, the question and the answer can be associated and stored as a question to <Q, A>, where Q represents the question, and A represents the corresponding answer.
S12、计算每一历史考题的问答内容与所述当前考题的问答内容的第一匹配度。S12. Calculate the first matching degree between the question and answer content of each historical test question and the question and answer content of the current test question.
历史考题的问答内容可通过收集实际场景中的数据获得,比如收集电商平 台上用户与客服的问答数据作为历史考题的问答内容。每一历史考题的问答内容也可以以一个问题对<Q,A>进行关联存储。The Q&A content of historical test questions can be obtained by collecting data in actual scenarios. For example, the Q&A data of users and customer service on the e-commerce platform is collected as the Q&A content of historical test questions. The question and answer content of each historical examination question can also be stored in association with one question to <Q,A>.
S13、选取所述第一匹配度最高的历史考题的下一题作为候选考题。S13. Select the next question of the first historical question with the highest matching degree as a candidate question.
通过该步骤即确定了与当前问题关联的实际场景。而选择该实际场景中的下一题作为候选,即是以实际场景来进行问题的选择。Through this step, the actual scene associated with the current problem is determined. Selecting the next question in the actual scene as a candidate means that the question is selected based on the actual scene.
S14、计算所述候选考题与题库中的下一题的第二匹配度。S14. Calculate the second degree of matching between the candidate test question and the next question in the question bank.
S15、若所述第二匹配度满足预设条件,则将所述候选考题作为目标考题出题。S15. If the second degree of matching satisfies a preset condition, the candidate test question is used as a target test question for questioning.
S14、S15两步骤是考虑到实际场景与题库中的考题亦不可有过多偏离,因此,计算选择的候选考题与题库的下一题进行匹配,在匹配度满足要求时,我们认为候选考题亦满足出题的基本要求,且相对题库中的下一题,与当前考题更具有关联性,以此以候选考题作为目标考题出题。The two steps S14 and S15 take into account that the actual scene must not deviate too much from the test questions in the question bank. Therefore, the candidate test questions selected by the calculation are matched with the next question in the question bank. When the matching degree meets the requirements, we think that the candidate test questions are also It satisfies the basic requirements for questioning, and is more relevant to the current exam questions than the next question in the question bank, so that the candidate exam questions are used as the target exam questions.
如图1所示,所述方法还包括:As shown in Figure 1, the method further includes:
S16、若所述第二匹配度不满足预设条件,则将所述题库中的下一题作为目标考题出题。该步骤保证了将与题库偏离甚多的历史考题作为下一题。S16. If the second degree of matching does not meet the preset condition, the next question in the question bank is used as the target test question to be asked. This step ensures that the history test question that deviates from the question bank is taken as the next question.
在步骤S12中计算第一匹配度时,可通过如下方式进行:When calculating the first matching degree in step S12, it can be performed in the following manner:
根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;Encode the question and answer content of the current test question according to the preset question and answer model to obtain the question code and answer code of the current test question;
根据预设的问答模型对每一所述历史考题的问答内容进行编码,获得每一历史考题的问题编码和答案编码;Code the question and answer content of each historical test question according to the preset question and answer model, and obtain the question code and answer code of each historical test question;
计算每一历史考题的问题编码与所述当前考题的问题编码的问题匹配度;Calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
计算每一历史考题的答案编码与所述当前考题的答案编码的答案匹配度;Calculate the degree of match between the answer code of each historical test question and the answer code of the current test question;
根据所述问题匹配度与所述答案匹配度计算所述第一匹配度。具体的可将两者加和计算第一匹配度。The first degree of matching is calculated according to the degree of matching between the question and the answer. Specifically, the two can be added together to calculate the first matching degree.
其中,上述对问答内容分别进行编码可通过将内容分别输入问答模型中进行,通过编码获得向量序列,此处可以利用目前已有的问答模型实现。Wherein, the above-mentioned encoding of the content of the question and answer can be performed by separately inputting the content into the question and answer model, and the vector sequence is obtained by encoding, which can be realized by using the existing question and answer model.
优选实施例中,在选择匹配度最高的历史考题时,可先分别判断每一历史考题的问题匹配度、答案匹配度与各自阈值的关系,并选取所有历史考题中问答内容中,所述问题匹配度大于第一预设阈值且所述答案匹配度大于第二预设阈值的历史考题作为待选历史考题;In a preferred embodiment, when selecting the historical examination questions with the highest matching degree, the relationship between the question matching degree of each historical examination question, the answer matching degree and their respective thresholds can be judged separately, and the question and answer content of all historical examination questions can be selected. The historical test questions whose matching degree is greater than the first preset threshold and the answer matching degree is greater than the second preset threshold are used as candidate historical test questions;
选取所述待选历史考题中所述第一匹配度最高的历史考题的下一题作为候选考题。The next question of the first history question with the highest matching degree among the candidate history questions is selected as the candidate question.
通过上述方式,可剔除历史问答中与当前考题问题或者答案的一项偏离较大的部分,从而进一步保证选取的候选考题与当前考题的整体关联度。Through the above method, the part of the historical question and answer that deviates greatly from the current test question or answer can be eliminated, thereby further ensuring the overall relevance of the selected candidate test question and the current test question.
在本申请的优选实施例中,可对用户的回答进行打分,所述方法还包括:In a preferred embodiment of the present application, the user's answer can be scored, and the method further includes:
根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;Encode the question and answer content of the current test question according to the preset question and answer model to obtain the question code and answer code of the current test question;
计算所述当前考题的问题编码与答案编码的第三匹配度;Calculate the third degree of matching between the question code of the current test question and the answer code;
根据文本相似度算法,计算所述当前考题的答案与所述当前考题的标准答案的第四匹配度。具体可根据分词比较、关键词权重等算法计算第四匹配度。According to the text similarity algorithm, the fourth degree of matching between the answer of the current test question and the standard answer of the current test question is calculated. Specifically, the fourth matching degree can be calculated according to algorithms such as word segmentation comparison and keyword weight.
根据所述第三匹配度和所述第四匹配度计算所述当前考题的答案的分数。Calculate the score of the answer to the current test question according to the third degree of matching and the fourth degree of matching.
通过上述方法,最后的分数结合了问题与答案之间以及答案与标准答案之间的匹配度,提高了分数评价的准确性。Through the above method, the final score combines the matching degree between the question and the answer and between the answer and the standard answer, which improves the accuracy of the score evaluation.
实际中,还可以将上述分数作为特征值,结合用户答案与标准答案长度差异,与标准答案关键词匹配度等一起计算得到最终的分数。In practice, the above score can also be used as a feature value, combined with the difference in length between the user's answer and the standard answer, and the keyword matching degree of the standard answer, etc., to calculate the final score.
如下为本申请的一个具体场景示例:The following is an example of a specific scenario of this application:
考题问题:我收到一个短信,说我的电视安装派工了,我没有要安装啊。Exam question: I received a text message saying that my TV installation has been dispatched, and I don’t want to install it.
标准答案:您好,这边看到您有一个深圳市三星电视的安装,预约的安装时间是5.07号,您家人是否有预约过呢?Standard answer: Hello, here you see that you have a Shenzhen Samsung TV installation. The scheduled installation time is 5.07. Has your family ever made an appointment?
考生答案:这边帮您查询了一下,请问是购买的这款吗三星电视 QA82Q900RBJXXZCandidate’s answer: I’ll check it for you here. Did you buy this Samsung TV? QA82Q900RBJXXZ
根据上述场景,进行自动打分和自动出题:According to the above scenarios, automatic scoring and automatic questioning are carried out:
对上述考生答案进行打分:Score the answers of the above candidates:
首先利用图2所示的模型,为考题问题和标准答案进行第一次打分,得到分数1->9First, use the model shown in Figure 2 to score the test questions and standard answers for the first time, and get a score of 1->9
接着利用图3所示的模型,为标准答案和考生答案进行第二次打分,得到分数2->5Then use the model shown in Figure 3 to score the standard answer and the test taker’s answer for the second time, and get a score of 2->5
之后利用图4所示的模型,将上述两个分数配上其他特征值进行打分,Then use the model shown in Figure 4 to score the above two scores with other feature values.
如:[分数1,分数2,长度差,关键字匹配率,句数差,短句句数差,jaccard相似度]Such as: [score 1, score 2, length difference, keyword matching rate, sentence count difference, short sentence sentence count difference, jaccard similarity]
如将对应的特征分数[9,5,8,0.5,2,1,0.38]送入打分模型得到最终打分->7。For example, the corresponding feature score [9,5,8,0.5,2,1,0.38] is sent to the scoring model to get the final score -> 7.
自动出题:Automatic question:
相近场景检索:Similar scene retrieval:
在历史问答数据库中对历史问答进行匹配度计算,选择确定出最相匹配的历史问答如下:Calculate the matching degree of the historical question and answer in the historical question and answer database, and select and determine the most matching historical question and answer as follows:
用户:为什么说我的电视安装派工了,我没有要安装啊。User: Why do you say that my TV installation has been dispatched? I don't want to install it.
客服:帮您查询了一下,请问是购买的这款吗三星电视?Customer Service: I have checked it for you, is this a Samsung TV?
之后将该场景下的下一句:Then the next sentence in the scene:
用户:对的,能帮我看看怎么取消吗User: Yes, can you help me see how to cancel
与题库中设定好的下一标准问题进行比较,如果相似度大于所设域值,以上述场景中的下句出题使考题多变化,若低于域值则以题库中的下一标准考题出题防止考生偏题。Compare with the next standard question set in the question bank. If the similarity is greater than the set threshold, the next sentence in the above scenario will be used to make the test questions more varied. If it is lower than the threshold, the next standard in the question bank will be used. Exam questions are set to prevent candidates from partial questions.
实施例2Example 2
针对上述方法,本申请实施例2提供一种自动出题装置,如图5所示,所 述装置包括:In response to the above method, Embodiment 2 of the present application provides an automatic question generation device. As shown in Fig. 5, the device includes:
当前考题获取单元51,获取针对当前考题的问答内容;The current examination question obtaining unit 51 obtains the question and answer content for the current examination question;
第一匹配度计算单元52,用于计算每一历史考题的问答内容与所述当前考题的问答内容的第一匹配度;The first matching degree calculation unit 52 is configured to calculate the first matching degree between the question and answer content of each historical test question and the question and answer content of the current test question;
候选考题单元53,用于选取所述第一匹配度最高的历史考题的下一题作为候选考题;The candidate test question unit 53 is used to select the next question of the first historical test question with the highest matching degree as the candidate test question;
第二匹配度计算单元54,用于计算所述候选考题与题库中的下一题的第二匹配度;The second matching degree calculation unit 54 is configured to calculate a second matching degree between the candidate test question and the next question in the question bank;
出题单元55,用于在所述第二匹配度满足预设条件时,将所述候选考题作为目标考题出题。The question generating unit 55 is configured to use the candidate test question as a target test question when the second matching degree satisfies a preset condition.
优选的,所述出题单元55,还用于在所述第二匹配度不满足预设条件时,将所述题库中的下一题作为目标考题出题。Preferably, the question generating unit 55 is further configured to use the next question in the question bank as a target test question when the second matching degree does not satisfy a preset condition.
优选的,所述第一匹配度计算单元包括第一编码单元、问题匹配度计算单元、答案匹配度计算单元和第一匹配度计算子单元;Preferably, the first matching degree calculation unit includes a first coding unit, a question matching degree calculation unit, an answer matching degree calculation unit, and a first matching degree calculation subunit;
所述第一编码单元,用于根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;The first coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
所述第一编码单元,还用于根据预设的问答模型对每一所述历史考题的问答内容进行编码,获得每一历史考题的问题编码和答案编码;The first coding unit is further configured to code the question and answer content of each historical test question according to a preset question and answer model to obtain the question code and answer code of each historical test question;
所述问题匹配度计算单元,用于计算每一历史考题的问题编码与所述当前考题的问题编码的问题匹配度;The question matching degree calculation unit is used to calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
所述答案匹配度计算单元,用于计算每一历史考题的答案编码与所述当前考题的答案编码的答案匹配度;The answer matching degree calculation unit is used to calculate the answer matching degree between the answer code of each historical test question and the answer code of the current test question;
所述第一匹配度计算子单元,用于根据所述问题匹配度与所述答案匹配度计算所述第一匹配度。The first matching degree calculation subunit is configured to calculate the first matching degree according to the matching degree of the question and the degree of matching of the answer.
候选考题单元,具体用于选取所有历史考题中问答内容中,所述问题匹配度大于第一预设阈值且所述答案匹配度大于第二预设阈值的历史考题作为待 选历史考题并选取所述待选历史考题中所述第一匹配度最高的历史考题的下一题作为候选考题。The candidate test question unit is specifically used to select all historical test questions in the question and answer content, the question matching degree is greater than the first preset threshold and the answer matching degree is greater than the second preset threshold of the historical test questions as the candidate historical test questions and select all The next question of the first history question with the highest matching degree among the candidate history questions is used as the candidate question.
优选的,所述装置还包括:Preferably, the device further includes:
第二编码单元、第三匹配度计算单元、第四匹配度计算单元以及答案分数计算单元;A second coding unit, a third matching degree calculation unit, a fourth matching degree calculation unit, and an answer score calculation unit;
所述第二编码单元,用于根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;The second coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
所述第三匹配度计算单元,用于计算所述当前考题的问题编码与答案编码的第三匹配度;The third matching degree calculation unit is configured to calculate the third matching degree between the question code and the answer code of the current test question;
所述第四匹配度计算单元,用于根据文本相似度算法,计算所述当前考题的答案与所述当前考题的标准答案的第四匹配度;The fourth matching degree calculation unit is configured to calculate the fourth matching degree between the answer of the current test question and the standard answer of the current test question according to a text similarity algorithm;
所述答案分数计算单元,用于根据所述第三匹配度和所述第四匹配度计算所述当前考题的答案的分数。The answer score calculation unit is configured to calculate the score of the answer to the current test question according to the third matching degree and the fourth matching degree.
实施例3Example 3
对应上述方法、装置,本申请实施例3提供一种计算机系统,,包括:Corresponding to the foregoing method and device, Embodiment 3 of the present application provides a computer system, including:
一个或多个处理器;以及One or more processors; and
与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行如实施例1所述的方法。A memory associated with the one or more processors, where the memory is used to store program instructions that, when read and executed by the one or more processors, execute the method described in Embodiment 1 .
其中,图6示例性的展示出了计算机系统的架构,具体可以包括处理器1510,视频显示适配器1511,磁盘驱动器1512,输入/输出接口1513,网络接口1514,以及存储器1520。上述处理器1510、视频显示适配器1511、磁盘驱动器1512、输入/输出接口1513、网络接口1514,与存储器1520之间可以通过通信总线1530进行通信连接。Among them, FIG. 6 exemplarily shows the architecture of a computer system, which may specifically include a processor 1510, a video display adapter 1511, a disk drive 1512, an input/output interface 1513, a network interface 1514, and a memory 1520. The processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, and the memory 1520 may be communicatively connected through the communication bus 1530.
其中,处理器1510可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated  Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本申请所提供的技术方案。Among them, the processor 1510 may be implemented in a general-purpose CPU (Central Processing Unit, central processing unit), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for Perform relevant procedures to realize the technical solutions provided in this application.
存储器1520可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器1520可以存储用于控制计算机系统1500运行的操作系统1521,用于控制计算机系统1500的低级别操作的基本输入输出系统(BIOS)。另外,还可以存储网页浏览器1523,数据存储管理系统1524,以及图标字体处理系统1525等等。上述图标字体处理系统1525就可以是本申请实施例中具体实现前述各步骤操作的应用程序。总之,在通过软件或者固件来实现本申请所提供的技术方案时,相关的程序代码保存在存储器1520中,并由处理器1510来调用执行。The memory 1520 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory, random access memory), static storage device, dynamic storage device, etc. The memory 1520 may store an operating system 1521 for controlling the operation of the computer system 1500, and a basic input output system (BIOS) for controlling the low-level operation of the computer system 1500. In addition, a web browser 1523, a data storage management system 1524, and an icon font processing system 1525 can also be stored. The foregoing icon font processing system 1525 may be an application program that specifically implements the foregoing steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented through software or firmware, the related program code is stored in the memory 1520 and is called and executed by the processor 1510.
输入/输出接口1513用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/output interface 1513 is used to connect input/output modules to realize information input and output. The input/output/module can be configured in the device as a component (not shown in the figure), or can be connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and an output device may include a display, a speaker, a vibrator, an indicator light, and the like.
网络接口1514用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The network interface 1514 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.), or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
总线1530包括一通路,在设备的各个组件(例如处理器1510、视频显示适配器1511、磁盘驱动器1512、输入/输出接口1513、网络接口1514,与存储器1520)之间传输信息。The bus 1530 includes a path to transmit information between various components of the device (for example, the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, and the memory 1520).
另外,该计算机系统1500还可以从虚拟资源对象领取条件信息数据库1541中获得具体领取条件的信息,以用于进行条件判断,等等。In addition, the computer system 1500 can also obtain information about specific receiving conditions from the virtual resource object receiving condition information database 1541 for condition judgment, and so on.
需要说明的是,尽管上述设备仅示出了处理器1510、视频显示适配器1511、磁盘驱动器1512、输入/输出接口1513、网络接口1514,存储器1520,总线1530等,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含 实现本申请方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above device only shows the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, the memory 1520, the bus 1530, etc., in the specific implementation process, the The device may also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above-mentioned device may also include only the components necessary to realize the solution of the present application, and not necessarily include all the components shown in the figure.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,云服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。From the description of the foregoing implementation manners, it can be known that those skilled in the art can clearly understand that this application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM/RAM, magnetic disk , CD-ROM, etc., including a number of instructions to enable a computer device (which may be a personal computer, a cloud server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments of the present application.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for the system or the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the description of the method embodiment. The system and system 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, It can 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 objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement without creative work.
以上对本申请所提供的自动出题方法、装置及系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本申请的限制。The method, device, and system for automatically generating questions provided by this application are described in detail above. Specific examples are used in this article to explain the principles and implementation of this application. The description of the above examples is only used to help understand this application. The method and its core idea; at the same time, for ordinary technicians in the field, according to the idea of this application, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation on this application.

Claims (10)

  1. 一种自动出题方法,其特征在于,所述方法包括:An automatic question generation method, characterized in that the method includes:
    获取针对当前考题的问答内容;Get the content of the question and answer for the current exam;
    计算每一历史考题的问答内容与所述当前考题的问答内容的第一匹配度;Calculate the first degree of match between the question and answer content of each historical test question and the question and answer content of the current test question;
    选取所述第一匹配度最高的历史考题的下一题作为候选考题;Selecting the next question of the first historical question with the highest matching degree as the candidate question;
    计算所述候选考题与题库中的下一题的第二匹配度;Calculating the second degree of matching between the candidate test question and the next question in the question bank;
    若所述第二匹配度满足预设条件,则将所述候选考题作为目标考题出题。If the second degree of matching satisfies a preset condition, the candidate test question is used as a target test question to be asked.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    若所述第二匹配度不满足预设条件,则将所述题库中的下一题作为目标考题出题。If the second matching degree does not meet the preset condition, the next question in the question bank is used as the target test question to be asked.
  3. 如权利要求1所述的方法,其特征在于,所述计算每一历史考题的问答内容与所述当前考题的问答内容的第一匹配度包括:The method of claim 1, wherein the calculating the first degree of matching between the question and answer content of each historical question and the question and answer content of the current question comprises:
    根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;Encode the question and answer content of the current test question according to the preset question and answer model to obtain the question code and answer code of the current test question;
    根据预设的问答模型对每一所述历史考题的问答内容进行编码,获得每一历史考题的问题编码和答案编码;Code the question and answer content of each historical test question according to the preset question and answer model, and obtain the question code and answer code of each historical test question;
    计算每一历史考题的问题编码与所述当前考题的问题编码的问题匹配度;Calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
    计算每一历史考题的答案编码与所述当前考题的答案编码的答案匹配度;Calculate the degree of match between the answer code of each historical test question and the answer code of the current test question;
    根据所述问题匹配度与所述答案匹配度计算所述第一匹配度。The first degree of matching is calculated according to the degree of matching between the question and the answer.
  4. 如权利要求3所述的方法,其特征在于,所述选取所述第一匹配度最高的历史考题的下一题作为候选考题包括:The method according to claim 3, wherein the selecting the next question of the first historical question with the highest matching degree as a candidate question comprises:
    选取所有历史考题中问答内容中,所述问题匹配度大于第一预设阈值且所述答案匹配度大于第二预设阈值的历史考题作为待选历史考题;Select all historical test questions in which the question matching degree is greater than the first preset threshold and the answer matching degree is greater than the second preset threshold among the question and answer content of all historical test questions as candidate historical test questions;
    选取所述待选历史考题中所述第一匹配度最高的历史考题的下一题作为候选考题。The next question of the first history question with the highest matching degree among the candidate history questions is selected as the candidate question.
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;Encode the question and answer content of the current test question according to the preset question and answer model to obtain the question code and answer code of the current test question;
    计算所述当前考题的问题编码与答案编码的第三匹配度;Calculate the third degree of matching between the question code of the current test question and the answer code;
    根据文本相似度算法,计算所述当前考题的答案与所述当前考题的标准答案的第四匹配度;According to the text similarity algorithm, calculate the fourth degree of matching between the answer of the current test question and the standard answer of the current test question;
    根据所述第三匹配度和所述第四匹配度计算所述当前考题的答案的分数。Calculate the score of the answer to the current test question according to the third degree of matching and the fourth degree of matching.
  6. 一种自动出题装置,其特征在于,所述装置包括:An automatic question-making device, characterized in that the device comprises:
    当前考题获取单元,获取针对当前考题的问答内容;The current examination question acquisition unit, to obtain the content of the question and answer for the current examination question;
    第一匹配度计算单元,用于计算每一历史考题的问答内容与所述当前考题的问答内容的第一匹配度;The first matching degree calculation unit is used to calculate the first matching degree between the question and answer content of each historical test question and the question and answer content of the current test question;
    候选考题单元,用于选取所述第一匹配度最高的历史考题的下一题作为候选考题;The candidate test question unit is used to select the next question of the first historical test question with the highest matching degree as the candidate test question;
    第二匹配度计算单元,用于计算所述候选考题与题库中的下一题的第二匹配度;The second matching degree calculation unit is used to calculate the second matching degree between the candidate test question and the next question in the question bank;
    出题单元,用于在所述第二匹配度满足预设条件时,将所述候选考题作为目标考题出题。The question-making unit is configured to use the candidate test question as a target test question when the second matching degree satisfies a preset condition.
  7. 如权利要求6所述的装置,其特征在于,所述出题单元,还用于在所述第二匹配度不满足预设条件时,将所述题库中的下一题作为目标考题出题。The device according to claim 6, wherein the question generating unit is further configured to use the next question in the question bank as a target test question when the second matching degree does not meet a preset condition .
  8. 如权利要求6所述的装置,其特征在于,所述第一匹配度计算单元包括第一编码单元、问题匹配度计算单元、答案匹配度计算单元和第一匹配度计算子单元;7. The device according to claim 6, wherein the first matching degree calculation unit comprises a first coding unit, a question matching degree calculation unit, an answer matching degree calculation unit, and a first matching degree calculation subunit;
    所述第一编码单元,用于根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;The first coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
    所述第一编码单元,还用于根据预设的问答模型对每一所述历史考题的问答内容进行编码,获得每一历史考题的问题编码和答案编码;The first coding unit is further configured to code the question and answer content of each historical test question according to a preset question and answer model to obtain the question code and answer code of each historical test question;
    所述问题匹配度计算单元,用于计算每一历史考题的问题编码与所述当前考题的问题编码的问题匹配度;The question matching degree calculation unit is used to calculate the question matching degree between the question code of each historical test question and the question code of the current test question;
    所述答案匹配度计算单元,用于计算每一历史考题的答案编码与所述当前考题的答案编码的答案匹配度;The answer matching degree calculation unit is used to calculate the answer matching degree between the answer code of each historical test question and the answer code of the current test question;
    所述第一匹配度计算子单元,用于根据所述问题匹配度与所述答案匹配度计算所述第一匹配度。The first matching degree calculation subunit is configured to calculate the first matching degree according to the matching degree of the question and the degree of matching of the answer.
  9. 如权利要求6-8所述的装置,其特征在于,所述装置还包括:The device according to claims 6-8, wherein the device further comprises:
    第二编码单元、第三匹配度计算单元、第四匹配度计算单元以及答案分数计算单元;A second coding unit, a third matching degree calculation unit, a fourth matching degree calculation unit, and an answer score calculation unit;
    所述第二编码单元,用于根据预设的问答模型对所述当前考题的问答内容进行编码,获得当前考题的问题编码和答案编码;The second coding unit is configured to code the question and answer content of the current test question according to a preset question and answer model to obtain the question code and answer code of the current test question;
    所述第三匹配度计算单元,用于计算所述当前考题的问题编码与答案编码的第三匹配度;The third matching degree calculation unit is configured to calculate the third matching degree between the question code and the answer code of the current test question;
    所述第四匹配度计算单元,用于根据文本相似度算法,计算所述当前考题的答案与所述当前考题的标准答案的第四匹配度;The fourth matching degree calculation unit is configured to calculate the fourth matching degree between the answer of the current test question and the standard answer of the current test question according to a text similarity algorithm;
    所述答案分数计算单元,用于根据所述第三匹配度和所述第四匹配度计算所述当前考题的答案的分数。The answer score calculation unit is configured to calculate the score of the answer to the current test question according to the third matching degree and the fourth matching degree.
  10. 一种计算机系统,其特征在于,包括:A computer system, characterized in that it comprises:
    一个或多个处理器;以及One or more processors; and
    与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行如权利要求1-5任一项所述的操作。A memory associated with the one or more processors, where the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, execute any one of claims 1-5 The operation described in
PCT/CN2020/111954 2019-12-30 2020-08-28 Automatic question setting method, apparatus and system WO2021135322A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CA3166342A CA3166342A1 (en) 2019-12-30 2020-08-28 Automatic question setting method, apparatus and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911400187.3A CN111159379B (en) 2019-12-30 2019-12-30 Automatic question setting method, device and system
CN201911400187.3 2019-12-30

Publications (1)

Publication Number Publication Date
WO2021135322A1 true WO2021135322A1 (en) 2021-07-08

Family

ID=70559482

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/111954 WO2021135322A1 (en) 2019-12-30 2020-08-28 Automatic question setting method, apparatus and system

Country Status (3)

Country Link
CN (1) CN111159379B (en)
CA (1) CA3166342A1 (en)
WO (1) WO2021135322A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159379B (en) * 2019-12-30 2022-12-20 苏宁云计算有限公司 Automatic question setting method, device and system
CN113761832A (en) * 2021-08-05 2021-12-07 联想(北京)有限公司 Information processing method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228264A1 (en) * 2003-02-11 2009-09-10 Microsoft Corporation Management of conversations
CN104321765A (en) * 2012-06-29 2015-01-28 国际商业机器公司 Extension to the expert conversation builder
CN109255697A (en) * 2018-08-15 2019-01-22 普信恒业科技发展(北京)有限公司 A kind of automatic credit estimation method and system based on artificial intelligence
CN109977208A (en) * 2019-03-22 2019-07-05 北京中科汇联科技股份有限公司 It is a kind of to merge FAQ and task and the actively conversational system of guidance
CN110110066A (en) * 2019-05-09 2019-08-09 腾讯科技(深圳)有限公司 A kind of interaction data processing method, device and computer readable storage medium
CN111159379A (en) * 2019-12-30 2020-05-15 苏宁云计算有限公司 Automatic question setting method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220380A (en) * 2017-06-27 2017-09-29 北京百度网讯科技有限公司 Question and answer based on artificial intelligence recommend method, device and computer equipment
CN109697228A (en) * 2018-12-13 2019-04-30 平安科技(深圳)有限公司 Intelligent answer method, apparatus, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228264A1 (en) * 2003-02-11 2009-09-10 Microsoft Corporation Management of conversations
CN104321765A (en) * 2012-06-29 2015-01-28 国际商业机器公司 Extension to the expert conversation builder
CN109255697A (en) * 2018-08-15 2019-01-22 普信恒业科技发展(北京)有限公司 A kind of automatic credit estimation method and system based on artificial intelligence
CN109977208A (en) * 2019-03-22 2019-07-05 北京中科汇联科技股份有限公司 It is a kind of to merge FAQ and task and the actively conversational system of guidance
CN110110066A (en) * 2019-05-09 2019-08-09 腾讯科技(深圳)有限公司 A kind of interaction data processing method, device and computer readable storage medium
CN111159379A (en) * 2019-12-30 2020-05-15 苏宁云计算有限公司 Automatic question setting method, device and system

Also Published As

Publication number Publication date
CN111159379A (en) 2020-05-15
CA3166342A1 (en) 2021-07-08
CN111159379B (en) 2022-12-20

Similar Documents

Publication Publication Date Title
CN106202453B (en) Multimedia resource recommendation method and device
TWI718422B (en) Method, device and equipment for fusing model prediction values
CN110992169A (en) Risk assessment method, device, server and storage medium
CN108322317B (en) Account identification association method and server
CN106874253A (en) Recognize the method and device of sensitive information
US20210311751A1 (en) Machine-learning models applied to interaction data for determining interaction goals and facilitating experience-based modifications to interface elements in online environments
US20160188707A1 (en) Prompting Subject Matter Experts for Additional Detail Based on Historical Answer Ratings
CN109345417B (en) Online assessment method and terminal equipment for business personnel based on identity authentication
US20220148113A1 (en) Machine learning modeling for protection against online disclosure of sensitive data
US20220138770A1 (en) Method and apparatus for analyzing sales conversation based on voice recognition
WO2021135322A1 (en) Automatic question setting method, apparatus and system
CN113392197B (en) Question-answering reasoning method and device, storage medium and electronic equipment
CN114356747A (en) Display content testing method, device, equipment, storage medium and program product
CN106790171A (en) The method of session control, device and computer-readable recording medium
CN108268602A (en) Analyze method, apparatus, equipment and the computer storage media of text topic point
CN106575418A (en) Suggested keywords
CN111443973A (en) Filling method, device and equipment of remark information and storage medium
CN110674632A (en) Method and device for determining security level, storage medium and equipment
WO2021098876A1 (en) Question and answer method and apparatus based on knowledge graph
CN113962766A (en) Commodity recommendation method and system for simple mixed privacy protection scene
CN113822589A (en) Intelligent interviewing method, device, equipment and storage medium
JP2007128032A (en) Electronic learning supervision method and system
CN113837322B (en) Course classification processing method, device, equipment and medium
CN113190779B (en) Webpage evaluation method and device
CN113627399B (en) Topic processing method, device, equipment and storage medium

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: 20908471

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3166342

Country of ref document: CA

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20908471

Country of ref document: EP

Kind code of ref document: A1