CN116152827A - Question answering method, device, equipment and medium - Google Patents

Question answering method, device, equipment and medium Download PDF

Info

Publication number
CN116152827A
CN116152827A CN202310152877.1A CN202310152877A CN116152827A CN 116152827 A CN116152827 A CN 116152827A CN 202310152877 A CN202310152877 A CN 202310152877A CN 116152827 A CN116152827 A CN 116152827A
Authority
CN
China
Prior art keywords
target
draft
user
question
calculation result
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.)
Pending
Application number
CN202310152877.1A
Other languages
Chinese (zh)
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.)
Beijing Xintang Sichuang Educational Technology Co Ltd
Original Assignee
Beijing Xintang Sichuang Educational 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 Xintang Sichuang Educational Technology Co Ltd filed Critical Beijing Xintang Sichuang Educational Technology Co Ltd
Priority to CN202310152877.1A priority Critical patent/CN116152827A/en
Publication of CN116152827A publication Critical patent/CN116152827A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/22Character recognition characterised by the type of writing
    • G06V30/226Character recognition characterised by the type of writing of cursive writing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The present disclosure provides a method, apparatus, device and medium for answering a question, wherein the method includes: responding to a draft calculation request initiated by a user aiming at a target question, and displaying a draft page; acquiring a writing track of the user on the draft page, and storing a target track in the writing track; under the condition that the user exits the draft page, identifying the key characters of the stored target track, and determining a draft calculation result of the target title according to the identified key characters; and executing an answer filling operation for the target questions according to the draft calculation result. The method and the device can enable the question answering process of the user to be more convenient, effectively improve the question answering efficiency of the user, and ensure that the user has good on-line answering experience.

Description

Question answering method, device, equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for answering a question.
Background
Nowadays, due to the flexible convenience of online teaching, the device is popular with teachers and students, and has been widely popularized and applied. In online teaching, a link that students need to do questions usually exists, and most students take offline calculation in an offline draft mode and then answer questions online according to offline calculation results. The mode not only needs students to prepare paper pens in advance, but also can cause the students to switch on-line/off-line scenes back and forth, so that the mode is inconvenient, the answering efficiency of the students is low, and the on-line answering experience is poor.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, apparatus, device, and medium for answering a question.
According to an aspect of the present disclosure, there is provided a question answering method including: responding to a draft calculation request initiated by a user aiming at a target question, and displaying a draft page; acquiring a writing track of the user on the draft page, and storing a target track in the writing track; under the condition that the user exits the draft page, identifying the key characters of the stored target track, and determining a draft calculation result of the target title according to the identified key characters; and executing an answer filling operation for the target questions according to the draft calculation result.
According to another aspect of the present disclosure, there is provided a question answering apparatus including: the page display module is used for responding to a draft calculation request initiated by a user aiming at a target question and displaying a draft page; the track storage module is used for acquiring the writing track of the user on the draft page and storing a target track in the writing track; the result determining module is used for identifying the key characters of the stored target track under the condition that the user exits the draft page, and determining the draft calculation result of the target title according to the identified key characters; and the answer filling module is used for executing answer filling operation for the target questions according to the draft calculation result.
According to another aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory storing a program, wherein the program comprises instructions that when executed by the processor cause the processor to perform the topic answering method.
According to another aspect of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the topic answering method.
According to the technical scheme provided by the embodiment of the disclosure, a user can directly perform draft calculation on line through a draft page without preparing a paper pen and switching on-line/off-line scenes; and the draft calculation result can be accurately and reliably identified according to the key characters in the writing track of the user, and the answer corresponding to the questions is automatically filled in according to the draft calculation result, so that the user does not need to fill in the answer according to the draft calculation result, the question answering process of the user is more convenient, the question answering efficiency of the user is effectively improved, and the user is ensured to have good on-line answer experience.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a method for answering a question according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of track preservation according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a result acquisition provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart of a method for answering a question according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a device for answering questions according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "comprising" and variations thereof as used in this disclosure are open ended terms that include, but are not limited to. The term "based on" is based at least in part 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. Related definitions of other terms will be given in the description below. It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
Fig. 1 is a flow chart of a method for answering a question according to an embodiment of the present disclosure, which may be executed by a question answering apparatus, where the apparatus may be implemented in software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 1, the method mainly includes the following steps S102 to S108:
step S102, a draft page is displayed in response to a draft calculation request initiated by a user aiming at a target question.
The embodiments of the present disclosure do not limit the type of the target title, such as the target title may be a subjective title or a selection title. In addition, the target title may be a title presented to the user during play of the target video, such as a title appearing in the instructional video that requires the user to provide an answer; the target question may also be a question in an electronic test paper that the user is currently answering. In the embodiment of the disclosure, a trigger key for a user to initiate a draft calculation request may be set on the interface, and when the trigger key is monitored to be triggered (such as clicked) by the user, the draft calculation request initiated by the user for the target title is confirmed to be received, so that a draft page is displayed. The target title is a title corresponding to when the user initiates the draft calculation request, and specifically, the target title may be a title displayed on a current interface when the user initiates the draft calculation request.
The embodiment of the disclosure does not limit the display form of the draft page, and the draft page can be displayed on the current interface according to the preset transparency, so that a user can directly write on the draft page and view the information of the target title on the current interface, and the current interface is not blocked by the draft page with a certain transparency, thereby being convenient for the user to calculate the draft while viewing the title.
Step S104, obtaining a writing track of a user on the draft page, and storing a target track in the writing track.
For example, a user may write on a draft page by touching with a hand or by a stylus, and the embodiments of the present disclosure do not limit the manner in which the user writes. In practical application, the writing track of the user on the draft page can be obtained in real time or according to the designated interval, and the target track in the writing track is stored. The target track can be a part of tracks in the writing track or all tracks, and can be flexibly set according to the requirements. By way of example, the target track is a track within the last specified duration in the writing track, and it can be appreciated that in general, the draft calculation results are all located at the rear position of the writing track, so that the storage cost can be effectively saved.
Step S106, under the condition that the user exits the draft page, identifying the key characters of the stored target track, and determining the draft calculation result of the target title according to the identified key characters.
In practical application, a trigger button for the user to exit the draft page can be arranged, the user can exit the draft page by triggering the trigger button, and under the condition that the user exits the draft page, the user is explained to finish the draft calculation, and at the moment, the draft calculation result of the user can be further obtained according to the stored target track. For example, the target track may be converted into a picture form, the character represented by the track in the picture is identified through OCR (optical character recognition ), the character string corresponding to the target track is parsed through a character string parsing algorithm, for example, the character string "8+2=10" may be parsed into five characters, i.e., 8, +, 2, =, 10, and further, a preset key character is identified from the parsing result, where the key character is a preset character that helps to identify the draft calculation result from the character string, and in the embodiment of the present disclosure, the specific type of the key character is not limited, such as taking the target title as an example, the key character is an equal sign. By the method, the draft calculation result can be quickly and reliably determined from the target track by identifying the key characters. In addition, if the key characters in the target track are not recognized, the subsequent processing is not performed, and the user waits for the answer to be filled in.
Step S108, executing answer filling operation for the target questions according to the draft calculation result.
Compared with the prior art that the user is required to fill out the answer by himself, the answer can be automatically filled out through identifying the obtained draft calculation result, the user does not need to additionally fill out the answer, and the answer convenience of the user is improved better. In practical application, the questions of the target questions are different in types, and the answer filling operation can also be different, for example, if the target questions are subjective questions, the draft calculation result can be directly filled in the area to be answered; while the target question is an objective question, the choice may be made from a plurality of options given by the target question according to the draft calculation result, and the above is merely an example and is not limited herein.
In summary, according to the technical scheme provided by the embodiment of the disclosure, a user can directly perform draft calculation on line through a draft page without preparing a paper pen and switching on-line/off-line scenes; and the draft calculation result can be accurately and reliably identified according to the key characters in the writing track of the user, and the answer corresponding to the questions is automatically filled in according to the draft calculation result, so that the user does not need to fill in the answer according to the draft calculation result, the question answering process of the user is more convenient, the question answering efficiency of the user is effectively improved, and the user is ensured to have good on-line answer experience.
Further, the embodiment of the present disclosure provides the specific implementation manner of step S104, that is, the step of acquiring the writing track of the user on the draft page and saving the target track in the writing track, which may be exemplarily performed with reference to the following steps (1) and (2):
and (1) reading the writing track of the user on the draft page according to a preset time interval. In practical applications, the writing track (also referred to as draft track data) of the user may be read once every preset time interval is reached by a timer, and the embodiments of the present disclosure do not limit the time interval, such as reading the writing track every 1s by the timer. In this way, the writing track of the user can be recorded more efficiently and reliably.
Step (2), based on the writing track read each time, respectively executing a save operation until the user exits the draft page; the storage operation is used for storing target tracks in the last appointed duration in the read writing tracks, and the target tracks stored in the non-first storage operation cover the target tracks stored in the last storage operation of the non-first storage operation. Wherein, the "overlay" means that the target track saved by the last save operation of the non-first save operation is deleted, and only the target track saved by the non-first save operation is reserved. The embodiment of the disclosure does not limit the specified duration, such as the specified duration may be 10s, that is, the last 10s writing track is always saved in the above manner, and the last saved result is covered in the local cache. Specifically, the track (target track) of the last 10s of the read writing tracks is stored in the local cache each time. Illustratively, the writing track of the user on the draft page is read once every 1s, the writing track of the user is saved for 1 to 10s before the writing track is read for 11s, and the writing track of the user is covered with the writing track of the user for 1 to 10s after the writing track of the user is read for 11 s; after the 12 th s reads the writing track, the writing track of the 3 rd to the 12 th s is covered with the writing track of the 2 nd to the 11 th s, and so on until the user exits the draft page, the last 10s writing track is finally saved, for example, the user writes 50s on the draft page altogether, and finally only the 41 st to the 50 th writing track is saved, and the finally saved track is the target track.
For ease of understanding, reference may be made to a track preservation schematic as shown in fig. 2, which illustrates that draft track data (i.e. writing data) is acquired by a timer at preset time intervals (for example, 1 s), and the last 10s of draft track data is stored in the local buffer at a time. It should be noted that, in fig. 2, 2 pieces of 10s are simply illustrated, but the draft trace data corresponding to 2 pieces of 10s are not simultaneously input to the local buffer, but are stored in the local buffer sequentially through the timer, the draft trace data corresponding to the last 10s will overlap the draft trace data corresponding to the first 10s, and the data of 2 to 11s will overlap the data of 1 to 10 s.
By the method, the track with the last appointed duration in the currently obtained writing track can be always stored in the local cache, the final draft calculation result can be ensured to be obtained, and the storage resources of the local cache can be fully saved.
Further, the embodiment of the present disclosure provides a specific implementation manner of the step of determining the draft calculation result of the target topic according to the identified key character in the step S106, which may be exemplarily performed with reference to the following step a and step b:
And a step a, acquiring the associated content of the identified key character in the stored target track.
As described above, the target track can be converted into a picture, and the picture is identified by the OCR technology, so as to obtain a character string in the target track, and find key characters from the character string. In particular, the associated content of the key character may be obtained first, and in some implementation examples, the associated content includes content located after the key character, and taking the example that the key character is an equal sign as the associated content, the characters after the equal sign are all taken as the associated content.
And when the number of the identified key characters is a plurality of, acquiring the associated content of the last key character according to the occurrence sequence of the key characters in the stored target track. For example, when a plurality of equal signs appear in the draft calculation process of the user, the characters after the last equal sign are acquired, so that the user can accurately acquire the draft calculation result.
And b, obtaining a draft calculation result of the target title according to the associated content. For example, the associated content may be directly as a draft calculation result.
For ease of understanding, a schematic diagram may be obtained with reference to one result shown in fig. 3, which illustrates that a target track in a local cache may be generated into a draft picture, where the draft picture simply illustrates "8+2=10" and then characters in the draft picture are identified by OCR technology to obtain a draft character string, which is an entity, so that the draft character string may be parsed and broken down into individual characters, for example, five characters in total of 8, +, 2, =, 10 for the character string "8+2=10", and by looking up key characters therein "=", characters located before "=" are ignored, and characters "10" located after "=" are taken as the obtained draft calculation result. It should be noted that fig. 3 is only a simple illustration, and in practical application, if a plurality of "=" are identified, only the content after the last equal sign is finally taken, so as to ensure that the draft calculation result is finally obtained, and not the intermediate result.
The embodiment of the present disclosure provides the specific implementation manner of the answer filling operation in step S108, that is, according to the draft calculation result, for the target question, which may be exemplarily performed with reference to the following step a and step B:
And step A, obtaining the topic type of the topic title. By way of example, the question types may include selection questions and subjective questions.
And step B, executing answer filling operation aiming at the target questions according to the draft calculation result and the questions. It can be appreciated that questions are different and the answer filling ways are different. Illustratively, the following divides the problem types into subjective and objective problems, giving two ways, respectively:
mode one: under the condition that the question type is a subjective question, the draft calculation result is filled in the to-be-answered area of the target question. For example, if the target question is a subjective blank filling question, the draft calculation result can be automatically filled in the blank filling area to be filled in.
Mode two: in the case that the question type is an objective question, a plurality of selectable items of the target question can be acquired first; then searching target selectable items matched with the draft calculation result from the plurality of selectable items; and marking the target selectable item as an answer of the target question according to a preset mode under the condition that the target selectable item is found. It will be appreciated that objective questions typically provide a user with a number of selectable options from which to choose the correct option. In the embodiment of the disclosure, the draft calculation result of the user can be directly compared with a plurality of current selectable items, target selectable items consistent with the draft calculation result are found, the target selectable items are marked as answers of target topics according to a preset mode, and the preset mode is not limited, for example, one or more of filling the identification of the target selectable items into a to-be-answered area of the target topics, marking the target selectable items in a highlight mode, selecting the target selectable items and adding underlining under the target selectable items. By the method, the user can quickly mark the options considered to be correct by the user based on the draft calculation result of the user without additional comparison.
Under the condition that the target selectable item is not found, the draft calculation result can be displayed on the current page in a floating window mode, so that a user is reminded to select an answer of the target title from a plurality of selectable items according to the draft calculation result. That is, under the condition that the draft calculation result of the user is inconsistent with all the selectable items, a certain problem may exist in the draft calculation process of the user, at this time, the draft calculation result can be displayed on the current page in a floating window mode, and the transparency of the draft calculation result can be set, so that the user can check the draft calculation result and a plurality of selectable items at the same time, assist the user to think, the user can select a target selectable item according to the draft calculation result by himself or can reinitiate the draft calculation request, and the draft page is displayed for the user, so that the user can calculate on the draft page again.
In summary, through the above way, the answer can be automatically filled according to the draft calculation result, and the user does not need to fill in the answer by himself, so that the question answering process of the user is more convenient, and the question answering efficiency of the user is effectively improved. In addition, it should be noted that the embodiments of the present disclosure also support the user to change the automatically filled answer, for example, the user may delete the answer filled into the area to be answered through the above-mentioned answer filling operation, and manually fill the answer again, so as to fully ensure that the filled answer meets the user's requirements.
On the basis of the foregoing, the embodiment of the disclosure further provides a flow chart of a question answering method as shown in fig. 4, which mainly includes the following steps:
step S402, playing the video for the user to watch online. The video may be, for example, a teaching video.
Step S404, in response to receiving a draft calculation request initiated by a user for a target question in the video, a draft page is displayed for the user to write on. It can be understood that there may be an interaction link, an evaluation link, etc. in the teaching video, which will show questions for the students to answer, at this time, the students can call a draft function for the questions to answer (target questions) to realize online calculation.
In step S406, the local system caches the writing track of the user at the last specified duration at any time. Such as by caching the user's writing track for the last 10 seconds at any time, without limitation.
Step S408, it is determined whether the user exits the draft page. If not, the process returns to step S406, and if yes, step S410 is performed.
In step S410, the local cache is extracted.
Step S412, OCR recognition is performed according to the writing track extracted from the local cache.
Step S414, it is determined whether an equal sign is recognized. If not, ending, and enabling the user to manually fill in the answer; if so, step S416 is performed.
Step S416, extracts the content after the last identified equal sign as the draft calculation result.
In step S418, it is determined whether the target question is an objective question or a subjective question. If the subject is an objective question, step S420 is executed, and if the subject is a subjective question, step S428 is executed: and filling the draft calculation result in the area to be answered of the target subject.
Step S420, comparing the draft calculation result with the plurality of selectable items respectively.
Step S422, it is determined whether a target option matching with the draft calculation result is found. If yes, step S424 is performed, and if no, step S426 is performed.
Step S424, marking the target selectable item as an answer of the target question according to a preset mode. The preset mode may be, for example, a highlighting mode, a hooking mode, or the like, and is not limited herein.
Step S426, the draft calculation result is displayed on the current page in a floating window mode to assist the user in selection.
In summary, through the above manner, not only can the user directly perform draft calculation on line through the draft page, but also the user is not required to prepare a paper pen and switch on-line/off-line scenes; and only the writing track with the last appointed duration can be saved, and the memory resource can be effectively saved on the basis of ensuring that the calculation result of the draft can be obtained; in addition, the draft calculation result can be accurately and reliably identified according to the equal sign in the writing track of the user, and the answer corresponding to the question is automatically filled in according to the draft calculation result and the question, so that the user does not need to fill in the answer according to the draft calculation result, the question answering process of the user is more convenient, the question answering efficiency of the user is effectively improved, and good on-line answer experience of the user is ensured.
Corresponding to the foregoing method for answering the questions, the embodiment of the disclosure further provides a device for answering the questions, and fig. 5 is a schematic structural diagram of the device for answering the questions, which is provided in the embodiment of the disclosure, and may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 5, the question answering apparatus 500 includes:
the page display module 502 is configured to respond to a draft calculation request initiated by a user for a target question, and display a draft page;
the track saving module 504 is configured to obtain a writing track of a user on a draft page, and save a target track in the writing track;
the result determining module 506 is configured to identify key characters of the saved target track when the user exits from the draft page, and determine a draft calculation result of the target topic according to the identified key characters;
and the answer filling module 508 is used for executing an answer filling operation for the target questions according to the draft calculation result.
The device provided by the embodiment of the disclosure not only can enable a user to directly perform draft calculation on line through a draft page, but also does not need the user to prepare paper and pen and switch on-line/off-line scenes; and the draft calculation result can be accurately and reliably identified according to the key characters in the writing track of the user, and the answer corresponding to the questions is automatically filled in according to the draft calculation result, so that the user does not need to fill in the answer according to the draft calculation result, the question answering process of the user is more convenient, the question answering efficiency of the user is effectively improved, and the user is ensured to have good on-line answer experience.
In some implementations, the track preservation module 504 is specifically configured to: reading the writing track of the user on the draft page according to a preset time interval; respectively executing a save operation based on the writing track read each time until the user exits the draft page; the storage operation is used for storing target tracks in the last appointed duration in the read writing tracks, and the target tracks stored in the non-first storage operation cover the target tracks stored in the last storage operation of the non-first storage operation.
In some embodiments, the result determination module 506 is specifically configured to: acquiring the associated content of the identified key character in the stored target track; and obtaining a draft calculation result of the target subject according to the associated content.
In some embodiments, the result determination module 506 is specifically configured to: and when the number of the identified key characters is a plurality of, acquiring the associated content of the last key character according to the occurrence sequence of the key characters in the stored target track.
In some implementations, the associated content includes content that follows the key character.
In some embodiments, the answer filling module 508 is specifically configured to: acquiring the questions of the target questions; and executing answer filling operation for the target questions according to the draft calculation result and the questions.
In some embodiments, the answer filling module 508 is specifically configured to: and filling the draft calculation result in a to-be-answered area of the target question under the condition that the question type is a subjective question.
In some embodiments, the answer filling module 508 is specifically configured to: acquiring a plurality of selectable items of the target question under the condition that the question type is an objective question; searching target selectable items matched with the draft calculation result from the plurality of selectable items; and marking the target selectable item as an answer of the target question according to a preset mode under the condition that the target selectable item is found.
In some embodiments, the answer filling module 508 is further specifically configured to: and under the condition that the target selectable item is not found, displaying the draft calculation result on the current page in a floating window mode so as to remind the user of selecting an answer of the target question from the plurality of selectable items according to the draft calculation result.
In some embodiments, the key characters comprise an equal sign.
The question answering device provided by the embodiment of the disclosure can execute the question answering method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described apparatus embodiments may refer to corresponding procedures in the method embodiments, which are not described herein again.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The exemplary embodiments of the present disclosure also provide an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor. The memory stores a computer program executable by the at least one processor for causing the electronic device to perform a method according to embodiments of the present disclosure when executed by the at least one processor.
The present disclosure also provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is for causing the computer to perform a method according to an embodiment of the present disclosure.
The present disclosure also provides a computer program product comprising a computer program, wherein the computer program, when executed by a processor of a computer, is for causing the computer to perform a method according to embodiments of the disclosure.
The computer program product may write program code for performing the operations of embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Further, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the topic answering method provided by the embodiments of the present disclosure. The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, 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), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Referring to fig. 6, a block diagram of an electronic device 600 that may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the electronic device 600 includes a computing unit 601 that 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. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the electronic device 600 are connected to the I/O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the electronic device 600, and the input unit 606 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. The output unit 607 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 608 may include, but is not limited to, magnetic disks, optical disks. The communication unit 609 allows the electronic device 600 to exchange information/data with other devices through a computer network, 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 (TM) devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized 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 method of question answering may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 600 via the ROM 602 and/or the communication unit 609. In some embodiments, the computing unit 601 may be configured to perform the topic answering method by any other suitable means (e.g., by means of firmware).
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These 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 the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A method of answering a question, comprising:
responding to a draft calculation request initiated by a user aiming at a target question, and displaying a draft page;
acquiring a writing track of the user on the draft page, and storing a target track in the writing track;
under the condition that the user exits the draft page, identifying the key characters of the stored target track, and determining a draft calculation result of the target title according to the identified key characters;
and executing an answer filling operation for the target questions according to the draft calculation result.
2. The method of claim 1, wherein the step of obtaining a writing track of the user on the draft page and saving a target track in the writing track comprises:
Reading the writing track of the user on the draft page according to a preset time interval;
respectively executing a save operation based on the writing track read each time until the user exits the draft page; the storage operation is used for storing target tracks in the last appointed duration in the read writing tracks, and the target tracks stored in the non-first storage operation cover the target tracks stored in the last storage operation of the non-first storage operation.
3. The method of claim 1, wherein the step of determining a draft calculation result of the target topic from the identified key characters comprises:
acquiring the associated content of the identified key character in the stored target track;
and obtaining a draft calculation result of the target subject according to the associated content.
4. The method of claim 3, wherein the step of obtaining the associated content of the identified key character comprises:
and when the number of the identified key characters is a plurality of, acquiring the associated content of the last key character according to the occurrence sequence of the key characters in the stored target track.
5. The method of claim 3, wherein the associated content comprises content located after the key character.
6. The method of claim 1, wherein the step of performing an answer filling operation for the target question according to the draft calculation result comprises:
acquiring the questions of the target questions;
and executing answer filling operation for the target questions according to the draft calculation result and the questions.
7. The method of claim 6, wherein the step of performing an answer filling operation for the target question according to the draft calculation result and the question type comprises:
and filling the draft calculation result in a to-be-answered area of the target question under the condition that the question type is a subjective question.
8. The method of claim 6, wherein the step of performing an answer filling operation for the target question according to the draft calculation result and the question type comprises:
acquiring a plurality of selectable items of the target question under the condition that the question type is an objective question;
searching target selectable items matched with the draft calculation result from the plurality of selectable items;
And marking the target selectable item as an answer of the target question according to a preset mode under the condition that the target selectable item is found.
9. The method of claim 8, wherein the step of performing an answer filling operation at a region to be answered of the target question according to the draft calculation result and the question type further comprises:
and under the condition that the target selectable item is not found, displaying the draft calculation result on the current page in a floating window mode so as to remind the user of selecting an answer of the target question from the plurality of selectable items according to the draft calculation result.
10. The method of claim 1, wherein the key characters comprise an equal sign.
11. A question answering apparatus comprising:
the page display module is used for responding to a draft calculation request initiated by a user aiming at a target question and displaying a draft page;
the track storage module is used for acquiring the writing track of the user on the draft page and storing a target track in the writing track;
the result determining module is used for identifying the key characters of the stored target track under the condition that the user exits the draft page, and determining the draft calculation result of the target title according to the identified key characters;
And the answer filling module is used for executing answer filling operation for the target questions according to the draft calculation result.
12. An electronic device, comprising:
a processor; and
a memory in which a program is stored,
wherein the program comprises instructions which, when executed by the processor, cause the processor to perform the topic answering method according to any one of claims 1-10.
13. A computer readable storage medium storing a computer program for executing the topic answering method of any one of the above claims 1-10.
CN202310152877.1A 2023-02-10 2023-02-10 Question answering method, device, equipment and medium Pending CN116152827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310152877.1A CN116152827A (en) 2023-02-10 2023-02-10 Question answering method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310152877.1A CN116152827A (en) 2023-02-10 2023-02-10 Question answering method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116152827A true CN116152827A (en) 2023-05-23

Family

ID=86350435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310152877.1A Pending CN116152827A (en) 2023-02-10 2023-02-10 Question answering method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116152827A (en)

Similar Documents

Publication Publication Date Title
US11194448B2 (en) Apparatus for vision and language-assisted smartphone task automation and method thereof
CN103079092B (en) Obtain the method and apparatus of people information in video
CN107291343B (en) Note recording method, device and computer readable storage medium
CN110568984A (en) Online teaching method and device, storage medium and electronic equipment
CN106971009B (en) Voice database generation method and device, storage medium and electronic equipment
CN110505141B (en) Instant messaging message processing method and device, readable medium and electronic equipment
US10776570B2 (en) Supporting digital ink in markup language documents
CN110221747B (en) Presentation method of e-book reading page, computing device and computer storage medium
CN111738041A (en) Video segmentation method, device, equipment and medium
CN111077996B (en) Information recommendation method and learning device based on click-to-read
CN114449327B (en) Video clip sharing method and device, electronic equipment and readable storage medium
US20170228614A1 (en) Methods and systems for detecting topic transitions in a multimedia content
CN108664339A (en) A kind of information displaying method and device, terminal, readable storage medium storing program for executing
CN112165627A (en) Information processing method, device, storage medium, terminal and system
CN114092608B (en) Expression processing method and device, computer readable storage medium and electronic equipment
CN116152827A (en) Question answering method, device, equipment and medium
CN111796846B (en) Information updating method, device, terminal equipment and readable storage medium
CN114168775A (en) Characteristic information acquisition method and device, storage medium and electronic equipment
CN113420135A (en) Note processing method and device in online teaching, electronic equipment and storage medium
CN112837398A (en) Text annotation method and device, electronic equipment and storage medium
US20190272087A1 (en) Interface filtering method and system
CN110221756A (en) Method, apparatus, terminal and the storage medium of data are applied in processing
CN113762223B (en) Question splitting model training method, question splitting method and related device
CN115243062B (en) Scene display method and device, screen display device, electronic device and storage medium
CN113126865B (en) Note generation method and device in video learning process, electronic 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