CN111369403B - Problem solving demonstration method and device - Google Patents

Problem solving demonstration method and device Download PDF

Info

Publication number
CN111369403B
CN111369403B CN202010125265.XA CN202010125265A CN111369403B CN 111369403 B CN111369403 B CN 111369403B CN 202010125265 A CN202010125265 A CN 202010125265A CN 111369403 B CN111369403 B CN 111369403B
Authority
CN
China
Prior art keywords
problem solving
solving
attribute information
level
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010125265.XA
Other languages
Chinese (zh)
Other versions
CN111369403A (en
Inventor
王紫静
罗小飞
曹勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010125265.XA priority Critical patent/CN111369403B/en
Publication of CN111369403A publication Critical patent/CN111369403A/en
Application granted granted Critical
Publication of CN111369403B publication Critical patent/CN111369403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/02Electrically-operated educational appliances with visual presentation of the material to be studied, e.g. using film strip

Abstract

The application provides a method and a device for demonstrating problem solving, wherein 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 method and the device, the problem solving method is determined according to the problem attribute information corresponding to the to-be-solved problem, the problem solving step described by the formal language is generated, and then the problem solving dynamic picture corresponding to the to-be-solved problem is generated based on the problem solving step described by the formal language, so that the corresponding problem solving dynamic picture can be automatically displayed for any given problem, the understanding of a user is facilitated, and the learning efficiency is improved.

Description

Problem solving demonstration method and device
Technical Field
The disclosure relates to the technical field of computers, in particular to a problem solving demonstration method and device.
Background
Many problem solving software can provide the user with the automatic problem solving function. Generally, when providing answers to questions, the question solving software searches in a massive question library to find the question with the highest degree of correlation, then outputs the answer to the question with the highest degree of correlation and the question solving process thereof, and if the relevant question is not found, the step of obtaining the answer and the question cannot be performed.
However, although the types and concepts of the topics are similar, the specific contents vary widely, the problem solving steps are not the same, it is impossible for the topic library to include all the topics, the topics input by the user are different from the topics obtained by the search, and the obtained answers and the problem solving steps are not completely matched with the topics input by the user, which often makes it difficult for the user to fully understand the problem solving idea of the topics.
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.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
FIG. 1 is a flow chart illustrating a method for problem solving demonstration provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a problem solving presentation device provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another problem solving presentation apparatus provided by the embodiments of the present disclosure;
fig. 4 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
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.
The problem to be solved can be a mathematical calculation problem and can be composed of elements such as numbers, operation symbols, unknowns and the like. Such as "99 + 36", "(5 × 67+4) ÷ 7", "x +79- (x × 7) ═ 161", etc., the object to be solved may be a four-rule mixing operation, a solution equation, etc.
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.

Claims (8)

1. A problem solving demonstration method, the method comprising:
obtaining a subject to be solved;
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 repeatedly executing the step until a lowest-level problem solving label matched with the problem to be solved is determined; the attribute information comprises operation symbol information and digital information in the to-be-solved subject and associated information between the operation symbol information and the digital information;
determining the problem solving method corresponding to the lowest problem solving label as the problem solving method 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 calculation logic corresponding to 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.
2. The problem solving presentation method according to claim 1, wherein the step of generating a problem solving described in a formal language according to the problem to be solved and the problem solving method comprises:
generating a problem solving step described by a natural language according to the problem to be solved and the calculation logic corresponding to 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.
3. The problem solving presentation method according to claim 1, wherein generating a problem solving dynamic picture corresponding to the problem to be solved based on the problem solving step described by using a formal language comprises:
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.
4. The problem solving presentation method according to claim 1, wherein obtaining the problem to be solved comprises:
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.
5. The problem solving presentation method according to claim 4, further comprising:
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.
6. An apparatus for problem solving presentation, the apparatus comprising:
the acquisition module is used for acquiring the problem to be solved;
the determining module is used for determining an Nth-level problem solving label matched with the to-be-solved problem 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 to-be-solved problem; 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 repeatedly executing the step until determining the lowest problem solving label matched with the problem to be solved; the attribute information comprises operation symbol information and digital information in the to-be-solved subject and associated information between the operation symbol information and the digital information; determining the problem solving method corresponding to the lowest problem solving label as the problem solving method corresponding to the problem to be solved;
the first generation module is used for generating a problem solving step described by a formal language according to the to-be-solved problem and the calculation logic corresponding to 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.
7. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the method of problem solving presentation of any of claims 1 to 5.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of problem solving presentation according to any one of claims 1 to 5.
CN202010125265.XA 2020-02-27 2020-02-27 Problem solving demonstration method and device Active CN111369403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010125265.XA CN111369403B (en) 2020-02-27 2020-02-27 Problem solving demonstration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010125265.XA CN111369403B (en) 2020-02-27 2020-02-27 Problem solving demonstration method and device

Publications (2)

Publication Number Publication Date
CN111369403A CN111369403A (en) 2020-07-03
CN111369403B true CN111369403B (en) 2021-09-14

Family

ID=71206288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010125265.XA Active CN111369403B (en) 2020-02-27 2020-02-27 Problem solving demonstration method and device

Country Status (1)

Country Link
CN (1) CN111369403B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182200A (en) * 2020-09-30 2021-01-05 北京有竹居网络技术有限公司 Topic information generation method and device and computer storage medium
CN112183048A (en) * 2020-09-30 2021-01-05 北京有竹居网络技术有限公司 Automatic problem solving method and device, computer equipment and storage medium
CN112188232A (en) * 2020-09-30 2021-01-05 北京有竹居网络技术有限公司 Video generation method, video display method and device
CN112396543B (en) * 2020-10-26 2024-03-15 成都汉青科技有限公司 Method and device for visualizing and intelligently guiding general topic solution ideas
CN112966674A (en) * 2020-12-07 2021-06-15 北京字节跳动网络技术有限公司 Topic explaining method and device and electronic equipment
CN112446934A (en) * 2020-12-11 2021-03-05 北京有竹居网络技术有限公司 Topic schematic diagram generation method and device
CN112447073A (en) * 2020-12-11 2021-03-05 北京有竹居网络技术有限公司 Explanation video generation method, explanation video display method and device
CN112488052B (en) * 2020-12-16 2023-05-26 杭州大拿科技股份有限公司 Question assisting method, device and system
CN112541493B (en) * 2020-12-17 2022-09-30 北京字节跳动网络技术有限公司 Topic explaining method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815955A (en) * 2019-03-04 2019-05-28 杭州大拿科技股份有限公司 Topic householder method and system
CN109961146A (en) * 2019-03-08 2019-07-02 科大讯飞股份有限公司 Mathematical problem answers method and device
CN110378986A (en) * 2019-07-24 2019-10-25 杭州大拿科技股份有限公司 A kind of exercise Show Me animation generation method, device, electronic equipment and storage medium
CN110765107A (en) * 2019-10-23 2020-02-07 浙江蓝鸽科技有限公司 Question type identification method and system based on digital coding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060024649A1 (en) * 2004-07-30 2006-02-02 Vernon David H Handheld math problem solving device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815955A (en) * 2019-03-04 2019-05-28 杭州大拿科技股份有限公司 Topic householder method and system
CN109961146A (en) * 2019-03-08 2019-07-02 科大讯飞股份有限公司 Mathematical problem answers method and device
CN110378986A (en) * 2019-07-24 2019-10-25 杭州大拿科技股份有限公司 A kind of exercise Show Me animation generation method, device, electronic equipment and storage medium
CN110765107A (en) * 2019-10-23 2020-02-07 浙江蓝鸽科技有限公司 Question type identification method and system based on digital coding

Also Published As

Publication number Publication date
CN111369403A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN111369403B (en) Problem solving demonstration method and device
Marin et al. Bayesian essentials with R
EP3361422A1 (en) Implementing neural networks in fixed point arithmetic computing systems
CN111353037B (en) Topic generation method and device and computer readable storage medium
CN110019793A (en) A kind of text semantic coding method and device
CN109614473B (en) Knowledge reasoning method and device applied to intelligent interaction
Kamerich A guide to Maple
CN111198939B (en) Statement similarity analysis method and device and computer equipment
US11651015B2 (en) Method and apparatus for presenting information
CN112183048A (en) Automatic problem solving method and device, computer equipment and storage medium
CN113407675A (en) Automatic education subject correcting method and device and electronic equipment
CN112188232A (en) Video generation method, video display method and device
CN111291187A (en) Emotion analysis method and device, electronic equipment and storage medium
CN112447073A (en) Explanation video generation method, explanation video display method and device
CN111538803A (en) Method, device, equipment and medium for acquiring candidate question text to be matched
CN115879455A (en) Word emotion polarity prediction method and device, electronic equipment and storage medium
CN113095065B (en) Chinese character vector learning method and device
CN111831134B (en) Multi-character structure self-adaptive input method and layout generation method thereof
KR102357665B1 (en) Appraratus and Method for calculating multiplication value, multiplication Educational Materials and Tool
CN111368387B (en) Electric power system simulation data textualization method
CN112184505A (en) Information processing method and device and computer storage medium
CN112347267A (en) Text processing method and device, computer equipment and storage medium
CN113705251A (en) Training method of machine translation model, language translation method and equipment
CN112579735B (en) Question generation method and device, computer equipment and storage medium
CN114116877B (en) Data conversion method, device, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.