Methods, apparatus, equipment and media for answering questions

By recognizing the results of draft calculations on the online draft page and automatically filling in the answers, the problem of switching between online and offline teaching was solved, improving the efficiency and experience of answering questions.

CN116152827BActive Publication Date: 2026-03-10BEIJING XINTANG SICHUANG EDUCATIONAL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Online teaching requires students to draft their answers offline and switch between different scenarios to perform calculations and answer questions, resulting in low efficiency and a poor experience.

Method used

This paper provides a method for answering questions by displaying a draft page, obtaining the user's writing trajectory, recognizing key characters, automatically identifying the draft calculation results, and filling in the answer.

Benefits of technology

No need to prepare paper and pen offline; you can directly do draft calculations online, which improves the efficiency and experience of answering questions and ensures the accuracy of answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116152827B_ABST
    Figure CN116152827B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, device, and medium for answering questions. The method includes: responding to a user's draft calculation request for a target question, displaying a draft page; acquiring the user's writing trajectory on the draft page and saving a target trajectory within the writing trajectory; when the user exits the draft page, identifying key characters in the saved target trajectory and determining the draft calculation result of the target question based on the identified key characters; and performing an answer filling operation for the target question based on the draft calculation result. This disclosure can make the question-answering process more convenient for users, effectively improve users' question-answering efficiency, and ensure that users have a good online question-answering experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to methods, apparatus, devices and media for answering questions. Background Technology

[0002] Currently, online teaching is widely welcomed by teachers and students due to its flexibility and convenience, and its application is widespread. Online teaching often includes a section requiring students to complete exercises. Students typically work out calculations offline, then answer questions online based on their offline work. This method not only requires students to prepare paper and pens in advance, but also involves switching between online and offline scenarios, which is inconvenient, resulting in low efficiency and a poor online learning experience. Summary of the Invention

[0003] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a method, apparatus, device and medium for answering questions.

[0004] According to one aspect of this disclosure, a method for answering questions is provided, comprising: displaying a draft page in response to a user's draft calculation request for a target question; acquiring the user's writing trajectory on the draft page and saving a target trajectory in the writing trajectory; when the user exits the draft page, identifying key characters in the saved target trajectory and determining the draft calculation result of the target question based on the identified key characters; and performing an answer filling operation for the target question based on the draft calculation result.

[0005] According to another aspect of this disclosure, a question-answering device is provided, comprising: a page display module, configured to display a draft page in response to a user's draft calculation request for a target question; a trajectory saving module, configured to acquire the user's writing trajectory on the draft page and save the target trajectory in the writing trajectory; a result determination module, configured to identify key characters of the saved target trajectory when the user exits the draft page, and determine the draft calculation result of the target question based on the identified key characters; and an answer filling module, configured to perform an answer filling operation for the target question based on the draft calculation result.

[0006] According to another aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory storing a program, wherein the program includes instructions that, when executed by the processor, cause the processor to perform the question-answering method.

[0007] According to another aspect of this disclosure, a computer-readable storage medium is provided, the storage medium storing a computer program for executing the aforementioned question-answering method.

[0008] The technical solutions provided in this embodiment not only allow users to perform draft calculations online directly through the draft page without needing to prepare paper and pen or switch between online and offline scenarios, but also accurately and reliably identify the draft calculation results based on key characters in the user's writing trajectory and automatically fill in the corresponding answers to the questions based on the draft calculation results, eliminating the need for users to manually fill in the answers based on the draft calculation results. Therefore, it makes the question-answering process more convenient for users, effectively improves the efficiency of question answering, and ensures that users have a good online question-answering experience.

[0009] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0010] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0011] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 A flowchart illustrating a question-answering method provided in this embodiment of the disclosure;

[0013] Figure 2 A schematic diagram of trajectory saving provided in an embodiment of this disclosure;

[0014] Figure 3 This is a schematic diagram illustrating the acquisition of results according to an embodiment of the present disclosure;

[0015] Figure 4 A flowchart illustrating a question-answering method provided in this embodiment of the disclosure;

[0016] Figure 5 This is a schematic diagram of the structure of a question-answering device provided in an embodiment of the present disclosure;

[0017] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0018] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0019] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0020] The term "comprising" and its variations as used in this disclosure are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc., mentioned in this disclosure are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.

[0021] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0022] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0023] Figure 1 This is a flowchart illustrating a question-answering method provided in an embodiment of the present disclosure. This method can be executed by a question-answering device, which can be implemented using software and / or hardware, and is generally integrated into an electronic device. Figure 1 As shown, the method mainly includes the following steps S102 to S108:

[0024] Step S102: In response to the user's request for draft calculation for the target problem, display the draft page.

[0025] This disclosure does not limit the type of the target question. For example, the target question can be a subjective question or a multiple-choice question. Furthermore, the target question can be a question displayed to the user during the playback of the target video, such as a question appearing in an instructional video that requires the user to provide an answer; the target question can also be a question in the electronic test paper currently being answered by the user. In this disclosure, a trigger button can be provided on the interface for the user to initiate a draft calculation request. When the trigger button is detected to have been triggered by the user (e.g., clicked), it is confirmed that the user has initiated a draft calculation request for the target question, thereby displaying the draft page. The target question is the question corresponding to the user's draft calculation request; specifically, the target question can be the question currently displayed on the interface when the user initiates the draft calculation request.

[0026] This disclosure does not limit the display format of the draft page. For example, the draft page can be displayed on the current interface with a preset transparency. Users can write directly on the draft page and also view the information of the target problem on the current interface. The current interface will not be obscured by the draft page with a certain transparency, which makes it convenient for users to perform draft calculations while looking at the problem.

[0027] Step S104: Obtain the writing trajectory of the user on the draft page and save the target trajectory in the writing trajectory.

[0028] For example, users can write on the draft page using their fingers or a stylus; this embodiment does not restrict the user's writing method. In practical applications, the user's writing trajectory on the draft page can be acquired in real time or at specified intervals, and the target trajectory within the writing trajectory can be saved. The target trajectory can be a part of the writing trajectory or the entire trajectory, which can be flexibly set according to needs. For example, the target trajectory is the trajectory within the last specified time period of the writing trajectory. It is understood that, typically, the draft calculation results are located at the end of the writing trajectory. Through the above method, storage costs can be effectively saved.

[0029] Step S106: When the user exits the draft page, identify the key characters of the saved target trajectory, and determine the draft calculation result of the target question based on the identified key characters.

[0030] In practical applications, a trigger button can be provided for users to exit the draft page. By triggering this button, users can exit the draft page, indicating that they have completed the draft calculations. At this point, the user's draft calculation result can be obtained based on the saved target trajectory. For example, the target trajectory can be converted into an image, and the characters represented by the trajectory in the image can be identified using OCR (optical character recognition). A string parsing algorithm can then be used to parse the string corresponding to the target trajectory. For instance, the string "8+2=10" can be parsed into five characters: 8, +, 2, =, and 10. Furthermore, preset key characters can be identified from the parsing results. These key characters are pre-set characters that help identify the draft calculation result from the string. This embodiment does not limit the specific type of key characters; for example, if the target problem is a math problem, the key character would be the equals sign. Through this method, the draft calculation result can be quickly and reliably determined from the target trajectory by identifying key characters. In addition, if no key characters are identified in the target trajectory, no further processing will be performed, and the system will wait for the user to fill in the answer.

[0031] Step S108: Based on the calculation results of the draft, perform the answer filling operation for the target question.

[0032] Compared to related technologies that require users to manually fill in the answers, this embodiment can automatically fill in the answers by recognizing the obtained draft calculation results, eliminating the need for users to fill in the answers separately and significantly improving the convenience of answering questions. In practical applications, the answer filling operation can vary depending on the type of the target question. For example, if the target question is a subjective question, the draft calculation results can be directly filled in the area to be answered; while if the target question is an objective question, the answer can be selected from multiple options provided by the target question based on the draft calculation results. The above are merely examples and are not intended to be limiting.

[0033] In summary, the technical solutions provided in this embodiment not only allow users to perform draft calculations online directly through the draft page without needing to prepare paper and pen or switch between online and offline scenarios, but also accurately and reliably identify the draft calculation results based on key characters in the user's writing trajectory and automatically fill in the corresponding answers to the questions based on the draft calculation results, eliminating the need for users to manually fill in the answers based on the draft calculation results. Therefore, this makes the question-answering process more convenient for users, effectively improves the efficiency of question answering, and ensures that users have a good online question-answering experience.

[0034] Furthermore, this disclosure provides a specific implementation of step S104 above, namely, obtaining the user's writing trajectory on the draft page and saving the target trajectory in the writing trajectory. For example, it can be performed with reference to the following steps (1) and (2):

[0035] Step (1) reads the user's writing trajectory on the draft page at preset time intervals. In practical applications, a timer can be used to read the user's writing trajectory (also known as draft trajectory data) once the preset time interval is reached. This embodiment does not limit the time interval; for example, the writing trajectory can be read every 1 second using a timer. In this way, the user's writing trajectory can be recorded more efficiently and reliably.

[0036] Step (2) involves performing a save operation on each read writing trajectory until the user exits the draft page. The save operation saves the target trajectory within the last specified time period from the read writing trajectory, and the target trajectory saved in subsequent save operations overwrites the target trajectory saved in the previous save operation. "Overwrite" means deleting the target trajectory saved in the previous save operation and retaining only the target trajectory saved in the previous save operation. This embodiment does not limit the specified time period; for example, the specified time period can be 10 seconds. That is, the above method always saves the last 10 seconds of writing trajectory and overwrites the result of the previous save in the local cache. Specifically, the trajectory (target trajectory) of the last 10 seconds of the read writing trajectory is saved in the local cache each time. For example, the user's writing trajectory on the draft page is read every 1 second. The writing trajectory from the first 1 to the 10th second is saved first. After the writing trajectory is read in the 11th second, the writing trajectory from the 2nd to the 11th second is overwritten with the writing trajectory from the 1st to the 10th second. After the writing trajectory is read in the 12th second, the writing trajectory from the 3rd to the 12th second is overwritten with the writing trajectory from the 2nd to the 11th second, and so on, until the user exits the draft page. At this point, the writing trajectory of the last 10 seconds is finally saved. For example, if the user writes on the draft page for a total of 50 seconds, only the writing trajectory from the 41st to the 50th second is saved. The finally saved trajectory is the target trajectory.

[0037] For easier understanding, please refer to the following: Figure 2 The diagram illustrates a trajectory saving process, showing how draft trajectory data (i.e., writing data) is retrieved at preset time intervals (e.g., 1 second), with the last 10 seconds of draft trajectory data stored in a local cache each time. It should be noted that... Figure 2The diagram simply illustrates two 10-second intervals, but the draft trajectory data corresponding to the two 10-second intervals are not input to the local cache simultaneously. Instead, they are saved to the local cache sequentially through a timer. The draft trajectory data corresponding to the latter 10 seconds will overwrite the draft trajectory data corresponding to the former 10 seconds. For example, the data from the 2nd to the 11th seconds will overwrite the data from the 1st to the 10th seconds.

[0038] By using the above method, it can be ensured that the local cache always stores the trajectory of the last specified duration in the currently obtained writing trajectory. This ensures that the final draft calculation result can be obtained, while also fully conserving the storage resources of the local cache.

[0039] Furthermore, this disclosure provides a specific implementation of the step S106 above, which involves determining the draft calculation result of the target question based on the identified key characters. For example, it can be performed with reference to steps a and b below:

[0040] Step a: In the saved target trajectory, obtain the associated content of the identified key characters.

[0041] As mentioned earlier, the target trajectory can be converted into an image, and image recognition can be performed using OCR technology to obtain the string in the target trajectory and find key characters. This embodiment of the disclosure can further obtain the draft calculation results through key characters, which is more convenient and faster. In specific implementation, the associated content of the key characters can be obtained first. In some implementation examples, the associated content includes the content following the key character. Taking the equals sign as an example, all characters after the equals sign are considered as associated content.

[0042] When multiple key characters are identified, the associated content of the last key character is obtained according to the order in which they appear in the saved target trajectory. For example, if multiple equal signs appear during the user's draft calculation, the character after the last equal sign is obtained, thus ensuring that the user's draft calculation result can be accurately obtained.

[0043] Step b: Based on the associated content, obtain the draft calculation result of the target question. For example, the associated content can be directly used as the draft calculation result.

[0044] For easier understanding, please refer to the following: Figure 3The diagram illustrates one method of obtaining a result. It shows how a draft image can be generated from the target trajectory in the local cache. The draft image simply represents "8+2=10". Then, OCR technology is used to recognize the characters in the draft image to obtain a draft string. This draft string is a whole, so it can be parsed and broken down into individual characters. For example, the string "8+2=10" can be parsed into five characters: 8, +, 2, =, and 10. By finding the key character "=", the characters before "=" are ignored, and the character "10" after "=" is taken as the obtained draft calculation result. It should be noted that... Figure 3 This is just a simplified illustration. In practical applications, if multiple "=" signs are detected, only the content after the last equal sign will be taken to ensure that the final result is the draft calculation result, not the intermediate result.

[0045] This disclosure provides a specific implementation method for step S108 above, that is, performing the answer filling operation for the target question based on the draft calculation result. For example, it can be performed by referring to the following steps A and B:

[0046] Step A: Obtain the question type of the target question. For example, the question type may include multiple-choice questions and subjective questions.

[0047] Step B involves filling in the answers to the target questions based on the draft calculation results and the question type. It's understood that different question types require different answer-filling methods. For example, the question types are categorized into subjective and objective questions, and the following two methods are provided for each:

[0048] Method 1: When the question type is subjective, fill in the draft calculation results in the answer area of ​​the target question. For example, if the target question is a subjective fill-in-the-blank question, the draft calculation results can be automatically filled in the blank area of ​​the fill-in-the-blank question.

[0049] Method 2: In the case of objective questions, multiple options for the target question can be obtained first; then, the target option that matches the draft calculation result can be found from the multiple options; if the target option is found, it can be marked as the answer to the target question according to a preset method. It is understood that objective questions usually provide users with multiple options for them to select the correct one. In this embodiment, the user's draft calculation result can be directly compared with the current multiple options to find the target option that matches the draft calculation result, and the target option can be marked as the answer to the target question according to a preset method. This embodiment does not limit the preset method; for example, the preset method may include one or more of the following: filling the identifier of the target option into the answer area of ​​the target question, highlighting the target option, checking the target option, or adding an underline under the target option. In this way, the user can quickly mark the option they believe to be correct based on their draft calculation result without any further comparison by the user.

[0050] If no target option is found, the draft calculation results can be displayed as a floating window on the current page to remind the user to select the answer to the target question from multiple options based on the draft calculation results. In other words, if the user's draft calculation results do not match any of the options, it indicates that there may be a problem with the user's draft calculation process. In this case, the draft calculation results can be displayed as a floating window on the current page, and the transparency of the draft calculation results can be adjusted so that the user can view the draft calculation results and multiple options simultaneously, assisting the user in thinking. The user can choose the target option based on the draft calculation results, or they can re-initiate the draft calculation request and be shown the draft page again so that they can recalculate on the draft page.

[0051] In summary, the above method automatically fills in the answers based on the draft calculation results, eliminating the need for users to manually fill them in. This makes the question-answering process more convenient and effectively improves the user's efficiency. Furthermore, it should be noted that this embodiment also supports user modification of the automatically filled answers. For example, users can delete the answers entered into the answer area through the above-described answer filling operation and manually re-enter the answers, ensuring that the filled answers fully meet the user's needs.

[0052] Based on the foregoing, the embodiments disclosed herein further provide, as follows: Figure 4 The flowchart shown illustrates one method for answering questions, which mainly includes the following steps:

[0053] Step S402: Play the video for the user to watch online. This video may be an instructional video.

[0054] Step S404: In response to receiving a user's request for draft calculation of the target problem in the video, a draft page is displayed for the user to write on. It is understandable that teaching videos may include interactive or assessment segments, which will display problems for students to solve. Students can then use the draft function to perform online calculations on the problem to be solved (the target problem).

[0055] Step S406: The local system caches the user's writing trajectory at any time after the last specified period. For example, it may cache the user's writing trajectory in the last 10 seconds; there is no limit to this.

[0056] Step S408: Determine if the user has exited the draft page. If not, return to step S406; if yes, proceed to step S410.

[0057] Step S410: Extract local cache.

[0058] Step S412: Perform OCR recognition based on the writing trajectory extracted from the local cache.

[0059] Step S414: Determine if an equal sign has been recognized. If not, end the process, and the user can then manually fill in the answer; if yes, proceed to step S416.

[0060] Step S416: Extract the content after the last equal sign that has been identified, and use it as the draft calculation result.

[0061] Step S418: Determine whether the target question is an objective question or a subjective question. If it is an objective question, proceed to step S420; if it is a subjective question, proceed to step S428: fill in the draft calculation results in the unanswered area of ​​the target question.

[0062] Step S420: Compare the draft calculation results with each of the multiple options.

[0063] Step S422: Determine whether a target option matching the draft calculation result has been found. If yes, proceed to step S424; otherwise, proceed to step S426.

[0064] Step S424: Mark the target options as answers to the target question according to a preset method. The preset method can be, for example, highlighting or checking, and is not limited here.

[0065] Step S426: Display the draft calculation results on the current page in the form of a floating window to assist the user in making selections.

[0066] In summary, the above methods allow users to perform draft calculations directly online via the draft page, eliminating the need for paper and pen or switching between online and offline scenarios. Furthermore, only the last specified duration of the writing process is saved, effectively conserving memory resources while ensuring the availability of draft calculation results. Additionally, the equals sign in the user's writing path accurately and reliably identifies the draft calculation results and automatically fills in the corresponding answers based on the results and question type, eliminating the need for users to manually input answers from the draft calculations. Therefore, this makes the question-answering process more convenient, effectively improving user efficiency and ensuring a positive online question-answering experience.

[0067] Corresponding to the aforementioned question-answering method, this disclosure also provides a question-answering device. Figure 5 This is a schematic diagram of a question-answering device provided in an embodiment of this disclosure. The device can be implemented by software and / or hardware, and is generally integrated into an electronic device. Figure 5 As shown, the question-answering device 500 includes:

[0068] Page display module 502 is used to respond to the user's request for draft calculation for the target problem and display the draft page;

[0069] The trajectory saving module 504 is used to obtain the user's writing trajectory on the draft page and save the target trajectory in the writing trajectory;

[0070] The result determination module 506 is used to identify key characters of the saved target trajectory when the user exits the draft page, and to determine the draft calculation result of the target question based on the identified key characters.

[0071] The answer filling module 508 is used to perform the answer filling operation for the target question based on the calculation results of the draft.

[0072] The device provided in this embodiment not only allows users to perform draft calculations online directly through the draft page without needing to prepare paper and pen or switch between online and offline scenarios, but also accurately and reliably identifies the draft calculation results based on key characters in the user's writing trajectory and automatically fills in the corresponding answers to the questions based on the draft calculation results, eliminating the need for users to manually fill in the answers based on the draft calculation results. Therefore, it makes the question-answering process more convenient for users, effectively improves the efficiency of question answering, and ensures that users have a good online question-answering experience.

[0073] In some implementations, the trajectory saving module 504 is specifically used to: read the user's writing trajectory on the draft page at preset time intervals; perform a saving operation based on each read writing trajectory until the user exits the draft page; wherein the saving operation is used to save the target trajectory within the last specified time period in the read writing trajectory, and the target trajectory saved by the non-first saving operation covers the target trajectory saved by the previous saving operation of the non-first saving operation.

[0074] In some implementations, the result determination module 506 is specifically used to: obtain the associated content of the identified key characters in the saved target trajectory; and obtain the draft calculation result of the target question based on the associated content.

[0075] In some implementations, the result determination module 506 is specifically used to: when there are multiple identified key characters, obtain the associated content of the last key character according to the order in which the multiple key characters appear in the saved target trajectory.

[0076] In some implementations, the associated content includes content located after the keyword.

[0077] In some implementations, the answer filling module 508 is specifically used to: obtain the question type of the target question; and perform an answer filling operation for the target question based on the draft calculation result and the question type.

[0078] In some implementations, the answer filling module 508 is specifically used to: fill the draft calculation result in the unanswered area of ​​the target question when the question type is a subjective question.

[0079] In some implementations, the answer filling module 508 is specifically used for: when the question type is an objective question, obtaining multiple options for the target question; searching for a target option that matches the draft calculation result from the multiple options; and, if a target option is found, marking the target option as the answer to the target question according to a preset method.

[0080] In some implementations, the answer filling module 508 is also specifically used to: display the draft calculation result in a floating window on the current page when no target option is found, so as to remind the user to select the answer to the target question from the plurality of options based on the draft calculation result.

[0081] In some implementations, the key character includes the equals sign.

[0082] The question-answering device provided in this disclosure can execute the question-answering method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the method execution.

[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device embodiments can be referred to the corresponding process in the method embodiments, and will not be repeated here.

[0084] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0085] Exemplary embodiments of this disclosure also provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to cause the electronic device to perform a method according to an embodiment of this disclosure.

[0086] Exemplary embodiments of this disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a method according to embodiments of this disclosure.

[0087] Exemplary embodiments of this disclosure also provide a computer program product, including a computer program, wherein, when executed by a processor of a computer, the computer program is used to cause the computer to perform a method according to an embodiment of this disclosure.

[0088] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this disclosure. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0089] Furthermore, embodiments of this disclosure can also be computer-readable storage media storing computer program instructions that, when executed by a processor, cause the processor to perform the question-answering method provided in embodiments of this disclosure. The computer-readable storage medium can be any combination of one or more readable media. A readable medium can be a readable signal medium or a readable storage medium. A readable storage medium can be, for example, including but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0090] refer to Figure 6 The present invention describes a structural block diagram of an electronic device 600 that can serve as a server or client of the present disclosure, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0091] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 606 into a random access memory (RAM) 603. The RAM 603 may also store various programs and data required for the operation of the device 600. The computing unit 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0092] Multiple components in electronic device 600 are connected to I / O interface 605, including: input unit 606, output unit 607, storage unit 608, and communication unit 609. Input unit 606 can be any type of device capable of inputting information to electronic device 600. Input unit 606 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device. Output unit 607 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 608 may include, but is not limited to, disks and optical discs. Communication unit 609 allows electronic device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth™ devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.

[0093] The computing unit 601 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the question-answering method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 600 via ROM 602 and / or communication unit 609. In some embodiments, the computing unit 601 can be configured to perform the question-answering method by any other suitable means (e.g., by means of firmware).

[0094] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0095] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0096] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0097] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0099] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.

[0100] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0101] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A question answering method, comprising: displaying a draft page in response to a user initiating a draft calculation request for a question title; acquiring a writing track of the user on the draft page, and saving a target track in the writing track; in a case where the user exits the draft page, identifying a key character of the saved target track, and determining a draft calculation result of the question title according to the identified key character; acquiring a question type of the question title; performing an answer filling operation for the question title according to the draft calculation result and the question type, comprising: in a case where the question type is an objective question, acquiring a plurality of selectable items of the question title; searching for a target selectable item matching the draft calculation result from the plurality of selectable items; in a case where the target selectable item is found, marking the target selectable item as an answer of the question title in a preset manner.

2. The question answering method of claim 1, wherein, The step of acquiring the writing track of the user on the draft page and saving the target track in the writing track comprises: reading the writing track of the user on the draft page at a preset time interval; performing a saving operation based on each reading of the writing track until the user exits the draft page; wherein the saving operation is used to save a target track in the reading writing track within a last specified time period, and a target track saved by a non-first saving operation covers a target track saved by a last saving operation of the non-first saving operation.

3. The question answering method of claim 1, wherein, The step of determining the draft calculation result of the question title according to the identified key character comprises: in the saved target track, acquiring associated content of the identified key character; obtaining the draft calculation result of the question title according to the associated content.

4. The question answering method of claim 3, wherein, The step of acquiring the associated content of the identified key character comprises: when the number of the identified key characters is more than one, acquiring associated content of a last key character according to the order of appearance of the plurality of key characters in the saved target track.

5. The question answering method of claim 3, wherein, The associated content includes content after the key character.

6. The question answering method of claim 1, wherein, The step of performing the answer filling operation for the question title according to the draft calculation result and the question type comprises: in a case where the question type is a subjective question, filling the draft calculation result at a to-be-answered area of the question title.

7. The question answering method of claim 1, wherein, The step of performing the answer filling operation at the to-be-answered area of the question title according to the draft calculation result and the question type further comprises: in a case where the target selectable item is not found, displaying the draft calculation result in a floating window form on a current page to remind the user to select an answer of the question title from the plurality of selectable items according to the draft calculation result.

8. The question answering method of claim 1, wherein, The key character includes an equal sign. 9.A question answering apparatus, comprising: a page display module configured to display a draft page in response to a user initiating a draft calculation request for a question title; a track saving module configured to acquire a writing track of the user on the draft page, and save a target track in the writing track; A result determining module is configured to identify key characters of the target track saved in a case that the user exits the draft page, and determine a draft calculation result of the target question according to the identified key characters. An answer filling module is configured to acquire a question type of the target question. In a case that the question type is an objective question, a plurality of selectable items of the target question are acquired. A target selectable item matching the draft calculation result is searched from the plurality of selectable items. In a case that the target selectable item is found, the target selectable item is marked as an answer of the target question in a preset manner.

10. An electronic device, comprising: a processor; and a memory storing a program, wherein the program includes instructions that, when executed by the processor, cause the processor to perform the question answering method according to any one of claims 1-8.

11. A computer readable storage medium, the storage medium storing a computer program for performing the question answering method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Choice and judgment question answer automatic check method and device

    CN108133167A

  • Method, device and apparatus for displaying electronic draft

    CN109359272A

  • Method and device for automatically correcting oral arithmetic questions, storage medium and electronic equipment

    CN110929582A

  • Method for automatically filling answer, electronic equipment and readable storage medium

    CN112069349A