A method and device for generating a topic schematic diagram
By generating and displaying explanation diagrams, the problem of unintuitive problem-solving processes in the existing technology is solved, and students' understanding and learning efficiency are improved.
Patent Information
- Application Number
- CN202011458991.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2041-01-17
AI Technical Summary
When using applications to answer exercise questions in the prior art, the presentation method is not intuitive and it is difficult for students to understand the problem-solving process, resulting in poor teaching results.
By obtaining the question information of the problem to be solved, the drawing steps and analysis information are determined, and the explanation diagram is automatically drawn based on this information to show the problem-solving process.
It enables students to visually view the problem-solving process, helps them understand the problem-solving steps, and improves learning efficiency.
Smart Images

Figure CN112446934B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for generating a topic schematic diagram. Background Art
[0002] In recent years, students' education issues have received more and more attention from all parties. However, due to various considerations such as labor costs, students often do not have someone to explain at any time when answering questions. Therefore, they need to use applications to solve exercises that students cannot solve.
[0003] In the related art, when solving exercises with the help of an application, the application can often only provide the calculation steps and the final solution. However, this display method is not intuitive, and students may not be able to understand the problem-solving process of the exercises after reading them. Therefore, this teaching method has a poor effect. Summary of the invention
[0004] The disclosed embodiments at least provide a method and device for generating a question schematic diagram.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for generating a topic schematic diagram, comprising:
[0006] Get the question information of the question to be solved;
[0007] Based on the problem information of the problem to be solved, determining at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step;
[0008] Based on the drawing order of the at least one drawing step and the analysis information corresponding to the at least one drawing step, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
[0009] In a possible implementation manner, after determining at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step based on the problem information of the problem to be solved, the method further includes:
[0010] Determining a target question type of the question to be solved based on the question information of the question to be solved;
[0011] Determine a target drawing template that matches the target topic type;
[0012] Drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step includes:
[0013] Based on the parsing information of the at least one drawing step and the target drawing template, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
[0014] In a possible implementation manner, at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved are determined based on a pre-trained neural network.
[0015] The method further includes determining at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved according to the following method:
[0016] The problem information of the problem to be solved is input into a pre-trained neural network to determine a target problem type corresponding to the problem to be solved and analytical information of at least one drawing step corresponding to the problem to be solved, wherein the neural network is trained based on sample problem information and annotation information corresponding to the sample problem information, and the annotation information corresponding to the sample problem information is used to indicate the problem type of the sample problem information and analytical information of the drawing step corresponding to the sample problem information.
[0017] In a possible implementation manner, determining a target drawing template that matches the target topic type includes:
[0018] Determine at least one drawing template that matches the target topic type, and obtain a matching condition corresponding to the at least one drawing template;
[0019] Determining a target matching condition satisfied by the problem information of the problem to be solved based on the matching condition corresponding to the at least one drawing template;
[0020] The drawing template corresponding to the target matching condition is determined as the target drawing template.
[0021] In a possible implementation manner, the target drawing template includes at least one drawing rule corresponding to a drawing step;
[0022] Drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step and the target drawing template includes:
[0023] For each drawing step in the at least one drawing step, based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, a corresponding explanation schematic diagram of the drawing step is drawn.
[0024] In a possible implementation manner, the at least one drawing step includes a plurality of drawing steps; for each drawing step in the at least one drawing step, based on a drawing rule corresponding to the drawing step and parsing information corresponding to the drawing step, drawing an explanation schematic diagram corresponding to the drawing step includes:
[0025] For a first drawing step arranged in the drawing order among the plurality of drawing steps, based on a drawing rule corresponding to the first drawing step and analysis information corresponding to the drawing step, drawing an explanation schematic diagram corresponding to the first drawing step;
[0026] For each drawing step except the first drawing step among the multiple drawing steps, drawing is performed on the explanation schematic diagram drawn in the previous drawing step based on the drawing rule corresponding to the drawing step and the analysis information corresponding to the drawing step to obtain the explanation schematic diagram corresponding to the drawing step.
[0027] In a possible implementation manner, the target drawing template further includes an explanation template corresponding to the drawing steps;
[0028] The method further comprises:
[0029] The parsing information of each drawing step is added to the explanation template corresponding to the drawing step in the target drawing template to obtain the drawing explanation information corresponding to the problem to be solved.
[0030] In a possible implementation manner, the method further includes:
[0031] Generating audio information corresponding to the drawing explanation information;
[0032] The drawing process of the explanation schematic diagram is displayed, and the audio information is played while the drawing process is displayed.
[0033] In a possible implementation manner, the audio information corresponding to the drawing explanation information includes target audio information corresponding to each drawing step; and playing the audio information while displaying the drawing process includes:
[0034] While showing the drawing process of the explanation diagram of each drawing step, the target audio information corresponding to the drawing step is played.
[0035] In a second aspect, the embodiment of the present disclosure further provides a question schematic diagram generating device, comprising:
[0036] An acquisition module is used to obtain the question information of the question to be solved;
[0037] A determination module, configured to determine at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step based on the problem information of the problem to be solved;
[0038] A drawing module is used to draw a schematic diagram of explanation corresponding to the problem to be solved based on the drawing order of the at least one drawing step and the analysis information corresponding to the at least one drawing step.
[0039] In a possible implementation manner, after determining at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step based on the problem information of the problem to be solved, the determination module is further configured to:
[0040] Determining a target question type of the question to be solved based on the question information of the question to be solved;
[0041] Determine a target drawing template that matches the target topic type;
[0042] The drawing module, when drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step, is used to:
[0043] Based on the parsing information of the at least one drawing step and the target drawing template, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
[0044] In a possible implementation manner, at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved are determined based on a pre-trained neural network.
[0045] The determination module is further used to determine at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved according to the following method:
[0046] The problem information of the problem to be solved is input into a pre-trained neural network to determine a target problem type corresponding to the problem to be solved and analytical information of at least one drawing step corresponding to the problem to be solved, wherein the neural network is trained based on sample problem information and annotation information corresponding to the sample problem information, and the annotation information corresponding to the sample problem information is used to indicate the problem type of the sample problem information and analytical information of the drawing step corresponding to the sample problem information.
[0047] In a possible implementation manner, the determination module, when determining the target drawing template matching the target topic type, is used to:
[0048] Determine at least one drawing template that matches the target topic type, and obtain a matching condition corresponding to the at least one drawing template;
[0049] Determining a target matching condition satisfied by the problem information of the problem to be solved based on the matching condition corresponding to the at least one drawing template;
[0050] The drawing template corresponding to the target matching condition is determined as the target drawing template.
[0051] In a possible implementation manner, the target drawing template includes at least one drawing rule corresponding to a drawing step;
[0052] The drawing module, when drawing the explanation diagram corresponding to the to-be-solved problem based on the parsing information of the at least one drawing step and the target drawing template, is used to:
[0053] For each drawing step in the at least one drawing step, based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, a corresponding explanation schematic diagram of the drawing step is drawn.
[0054] In a possible implementation manner, the at least one drawing step includes a plurality of drawing steps; for each drawing step in the at least one drawing step, the drawing module, when drawing the explanation schematic diagram corresponding to the drawing step based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, is used to:
[0055] For a first drawing step arranged in the drawing order among the plurality of drawing steps, based on a drawing rule corresponding to the first drawing step and analysis information corresponding to the drawing step, drawing an explanation schematic diagram corresponding to the first drawing step;
[0056] For each drawing step except the first drawing step among the multiple drawing steps, drawing is performed on the explanation schematic diagram drawn in the previous drawing step based on the drawing rule corresponding to the drawing step and the analysis information corresponding to the drawing step to obtain the explanation schematic diagram corresponding to the drawing step.
[0057] In a possible implementation manner, the target drawing template further includes an explanation template corresponding to the drawing steps;
[0058] The determining module is further used for:
[0059] The parsing information of each drawing step is added to the explanation template corresponding to the drawing step in the target drawing template to obtain the drawing explanation information corresponding to the problem to be solved.
[0060] In a possible implementation manner, the device further includes a display module, which is used to:
[0061] Generating audio information corresponding to the drawing explanation information;
[0062] The drawing process of the explanation schematic diagram is displayed, and the audio information is played while the drawing process is displayed.
[0063] In a possible implementation manner, the audio information corresponding to the drawing explanation information includes target audio information corresponding to each drawing step; and the display module, while displaying the drawing process, plays the audio information, for:
[0064] While showing the drawing process of the explanation diagram of each drawing step, the target audio information corresponding to the drawing step is played.
[0065] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.
[0066] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.
[0067] The method and device for generating a problem diagram provided by the embodiments of the present disclosure can, after obtaining the problem information of the problem to be solved, determine at least one drawing step and analysis information of at least one drawing step according to the problem information of the problem to be solved, and automatically draw an explanation diagram corresponding to the problem to be solved based on the drawing order of at least one drawing step and the analysis information of at least one drawing step. By displaying the explanation diagram to the user, the user can more intuitively view the solution process of the problem to be solved, thereby helping the user understand the solution process of the problem to be solved and improving the user's learning efficiency.
[0068] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0070] Figure 1A flowchart of a method for generating a topic schematic diagram provided by an embodiment of the present disclosure is shown;
[0071] Figure 2 A flowchart of a method for determining a target drawing template in a method for generating a topic schematic diagram provided by an embodiment of the present disclosure is shown;
[0072] Figure 3 A schematic diagram showing a simple drawing of a graphic provided by an embodiment of the present disclosure is shown;
[0073] Figure 4 A schematic diagram of the architecture of a topic schematic diagram generating device provided by an embodiment of the present disclosure is shown;
[0074] Figure 5 A schematic diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0076] Research has found that in related technologies, when using applications to solve exercises, the applications can often only provide calculation steps and final solution results. However, this display method is not intuitive, and students may not be able to understand the problem-solving process of the exercises after reading them. Therefore, this teaching method has a poor effect.
[0077] Based on the above research, the present disclosure provides a method and device for generating a question schematic diagram. After obtaining the question information of the question to be solved, at least one drawing step and the analysis information of at least one drawing step can be determined according to the question information of the question to be solved, and based on the drawing order of at least one drawing step and the analysis information of at least one drawing step, an explanation schematic diagram corresponding to the question to be solved is automatically drawn. By displaying the explanation schematic diagram to the user, the user can more intuitively view the solution process of the question to be solved, thereby helping the user understand the solution process of the question to be solved, thereby improving the user's learning efficiency.
[0078] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.
[0079] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0080] To facilitate understanding of this embodiment, a method for generating a topic diagram disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the method for generating a topic diagram provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method for generating a topic diagram can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0081] See also Figure 1 FIG. 1 is a flowchart of a method for generating a topic schematic diagram provided by an embodiment of the present disclosure, the method comprising steps 101 to 103, wherein:
[0082] Step 101: Obtain the problem information of the problem to be solved.
[0083] Step 102: Based on the problem information of the problem to be solved, determine at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step.
[0084] Step 103: based on the drawing order of the at least one drawing step and the analysis information corresponding to the at least one drawing step, draw a schematic diagram of explanation corresponding to the problem to be solved.
[0085] The following is a detailed description of the above steps.
[0086] For step 101,
[0087] In a possible implementation, if the execution entity for obtaining the problem information of the problem to be solved is a server, when obtaining the problem information of the problem to be solved, it can be a generation instruction carrying the problem information of the problem to be solved sent by a receiving client, and the problem information of the problem to be solved can be obtained based on the generation instruction.
[0088] In practical applications, the method of obtaining the problem information of the problem to be solved can be any of the following methods:
[0089] Method 1: obtaining the problem information of the problem to be solved input by the user at a preset input position.
[0090] In a possible implementation, the client may be preset with an input location area, and the user may input the problem information of the problem to be solved in the input location area by typing or copying and pasting.
[0091] If the executing entity for obtaining the question information input by the user at the preset input position is the client, then after the user inputs the question information in the input position area, the client can directly obtain the question information of the question to be solved; if the executing entity for obtaining the question information of the question to be solved input by the user at the preset input position is the server, then after the user inputs the question information of the question to be solved in the input position area, the client can send the question information of the question to be solved to the server, so that the server obtains the question information of the question to be solved.
[0092] Method 2: obtaining media content such as images, videos, audios, etc. containing the problem information of the problem to be solved, and extracting information from the media content to obtain the problem information of the problem to be solved.
[0093] If the execution subject of the acquisition of the image containing the problem information of the to-be-solved problem is a client, the image containing the problem information of the to-be-solved problem can be acquired through a camera carried by a terminal device, and then the problem information of the to-be-solved problem contained in the image can be acquired through recognition technology such as optical character recognition (OCR);
[0094] If the execution subject of obtaining the image containing the problem information of the to-be-solved problem is a server, the client may first obtain the image containing the problem information of the to-be-solved problem through the camera carried by the terminal device, and then determine the problem information of the to-be-solved problem contained in the image through recognition technology such as OCR, and finally send it to the server; or
[0095] The server can directly obtain the image containing the problem information of the problem to be solved sent by the client. The image can be collected by calling the camera of the electronic device deployed by the client, and then the problem information of the problem to be solved is obtained through recognition technology such as OCR.
[0096] When the media content containing the title information of the problem to be solved is a video, the video can be extracted frames to determine the title information of the problem to be solved contained therein, and then the title information of the problem to be solved can be obtained through recognition technologies such as OCR; when the media content containing the title information of the problem to be solved is audio, the audio can be converted into text content containing the title information of the problem to be solved through speech recognition technology, so as to obtain the title information of the problem to be solved.
[0097] For step 102 and step 103,
[0098] The parsed information of the drawing steps may include key point information corresponding to each drawing step. For example, if the question information of the problem to be solved is: There are 12 people on the left of Xiao Ming and 8 people on the right. How many people are there in total? Then the key point information corresponding to each drawing step in the question information of the problem to be solved is: Xiao Ming, there are 12 people on the left and 8 people on the right.
[0099] In a possible implementation, when determining at least one drawing step corresponding to the problem to be solved and problem-solving information of at least one drawing step based on the problem information of the problem to be solved, the problem information of the problem to be solved can be input into a pre-trained first neural network to obtain at least one drawing step corresponding to the problem to be solved and problem-solving information of at least one drawing step.
[0100] Here, the first neural network may be trained based on sample question information and annotation information of the sample question information, and the annotation information of the sample question information may include at least one drawing step corresponding to the sample question and solution information of at least one drawing step.
[0101] In a possible implementation, after determining at least one drawing step corresponding to the problem to be solved and parsing information of at least one drawing step based on the problem information of the problem to be solved, it is also possible to determine a target problem type of the problem to be solved based on the problem information of the problem to be solved, and then determine a target drawing template that matches the target problem type. When drawing an explanation schematic diagram corresponding to the problem to be solved based on the parsing information of at least one drawing step, it is possible to draw an explanation schematic diagram corresponding to the problem to be solved based on the parsing information of at least one drawing step and the target drawing template.
[0102] In one example, when determining the target question type of the question to be solved based on the question information of the question to be solved, the question information of the question to be solved can be input into a pre-trained second neural network to obtain the target question type of the question to be solved.
[0103] Here, the second neural network may be trained based on sample topic information and topic type annotations of the sample topic information.
[0104] The target question type corresponding to the question to be solved can be any of the following question types:
[0105] Queuing problems, distance problems, distribution problems, purchasing problems, etc.
[0106] In another possible implementation, the first neural network and the second neural network may be the same neural network, that is, the at least one drawing step corresponding to the problem to be solved, the parsing information of the at least one drawing step, and the target problem type of the problem to be solved are determined based on the same pre-trained neural network.
[0107] Specifically, when determining at least one drawing step corresponding to a problem to be solved, parsing information of at least one drawing step, and a target problem type of the problem to be solved, the problem information of the problem to be solved can be input into a pre-trained neural network to determine the target problem type corresponding to the problem to be solved and the parsing information of at least one drawing step corresponding to the problem to be solved, wherein the neural network is trained based on sample problem information and annotation information corresponding to the sample problem information, and the annotation information corresponding to the sample problem information is used to indicate the problem type of the sample problem information and the parsing information of the drawing step corresponding to the sample problem information.
[0108] In a possible implementation manner, when determining a target drawing template that matches the target topic type, reference may be made to the following: Figure 2 The method shown includes the following steps:
[0109] Step 201: Determine at least one drawing template that matches the target topic type, and obtain a matching condition corresponding to the at least one drawing template.
[0110] In a specific implementation, the same target question type can be matched with multiple drawing templates. For example, for the target question type "queuing" problem, the drawing template corresponding to the question information "XXX from left to right, XXX from right to left" and the drawing template corresponding to "XXXX on the left of XX, XXXX on the right of XX" may be different.
[0111] Different drawing templates may correspond to different matching conditions. For example, the matching conditions corresponding to drawing template A may be: carrying the keyword "counting from left to right" and / or the keyword "counting from right to left", and carrying the keyword "Xth", etc.
[0112] Step 202: Based on the matching condition corresponding to at least one drawing template, determine the target matching condition satisfied by the problem information of the problem to be solved.
[0113] In a specific implementation, the matching condition corresponding to the drawing template may have multiple conditions, and the target matching condition satisfied by the problem information of the problem to be solved may be understood as that the problem information of the problem to be solved satisfies all conditions under the matching condition.
[0114] Step 203: Determine the drawing template corresponding to the target matching condition as the target drawing template.
[0115] In a possible implementation, the target drawing template may include a drawing rule corresponding to at least one drawing step. When drawing an explanation diagram corresponding to a problem to be solved based on the analytical information of at least one drawing step and the target drawing template, for each drawing step in the at least one drawing step, an explanation diagram corresponding to the drawing step may be drawn based on the drawing rule corresponding to the drawing step and the analytical information corresponding to the drawing step.
[0116] For example, if the question information of the problem to be solved is that there are 12 people on the left of Xiao Ming and 8 people on the right, how many people are there in total? The corresponding drawing template may include:
[0117] 1. Draw a A represent B ;
[0118] 2. C , then in his D painting E indivual F ;
[0119] 3. G , then in his H painting M indivual N .
[0120] After adding the parsing information of the drawing step to the drawing template, it can be
[0121] 1. Draw a A represent Xiao Ming ;
[0122] 2. There are 12 people on Xiao Ming's left , then in his left painting 12 indivual F ;
[0123] 3. There are 8 people on the right , then in his right painting 8 indivual N .
[0124] Here, the above-mentioned A, F, and N may correspond to the same kind of graphic, which is used to represent the object in the problem information of the problem to be solved. For example, they may correspond to a circle, a triangle, a five-pointed star, and the like.
[0125] When determining a graphic for representing an object in the question information of a problem to be solved, after determining the name of the object in the question information of the problem to be solved, it can be determined whether there is a graphic corresponding to the object in the candidate graphic library. For example, if the name of the object in the question information is an apple, it can be determined first whether there is a graphic corresponding to the apple in the candidate image library. If so, the determined graphic is directly used as the graphic for representing the object in the question information; if not, the preset graphic is directly used as the graphic for representing the object in the question information.
[0126] In a possible implementation, when there are many graphics that need to be drawn repeatedly, the repeated graphics can be drawn using a simple drawing method. For example, if a circle is used to represent Xiao Ming in the above example, then in the second step, 12 circles need to be drawn on the left side of Xiao Ming. Therefore, in order to improve drawing efficiency, two circles can be drawn on the left side of Xiao Ming, and then the remaining 10 circles can be replaced by ellipsis between Xiao Ming and the circle.
[0127] It should be noted that when drawing repeated graphics using the simple drawing method, it is necessary to add necessary descriptions to the drawn graphics. For example, the simple drawing graphics can be as follows: Figure 3 shown.
[0128] In a possible implementation, at least one drawing step may include multiple drawing steps. For each drawing step in the at least one drawing step, when drawing the explanation schematic diagram corresponding to the drawing step based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, the following drawing process may be performed for different drawing steps:
[0129] For a first drawing step arranged in the drawing order among the multiple drawing steps, an explanation schematic diagram corresponding to the first drawing step is drawn based on a drawing rule corresponding to the first drawing step and analysis information corresponding to the drawing step.
[0130] For each drawing step except the first drawing step among the multiple drawing steps, drawing is performed on the explanation schematic diagram drawn in the previous drawing step based on the drawing rule corresponding to the drawing step and the analysis information corresponding to the drawing step to obtain the explanation schematic diagram corresponding to the drawing step.
[0131] In a possible implementation, the target drawing template may also include an explanation template corresponding to the drawing template. After determining the target drawing template, the parsing information of each drawing step may be added to the explanation template corresponding to the drawing step in the target drawing template to obtain the drawing explanation information corresponding to the problem to be solved.
[0132] Exemplarily, the drawing explanation information may be as follows:
[0133] 1. Draw a Circle represent Xiao Ming ;
[0134] 2. There are 12 people on Xiao Ming's left , then in his left painting 12 indivual Circle ;
[0135] 3. There are 8 people on the right , then in his right painting 8 indivual Circle .
[0136] Here, the drawing explanation information is the explanation of each drawing step.
[0137] In another possible implementation, the explanation template may also include answer information to the problem to be solved, and the parsing information of the answer information may also be output by the above-mentioned neural network. In addition to the explanation of each drawing step, the drawing explanation information may also include the answer information.
[0138] Exemplarily, the drawing explanation information including the answer information may be:
[0139] 1. Draw a Circle represent Xiao Ming ;
[0140] 2. There are 12 people on Xiao Ming's left , then in his left painting 12 indivual Circle ;
[0141] 3. There are 8 people on the right , then in his right painting 8 indivual Circle .
[0142] 4. So, Total number of people that is The person on Xiao Ming's left Plus The person on Xiao Ming's right , plus Xiao Ming .
[0143] Among them, 4 is the answer information.
[0144] In a possible implementation, the parsing information of the answer information may include a calculation formula and the meaning of each parameter in the calculation formula. Continuing with the above example, the calculation formula is 12+8+1=21, where 21 represents the total number of people, 12 represents the person on the left of Xiao Ming, 8 represents the person on the right of Xiao Ming, and 1 represents Xiao Ming.
[0145] In a possible implementation, after determining the drawing explanation information corresponding to the problem to be solved, audio information corresponding to the drawing explanation information can be generated, and then the drawing process of the explanation diagram can be displayed, and the generated audio information can be played while displaying the drawing process.
[0146] Specifically, the audio information corresponding to the drawing explanation information includes target audio information corresponding to each drawing step; playing the audio information while displaying the drawing process may include: while displaying the drawing process of the explanation schematic diagram of each drawing step, playing the target audio information corresponding to the drawing step.
[0147] Here, it should be noted that if the computer device that executes the question schematic diagram generation method provided by the present disclosure is a device without a display function, such as a server, then the display and explanation of the schematic diagram drawing process, and playing the generated audio information while displaying the drawing process, can be that the computer device (such as a server) controls a display device with a display function to display the drawing process and play the audio information.
[0148] The method provided by the embodiment of the present disclosure can, after obtaining the problem information of the problem to be solved, determine at least one drawing step and the analysis information of at least one drawing step according to the problem information of the problem to be solved, and automatically draw the explanation diagram corresponding to the problem to be solved based on the drawing order of at least one drawing step and the analysis information of at least one drawing step. By displaying the explanation diagram to the user, the user can more intuitively view the solution process of the problem to be solved, thereby helping the user to understand the solution process of the problem to be solved, thereby improving the user's learning efficiency.
[0149] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0150] Based on the same inventive concept, the embodiment of the present disclosure also provides a question schematic diagram generating device corresponding to the question schematic diagram generating method. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned question schematic diagram generating method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0151] Reference Figure 4 , which is a schematic diagram of the architecture of a topic diagram generating device provided by an embodiment of the present disclosure, the device comprises: an acquisition module 401, a determination module 402, and a drawing module 403; wherein,
[0152] The acquisition module 401 is used to obtain the problem information of the problem to be solved;
[0153] A determination module 402, configured to determine at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step based on the problem information of the problem to be solved;
[0154] The drawing module 403 is used to draw a schematic diagram of explanation corresponding to the problem to be solved based on the drawing order of the at least one drawing step and the analysis information corresponding to the at least one drawing step.
[0155] In a possible implementation manner, after determining at least one drawing step corresponding to the problem to be solved and parsing information of the at least one drawing step based on the problem information of the problem to be solved, the determining module 402 is further configured to:
[0156] Determining a target question type of the question to be solved based on the question information of the question to be solved;
[0157] Determine a target drawing template that matches the target topic type;
[0158] The drawing module 403, when drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step, is used to:
[0159] Based on the parsing information of the at least one drawing step and the target drawing template, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
[0160] In a possible implementation manner, at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved are determined based on a pre-trained neural network.
[0161] The determination module 402 is further configured to determine at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved according to the following method:
[0162] The problem information of the problem to be solved is input into a pre-trained neural network to determine a target problem type corresponding to the problem to be solved and analytical information of at least one drawing step corresponding to the problem to be solved, wherein the neural network is trained based on sample problem information and annotation information corresponding to the sample problem information, and the annotation information corresponding to the sample problem information is used to indicate the problem type of the sample problem information and analytical information of the drawing step corresponding to the sample problem information.
[0163] In a possible implementation, the determination module 402, when determining the target drawing template matching the target topic type, is used to:
[0164] Determine at least one drawing template that matches the target topic type, and obtain a matching condition corresponding to the at least one drawing template;
[0165] Determining a target matching condition satisfied by the problem information of the problem to be solved based on the matching condition corresponding to the at least one drawing template;
[0166] The drawing template corresponding to the target matching condition is determined as the target drawing template.
[0167] In a possible implementation manner, the target drawing template includes at least one drawing rule corresponding to a drawing step;
[0168] The drawing module 403, when drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step and the target drawing template, is used to:
[0169] For each drawing step in the at least one drawing step, based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, a corresponding explanation schematic diagram of the drawing step is drawn.
[0170] In a possible implementation manner, the at least one drawing step includes a plurality of drawing steps; for each drawing step in the at least one drawing step, the drawing module 403, when drawing the explanation schematic diagram corresponding to the drawing step based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, is used to:
[0171] For a first drawing step arranged in the drawing order among the plurality of drawing steps, based on a drawing rule corresponding to the first drawing step and analysis information corresponding to the drawing step, drawing an explanation schematic diagram corresponding to the first drawing step;
[0172] For each drawing step except the first drawing step among the multiple drawing steps, drawing is performed on the explanation schematic diagram drawn in the previous drawing step based on the drawing rule corresponding to the drawing step and the analysis information corresponding to the drawing step to obtain the explanation schematic diagram corresponding to the drawing step.
[0173] In a possible implementation manner, the target drawing template further includes an explanation template corresponding to the drawing steps;
[0174] The determining module 402 is further configured to:
[0175] The parsing information of each drawing step is added to the explanation template corresponding to the drawing step in the target drawing template to obtain the drawing explanation information corresponding to the problem to be solved.
[0176] In a possible implementation manner, the device further includes a display module 404, which is used to:
[0177] Generating audio information corresponding to the drawing explanation information;
[0178] The drawing process of the explanation schematic diagram is displayed, and the audio information is played while the drawing process is displayed.
[0179] In a possible implementation manner, the audio information corresponding to the drawing explanation information includes target audio information corresponding to each drawing step; the display module 404, while displaying the drawing process, plays the audio information, and is used to:
[0180] While showing the drawing process of the explanation diagram of each drawing step, the target audio information corresponding to the drawing step is played.
[0181] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0182] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 5 As shown, it is a schematic diagram of the structure of a computer device 500 provided in an embodiment of the present disclosure, including a processor 501, a memory 502, and a bus 503. Among them, the memory 502 is used to store execution instructions, including a memory 5021 and an external memory 5022; the memory 5021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 501, and the data exchanged with the external memory 5022 such as a hard disk. The processor 501 exchanges data with the external memory 5022 through the memory 5021. When the computer device 500 is running, the processor 501 communicates with the memory 502 through the bus 503, so that the processor 501 executes the following instructions:
[0183] Get the question information of the question to be solved;
[0184] Based on the problem information of the problem to be solved, determining at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step;
[0185] Based on the drawing order of the at least one drawing step and the analysis information corresponding to the at least one drawing step, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
[0186] In a possible implementation manner, in the instructions executed by the processor 501, after determining at least one drawing step corresponding to the problem to be solved and parsing information of the at least one drawing step based on the problem information of the problem to be solved, the method further includes:
[0187] Determining a target question type of the question to be solved based on the question information of the question to be solved;
[0188] Determine a target drawing template that matches the target topic type;
[0189] Drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step includes:
[0190] Based on the parsing information of the at least one drawing step and the target drawing template, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
[0191] In a possible implementation, in the instructions executed by the processor 501, at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved are determined based on a pre-trained neural network.
[0192] The method further includes determining at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved according to the following method:
[0193] The problem information of the problem to be solved is input into a pre-trained neural network to determine a target problem type corresponding to the problem to be solved and analytical information of at least one drawing step corresponding to the problem to be solved, wherein the neural network is trained based on sample problem information and annotation information corresponding to the sample problem information, and the annotation information corresponding to the sample problem information is used to indicate the problem type of the sample problem information and analytical information of the drawing step corresponding to the sample problem information.
[0194] In a possible implementation manner, in the instructions executed by the processor 501, determining the target drawing template matching the target topic type includes:
[0195] Determine at least one drawing template that matches the target topic type, and obtain a matching condition corresponding to the at least one drawing template;
[0196] Determining a target matching condition satisfied by the problem information of the problem to be solved based on the matching condition corresponding to the at least one drawing template;
[0197] The drawing template corresponding to the target matching condition is determined as the target drawing template.
[0198] In a possible implementation manner, in the instruction executed by the processor 501, the target drawing template includes a drawing rule corresponding to at least one drawing step;
[0199] Drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step and the target drawing template includes:
[0200] For each drawing step in the at least one drawing step, based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, a corresponding explanation schematic diagram of the drawing step is drawn.
[0201] In a possible implementation manner, in the instructions executed by the processor 501, the at least one drawing step includes a plurality of drawing steps; for each drawing step in the at least one drawing step, based on a drawing rule corresponding to the drawing step and parsing information corresponding to the drawing step, drawing an explanation schematic diagram corresponding to the drawing step includes:
[0202] For a first drawing step arranged in the drawing order among the plurality of drawing steps, based on a drawing rule corresponding to the first drawing step and analysis information corresponding to the drawing step, drawing an explanation schematic diagram corresponding to the first drawing step;
[0203] For each drawing step except the first drawing step among the multiple drawing steps, drawing is performed on the explanation schematic diagram drawn in the previous drawing step based on the drawing rule corresponding to the drawing step and the analysis information corresponding to the drawing step to obtain the explanation schematic diagram corresponding to the drawing step.
[0204] In a possible implementation manner, in the instructions executed by the processor 501, the target drawing template further includes an explanation template corresponding to the drawing steps;
[0205] The method further comprises:
[0206] The parsing information of each drawing step is added to the explanation template corresponding to the drawing step in the target drawing template to obtain the drawing explanation information corresponding to the problem to be solved.
[0207] In a possible implementation manner, in the instruction executed by the processor 501, the method further includes:
[0208] Generating audio information corresponding to the drawing explanation information;
[0209] The drawing process of the explanation schematic diagram is displayed, and the audio information is played while the drawing process is displayed.
[0210] In a possible implementation manner, in the instructions executed by the processor 501, the audio information corresponding to the drawing explanation information includes target audio information corresponding to each drawing step; and playing the audio information while displaying the drawing process includes:
[0211] While showing the drawing process of the explanation diagram of each drawing step, the target audio information corresponding to the drawing step is played.
[0212] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for generating a topic diagram described in the above method embodiment are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0213] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the method for generating a question diagram described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0214] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0215] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0216] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0217] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0218] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0219] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for generating a topic diagram, characterized in that: include: Get the question information of the question to be solved; Based on the problem information of the problem to be solved, determining at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step; Based on the drawing order of the at least one drawing step and the analysis information corresponding to the at least one drawing step, drawing a schematic diagram of explanation corresponding to the problem to be solved; The analytical information of the drawing steps includes key point information corresponding to each drawing step; The explanation diagram corresponding to the problem to be solved includes objects in the problem information of the problem to be solved represented by graphics; After determining at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step based on the problem information of the problem to be solved, the method further includes: Determining a target question type of the question to be solved based on the question information of the question to be solved; Determine a target drawing template that matches the target topic type; Drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step includes: Based on the parsing information of the at least one drawing step and the target drawing template, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
2. The method according to claim 1, characterized in that: At least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved are determined based on a pre-trained neural network, The method further includes determining at least one drawing step corresponding to the problem to be solved, parsing information of the at least one drawing step, and a target problem type of the problem to be solved according to the following method: The problem information of the problem to be solved is input into a pre-trained neural network to determine a target problem type corresponding to the problem to be solved and analytical information of at least one drawing step corresponding to the problem to be solved, wherein the neural network is trained based on sample problem information and annotation information corresponding to the sample problem information, and the annotation information corresponding to the sample problem information is used to indicate the problem type of the sample problem information and analytical information of the drawing step corresponding to the sample problem information.
3. The method according to claim 1, characterized in that The step of determining a target drawing template that matches the target topic type includes: Determine at least one drawing template that matches the target topic type, and obtain a matching condition corresponding to the at least one drawing template; Determining a target matching condition satisfied by the problem information of the problem to be solved based on the matching condition corresponding to the at least one drawing template; The drawing template corresponding to the target matching condition is determined as the target drawing template.
4. The method according to claim 1, characterized in that: The target drawing template includes at least one drawing rule corresponding to a drawing step; Drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step and the target drawing template includes: For each drawing step in the at least one drawing step, based on the drawing rule corresponding to the drawing step and the parsing information corresponding to the drawing step, a corresponding explanation schematic diagram of the drawing step is drawn.
5. The method according to claim 4, characterized in that The at least one drawing step includes a plurality of drawing steps; for each drawing step in the at least one drawing step, based on a drawing rule corresponding to the drawing step and analysis information corresponding to the drawing step, drawing a corresponding explanation schematic diagram of the drawing step includes: For a first drawing step arranged in the drawing order among the plurality of drawing steps, based on a drawing rule corresponding to the first drawing step and analysis information corresponding to the drawing step, drawing an explanation schematic diagram corresponding to the first drawing step; For each drawing step except the first drawing step among the multiple drawing steps, drawing is performed on the explanation schematic diagram drawn in the previous drawing step based on the drawing rule corresponding to the drawing step and the analysis information corresponding to the drawing step to obtain the explanation schematic diagram corresponding to the drawing step.
6. The method according to claim 1, characterized in that The target drawing template also includes an explanation template corresponding to the drawing steps; The method further comprises: The parsing information of each drawing step is added to the explanation template corresponding to the drawing step in the target drawing template to obtain the drawing explanation information corresponding to the problem to be solved.
7. The method according to claim 6, characterized in that The method further comprises: Generating audio information corresponding to the drawing explanation information; The drawing process of the explanation schematic diagram is displayed, and the audio information is played while the drawing process is displayed.
8. The method according to claim 7, characterized in that The audio information corresponding to the drawing explanation information includes target audio information corresponding to each drawing step; while displaying the drawing process, playing the audio information includes: While showing the drawing process of the explanation diagram of each drawing step, the target audio information corresponding to the drawing step is played.
9. A question diagram generating device, characterized in that: include: An acquisition module is used to obtain the question information of the question to be solved; A determination module, configured to determine at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step based on the problem information of the problem to be solved; A drawing module, used for drawing a schematic diagram of explanation corresponding to the problem to be solved based on the drawing order of the at least one drawing step and the analysis information corresponding to the at least one drawing step; The analytical information of the drawing steps includes key point information corresponding to each drawing step; The explanation diagram corresponding to the problem to be solved includes objects in the problem information of the problem to be solved represented by graphics; After determining at least one drawing step corresponding to the problem to be solved and analysis information of the at least one drawing step based on the problem information of the problem to be solved, the determination module is further used to: Determining a target question type of the question to be solved based on the question information of the question to be solved; Determine a target drawing template that matches the target topic type; Drawing the explanation diagram corresponding to the problem to be solved based on the parsing information of the at least one drawing step includes: Based on the parsing information of the at least one drawing step and the target drawing template, a schematic diagram of explanation corresponding to the problem to be solved is drawn.
10. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for generating a topic diagram as described in any one of claims 1 to 8 are performed.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the method for generating a topic diagram as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Automatic answering method and automatic answering device for objective subjects
CN109949637A
Problem solving demonstration method and device
CN111369403A