Disclosure of Invention
In view of this, the present application at least provides a method and an apparatus for demonstrating problem solving, which can automatically generate a dynamic problem solving picture matched with the content of the problem itself for a specific problem, thereby facilitating the user to understand the problem solving process and improving the learning efficiency.
In a first aspect, an embodiment of the present application provides a problem solving demonstration method, where the method includes:
obtaining a subject to be solved;
determining a problem solving method according to the problem attribute information corresponding to the problem to be solved;
generating a problem solving step described by a formal language according to the problem to be solved and the problem solving method;
and generating a problem solving dynamic picture corresponding to the to-be-solved problem based on the problem solving step described by adopting the formal language.
In some possible embodiments, determining a problem solving method according to the question attribute information corresponding to the to-be-solved question includes:
according to the question attribute information corresponding to the to-be-solved question, searching a problem solving label matched with the question attribute information according to the sequence of the problem solving labels from the upper level to the lower level until the lowest problem solving label matched with the question attribute information is determined;
and determining the problem solving method corresponding to the lowest problem solving label as the problem solving method corresponding to the problem to be solved.
In some possible embodiments, searching, according to the topic attribute information corresponding to the topic to be solved, a problem solving label matched with the topic attribute information according to a sequence from a higher level to a lower level of the problem solving label includes:
determining an Nth-level problem solving label matched with the problem to be solved according to at least one type of problem attribute information corresponding to different Nth-level problem solving labels and the problem attribute information of the problem to be solved; the initial value of N is 1;
determining an N +1 th level problem solving label matched with the to-be-solved problem according to at least one type of problem attribute information corresponding to the N +1 th level problem solving labels under the N th level problem solving label and the problem attribute information of the to-be-solved problem; n +1, and repeating the steps until the lowest-level problem label matched with the problem to be solved is determined.
In some possible embodiments, the step of generating the problem solving described in the formal language according to the problem to be solved and the problem solving method includes:
generating a problem solving step described by a natural language according to the problem to be solved and the problem solving method;
and converting the problem solving step described by the natural language into the problem solving step described by the formal language according to a preset conversion relation between the natural language for describing various mathematical calculations and the formal language.
In some possible embodiments, generating a problem solving dynamic picture corresponding to the problem to be solved based on the problem solving step described by using the formal language includes:
and generating a problem solving dynamic picture for sequentially displaying each problem solving step according to the sequence of the problem solving steps based on the problem solving steps described by the formal language and the set dynamic display effect.
In one possible embodiment, obtaining a subject to be solved includes:
acquiring a shot image of a subject to be solved;
and extracting text contents in the image of the problem to be solved to obtain the problem to be solved.
In one possible implementation, the problem solving presentation method further includes:
and determining the attribute information of the title to be solved according to characters and operators in the text content of the title to be solved.
In a second aspect, an embodiment of the present application further provides a problem solving presentation apparatus, including:
the acquisition module is used for acquiring the problem to be solved;
the first determining module is used for determining a problem solving method according to the problem attribute information corresponding to the to-be-solved problem;
the first generation module is used for generating a problem solving step described by a formal language according to the problem to be solved and the problem solving method;
and the second generation module is used for generating a problem solving dynamic picture corresponding to the to-be-solved problem based on the problem solving step described by adopting the formal language.
In some possible embodiments, the first determining module includes:
the searching unit is used for searching the problem solving label matched with the problem attribute information according to the problem attribute information corresponding to the to-be-solved problem and the sequence of the problem solving labels from the upper level to the lower level until the lowest level problem solving label matched with the problem attribute information is determined;
and the determining unit is used for determining the problem solving method corresponding to the lowest problem solving label as the problem solving method corresponding to the to-be-solved problem.
In some possible embodiments, the search unit is specifically configured to:
determining an Nth-level problem solving label matched with the problem to be solved according to at least one type of problem attribute information corresponding to different Nth-level problem solving labels and the problem attribute information of the problem to be solved; the initial value of N is 1;
determining an N +1 th level problem solving label matched with the to-be-solved problem according to at least one type of problem attribute information corresponding to the N +1 th level problem solving labels under the N th level problem solving label and the problem attribute information of the to-be-solved problem; n +1, and repeating the steps until the lowest-level problem label matched with the problem to be solved is determined.
In some possible embodiments, the first generating module is specifically configured to:
generating a problem solving step described by a natural language according to the problem to be solved and the problem solving method;
and converting the problem solving step described by the natural language into the problem solving step described by the formal language according to a preset conversion relation between the natural language for describing various mathematical calculations and the formal language.
In some possible embodiments, the second generating module is specifically configured to:
and generating a problem solving dynamic picture for sequentially displaying each problem solving step according to the sequence of the problem solving steps based on the problem solving steps described by the formal language and the set dynamic display effect.
In a possible implementation manner, the obtaining module is specifically configured to:
acquiring a shot image of a subject to be solved;
and extracting text contents in the image of the problem to be solved to obtain the problem to be solved.
In one possible embodiment, the apparatus further comprises:
and the second determining module is used for determining the attribute information of the title of the to-be-solved question according to characters and operators in the text content of the to-be-solved question.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
For the description of the effects of the above-mentioned problem solving presentation apparatus, electronic device, and computer-readable storage medium, reference is made to the description of the above-mentioned problem solving presentation method, which is not repeated herein.
According to the method and the device for demonstrating the problem solving, firstly, the problem to be solved is obtained; then, determining a problem solving method according to the problem attribute information corresponding to the problem to be solved; secondly, generating a problem solving step described by a formal language according to the problem to be solved and the problem solving method; and finally, generating a problem solving dynamic picture corresponding to the to-be-solved problem based on the problem solving step described by adopting the formal language. According to the embodiment of the application, the problem solving method is determined according to the attribute information of the problem corresponding to the to-be-solved object, then the problem solving step described by the formal language is generated, then the problem solving dynamic picture corresponding to the to-be-solved object is generated based on the problem solving step described by the formal language, so that the problem solving can be automatically performed for the given problem, the problem solving step matched with the problem content of the problem is generated, and the corresponding problem solving dynamic picture is displayed.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Research shows that the existing automatic mathematical problem solving technology can only return the solving steps of the standard types pre-recorded in the database, can not return the corresponding solving steps aiming at any problem, is not beneficial to users to understand the solving idea, and has lower learning efficiency.
Based on the research, the present disclosure provides a method and an apparatus for demonstrating problem solving, wherein a method for solving the problem is determined according to the attribute information of the problem corresponding to the object to be solved, and then a step for solving the problem described by a formal language is generated, and then a dynamic picture for solving the problem corresponding to the object to be solved is generated based on the step for solving the problem described by the formal language, so that the steps for solving the problem and generating the problem matching with the problem content of the problem can be automatically performed for the given problem, and the corresponding dynamic picture for solving the problem is displayed.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
The technical solutions in the present disclosure will be described clearly and completely with reference to the accompanying drawings in the present disclosure, and it is to be understood that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The components of the present disclosure, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, a problem solving presentation method disclosed in the embodiments of the present disclosure is first described in detail, and an execution subject of the problem solving presentation method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, where the computer device includes: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or a server or other processing device. In some possible implementations, the problem solving presentation method may be implemented by a processor calling computer readable instructions stored in a memory.
The following describes the problem solving demonstration method provided by the embodiment of the present disclosure by taking the execution subject as the terminal device.
Referring to fig. 1, which is a flowchart of a problem solving demonstration method provided in an embodiment of the present disclosure, the method includes steps S101 to S104, where:
s101, obtaining the problem to be solved.
For example, "99 + 36", "5 × 67+4 ÷ 7", "x +79- (x × 7) ═ 161", and the like, and the object to be solved may be a four-way hybrid operation, a solution equation, and the like.
In one possible embodiment, obtaining a subject to be solved includes:
acquiring a shot image of a subject to be solved;
and extracting text contents in the image of the problem to be solved to obtain the problem to be solved.
Illustratively, an image recognition technology can be used to recognize a topic area in an image of a topic to be solved, and then a text recognition technology is used to extract text contents of the topic area to obtain the topic to be solved.
In one possible implementation, the problem solving presentation method further includes:
and determining the attribute information of the title to be solved according to characters and operators in the text content of the title to be solved.
Here, the topic attribute information may refer to characteristics of the content of the topic to be solved on characters and operators, such as: the total amount of the number to be operated in the question to be solved, the combination mode of the operation symbol and the number, whether the power symbol exists, and the like.
S102, determining a problem solving method according to the problem attribute information corresponding to the problem to be solved.
In this step, the topic to be solved may have a plurality of topic attribute information. The topic attribute information can include the type of expression (addition, subtraction, multiplication, division), the number of bits of operation (e.g., three-bit operation, four-bit operation), etc. in the topic.
In general, the problem solving method can refer to mathematical methods that can be used for solving the problem to be solved, such as iterative calculation (discrete calculation), vertical calculation, horizontal calculation, etc., and these higher-level problem solving methods are further divided into a plurality of secondary problem solving methods, such as addition vertical calculation, subtraction vertical calculation, multiplication vertical calculation, division vertical calculation, etc., and the secondary problem solving methods also include more secondary problem solving methods, such as two-number addition vertical calculation, three-number addition vertical calculation, etc., until the final problem solving method, and the problem solving method determined in this application is the final problem solving method described above.
Furthermore, what solving method is used for solving the problems is closely connected with the problems, when the attribute information of the problems meets certain conditions, a specific problem solving method can be used, for example, the vertical calculation condition is "three or more decimals or integer continuous addition", the iterative calculation condition is "at least 3 numbers are operated", and the attribute information of the topic "12 +13+ 14" includes "three integers are added" and "three numbers are used for operation", the topic can be calculated by using a vertical calculation and a recurrence equation, the title attribute information of the title also comprises 'three-number addition', and under the problem solving method of vertical calculation, the problem solving method of vertical calculation can also be utilized, so that, and determining the problem solving method of the problem to be solved according to the attribute information of the problem and the condition corresponding to each problem solving method.
Since each higher-level problem solving method has a large number of lower-level branches, and each lower-level problem solving method can be used only when the problem meets the condition of the higher-level problem solving method, in order to reduce the number of times of comparing the problem attribute with the condition corresponding to each problem solving method and improve the efficiency, in one possible implementation, the step S102 can be implemented by the following steps:
1) and searching the problem solving label matched with the problem attribute information according to the problem attribute information corresponding to the object to be solved and the sequence of the problem solving labels from the upper level to the lower level until the lowest problem solving label matched with the problem attribute information is determined.
2) And determining the problem solving method corresponding to the lowest problem solving label as the problem solving method corresponding to the problem to be solved.
In the step 1) and the step 2), each level of problem solving label can correspond to a one-level problem solving method, and specifically, the uppermost level of problem solving label can correspond to a vertical calculation method, a off-line calculation method and other problem solving methods; under the vertical calculation problem solving label, the next level problem solving label can correspond to the addition vertical calculation and the like.
The problem solving label can carry a problem solving method corresponding to the problem solving label and the problem attribute information corresponding to the problem solving method.
Therefore, whether the item to be solved is consistent with the item attribute information corresponding to the higher-level solving method or not is determined through the hierarchy label, and if so, whether the item attribute information corresponding to the lower-level solving method is consistent or not is determined, the lowest-level solving label can be determined without traversing all solving methods, and the solving method corresponding to the lowest-level solving label is used as the solving method corresponding to the item to be solved.
Specifically, in some possible embodiments, step 1) may be implemented by:
determining an Nth-level problem solving label matched with the problem to be solved according to at least one type of problem attribute information corresponding to different Nth-level problem solving labels and the problem attribute information of the problem to be solved; the initial value of N is 1;
determining an N +1 th level problem solving label matched with the to-be-solved problem according to at least one type of problem attribute information corresponding to the N +1 th level problem solving labels under the N th level problem solving label and the problem attribute information of the to-be-solved problem; n +1, and repeating the steps until the lowest-level problem label matched with the problem to be solved is determined.
In this step, if the problem attribute information of the to-be-solved problem has all the problem attribute information corresponding to the nth set of problem tags, it may be determined that the to-be-solved problem matches the problem tags, after the matching is determined, it may be determined whether the problem attribute information corresponding to the secondary problem tags under the problem tags matches the problem attribute information of the to-be-solved problem, and it is guided to determine that the matched problem tags are the positions of the lowest-level problem tags, so that the problem solving method corresponding to the matched lowest-level problem tags may be used for solving the to-be-solved problem.
Furthermore, most questions do not only have a unique problem solving method, and when the lowest-level problem solving label matched with the question to be solved is determined, a plurality of lowest-level problem solving labels can be determined, or only one lowest-level problem solving label can be determined.
S103, generating a problem solving step described by a formal language according to the problem to be solved and the problem solving method.
In this step, a problem solving step described by a formal language may be generated according to the calculation logic corresponding to the problem solving method obtained in step S102, in combination with the problem attribute information of the problem to be solved.
The formal language is relative to a natural language, namely a language spoken by human, the natural language generates abundant words and infinite combinations for describing the surrounding world and knowledge in the development process of the human society, and the formal language is very difficult for a computer to understand while facilitating the human to express ideas. Formal languages are languages designed for specific applications, with simple grammatical rules to facilitate computer understanding and computation.
In some embodiments, step S103 may comprise:
generating a problem solving step described by a natural language according to the problem to be solved and the problem solving method;
and converting the problem solving step described by the natural language into the problem solving step described by the formal language according to a preset conversion relation between the natural language for describing various mathematical calculations and the formal language.
In this step, a problem solving step described in natural language may be generated according to the specific content of the problem to be solved and the calculation logic corresponding to the problem solving method obtained in step S102.
Illustratively, when the problem solving method is an iterative calculation, the following calculation logic can be used to generate the problem solving steps described in the natural language:
step 1: judging whether the formats of the numbers are consistent (at least two types exist in decimal/fraction/percentage);
if not, adjust all numbers to numbers with consistent format (typically convert percentages and decimal numbers to fractions);
explanation and display: converting all (percentage/decimal) into fractions, and then sequentially calculating according to the operation sequence;
otherwise:
explanation and display: calculating in sequence according to the operation sequence;
step 2: calculating the number in brackets;
detecting whether small brackets, middle brackets and big brackets exist;
if the brackets exist, calculating all parts in the small brackets;
explanation and display: ___ O (representing any operator) ___ (where there are a number of operations in small brackets, they should be listed one by one) within small (medium/large) brackets;
if the parenthesis is sibling:
explanation and display: ______;
example (c): 12+ (4+1) + (9-1);
calculating sequentially according to the operation sequence:
calculating 4+1 and 9-1 in brackets;
original formula is 12+5+ 8;
otherwise, there are different levels of operation in parentheses:
explanation and display: firstly, ____ O ____ is calculated as _____ (if there are multiple sibling operations, they should be listed and calculated at one time);
______;
then ____ O ____ is ______;
______;
skipping to the step 2;
otherwise, jumping to the step 3;
and step 3: calculating a second-level operation;
if multiplication and division exist:
calculating all multiplication and division parts;
explanation and display: calculation ____ O ____ (where there are multiple operations in parentheses, one for each);
if there are multiple multiplications and divisions:
explanation and display: calculating from left to right in sequence;
calculating ____ O ____ ═ _____;
_______;
calculating ____ O ____ ═ ____;
_______;
otherwise:
explanation and display: ________;
otherwise, jumping to step 4;
step 4, calculating primary operation;
if the addition and subtraction are carried out in multiple steps:
explanation and display: calculating from left to right in sequence;
if the original formula only has addition and subtraction:
explanation and display: calculating ____ O ____ ═ ____;
_______;
calculating ____ O ____ ═ ____;
_______;
otherwise:
explanation and display: _____;
wherein, the content behind the explanation and display is the problem solving step described by the natural language.
Further, after the step of solving the problems described by the natural language is generated, the step of solving the problems described by the natural language can be converted into the step of solving the problems described by the formal language according to the conversion relationship between the natural language and the formal language.
The conversion relationship between the natural language and the formal language may be predetermined.
Illustratively, if the subject to be solved is "calculate 99-11", the natural language form of the first step of the solving step is "split 99 to 90+ 9", and the equivalent expression of the formal language may be "(and (separate99(+ 909)) (separate99(+ 909))", where "and" means "are added to" b "(+ x y means" x "and" y "are added to" b ".
In addition, verbs such as compute, add, multiply, and the like may be defined; decimal, fractional, integer, and the like, and logical relationships such as and, or, then, and the like.
In another example, "90 and 10 are subtracted, resulting in 80" can be converted to "(result (minus 9010) 80)".
Therefore, the problem solving step in the natural language form is converted into the form language which can be recognized by a machine, and the problem solving step can be demonstrated through a computer.
And S104, generating a problem solving dynamic picture corresponding to the to-be-solved problem based on the problem solving step described by adopting the formal language.
In this step, after the problem solving step described by the formal language is obtained, the problem solving step may be analyzed by using a parsing technique, and a problem solving dynamic picture corresponding to the problem to be solved is generated according to the data obtained by the analysis.
In some possible embodiments, step S104 may include:
and generating a problem solving dynamic picture for sequentially displaying each problem solving step according to the sequence of the problem solving steps based on the problem solving steps described by the formal language and the set dynamic display effect.
Here, the dynamic display effect may be that after one problem solving step is displayed, the next problem solving step is displayed after a preset time (for example, 3 seconds) is paused, and display effects such as "fly-in, bounce, underlining of a key step, and thickening of a key step" may be introduced in the process.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a problem solving demonstration apparatus corresponding to the problem solving demonstration method, and since the principle of the apparatus in the embodiment of the present disclosure for solving the problem is similar to the problem solving demonstration method in the embodiment of the present disclosure, the implementation of the apparatus can refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 2, fig. 2 is a diagram illustrating an apparatus for solving a problem according to an embodiment of the present application. As shown in fig. 2, the problem solving presentation apparatus 200 includes:
an obtaining module 210, configured to obtain a subject to be solved;
the first determining module 220 is configured to determine a problem solving method according to the problem attribute information corresponding to the problem to be solved;
a first generating module 230, configured to generate a problem solving step described by a formal language according to the problem to be solved and the problem solving method;
and a second generating module 240, configured to generate a problem solving dynamic picture corresponding to the problem to be solved based on the problem solving step described by using the formal language.
Referring to fig. 3, fig. 3 is another problem solving demonstration apparatus according to an embodiment of the present application. As shown in fig. 3, the problem solving presentation apparatus 300 includes an obtaining module 310, a first determining module 320, a first generating module 330, and a second generating module 340, wherein the first determining module 320 includes:
the searching unit 321 is configured to search, according to the question attribute information corresponding to the question to be solved, a question solving label matched with the question attribute information in an order from a higher level to a lower level according to the question solving label until a lowest-level question solving label matched with the question attribute information is determined;
a determining unit 322, configured to determine the problem solving method corresponding to the lowest problem solving label as the problem solving method corresponding to the problem to be solved.
In some possible embodiments, the search unit 321 is specifically configured to:
determining an Nth-level problem solving label matched with the problem to be solved according to at least one type of problem attribute information corresponding to different Nth-level problem solving labels and the problem attribute information of the problem to be solved; the initial value of N is 1;
determining an N +1 th level problem solving label matched with the to-be-solved problem according to at least one type of problem attribute information corresponding to the N +1 th level problem solving labels under the N th level problem solving label and the problem attribute information of the to-be-solved problem; n +1, and repeating the steps until the lowest-level problem label matched with the problem to be solved is determined.
In some possible embodiments, the first generating module 330 is specifically configured to:
generating a problem solving step described by a natural language according to the problem to be solved and the problem solving method;
and converting the problem solving step described by the natural language into the problem solving step described by the formal language according to a preset conversion relation between the natural language for describing various mathematical calculations and the formal language.
In some possible embodiments, the second generating module 340 is specifically configured to:
and generating a problem solving dynamic picture for sequentially displaying each problem solving step according to the sequence of the problem solving steps based on the problem solving steps described by the formal language and the set dynamic display effect.
In a possible implementation manner, the obtaining module 310 is specifically configured to:
acquiring a shot image of a subject to be solved;
and extracting text contents in the image of the problem to be solved to obtain the problem to be solved.
In one possible embodiment, the problem solving presentation apparatus 300 further comprises:
and a second determining module 350, configured to determine the title attribute information of the to-be-solved title according to characters and operators in the text content of the to-be-solved title.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the application also provides the electronic equipment. Referring to fig. 4, a schematic structural diagram of an electronic device 400 provided in the embodiment of the present application includes a processor 401, a memory 402, and a bus 403. The memory 402 is used for storing execution instructions and includes a memory 4021 and an external memory 4022; the memory 4021 is also referred to as an internal memory, and is configured to temporarily store operation data in the processor 401 and data exchanged with the external memory 4022 such as a hard disk, the processor 401 exchanges data with the external memory 4022 through the memory 4021, and when the electronic device 400 operates, the processor 401 communicates with the memory 402 through the bus 403, so that the processor 401 executes the following instructions:
obtaining a subject to be solved;
determining a problem solving method according to the problem attribute information corresponding to the problem to be solved;
generating a problem solving step described by a formal language according to the problem to be solved and the problem solving method;
and generating a problem solving dynamic picture corresponding to the to-be-solved problem based on the problem solving step described by adopting the formal language.
In some possible embodiments, in the instructions executed by the processor 401, the determining a problem solving method according to the topic attribute information corresponding to the topic to be solved includes:
according to the question attribute information corresponding to the to-be-solved question, searching a problem solving label matched with the question attribute information according to the sequence of the problem solving labels from the upper level to the lower level until the lowest problem solving label matched with the question attribute information is determined;
and determining the problem solving method corresponding to the lowest problem solving label as the problem solving method corresponding to the problem to be solved.
In some possible embodiments, the finding, by the processor 401, a solution label matching the topic attribute information according to the topic attribute information corresponding to the topic to be solved in an order from a higher level to a lower level of the solution label includes:
determining an Nth-level problem solving label matched with the problem to be solved according to at least one type of problem attribute information corresponding to different Nth-level problem solving labels and the problem attribute information of the problem to be solved; the initial value of N is 1;
determining an N +1 th level problem solving label matched with the to-be-solved problem according to at least one type of problem attribute information corresponding to the N +1 th level problem solving labels under the N th level problem solving label and the problem attribute information of the to-be-solved problem; n +1, and repeating the steps until the lowest-level problem label matched with the problem to be solved is determined.
In some possible embodiments, the processor 401, in executing the instructions, generates a problem solving step described in a formal language according to the problem to be solved and the problem solving method, and includes:
generating a problem solving step described by a natural language according to the problem to be solved and the problem solving method;
and converting the problem solving step described by the natural language into the problem solving step described by the formal language according to a preset conversion relation between the natural language for describing various mathematical calculations and the formal language.
In some possible embodiments, the instructions executed by the processor 401 generate, based on the problem solving step described in the formal language, a problem solving dynamic picture corresponding to the problem to be solved, including:
and generating a problem solving dynamic picture for sequentially displaying each problem solving step according to the sequence of the problem solving steps based on the problem solving steps described by the formal language and the set dynamic display effect.
In one possible implementation, the processor 401 executes instructions to obtain a topic to be solved, including:
acquiring a shot image of a subject to be solved;
and extracting text contents in the image of the problem to be solved to obtain the problem to be solved.
In a possible implementation, the instructions executed by the processor 401 further include:
and determining the attribute information of the title to be solved according to characters and operators in the text content of the title to be solved.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the problem solving demonstration method in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the problem solving presentation method provided by the embodiment of the present disclosure includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the problem solving presentation method in the above method embodiment, which may be referred to in the above method embodiment specifically, and are not described herein again.
The embodiments of the present disclosure also provide a computer program, which when executed by a processor implements any one of the methods of the foregoing embodiments. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.