CN116484847A - Assembly for gap filling problem customization and working method thereof - Google Patents

Assembly for gap filling problem customization and working method thereof Download PDF

Info

Publication number
CN116484847A
CN116484847A CN202310382334.9A CN202310382334A CN116484847A CN 116484847 A CN116484847 A CN 116484847A CN 202310382334 A CN202310382334 A CN 202310382334A CN 116484847 A CN116484847 A CN 116484847A
Authority
CN
China
Prior art keywords
question
answer
input
text
separator
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
CN202310382334.9A
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.)
Jinxiandai Information Industry Co ltd
Original Assignee
Jinxiandai Information Industry 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 Jinxiandai Information Industry Co ltd filed Critical Jinxiandai Information Industry Co ltd
Priority to CN202310382334.9A priority Critical patent/CN116484847A/en
Publication of CN116484847A publication Critical patent/CN116484847A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/258Heading extraction; Automatic titling; Numbering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Databases & Information Systems (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The present disclosure provides a component for gap-filling question customization and a working method thereof, wherein the scheme includes: the system comprises a question definition unit, a question generation unit and a question text generation unit, wherein the question definition unit is used for receiving question input to be defined by a proposer and a separator used for marking contents to be filled in the questions, the question generation unit is used for carrying out answer content hollowing processing and answer storage on the questions according to the separator by utilizing a built-in algorithm of a component, and meanwhile, the question hollowing positions are complemented into a grid form corresponding to answer texts one by one and are displayed; the monitoring unit is used for focusing based on the grid clicking position of the answering machine, and monitoring input text in real time to perform text rendering of the grid at the corresponding position; meanwhile, when a submitting action signal of a answering machine is received, storing the current input text; and the answer verification unit is used for comparing the stored input text with the answers at the corresponding positions of the input text, so as to verify the answer result of the answer.

Description

Assembly for gap filling problem customization and working method thereof
Technical Field
The disclosure belongs to the technical field of computers, and particularly relates to a component for gap-filling problem customization and a working method thereof.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
In the existing examination exercise system, the blank filling question is a common question type, generally a place needing to be filled in a question stem is left with a text input box for a user to fill in an answer. A text is typically set to a space, for example: "____ Chuanlin She Sheng," how ____ and creep "is used as the stem, wherein the input box for filling in the answer is at ___. The user clicks the position of the cursor to perform answer automatic focusing, and after submitting, the user performs answer verification, correct or incorrect, and marks with different colors. For example: "MotinWoods-penetrating punch She Sheng, how to doYinzhao for treating singingAnd creep ", wherein, different colors are adopted for" moat "," yin "(correct answer) and" smile "(wrong answer);
the inventor finds that the password input box of the existing component such as vant can only input numbers for a text with fixed length; most of filling questions can only use a simple single text input box, and can not accurately position the content of each input and automatically check the correct and error conditions; at the same time, character segmentation is not possible.
Disclosure of Invention
In order to solve the problems, the present disclosure provides a module for filling blank questions and a working method thereof, wherein the scheme can conveniently and rapidly complete setting of a question, support setting of a plurality of answers of the question, automatically render the question, calculate cursor positions and monitor input conditions of users, and check correct and incorrect answers and correct answer consult after submitting, thereby effectively improving question setting efficiency of the question and multi-scene and multi-style adaptability of the questions.
According to a first aspect of embodiments of the present disclosure, there is provided an assembly for void-filling problem customization, comprising:
the system comprises a question definition unit, a question input unit and a question input unit, wherein the question definition unit is used for receiving a question input to be defined by a proposer and a separator used for identifying the content to be filled in a question, the question input comprises a question stem and an answer, and the answer is identified in the question through the separator arranged from beginning to end;
the question generation unit is used for carrying out answer content hollowing out processing and answer storage on the questions according to the separator by utilizing a built-in algorithm of the component, and meanwhile, supplementing the hollowing positions of the questions into a grid form corresponding to answer texts one by one and displaying the same; the built-in algorithm specifically comprises the following steps: performing cyclic traversal on the title, hollowing out and storing two separator symbols which continuously appear and contents between the separator symbols;
the monitoring unit is used for focusing based on the grid clicking position of the answering machine, and monitoring input text in real time to perform text rendering of the grid at the corresponding position; meanwhile, when a submitting action signal of a answering machine is received, storing the current input text;
and the answer verification unit is used for comparing the stored input text with the answers at the corresponding positions of the input text, so as to verify the answer result of the answer.
Further, in the monitoring unit, the current focus position and the inputted content are monitored in real time, and the index serial numbers of the grids are dynamically rendered according to the deleting or inputting operation of the answering machine, so that the current focusing grid is ensured to be the input grid of the answering machine.
Further, when the number of input texts of the answer questions exceeds the actual number of grids in the stem, the input texts of the actual number of grids are automatically intercepted, and the excess texts are not processed.
Further, when the separator of the topic input is an odd number, the separator is added at the tail part of the topic text, so that the separator in the topic meets the requirement of the even number.
Further, based on the correctness of the answer person in the verification result, marking different display effects on the answer of the answer person in the displayed stem, wherein the marking is performed by adopting different colors, different fonts, different word sizes, whether thickening or not or whether underlining exists.
Further, the built-in algorithm specifically includes:
the component cuts the questions through the received segmentation symbol values, and obtains a question array list based on the cutting result;
traversing the cut title array list, further cutting array items with even indexes according to the array indexes, setting the types of the array items to be text types, and sequentially placing objects containing text contents and types into a blanc AllList array; for odd number array items, individually putting a right Val array of a correct answer, cutting and traversing according to the length of the correct answer, setting the type of the right Val array as an input box type, setting text content as null, and putting objects containing the text content and the type into a blank AllList array in sequence; it should be noted that, the array index starts from 0;
and when the page is initialized, rendering the page of the text and the input box according to the text type or the input box type of the data item by rendering the blancAlList array.
Further, the separator is user-defined and set to distinguish existing characters in the title.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for operating a component for filling a void, including:
receiving a question input to be defined by a proposer and a separator for identifying the content to be filled in the question, wherein the question input comprises a question stem and an answer, and the answer is identified in the question through the separator arranged from beginning to end;
performing answer content hollowing out processing and answer storage on the questions according to the separator by utilizing a built-in algorithm of the component, and complementing the hollowing out positions of the questions into a grid form corresponding to answer texts one by one and displaying the same; the built-in algorithm specifically comprises the following steps: performing cyclic traversal on the title, hollowing out and storing two separator symbols which continuously appear and contents between the separator symbols;
focusing based on the grid clicking position of the answering machine, and monitoring input text in real time to perform text rendering of the grid at the corresponding position; meanwhile, when a submitting action signal of a answering machine is received, storing the current input text;
and comparing the stored input text with the answers at the corresponding positions of the input text, so as to verify the answer results of the answer.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including a memory, a processor, and a computer program stored to run on the memory, where the processor implements a method for operating the component for filling the space problem customization when executing the program.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of operation of the described component for filling a void, problem customization.
Compared with the prior art, the beneficial effects of the present disclosure are:
(1) The invention provides a self-defining component for filling questions and a working method thereof, and the scheme aims to serve the current situation that filling questions in a large number of current examination training systems are complex in setting and unsatisfactory in effect, and improve the use friendliness of users; through the assembly disclosed by the disclosure, only simple stem configuration is needed, a large amount of workload is saved, the setting of one gap-filling problem can be completed, and the assembly is friendly and convenient for multi-scene and multi-terminal multiplexing.
(2) The scheme improves the efficiency of the development of the filling questions, can conveniently and rapidly complete the setting of a question by using the assembly, supports the setting of a plurality of answers of the question, automatically renders the question, calculates the cursor position and monitors the input condition of a answering person, and can check correct and incorrect and check correct answers after submitting, thereby meeting the requirements of a large number of use scenes.
Additional aspects of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the exemplary embodiments of the disclosure and together with the description serve to explain the disclosure, and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an assembly for void-filling problem customization according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of operation of a component for void-filling problem customization in accordance with an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a post-stem rendering state according to an embodiment of the disclosure;
fig. 4 is a schematic diagram of a state after input by an answer person according to an embodiment of the disclosure;
fig. 5 is a schematic diagram of answer verification states in an embodiment of the disclosure.
Detailed Description
The disclosure is further described below with reference to the drawings and examples.
It should be noted that the following detailed description is illustrative and is intended to provide further explanation of the present disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments in accordance with the present disclosure. As used herein, the singular is also intended to include the plural unless the context clearly indicates otherwise, and furthermore, it is to be understood that the terms "comprises" and/or "comprising" when used in this specification are taken to specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
Embodiment one:
it is an object of this embodiment to provide an assembly for void-filling problem customization.
An assembly for void-filling problem customization, comprising:
the system comprises a question definition unit, a question input unit and a question input unit, wherein the question definition unit is used for receiving a question input to be defined by a proposer and a separator used for identifying the content to be filled in a question, the question input comprises a question stem and an answer, and the answer is identified in the question through the separator arranged from beginning to end;
the question generation unit is used for carrying out answer content hollowing out processing and answer storage on the questions according to the separator by utilizing a built-in algorithm of the component, and meanwhile, supplementing the hollowing positions of the questions into a grid form corresponding to answer texts one by one and displaying the same; the built-in algorithm specifically comprises the following steps: performing cyclic traversal on the title, hollowing out and storing two separator symbols which continuously appear and contents between the separator symbols;
the monitoring unit is used for focusing based on the grid clicking position of the answering machine, and monitoring input text in real time to perform text rendering of the grid at the corresponding position; meanwhile, when a submitting action signal of a answering machine is received, storing the current input text;
and the answer verification unit is used for comparing the stored input text with the answers at the corresponding positions of the input text, so as to verify the answer result of the answer.
In specific implementation, in the monitoring unit, the current focus position and the inputted content are monitored in real time, and aiming at the deleting or inputting operation of the answering machine, the index serial numbers of the grids are dynamically rendered, so that the current focusing grid is ensured to be the input grid of the answering machine. The method comprises the steps of carrying out a first treatment on the surface of the When the number of input texts of the answer questions exceeds the actual number of grids in the questions, the input texts of the actual number of grids are automatically intercepted, and the excess texts are not processed.
In a specific implementation, when the separator input by the title is odd, the separator is added at the tail part of the title text, so that the separator in the title meets the requirement of even number.
In specific implementation, based on the correctness and the mistake of the answer maker in the verification result, the answer of the answer maker is marked with different display effects in the displayed stem, wherein the marking is marked with different colors, different fonts, different word sizes, whether thickening or not or whether underlining exists.
The components described in this embodiment mainly solve the following problems:
(1) Solving the problem that the answer of the stem cannot be set by user
In the existing component or method, the complete stem and the answers are required to be preset respectively in advance, the answers are compared and rendered by traversing the stem content, the setting mode is single, the use scene is single, and multiple answers cannot be set. The answer setting of the required gap filling in the stem is that more than one answer may exist in the stem, the answer characters may also exist in the stem, and when the answer is submitted and identified, the correct answer at the stem must be accurately identified.
(2) Solving the problem that text rendering position after input cannot be monitored
In the input process, the answer may not be input from the first place, or the answer of the text at a certain place is alternatively modified, the current input position must be automatically obtained, and the answer is accurately rendered into the corresponding lattice. The component dynamically renders the index serial number of the active grid aiming at the deleting or inputting operation of the answering machine by monitoring the focus position and the inputted content in real time, so as to ensure that the current focusing space is the input grid of the current answering machine. When the answer is input by the answer, the text is automatically intercepted, and the excess part is not processed, so that the mesh number corresponds to the input text of the answer one by one.
(3) Solving the problem that the correct and the wrong of the answers cannot be checked one by one after the answers are filled
After the answer is submitted, checking and correcting errors are carried out according to the answer of the answer, and rendering and displaying are carried out according to a preset feedback pattern. For example, correct content is marked green and incorrect content is marked red.
(4) Solves the problems of complex logic configuration in the prior art
The existing solution needs to write complicated logic aiming at input content, has redundant codes, is troublesome in the use process, and is easy to realize the calling problem. After the component is introduced, only two attribute values of the filling title and the separator are required to be set. Firstly, setting attribute values of proponents in the components, automatically acquiring the stems, extracting answers aiming at preset separator symbols, and rapidly analyzing the stems and the answers; secondly, monitoring the input of a answering person in real time, ensuring the accuracy of the index value gathered by the focus and the quantity of monitored texts, and carrying out page friendly feedback; and finally, after the answer is submitted, judging whether the answer is correct or not, displaying whether the answer is correct or not, and displaying the correct answer. The proposer and the answering person using the component do not need to pay attention to the internal processing logic.
The assembly of this embodiment has the following advantages:
(1) The components in the embodiment are simple in question setting, and the question stems and answers are set only once;
after the component is introduced, assignment of two attributes, namely the question stem query and the separator sign, required by the component is carried out.
For example:
the questin is $ moat $ Chun, she Sheng, $ howling $ and creep. ',
sign:'$'
the setting represents that the text in the middle of the two '$' is the content that needs to be filled. The first built-in algorithm of the component can distinguish answers from stems. For the above example, the algorithm would be automatically categorized as:
the stem is ____ Chuanlin She Sheng, how ____ is and is slowly moved. "
Answer: motin, whistle
The existing components do not support one-time configuration, the stems and the answers are required to be set in the using process, one-to-one correspondence is strictly required, and the configuration is tedious and easy to make mistakes.
The text in the middle of the two '$' is the content needing to be filled, the first built-in algorithm of the component can distinguish the answer from the stem, and the first built-in algorithm of the component is as follows:
the assembly cuts the question query value through the received segmentation symbol sign value, and the questions are segmented into a plurality of groups of lists;
traversing the cut title array list, further cutting (namely cutting into characters) the array items with even indexes according to the array indexes, setting the type (type) of the array items to be txt (namely text), and sequentially putting objects containing text content and type into a blancAlList array; otherwise, the odd number array items are right answers which are correctly segmented, the right Val array of the right answer is independently put, parameters are set to be the type of input boxes after cutting and traversing according to the length of the right answer, the text is set to be empty, and objects containing content and type are put into the blank AllList array in sequence. It should be noted that, the array index starts from 0;
the method comprises the steps that a blanking AllList array is obtained through complete traversal aiming at a title array list, page initialization is carried out through rendering of the blanking AllList array, and page rendering is carried out on a text and an input box according to a type (text type) or an input (input box type) of a data item;
through complete traversal of the title array list, the lightval array is obtained, and answer display is performed when the user submits or selects to view the answer.
(2) The stem is not limited to one answer, and is flexibly arranged
With reference to the above example, through the self-defined sign separator '$', a plurality of grid numbers can be flexibly set, and the second built-in algorithm of the component automatically calculates the grid group number; the existing gap-filling question component generally supports that one question stem corresponds to one answer, and a plurality of answers cannot be set.
The second built-in algorithm of the component specifically comprises the following steps: the assembly cuts the question query value through the received segmentation symbol sign value, and the questions are segmented into a plurality of groups of lists; traversing the cut stem array list, namely correctly dividing correct answers according to indexes and odd array items, independently putting a right Val array of the correct answers, and obtaining the grid number and the grid number under each group after cutting and traversing according to the length of the correct answers; the existing gap-filling question component generally supports that one question stem corresponds to one answer, and a plurality of answers cannot be set.
(3) In the implementation, the symbols can be customized and segmented according to the practical application, so as to reduce the confusion between the separator and the questions
The use of the components described in this embodiment has the setting of sign delimiters in addition to the necessary question attribute value query setting. The sign attribute value is set to distinguish that the title itself may include some special characters. With reference to the above example, the stem may have '$', and other special characters may be customized and modified according to actual situations, for example, sign: '#' is set, so that uniqueness of the separator can be ensured, confusion with the text information of the topic is avoided, and correct topic analysis is ensured.
(4) The component can automatically check whether the input item is correct or not, and judges whether the input item is correct or not and feeds back according to a preset style; in a specific embodiment, the preset pattern may be: and according to the comparison result, setting the frame and the text of the input box to be green if the result is correct, setting the frame and the text of the input box to be red if the result is incorrect, judging whether the result is correct or incorrect, and feeding back if the result is incorrect.
According to the embodiment, the component can automatically check whether the input item is correct or not, after submitting confirmation, the content input by the user is subjected to traversal comparison with a correct answer according to a third built-in algorithm of the component, according to a comparison result, the frame and the text of the input frame are set to be green, the frame and the text of the input frame are set to be red according to the correct answer, and after the correct judgment is completed, page rendering feedback is performed according to the rule.
Specifically, the third built-in algorithm of the component specifically comprises the following processing procedures: comparing the obtained current user input answer currentVal array with the correct answer right Val array, and obtaining that the user input is completely correct after the comparison of the data string with consistent length; otherwise, traversing text one by one, and inputting the correct answer if the user input array items are consistent with the correct answer input, otherwise, inputting the correct answer, and otherwise, inputting the correct answer.
The components in this embodiment specifically include the following processing procedures:
(1) The stem and the answer in the assembly are set at one time, the method is simple and quick, in the implementation, the input number is customized based on H5 intelligent check input positive and negative grid input box assembly, the stem and the question are input at one time when the filling question is initialized and set, and the customized separation symbol is used for dividing the text of the filling part. The problem and the answer are not required to be set separately, and the possibility of processing errors caused by special characters possibly existing in the problem and repeated answer texts is avoided.
Based on the component in the embodiment, two attribute values query and sign of the component are configured to realize the definition of the title; for example:
the questin is $ moat $ Chun, she Sheng, $ howling $ and creep. ',
sign:'$'
wherein, the query is a complete filling question, sign is a self-defined separator, the setting represents that the text in the middle of two '$' is the content needing filling. The algorithm with the built-in components can perform cyclic traversal on the query value according to preset contents, perform 'hollowing' operation of filling questions by comparing sign values, and analyze correct answers and report errors. For the above example, the algorithm would be automatically categorized as:
the stem is ____ Chuanlin She Sheng, how ____ is and is slowly moved. "
Answer: motin, whistle
(2) Automatically processing and analyzing the stems and the answers, and correspondingly rendering the grid number according to the answer number;
after the component is initialized, processing is carried out according to the set stems and separators, and the corresponding rendering is carried out to form the question face and the spaces with the corresponding numbers of the answers to be filled in. The process is automatically processed inside the component, intelligently dividing questions and answers. For example:
the questin is $ moat $ Chun, she Sheng, $ howling $ and creep. Is the cane miscanthus shoes lighter than horses, who is afraid? A straw rain pattern means $ for peace of life. ',
sign:‘$’
in the setting of the stem, the hollowing process of three stems is performed, and the three stems are distinguished to be the three places of monaural, whistle and rensheng, and the following format is adopted after the stems are rendered on the page:
the stem is "[ ] [ ] ] Chuanlin She Sheng, how [ ] ] and creep. Is the cane miscanthus shoes lighter than horses, who is afraid? Straw rain [ ] [ ] [ ]. "
The answers are automatically complemented into a grid form and correspond to the number of answer texts one by one. For fault-tolerant processing, wrong separation occurs to the separation of the stems, and an odd number of separators does not form a correct answer closed loop, so that an algorithm is automatically added Wen Benmo to render, and the problem that the components cannot be used due to error reporting is avoided.
(3) Automatically acquiring a focus, and focusing according to an input text;
and according to the position of the click grid of the answering machine, focusing processing is carried out, input texts are monitored in real time, text rendering operation of the corresponding position grid is carried out, and rendering is stopped under the condition that the input content exceeds. Emphasis is placed on the prompt effect of the focus and the corresponding grid in the input process of the answering machine, so that the answering machine is ensured to know the current input position at any time, and the user friendliness of the assembly is improved. For example:
the stem is "[ ] [ ] ] Chuanlin She Sheng, how [ ] ] and creep. Is the cane miscanthus shoes lighter than horses, who is afraid? Straw rain [ ] [ ] [ ].
For the stem, the answer can freely select the input position, does not require to input from the beginning, delete the operation and randomly record the operation of moving the cursor, and intercept the text input beyond, the last three words of the stem are input by the answer, if the answer inputs: the 'Ren Ping life' four words automatically intercept the first three words, display the page as 'Pingsheng', and make the subsequent input invalid without making subsequent answer comparison processing and page display.
(4) Automatic answer verification and intelligent labeling
And after the answer is submitted by filling the blank of the answer, the answer is automatically checked, different effects are displayed and marked according to the answer correctness, the answer condition of the question is clear at a glance, and the correct answer is correspondingly displayed so as to be convenient for the answer to review. For example:
the stem of the question is She Sheng in Motin Chuanlin, how to laugh and creep. "
Answer: motin, whistle
The scheme of the embodiment is based on the grid input frame component of the H5 intelligent check input positive and false self-defined input quantity, and aims to serve the current situations of complex gap filling problem setting and unsatisfactory effect in a large number of current examination exercise systems and improve the user friendliness. By introducing the assembly, only simple stem configuration is needed, a great deal of processing work is saved, and the setting of a filling question can be completed. The method is friendly and convenient for multiplexing multiple scenes and multiple ends; the scheme improves the efficiency of the development of the filling questions, can conveniently and rapidly complete the setting of a question by using the assembly, supports the setting of a plurality of answers of the question, automatically renders the question, calculates the cursor position and monitors the input condition of a answering person, and can check correct and incorrect and check correct answers after submitting, thereby meeting different use scenes.
Embodiment two:
an object of the present embodiment is to provide a working method of a component for filling a space.
A method of operation of a component for void-filling customization, comprising:
receiving a question input to be defined by a proposer and a separator for identifying the content to be filled in the question, wherein the question input comprises a question stem and an answer, and the answer is identified in the question through the separator arranged from beginning to end;
performing answer content hollowing out processing and answer storage on the questions according to the separator by utilizing a built-in algorithm of the component, and complementing the hollowing out positions of the questions into a grid form corresponding to answer texts one by one and displaying the same; the built-in algorithm specifically comprises the following steps: performing cyclic traversal on the title, hollowing out and storing two separator symbols which continuously appear and contents between the separator symbols;
focusing based on the grid clicking position of the answering machine, and monitoring input text in real time to perform text rendering of the grid at the corresponding position; meanwhile, when a submitting action signal of a answering machine is received, storing the current input text;
and comparing the stored input text with the answers at the corresponding positions of the input text, so as to verify the answer results of the answer.
Further, details of the working method in the present embodiment are described in the first embodiment, so that details are not described herein.
In further embodiments, there is also provided:
an electronic device comprising a memory and a processor and computer instructions stored on the memory and running on the processor, which when executed by the processor, perform the method of embodiment one. For brevity, the description is omitted here.
It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include read only memory and random access memory and provide instructions and data to the processor, and a portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type.
A computer readable storage medium storing computer instructions which, when executed by a processor, perform the method of embodiment one.
The method in the first embodiment may be directly implemented as a hardware processor executing or implemented by a combination of hardware and software modules in the processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method. To avoid repetition, a detailed description is not provided herein.
Those of ordinary skill in the art will appreciate that the elements of the various examples described in connection with the present embodiments, i.e., the algorithm steps, can be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The assembly for gap-filling problem customization and the working method thereof provided by the embodiment can be realized, and have wide application prospects.
The foregoing description of the preferred embodiments of the present disclosure is provided only and not intended to limit the disclosure so that various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (10)

1. An assembly for void-filling problem customization, comprising:
the system comprises a question definition unit, a question input unit and a question input unit, wherein the question definition unit is used for receiving a question input to be defined by a proposer and a separator used for identifying the content to be filled in a question, the question input comprises a question stem and an answer, and the answer is identified in the question through the separator arranged from beginning to end;
the question generation unit is used for carrying out answer content hollowing out processing and answer storage on the questions according to the separator by utilizing a built-in algorithm of the component, and meanwhile, supplementing the hollowing positions of the questions into a grid form corresponding to answer texts one by one and displaying the same; the built-in algorithm specifically comprises the following steps: performing cyclic traversal on the title, hollowing out and storing two separator symbols which continuously appear and contents between the separator symbols;
the monitoring unit is used for focusing based on the grid clicking position of the answering machine, and monitoring input text in real time to perform text rendering of the grid at the corresponding position; meanwhile, when a submitting action signal of a answering machine is received, storing the current input text;
and the answer verification unit is used for comparing the stored input text with the answers at the corresponding positions of the input text, so as to verify the answer result of the answer.
2. The module for blank filling question customization according to claim 1, wherein in the monitoring unit, the current focus position and the inputted content are monitored in real time, and aiming at the deleting or inputting operation of the answering machine, the index serial numbers of the grids are dynamically rendered, so that the current focusing grid is ensured to be the input grid of the answering machine.
3. The assembly for blank filling question customization as recited in claim 1, wherein when the number of input texts of the answer sheet exceeds the actual number of grids in the question stem, the input texts of the actual number of grids are automatically intercepted, and the excess texts are not processed.
4. The assembly of claim 1, wherein when the separator of the question is an odd number, the separator is added at the tail of the text of the question, so as to ensure that the separator in the question meets the requirement of even number.
5. The assembly for blank filling question customization according to claim 1, wherein the answers of the answer questions are marked with different showing effects in the displayed stem based on the correctness of the answers of the answer questions in the check result, wherein the marks are marked with different colors, different fonts, different font sizes, whether thickening or not or whether underlining exists.
6. The component for filling question customization according to claim 1, wherein the built-in algorithm is specifically:
the component cuts the questions through the received segmentation symbol values, and obtains a question array list based on the cutting result;
traversing the cut title array list, further cutting array items with even indexes according to the array indexes, setting the types of the array items to be text types, and sequentially placing objects containing text contents and types into a blanc AllList array; for odd number array items, individually putting a right Val array of a correct answer, cutting and traversing according to the length of the correct answer, setting the type of the right Val array as an input box type, setting text content as null, and putting objects containing the text content and the type into a blank AllList array in sequence; it should be noted that, the array index starts from 0;
and when the page is initialized, rendering the page of the text and the input box according to the text type or the input box type of the data item by rendering the blancAlList array.
7. The assembly of claim 1, wherein the separator is user-defined and distinguishes between existing characters in the title.
8. A method of operating a component for void-filling customization, comprising:
receiving a question input to be defined by a proposer and a separator for identifying the content to be filled in the question, wherein the question input comprises a question stem and an answer, and the answer is identified in the question through the separator arranged from beginning to end;
performing answer content hollowing out processing and answer storage on the questions according to the separator by utilizing a built-in algorithm of the component, and complementing the hollowing out positions of the questions into a grid form corresponding to answer texts one by one and displaying the same; the built-in algorithm specifically comprises the following steps: performing cyclic traversal on the title, hollowing out and storing two separator symbols which continuously appear and contents between the separator symbols;
focusing based on the grid clicking position of the answering machine, and monitoring input text in real time to perform text rendering of the grid at the corresponding position; meanwhile, when a submitting action signal of a answering machine is received, storing the current input text;
and comparing the stored input text with the answers at the corresponding positions of the input text, so as to verify the answer results of the answer.
9. An electronic device comprising a memory, a processor and a computer program stored for execution on the memory, wherein the processor, when executing the program, implements a method of operation of the component for void-filling customization of the questions of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements a method of operation of the component for void-filling customization of claims 1-7.
CN202310382334.9A 2023-04-06 2023-04-06 Assembly for gap filling problem customization and working method thereof Pending CN116484847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310382334.9A CN116484847A (en) 2023-04-06 2023-04-06 Assembly for gap filling problem customization and working method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310382334.9A CN116484847A (en) 2023-04-06 2023-04-06 Assembly for gap filling problem customization and working method thereof

Publications (1)

Publication Number Publication Date
CN116484847A true CN116484847A (en) 2023-07-25

Family

ID=87213043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310382334.9A Pending CN116484847A (en) 2023-04-06 2023-04-06 Assembly for gap filling problem customization and working method thereof

Country Status (1)

Country Link
CN (1) CN116484847A (en)

Similar Documents

Publication Publication Date Title
CN108090043B (en) Error correction report processing method and device based on artificial intelligence and readable medium
CN108280051B (en) Detection method, device and the equipment of error character in a kind of text data
JP2020187733A (en) Application programming interface documentation annotation
CN105095067A (en) User interface element object identification and automatic test method and apparatus
CN107608951B (en) Report generation method and system
CN109710237A (en) A kind of online modification method of calibration and equipment based on customized two-dimentional report
CN112016274B (en) Medical text structuring method, device, computer equipment and storage medium
CN106325596A (en) Automatic error correction method and system for writing handwriting
CN114090671A (en) Data import method and device, electronic equipment and storage medium
CN110275938B (en) Knowledge extraction method and system based on unstructured document
CN115391439A (en) Document data export method, device, electronic equipment and storage medium
CN111625567A (en) Data model matching method, device, computer system and readable storage medium
CN113283231B (en) Method for acquiring signature bit, setting system, signature system and storage medium
US10643022B2 (en) PDF extraction with text-based key
CN112559112B (en) Interface node positioning method and device
CN111026604B (en) Log file analysis method and device
WO2019080419A1 (en) Method for building standard knowledge base, electronic device, and storage medium
WO2020208632A1 (en) System and method for validating tabular summary reports
CN116484847A (en) Assembly for gap filling problem customization and working method thereof
CN106775914B (en) A kind of code method for internationalizing and device for automatically generating key assignments
CN109543772A (en) Data set automatic matching method, device, equipment and computer readable storage medium
CN115238653A (en) Report generation method, device, equipment and medium
US11281901B2 (en) Document extraction system and method
CN114724170A (en) BOM generation method and device, electronic equipment and storage medium
CN113515588A (en) Form data detection method, computer device and storage 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