Exercise solving method and electronic equipment
By classifying the mathematical multiple-choice questions and using problem-solving models corresponding to different question types to solve them, the problem of poor results in answering different types of mathematical multiple-choice questions in the prior art is solved, and the accuracy and applicability of the solution are improved.
Patent Information
- Application Number
- CN202310190120.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-02-28
AI Technical Summary
It is difficult for the existing technology to effectively answer different types of mathematical multiple-choice questions, especially graphic questions, calculation questions and conceptual questions, and the unified model has poor solving results.
By classifying mathematics multiple-choice questions, problem-solving models corresponding to different question types are used for training and solving, including pure text question types, graphic question types and regular question types, using different preset models and solving methods respectively.
It improves the accuracy of solving mathematical multiple-choice questions, can take into account different types of mathematical multiple-choice questions, and enhances the accuracy of automated solving.
Smart Images

Figure CN118569238A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of educational information technology, and in particular to a method for solving exercises and an electronic device. Background Art
[0002] Math problems are among the most complex problems in many subjects. In order to help students solve math problems, teachers and parents need to spend a lot of time reviewing math knowledge and performing repeated and trivial calculations. If a program can automatically solve math multiple-choice questions, students can complete math multiple-choice questions independently and compare the answers with references.
[0003] Existing solutions process text based on the content of the multiple-choice questions, and then input the obtained text information into pre-trained models, such as Bert, etc., to solve multiple-choice questions by learning the relationship between the previous and next information in the text. Usually, the four options are substituted into the questions to form four sentences for training. However, this method can only solve a class of similar questions. Since multiple-choice questions involve graphic questions, calculation questions, concept questions, regularity questions, etc., it is difficult to use a unified model to solve them. Even if a unified model is used, its solution cannot achieve a better effect. Summary of the invention
[0004] The embodiment of the present application provides a method for solving exercises and an electronic device. By classifying math multiple-choice questions and adopting different solutions for different question types, different types of math multiple-choice questions can be taken into account and the accuracy of solving math multiple-choice questions can be improved.
[0005] The embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a method for solving a problem, the method comprising:
[0007] Obtaining an exercise set, wherein the exercise set includes a plurality of exercise texts;
[0008] Determine semantic vectors of multiple exercise texts according to the first preset model;
[0009] Calculate the similarity between multiple exercise texts according to the semantic vectors of multiple exercise texts;
[0010] According to the similarity of multiple exercise texts, the exercise sets are classified to determine several question types corresponding to the exercise sets;
[0011] According to the several question types corresponding to the exercise book, determine the corresponding problem-solving model for each question type;
[0012] Based on the exercise set, the problem-solving model corresponding to each question type is trained to obtain several problem-solving models after training;
[0013] Obtain exercises to be solved, determine question types corresponding to the exercises to be solved, and solve the exercises to be solved based on a number of trained problem-solving models.
[0014] In some embodiments, determining semantic vectors of a plurality of exercise texts according to a first preset model includes:
[0015] According to the first preset model, each word in the exercise text is encoded into a word content vector and a word position vector respectively;
[0016] The word content vector and the word position vector are averaged to obtain the semantic vector of the exercise text.
[0017] In some embodiments, the question type includes a plain text question type, and the problem-solving model corresponding to the plain text question type is a first problem-solving model. Based on the exercise set, the problem-solving model corresponding to each question type is trained to obtain a plurality of problem-solving models after training, including:
[0018] The first problem-solving model is trained to obtain the trained first problem-solving model, specifically including:
[0019] Fill in all the options of the first problem-solving model exercises into the blanks in the questions that need to be answered;
[0020] Adjust the order of all options in the exercises of the first problem-solving model;
[0021] According to the second preset model, all options of the exercise are predicted to obtain the correct probability of each option;
[0022] The option with the highest probability of being correct is determined as the correct answer to obtain the first problem-solving model after training.
[0023] In some embodiments, all options of the exercise are predicted according to the second preset model to obtain the correct probability of each option, including:
[0024] Define several category labels based on all the options in the exercise;
[0025] Define the prediction results into two categories: correct and wrong;
[0026] According to the exercise text, add identifiers in front of several category labels to construct prompt sentences;
[0027] Based on the second preset model and according to the prompt sentence, predicting the positions of the multiple identifiers to obtain a prediction result;
[0028] Map the prediction results to category labels and get the correct probability of each option corresponding to the category label.
[0029] In some embodiments, the method further comprises:
[0030] Mark the exercises of different concepts in the first problem-solving model by question type;
[0031] The first problem-solving model is divided into several types of detailed models according to the question type marking.
[0032] In some embodiments, the question type includes a picture-text question type, and the problem-solving model corresponding to the picture-text question type is a second problem-solving model. Based on the exercise set, the problem-solving model corresponding to each question type is trained to obtain a plurality of problem-solving models after training, including:
[0033] The second problem-solving model is trained to obtain the trained second problem-solving model, specifically including:
[0034] Input the exercise title text into the preset text model and encode it into a text vector;
[0035] Input the pictures in the options of the exercise into the preset picture model and encode them into picture vectors to obtain several groups of picture vectors;
[0036] Calculate the cosine similarity between the text vector and several groups of image vectors respectively to obtain several groups of cosine similarities;
[0037] The option corresponding to the largest cosine similarity in each group of cosine similarities is taken as the correct answer to obtain the second problem-solving model after training.
[0038] In some embodiments, the third problem-solving model solves regular problem types based on preset rules, including:
[0039] According to the operation symbol in the regular question type, calculate the first operation result corresponding to the operation symbol;
[0040] Determine the operation result in the option of the rule question type as the second operation result;
[0041] If the first calculation result and the second calculation result meet the preset rules, the option corresponding to the second calculation result is determined to be the correct answer to the regular question type.
[0042] In some embodiments, the method further comprises:
[0043] Determine whether math multiple-choice questions of the pattern type are solvable;
[0044] If the math multiple-choice question of the pattern type is unsolvable, choose the preset option as the answer.
[0045] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0046] at least one processor; and
[0047] a memory communicatively connected to at least one processor; wherein,
[0048] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the problem-solving method according to the first aspect.
[0049] The beneficial effects of the implementation of the present application are as follows: Different from the prior art, the implementation of the present application provides a method for solving exercises, which includes: obtaining an exercise set, wherein the exercise set includes multiple exercise texts; determining the semantic vectors of the multiple exercise texts according to a first preset model; calculating the similarity between the multiple exercise texts according to the semantic vectors of the multiple exercise texts; classifying the exercise set according to the similarity of the multiple exercise texts, and determining a number of question types corresponding to the exercise set; determining a problem-solving model corresponding to each question type according to the several question types corresponding to the exercise set; training the problem-solving model corresponding to each question type based on the exercise set to obtain a number of problem-solving models after training; obtaining exercises to be solved, determining the question type corresponding to the exercises to be solved, and solving the exercises to be solved based on the several problem-solving models after training. By classifying math multiple-choice questions and adopting different solutions for different question types, the present application can take into account different types of math multiple-choice questions and improve the accuracy of solving math multiple-choice questions. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.
[0051] Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
[0052] Figure 2 It is a flowchart of a method for solving exercises provided in an embodiment of the present application;
[0053] Figure 3 yes Figure 2 A detailed flow chart of step S202 in FIG.
[0054] Figure 4 It is a schematic diagram of the overall process of solving a problem provided by an embodiment of the present application;
[0055] Figure 5 It is a flowchart of training a first problem-solving model provided in an embodiment of the present application;
[0056] Figure 6 yes Figure 5 A detailed flow chart of step S503 in FIG.
[0057] Figure 7 It is a flowchart of a refinement of the first problem-solving model provided in an embodiment of the present application;
[0058] Figure 8 is a schematic diagram of solving a problem based on a second problem-solving model provided in an embodiment of the present application;
[0059] Fig. 9 It is a flowchart of training a second problem-solving model provided in an embodiment of the present application;
[0060] Fig.10 It is a flowchart of solving exercises based on the third problem-solving model provided in an embodiment of the present application;
[0061] Fig.11 It is a flowchart of determining whether a regular problem type is solvable provided by an embodiment of the present application;
[0062] Fig.12 It is a flowchart of solving a problem to be solved provided by an embodiment of the present application;
[0063] Fig.13 is a structural schematic diagram of a problem-solving device provided in an embodiment of the present application;
[0064] Fig.14 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0065] Description of Figure Numbers:
[0066] Label name Label name 100 Application Environment 132 Exercise Classification Unit 10 Problem Solving Equipment 133 Model training unit 20 server 134 Problem Solving Unit 30 terminal 140 Electronic devices 130 Exercise Solving Device 141 processor 131 Exercise Acquisition Unit 142 Memory DETAILED DESCRIPTION
[0068] In order to facilitate the understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween. The terms "vertical", "horizontal", "left", "right" and similar expressions used in this specification are for illustrative purposes only.
[0069] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this specification and in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0070] The technical solution of the present application is described in detail below in conjunction with the accompanying drawings:
[0071] See also Figure 1 , Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
[0072] like Figure 1 As shown, the application environment 100 includes: a problem solving device 10, a server 20 and a terminal 30, wherein the problem solving device 10 is connected to the server 20 via a network communication, and the server 20 is connected to the terminal 30 via a network communication, wherein the network includes a wired network and / or a wireless network. It is understandable that the network includes wireless networks such as 2G, 3G, 4G, 5G, wireless LAN, Bluetooth, etc., and may also include wired networks such as serial cables and network cables.
[0073] In the embodiment of the present application, the problem solving device 10 includes a problem solving module, a communication module and a controller.
[0074] In the embodiment of the present application, the exercise solving module is used to obtain the exercises to be solved, determine the type of questions corresponding to the exercises to be solved, and solve the exercises to be solved based on a number of problem-solving models after training. The exercise solving module is connected to the controller in communication, receives and identifies the exercises to be solved, and sends the obtained exercise information to the controller as well as the answers to the exercises after solving.
[0075] In the embodiment of the present application, the communication module is connected to the server for receiving data sent by the server, for example, after solving the exercises, receiving the answers to the exercises sent by the server; or, sending data to the server, for example, sending the questions and options of the exercises to the server. In the embodiment of the present application, the communication module can realize communication with the Internet, wherein the communication module includes but is not limited to communication units such as WI FI module, ZigBee module, NB_I oT module, 4G module, 5G module, Bluetooth module, etc.
[0076] In the embodiment of the present application, the controller is used as the control core of the exercise solving device, and is used to control the exercise solving device to receive and identify the exercises to be solved, solve the exercises, and perform some business logic processing. For example, the controller is used to obtain the exercise information to be solved and the answers to the exercises after being solved sent by the exercise solving device, and send the exercise information to be solved and the answers to the exercises after being solved to the server.
[0077] In the embodiment of the present application, the controller can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RICS Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component or any combination of these components. The controller can also be any traditional processor, controller, microcontroller or state machine. The controller can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP and / or any other such configuration, or a microcontroller unit (MCU), a field programmable gate array (FPGA), a system on chip (SoC) or one or more combinations thereof.
[0078] It can be understood that the problem-solving device 10 in the embodiment of the present application also includes a storage module, which includes but is not limited to: FLASH flash memory, NAND flash memory, vertical NAND flash memory (VNAND), NOR flash memory, resistive random access memory (RRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), spin transfer torque random access memory (STT-RAM) and other devices. One or more of the above devices.
[0079] In the embodiment of the present application, the server 20 is connected to the problem solving device 10 and the terminal 30 in communication, and is used to receive the problem information to be solved and the answers to the problems after being solved sent by the problem solving device 10, or receive the problem solving command sent by the terminal 30, for example: after the server 20 receives the problem solving command sent by the terminal 30, it controls the problem solving device 10 to solve the problem. The server 20 can also be used to send the answers to the problems to the terminal 30. The number of the servers 20 is multiple, and the multiple servers can form a server cluster, for example: the server cluster includes: a first server, a second server, ..., an Nth server, or the server cluster can be a cloud computing service center, and the cloud computing service center includes several servers. The servers in the embodiment of the present application include but are not limited to: tower servers, rack servers, blade servers, and cloud servers. Preferably, the server is a cloud server (Electric Compute Service, ECS).
[0080] In the embodiment of the present application, the terminal 30 is connected to the server 20 for sending exercise solving instructions to the server 20, or for receiving answers to exercises sent by the server 20. There are multiple terminals 30, and their types include but are not limited to: fixed telephones, mobile communication devices, mobile personal computer devices, or other electronic devices with Internet access functions.
[0081] Embodiment 1
[0082] See also Figure 2 , Figure 2 It is a flowchart of a method for solving exercises provided in an embodiment of the present application;
[0083] The problem-solving method is applied to an electronic device. Specifically, the execution subject of the problem-solving method is one or at least two processors of the electronic device.
[0084] like Figure 2 As shown, the solution method of this exercise includes:
[0085] Step S201: Obtaining a set of exercises;
[0086] Specifically, the electronic device obtains a set of math multiple-choice questions from a question bank of a server, or obtains a set of math multiple-choice questions from a memory of the electronic device, wherein the set of math multiple-choice questions includes a plurality of exercise texts.
[0087] Step S202: determining semantic vectors of a plurality of exercise texts according to a first preset model;
[0088] Please refer to Figure 3 , Figure 3 yes Figure 2 A detailed flow chart of step S202 in FIG.
[0089] like Figure 3 As shown, according to the first preset model, the semantic vectors of multiple exercise texts are determined, including:
[0090] Step S2021: According to the first preset model, each word in the exercise text is encoded into a word content vector and a word position vector respectively;
[0091] Specifically, before encoding each word in the exercise text into a word content vector and a word position vector respectively, the electronic device reads the exercise text in the math multiple-choice exercise set, performs text cleaning, filters special symbols, and escapes the exercise text to obtain the exercise text in plain text form. For example, the exercise text can be cleaned through different categories of tags in html tags.
[0092] In an embodiment of the present application, the first preset model is the DeBERTa model (Decoded-enhancedBERT with Divided Attention). According to the DeBERTa model, each word in the exercise text is encoded as a word content vector and a word position vector, respectively, and the attention weights between words are calculated based on the relative positions and contents of the words, wherein the attention weights between words are represented by a decoupling matrix of word content and relative position. For example, when the two words "number" and "study" appear adjacent to each other, the dependency between them is much stronger than when they appear in different sentences, that is, when the two words "number" and "study" appear adjacent to each other, the attention weight between the two words is high.
[0093] Step S2022: averaging the word content vector and the word position vector to obtain the semantic vector of the exercise text;
[0094] Specifically, the semantic vector of the exercise text is the semantic vector of the sentence in the exercise text. Since each sentence contains several words and the DeBERTa model processes the input exercise text in units of words, if you want to obtain the semantic vector of the sentence in the exercise text, you need to find the average of the word content vector and the word position vector, that is, perform pooling (average pooling) on all the word content vectors and word position vectors in the exercise text to obtain the semantic vector of the exercise text.
[0095] Step S203: calculating the similarity between the multiple exercise texts according to the semantic vectors of the multiple exercise texts;
[0096] Specifically, according to the semantic vector of each exercise text obtained as mentioned above, the cosine similarity between the semantic vectors of every two exercise texts is calculated to obtain the cosine similarity between the two exercise texts, and the cosine similarity is used to represent the similarity between the two exercise texts, that is, the dot product of the semantic vectors of the two exercise texts is calculated, and the dot product of the semantic vectors of the two exercise texts is divided by the product of the moduli of the semantic vectors of the two exercise texts to obtain the cosine value of the angle between the two semantic vectors, and the cosine value is used as the cosine similarity between the two exercise texts. The larger the cosine similarity, the more similar the two exercise texts are.
[0097] Step S204: classifying the exercise set according to the similarity of the multiple exercise texts, and determining a number of question types corresponding to the exercise set;
[0098] Specifically, based on the cosine similarity between each exercise text, the exercise set can be divided into several question types through supervised clustering. In the embodiment of the present application, it is first identified whether there are pictures in the exercises in the exercise set, and the exercises with pictures are first divided into picture-text question types, and then the remaining exercises are subjected to supervised clustering, and finally the exercise set is divided into three categories: pure text question type, picture-text question type, and regular question type. It should be noted that the question types of the exercise set include but are not limited to pure text question type, picture-text question type, and regular question type, and other types of question types can be set according to actual needs.
[0099] Step S205: determining a problem-solving model corresponding to each problem type according to the problem set;
[0100] Specifically, according to the classification result of the question type of the exercise book, several question types corresponding to the exercise book are determined, and each question type has its corresponding problem-solving model, and each problem-solving model needs to be obtained through pre-training.
[0101] Please refer to Figure 4 , Figure 4 It is a schematic diagram of the overall process of solving a problem provided by an embodiment of the present application;
[0102] like Figure 4 As shown in the figure, the overall process of problem solving includes the following steps:
[0103] (1) obtaining a set of exercises to be solved, wherein the set of exercises to be solved includes a plurality of unclassified mathematics multiple-choice questions;
[0104] (2) Preprocessing the exercise set to be solved, that is, cleaning the exercise text in HTML format and filtering out some special symbols and performing escape operations on the exercise text to obtain a usable paradigm of the exercise set to be solved;
[0105] (3) The DeBERTa model (Decoding-enhanced BERT with Differentiated Attention) is used to classify the available paradigms of the exercise set, and the exercise set is divided into three categories: pure text question type, graphic question type, and regular question type.
[0106] (4) The three types of exercises mentioned above are solved respectively by using the three pre-trained problem-solving models, that is, the first problem-solving model is used to solve the exercises of the pure text type, the second problem-solving model is used to solve the exercises of the graphic and text type, and the third problem-solving model is used to solve the exercises of the rule type, and finally the answers to the exercises to be solved are obtained.
[0107] In the embodiment of the present application, by determining the question type corresponding to the exercise text and calling the corresponding problem-solving model according to the question type to solve the exercise, the accuracy of automated problem solving can be improved.
[0108] Step S206: Based on the exercise set, the problem-solving model corresponding to each question type is trained to obtain a plurality of problem-solving models after training;
[0109] Specifically, the plurality of problem-solving models include a first problem-solving model.
[0110] Please refer to Figure 5 , Figure 5 It is a flowchart of training a first problem-solving model provided in an embodiment of the present application;
[0111] like Figure 5 As shown, training the first problem-solving model includes:
[0112] Step S501: Fill all the options of the exercises of the first problem-solving model into the blank positions that need to be answered in the questions;
[0113] Specifically, the question types include different categories of question types, for example: the first category of question types, which include pure text question types, and the problem-solving model corresponding to the pure text question types is the first problem-solving model. There are several options in the exercises of the first problem-solving model. At the same time, there is a blank position that needs to be answered in the title of the exercises of the first problem-solving model. All options of the exercises of the first problem-solving model are filled in the blank position together, which is equivalent to splicing all options of the exercises with the titles of the exercises to obtain the result of splicing all options of the exercises with the titles of the exercises. For example, the text of the exercise is: Divide a cylinder into four equal cylinders, and the surface area increases by 18.84 square decimeters. Then the area of one base of the cylinder is () square decimeters. The options of the exercise are: A, 3.14B, 4.71C.6.28D, 9.42. The result of combining all the options of the exercise with the title of the exercise is: Dividing a cylinder into four equal cylinders increases the surface area by 18.84 square decimeters. Then the area of one base of the cylinder is A, 3.14B, 4.71C.6.28D, 9.42 square decimeters.
[0114] Step S502: adjusting the arrangement order of all options of the exercises of the first problem-solving model;
[0115] Specifically, since the arrangement order of the options of the exercises of the first problem-solving model may cause the model to overfit the positional relationship between the exercise text and the options, affecting the training effect of the second preset model, it is necessary to adjust the arrangement order of all the options of the exercises of the first problem-solving model. For example, the exercise text is: Divide a cylinder into four equal cylinders, the surface area increases by 18.84 square decimeters, and the area of one bottom surface of the cylinder is () square decimeters. The exercise options are: A, 3.14B, 4.71C.6.28D, 9.42. According to the result of splicing all the options of the above exercises with the questions of the exercises, after adjusting the arrangement order of all the options of the exercises of the first problem-solving model, it is obtained that: Divide a cylinder into four equal cylinders, the surface area increases by 18.84 square decimeters, and the area of one bottom surface of the cylinder is B, 4.71A, 3.14D, 9.42C.6.28 square decimeters.
[0116] Step S503: predicting all options of the exercise according to the second preset model to obtain the correct probability of each option;
[0117] Please refer to Figure 6 , Figure 6 yes Figure 5 A detailed flow chart of step S503 in FIG.
[0118] like Figure 6 As shown, according to the second preset model, all options of the exercise are predicted to obtain the correct probability of each option, including:
[0119] Step S5031: define several category labels according to all options of the exercise;
[0120] Specifically, according to all the options of the exercises of the first problem-solving model, a number of category labels are defined, that is, all the options of the exercises correspond to the category labels one by one.
[0121] Step S5032: define the prediction results into two categories: correct and wrong;
[0122] Specifically, the prediction results are defined as two categories: correct and incorrect. That is, the spatial mapping of the options of the exercise is defined as ["correct", "incorrect"].
[0123] Step S5033: According to the exercise text, add identifiers in front of several category labels to construct prompt sentences;
[0124] Specifically, based on the DeBERTa model, according to the result of concatenating all the options of the exercise with the title of the exercise, a mask identifier [mask] is added in front of each option, and a separator identifier [SEP] is added after the last option, and a prompt statement is constructed according to the exercise text. For example, the exercise text is: If a cylinder is divided into four equal cylinders, the surface area increases by 18.84 square decimeters, then the area of one base of the cylinder is () square decimeters. The exercise options are: A, 3.14 B, 4.71 C. 6.28 D, 9.42. On the basis of adjusting the order of all the options of the exercises in the first problem-solving model, add the mask identifier [mask] in front of each option and add the separator identifier [SEP] after the last option, and we get: dividing a cylinder into four equal cylinders, the surface area increases by 18.84 square decimeters, then the area of one base of the cylinder is [mask] B, 4.71 [mask] A, 3.14 [mask] D, 9.42 [mask] C. 6.28 [SEP] square decimeters.
[0125] In the embodiment of the present application, the mask identifier [mask] is set to facilitate the subsequent prediction of multiple mask identifiers, and the separator identifier [SEP] is set to distinguish between options and exercise texts, indicating that the content of the options has ended, preventing the second preset model from learning redundant exercise texts other than the options of the exercises, thereby improving the accuracy of subsequent prediction results.
[0126] Step S5034: Based on the second preset model and according to the prompt sentence, predict the positions of the multiple identifiers to obtain a prediction result;
[0127] Specifically, the second preset model is a prompt model, which is based on the prompt model and according to the prompt sentence constructed in step S4033. Since the DeBERTa model is pre-trained using MLM (masked l anguage model l), in the DeBERTa model, multiple mask identifiers [mask] are predicted according to the words around the mask, and the option answers of the exercise can be obtained according to the mask identifier [mask], that is, the prediction results of all options are obtained.
[0128] Step S5035: Map the prediction result to the category label to obtain the correct probability of each option corresponding to the category label;
[0129] Specifically, the prediction results are mapped to category labels, that is, each category label in step S4031 corresponds to a correct or incorrect prediction result. Through the second preset model, the correct probability of each option corresponding to the category label can be obtained by prediction.
[0130] Step S504: Determine the option with the highest correct probability as the correct answer to obtain the first problem-solving model after training;
[0131] Specifically, according to the correct probability of each option, the softmax function is used. Softmax is an activation function, which is generally used to process the initial output results in classification tasks. The softmax function normalizes the prediction results to satisfy the fact that all probabilities add up to 1, and the result with the maximum probability is taken as the correct answer. In the embodiment of the present application, each [mask] position needs to be processed by the softmax function, and the option with the highest correct probability is determined as the correct answer to obtain the first problem-solving model after training.
[0132] Please refer to Figure 7 , Figure 7 It is a flowchart of a refinement of the first problem-solving model provided in an embodiment of the present application;
[0133] like Figure 7 As shown, the process of the first problem-solving model is refined, including:
[0134] Step S701: marking the types of exercises with different concepts in the first problem-solving model;
[0135] Specifically, according to different concepts of the exercises in the first problem-solving model, several types of labels are set to mark the exercises by question type.
[0136] Step S702: Divide the first problem-solving model into several types of detailed models according to the question type annotations;
[0137] Specifically, according to the question type annotation, supervised classification is performed on exercises of different concepts through the model, and the first problem-solving model is subdivided into several types of detailed models, where exercises of different concepts represent that exercises of a certain category are divided into several types of detailed categories according to their properties. For example, according to the different concepts of the exercises, the first problem-solving model can be subdivided into detailed models of factors, multiples, and the number of decimal places retained. It should be noted that the supervised classification in the embodiments of the present application includes but is not limited to AdaBoost, SVM, neural network algorithm and perceptron algorithm.
[0138] In an embodiment of the present application, by dividing the first problem-solving model into several types of detailed models, exercises of different concepts correspond to their own detailed models. The present application can reduce the impact of mixed information on the model and further improve the accuracy of problem solving.
[0139] Specifically, the plurality of problem-solving models include a second problem-solving model.
[0140] Please refer to Figure 7 , Figure 7 It is a flowchart of training a second problem-solving model provided in an embodiment of the present application;
[0141] like Figure 7 As shown, training the second problem-solving model includes:
[0142] Step S701: input the text of the exercise question into a preset text model and encode it into a text vector;
[0143] Specifically, the second type of question type includes a picture-text question type, and the problem-solving model corresponding to the picture-text question type is the second problem-solving model. In the embodiment of the present application, a multimodal pre-training model Clip (Contrast i ve Language-Image Pre-training) based on contrastive learning is adopted. The Clip model can use NLP supervised pre-trained image classifiers on large-scale data sets and use text as image labels for training. The preset text model is a Transformer model, which is a new encoder-decoder model based on the self-attention mechanism. The question text of the exercise is input into the preset text model and encoded into a text vector, wherein the preset text model includes but is not limited to the Transformer model.
[0144] Step S702: inputting the pictures in the options of the exercise into the preset picture model and encoding them into picture vectors to obtain a plurality of groups of picture vectors;
[0145] Specifically, the preset image models are ResNet (residual network) and Vision Transformer (VI T). The images in the options of the exercises are input into the preset image models and encoded into image vectors to obtain several groups of image vectors. Among them, the preset image models include but are not limited to ResNet and Vision Transformer.
[0146] Step S703: Calculate the cosine similarities between the text vector and several groups of image vectors respectively to obtain several groups of cosine similarities;
[0147] Specifically, each exercise corresponds to a text vector and a group of image vectors. The text vector and the corresponding image vector will be mapped to a linear space of the same dimension. The cosine similarities between the text vector and several groups of image vectors are calculated respectively to obtain several groups of cosine similarities.
[0148] Step S704: taking the option corresponding to the largest cosine similarity in each group of cosine similarities as the correct answer, and obtaining the second problem-solving model after training;
[0149] Specifically, in each group of cosine similarities, the larger the cosine similarity, the higher the matching degree between the corresponding option and the question, and the option corresponding to the largest cosine similarity in each group of cosine similarities is taken as the correct answer to obtain the second problem-solving model after training.
[0150] Please refer to Figure 8 , Figure 8 is a schematic diagram of solving a problem based on a second problem-solving model provided in an embodiment of the present application;
[0151] like Figure 8 As shown, the title of the exercise is: The colored part in the picture below is fan-shaped (). The four options of the exercise are all pictures. Since the exercise includes pictures, the second problem-solving model is used to solve the exercise. The text of the exercise title is input into the preset text model (Transformer model) and encoded into a text vector. The pictures in the options of the exercise are input into the preset picture model (ResNet model and VisionTransformer model) and encoded into picture vectors to obtain four picture vectors. According to the second problem-solving model, the four cosine similarities between the text vector and the four picture vectors are calculated respectively, and the option corresponding to the largest cosine similarity is taken as the correct answer, that is, option B is the correct answer to the exercise.
[0152] Specifically, the plurality of problem-solving models include a third problem-solving model.
[0153] Please refer to Fig.10 , Fig.10It is a flowchart of solving exercises based on the third problem-solving model provided in an embodiment of the present application;
[0154] like Fig.10 As shown in FIG. 1 , the process of solving the exercises based on the third problem-solving model includes:
[0155] Step S1001: Calculate the first operation result corresponding to the operation symbol according to the operation symbol in the regular question type;
[0156] Specifically, the third type of question types includes regular question types, and the problem-solving model corresponding to the regular question types is the third problem-solving model, wherein the third problem-solving model solves the regular question types based on preset rules and does not require prior training. The regular question types include question types that require four arithmetic operations. In an embodiment of the present application, the preset rules include a solution method for questions related to the four arithmetic operations. According to the operation symbols in the regular question types, the first operation result corresponding to the operation symbols is calculated. For example, the question is to calculate what 4*7 equals. When solving the question, it is solved based on the preset rules. You can first select the corresponding multiplication operation rule through the multiplication sign in the question to solve it, and the first operation result is 28.
[0157] Step S1002: determining the calculation result in the options of the regular question type as the second calculation result;
[0158] Specifically, calculate the operation results in the options in the rule question type, and determine the operation results in the options as the second operation results. For example, the question is to calculate what 4*7 equals, and the four options are A.12, B.28, C.24, and D.34. The four options are determined as the second operation results.
[0159] Step S1003: if the first calculation result and the second calculation result meet the preset rule, determining the option corresponding to the second calculation result as the correct answer to the regular question type;
[0160] Specifically, the second operation results of all options are compared with the first operation results one by one. If the first operation result and the second operation result meet the preset rules, the option corresponding to the second operation result is determined to be the correct answer to the regular question type. For example, the question is to calculate what 4*7 equals, and the four options are A.12, B.28, C.24, and D.34. The second operation result corresponding to option B meets the equal rule with the first operation result, so option B is determined to be the correct answer.
[0161] Please refer to Fig.11 , Fig.11 It is a flowchart of determining whether a regular problem type is solvable provided by an embodiment of the present application;
[0162] like Fig.11 As shown, judging whether the regularity question type is solvable includes:
[0163] Step S1101: Obtaining exercises of regular question types;
[0164] Specifically, after the exercises are classified, the electronic device obtains exercises of regular question types.
[0165] Step S1102: Determine whether the regular type of exercise is solvable;
[0166] Specifically, when solving a regular problem type based on a preset rule, it is necessary to determine whether the regular problem type exercise is solvable, that is, to determine whether the regular problem type exercise can calculate a first operation result.
[0167] If the regular type of exercise is solvable, proceed to step S1103;
[0168] If the regular type of question is unsolvable, proceed to step S1104.
[0169] Step S1103: solving regular questions based on preset rules;
[0170] Specifically, if the regular question type is solvable, the regular question type is solved based on the preset rules. The specific solving steps have been described in detail in steps S801-S803 and will not be repeated here.
[0171] Step S1104: Select a preset option as the answer;
[0172] Specifically, a preset option is set. If the regular question type exercise is unsolvable, that is, the answer cannot be calculated through the third problem-solving model, then the preset option is selected as the answer. For example, the preset option is C. When the exercise is unsolvable, then option C is directly selected as the answer to this exercise.
[0173] Step S207: obtaining the exercises to be solved, determining the question type corresponding to the exercises to be solved, and solving the exercises to be solved based on the trained problem-solving models;
[0174] Please refer to Fig.12 , Fig.12 It is a flowchart of solving a problem to be solved provided by an embodiment of the present application;
[0175] like Fig.12 As shown, solve the exercises to be solved, including:
[0176] Step S1201: Obtaining exercises to be solved;
[0177] Specifically, the electronic device obtains an exercise to be solved, wherein the exercise to be solved includes an exercise text and a plurality of options;
[0178] Step S1202: Determine the type of the exercise to be solved;
[0179] Specifically, the semantic vector of the exercise is obtained, and the cosine similarities between the semantic vector of the exercise and the semantic vectors of pure text type exercises, graphic type exercises, and regular type exercises are calculated respectively to obtain three sets of cosine similarities, and the question type corresponding to the maximum cosine similarity is determined as the question type of the exercise to be solved.
[0180] Step S1203: solving the problem based on the first problem-solving model;
[0181] Specifically, if the type of the exercise to be solved is a pure text type, the solution is performed based on the first problem-solving model.
[0182] Step S1204: solving the problem based on the second problem-solving model;
[0183] Specifically, if the type of the exercise to be solved is a graphic question type, the solution is performed based on the second problem-solving model.
[0184] Step S1205: solving the problem based on the third problem-solving model;
[0185] Specifically, if the type of the exercise to be solved is a regular type, the solution is performed based on the third problem-solving model.
[0186] Step S1206: Determine whether the exercise is solvable;
[0187] Specifically, if the type of the exercise to be solved is a regular question type, when solving the regular question type based on the preset rules, it is necessary to determine whether the regular question type is solvable, that is, to determine whether the regular question type can calculate the first operation result.
[0188] If the problem is solvable, proceed to step S1207;
[0189] If the problem is unsolvable, go to step S1208.
[0190] Step S1207: Get answers to the exercises;
[0191] Specifically, after solving the problem based on the problem-solving model, the answer to the exercise is obtained.
[0192] Step S1208: Select a preset option as the answer;
[0193] Specifically, if a regular question type exercise is unsolvable, select the preset option as the answer.
[0194] In an embodiment of the present application, a method for solving exercises is provided, the method comprising: obtaining an exercise set, wherein the exercise set includes multiple exercise texts; determining the semantic vectors of the multiple exercise texts according to a first preset model; calculating the similarity between the multiple exercise texts according to the semantic vectors of the multiple exercise texts; classifying the exercise set according to the similarity of the multiple exercise texts, and determining a number of question types corresponding to the exercise set; determining a problem-solving model corresponding to each question type according to the several question types corresponding to the exercise set; training the problem-solving model corresponding to each question type based on the exercise set to obtain a number of problem-solving models after training; obtaining exercises to be solved, determining the question type corresponding to the exercises to be solved, and solving the exercises to be solved based on the several problem-solving models after training. By classifying math multiple-choice questions and adopting different solutions for different question types, the present application can take into account different types of math multiple-choice questions and improve the accuracy of solving math multiple-choice questions.
[0195] Embodiment 2
[0196] See also Fig.13 , Fig.13 is a structural schematic diagram of a problem-solving device provided in an embodiment of the present application;
[0197] The problem-solving device is applied to an electronic device. Specifically, the problem-solving device is applied to one or more processors of the electronic device.
[0198] like Fig.13 As shown, the exercise solving device 130 includes:
[0199] The exercise acquisition unit 131 is used to acquire an exercise set, wherein the exercise set includes a plurality of exercise texts;
[0200] The exercise classification unit 132 is used to determine the semantic vectors of multiple exercise texts according to the first preset model; calculate the similarity between the multiple exercise texts according to the semantic vectors of the multiple exercise texts; classify the exercise set according to the similarity of the multiple exercise texts to determine a number of question types corresponding to the exercise set; determine a problem-solving model corresponding to each question type according to the number of question types corresponding to the exercise set;
[0201] A model training unit 133 is used to train a problem-solving model corresponding to each question type based on the exercise set to obtain a plurality of problem-solving models after training;
[0202] The problem solving unit 134 is used to obtain the problem to be solved, determine the problem type corresponding to the problem to be solved, and solve the problem to be solved based on a number of trained problem solving models.
[0203] In the embodiment of the present application, the exercise classification unit 132 is specifically used for:
[0204] According to the first preset model, each word in the exercise text is encoded into a word content vector and a word position vector respectively;
[0205] The word content vector and the word position vector are averaged to obtain the semantic vector of the exercise text.
[0206] In the embodiment of the present application, the model training unit 133 is specifically used for:
[0207] Training the first problem-solving model to obtain a trained first problem-solving model;
[0208] The second problem-solving model is trained to obtain a trained second problem-solving model.
[0209] In the embodiment of the present application, the exercise solving unit 134 is specifically used for:
[0210] According to the operation symbol in the regular question type, calculate the first operation result corresponding to the operation symbol;
[0211] Determine the operation result in the option of the rule question type as the second operation result;
[0212] If the first calculation result and the second calculation result meet the preset rules, the option corresponding to the second calculation result is determined to be the correct answer to the regular question type.
[0213] In the embodiments of the present application, the problem-solving device can also be constructed by hardware devices. For example, the problem-solving device can be constructed by one or more chips, and the chips can work in coordination with each other to complete the problem-solving methods described in the above embodiments. For another example, the problem-solving device can also be constructed by various logic devices, such as general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), single-chip microcomputers, ARM (Acorn RICS Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.
[0214] The exercise solving device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0215] The exercise solving device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0216] The problem-solving device provided in the embodiment of the present application can achieve Figure 2 To avoid repetition, the various implementation processes will not be described here.
[0217] It should be noted that the above-mentioned exercise solving device can execute the exercise solving method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the exercise solving device, reference can be made to the exercise solving method provided in the above embodiment.
[0218] In an embodiment of the present application, a problem solving device is provided, including: obtaining a problem set; determining semantic vectors of multiple problem texts according to a first preset model; calculating the similarity between multiple problem texts according to the semantic vectors of multiple problem texts; classifying the problem set according to the similarity of multiple problem texts, and determining a number of question types corresponding to the problem set; determining a problem-solving model corresponding to each question type according to the number of question types corresponding to the problem set; training the problem-solving model corresponding to each question type based on the problem set to obtain a number of problem-solving models after training; obtaining problems to be solved, determining the problem type corresponding to the problems to be solved, and solving the problems to be solved based on the number of problem-solving models after training. By classifying math multiple-choice questions and adopting different solutions for different question types, the present application can take into account different types of math multiple-choice questions and improve the accuracy of solving math multiple-choice questions.
[0219] Embodiment 3
[0220] See also Fig.14 , Fig.14 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0221] like Fig.14 As shown, the electronic device 140 includes one or more processors 141 and a memory 142. Fig.14 A processor 141 is taken as an example.
[0222] The processor 141 and the memory 142 may be connected via a bus or other means. Fig.14 The example of connecting through bus is taken in the following.
[0223] The processor 141 is used to provide computing and control capabilities to control the electronic device 140 to perform corresponding tasks, for example, to control the electronic device 140 to perform the exercise solving method in any of the above method embodiments, including: obtaining an exercise set; determining semantic vectors of multiple exercise texts according to a first preset model; calculating the similarity between the multiple exercise texts according to the semantic vectors of the multiple exercise texts; classifying the exercise set according to the similarity of the multiple exercise texts to determine a number of question types corresponding to the exercise set; determining a problem solving model corresponding to each question type according to the several question types corresponding to the exercise set; training the problem solving model corresponding to each question type based on the exercise set to obtain a number of problem solving models after training; obtaining exercises to be solved, determining the question type corresponding to the exercises to be solved, and solving the exercises to be solved based on the several problem solving models after training.
[0224] By classifying math multiple-choice questions and adopting different solutions for different question types, we can take different types of math multiple-choice questions into account and improve the accuracy of solving math multiple-choice questions.
[0225] The processor 141 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof; it may also be a digital signal processor.
[0226]
[0227] The PLD may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a general purpose array logic (GAL) or any combination thereof.
[0228] The memory 142 is a non-transitory computer-readable storage medium, which can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the problem-solving method in the embodiment of the present application. The processor 141 can implement the problem-solving method in any of the following method embodiments by running the non-transitory software programs, instructions and modules stored in the memory 142. Specifically, the memory 142 may include a volatile memory (VM), such as a random access memory (RAM); the memory 142 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD) or other non-transitory solid-state storage device; the memory 142 may also include a combination of the above-mentioned types of memory.
[0229] The memory 142 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 142 may optionally include a memory remotely arranged relative to the processor 141, and these remote memories may be connected to the processor 141 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0230] One or more modules are stored in the memory 142, and when executed by one or more processors 141, perform the problem solving method in any of the above method embodiments, for example, perform the above described Figure 2 The steps shown can also be implemented Fig.13 The functions of each module or unit.
[0231] In the embodiment of the present application, the electronic device 140 may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input and output. The electronic device 140 may also include other components for realizing device functions, which will not be described in detail here.
[0232] The present application also provides a computer-readable storage medium, such as a memory including a program code, which can be executed by a processor to complete the exercise solving method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CDROM), a magnetic tape, a floppy disk, and an optical data storage device.
[0233] The present application also provides a computer program product, which includes one or more program codes stored in a computer-readable storage medium. A processor of an electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code to complete the method steps of the exercise solving method provided in the above embodiment.
[0234] A person skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be accomplished by hardware or by hardware associated with a program code, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0235] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0236] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as mentioned above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for solving a problem, characterized in that: The method comprises: Obtaining an exercise set, wherein the exercise set includes a plurality of exercise texts; Determining semantic vectors of a plurality of the exercise texts according to a first preset model; Calculating the similarity between the plurality of exercise texts according to the semantic vectors of the plurality of exercise texts; Classifying the exercise set according to the similarities between the plurality of exercise texts, and determining a plurality of question types corresponding to the exercise set; According to the plurality of question types corresponding to the exercise set, determining a problem-solving model corresponding to each question type; Based on the exercise set, training the problem-solving model corresponding to each question type to obtain a plurality of problem-solving models after training; Obtain exercises to be solved, determine the question type corresponding to the exercises to be solved, and solve the exercises to be solved based on a plurality of trained problem-solving models.
2. The method according to claim 1, characterized in that: Determining the semantic vectors of the plurality of exercise texts according to the first preset model includes: According to the first preset model, each word in the exercise text is encoded into a word content vector and a word position vector respectively; The word content vector and the word position vector are averaged to obtain the semantic vector of the exercise text.
3. The method according to claim 1 or 2, characterized in that: The question type includes a plain text question type, and the problem-solving model corresponding to the plain text question type is a first problem-solving model. Based on the exercise set, the problem-solving model corresponding to each question type is trained to obtain a plurality of problem-solving models after training, including: Training the first problem-solving model to obtain a trained first problem-solving model specifically includes: Fill all the options of the exercises in the first problem-solving model into the blanks in the questions that need to be answered; Adjusting the arrangement order of all options of the exercises of the first problem-solving model; According to the second preset model, all options of the exercise are predicted to obtain the correct probability of each option; The option with the highest correct probability is determined as the correct answer to obtain the first problem-solving model after training.
4. The method according to claim 3, characterized in that The method of predicting all options of the exercise according to the second preset model to obtain the correct probability of each option includes: Define several category labels based on all options of the exercise; Define the prediction results into two categories: correct and wrong; According to the exercise text, identifiers are added before the plurality of category labels respectively to construct a prompt sentence; Based on the second preset model and according to the prompt sentence, predicting the positions of the plurality of identifiers to obtain a prediction result; The prediction result is mapped to the category label to obtain the correct probability of each option corresponding to the category label.
5. The method according to claim 3, characterized in that: The method further comprises: Marking the exercises of different concepts in the first problem-solving model with question types; The first problem-solving model is divided into several types of detailed models according to the question type annotations.
6. The method according to any one of claims 1, 2, 4 and 5, characterized in that: The question type includes a picture-text question type, and the problem-solving model corresponding to the picture-text question type is a second problem-solving model. Based on the exercise set, the problem-solving model corresponding to each question type is trained to obtain a plurality of problem-solving models after training, including: Training the second problem-solving model to obtain the trained second problem-solving model specifically includes: Inputting the question text of the exercise into a preset text model and encoding it into a text vector; Inputting the pictures in the options of the exercise into a preset picture model and encoding them into picture vectors to obtain a plurality of groups of picture vectors; Calculating the cosine similarities between the text vector and the groups of picture vectors respectively to obtain groups of cosine similarities; The option corresponding to the largest cosine similarity in each group of cosine similarities is taken as the correct answer to obtain the second problem-solving model after training.
7. The method according to any one of claims 1, 2, 4 and 5, characterized in that: The question type includes a regular question type, and the problem-solving model corresponding to the regular question type is a third problem-solving model, wherein the third problem-solving model solves the regular question type based on preset rules.
8. The method according to claim 7, characterized in that The third problem-solving model solves the regular problem type based on preset rules, including: According to the operation symbol in the regular question type, calculating the first operation result corresponding to the operation symbol; Determine the calculation result in the options of the regular question type as the second calculation result; If the first calculation result and the second calculation result meet the preset rule, the option corresponding to the second calculation result is determined to be the correct answer to the regular question type.
9. The method according to claim 7, characterized in that: The method further comprises: Determine whether the math multiple-choice question of the regular question type is solvable; If the math multiple-choice question of the regular question type is unsolvable, select the preset option as the answer.
10. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the problem-solving method as described in any one of claims 1-9.
Citation Information
Patent Citations
Simulation scenario generation method and unmanned driving system test method
CN110597086A
Information screening method and device, electronic equipment and readable storage medium
CN110941709A
Automatic composition scoring method and device, terminal equipment and storage medium
CN111160000A
Text processing method and device based on machine learning, computer equipment and medium
CN111428021A
Language model training method, question and answer pair generation method, device and equipment
CN113672708A
Cited By
Examination question similarity calculation method, medium and equipment
CN119129608A
