A method, device and electronic device for dynamically allocating questions
Through dynamic allocation and adjustment of question packages, the problem of uneven production efficiency of crowdsourcing users in the existing technology is solved, the overall question production efficiency is improved and the database pressure is reduced.
Patent Information
- Application Number
- CN202011539653.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-12-23
AI Technical Summary
The production efficiency of each crowdsourcing user cannot be taken into account during the current issue assignment process, resulting in low overall question production efficiency, efficient users are waiting for the assignment of questions, and inefficient users are causing a backlog of questions.
By obtaining user attribute information and question parameters, dynamically allocating the question package, pairing and adjusting according to the production efficiency of the question package, transfer questions with low production efficiency to the efficient question package, and adjusting the number of questions to improve the overall production efficiency.
It effectively avoids the backlog of questions caused by high production efficiency users and inefficient users, improves the overall production efficiency of questions, and reduces database pressure.
Smart Images

Figure CN112561377B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of Internet technology, and is particularly applicable to Internet online education technology. More specifically, it relates to a method, device, electronic device and computer-readable medium for dynamically allocating questions. Background Art
[0002] As a supplement and enhancement to traditional school education, online education is becoming more and more accepted, with more and more students and teachers participating. In online education, in order to consolidate and test students' acceptance of classroom teaching knowledge, a large number of subject questions are often used as examples, exercises, variations, etc. This requires the production of a large number of subject questions to meet teaching needs.
[0003] The existing question production process can be divided into the following stages: judging duplicates, judging incompleteness, classifying subjects, classifying grades, answering, reviewing answers, typesetting, reviewing typesetting, splitting multiple questions, and reviewing split multiple questions. Each stage requires crowdsourcing users to answer different questions. For example, in the stage of judging duplicates, at least two questions will be given, and crowdsourcing users will judge whether the given questions are the same question; in the stage of judging incompleteness, the question stem will be given, and crowdsourcing users will judge whether the question stem information is complete (whether the words or pictures are incomplete, etc.); in the stage of classifying subjects, questions will be given, and crowdsourcing users will judge the subject to which the question belongs; in the stage of classifying grades, questions will be given, and crowdsourcing users will judge the grade to which the question belongs, and so on.
[0004] Crowdsourcing users usually receive questions from the database through the client and answer them. At present, during the question assignment process, the system will query and match questions of corresponding subjects, grades, priorities, answering time, production times, etc. according to the crowdsourcing user's subject, grade and other information. Since the questions are stored in different data tables and the number of data tables is relatively large, the process of querying questions usually involves multiple data tables and data fields, resulting in slow queries and heavy database pressure. In addition, this question assignment method cannot take into account the question production efficiency of each crowdsourcing user, resulting in crowdsourcing users with relatively high production efficiency completing production ahead of schedule within the specified time and needing to wait for questions to be assigned again, while crowdsourcing users with relatively low production efficiency fail to complete production within the specified time, resulting in a backlog of questions. This seriously affects the overall question production efficiency. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] The present invention aims to solve the technical problem that the existing topic allocation process cannot take into account the topic production efficiency of each crowdsourcing user, which affects the overall topic production efficiency.
[0007] (II) Technical solution
[0008] In order to solve the above technical problems, one aspect of the present invention provides a method for dynamically allocating questions, which is used in the process of generating questions in a question bank. The method comprises the following steps:
[0009] When receiving a user's topic request, obtain user attribute information;
[0010] Assigning corresponding question packages to users according to the corresponding relationship between user attribute information and question parameters;
[0011] Regularly test the production efficiency of question packages with the same question parameters;
[0012] Pair question packages with the same question parameters according to their production efficiency;
[0013] Adjust the number of questions in the paired question packs based on the production efficiency of the question packs.
[0014] According to a preferred embodiment of the present invention, the method further comprises:
[0015] Get the question parameters and question priority in the question bank;
[0016] The questions are divided into a plurality of question packages according to the question parameters, and the questions in the same question package are sorted according to the question priorities.
[0017] According to a preferred embodiment of the present invention, the user attribute information includes: at least one of a subject and a learning stage; correspondingly, the question parameter includes at least one of a subject and a learning stage; the method of assigning a corresponding question package to a user according to the correspondence between the user attribute information and the question parameter is specifically:
[0018] Searching for topic parameters that match the user attribute information according to the corresponding relationship;
[0019] The matching topic parameters are assigned to the user.
[0020] According to a preferred embodiment of the present invention, pairing question packages with the same question parameters according to the production efficiency of the question packages includes:
[0021] For question packages with the same question parameters, question packages with a production efficiency greater than a first threshold are marked as first-efficiency question packages, and question packages with a production efficiency less than a second threshold are marked as second-efficiency question packages; the first threshold is greater than the second threshold;
[0022] The first efficiency question package and the second efficiency question package are paired.
[0023] According to a preferred embodiment of the present invention, adjusting the number of questions in the paired question package according to the production efficiency of the question package includes:
[0024] extracting a predetermined number of migration questions from the second efficiency question package;
[0025] Respectively obtaining the topic priorities of the first efficiency topic package and the migration topic;
[0026] The migration questions are migrated to the first efficiency question package, and the first efficiency question package questions and the migration questions are sorted according to question priorities.
[0027] According to a preferred embodiment of the present invention, after pairing question packages with the same question parameters according to the production efficiency of the question packages, the method further includes:
[0028] Marking the question packages whose production efficiency is less than the second threshold and greater than the third threshold as the third efficiency question packages, and marking the question packages whose production efficiency is less than the third threshold as the fourth efficiency question packages; the third threshold is less than the second threshold;
[0029] pairing the first efficiency question package with the third efficiency question package;
[0030] Retrieve the fourth efficiency question package.
[0031] According to a preferred embodiment of the present invention, the method further comprises:
[0032] If the number of the second efficiency question packages is less than the number of the first efficiency question packages;
[0033] Supplement questions from the question bank to the remaining first efficiency question package according to question parameters and question priorities.
[0034] According to a preferred implementation manner of the present invention, the question parameters also include: answering time and question generation times.
[0035] According to a preferred embodiment of the present invention, the production efficiency is determined according to the number of production topics within a predetermined time period.
[0036] A second aspect of the present invention provides a dynamic question allocation device, which is used in the process of question bank generating questions, and the device comprises:
[0037] The acquisition module is used to obtain user attribute information when receiving a user's question request;
[0038] The allocation module is used to allocate corresponding question packages to users according to the corresponding relationship between user attribute information and question parameters;
[0039] A detection module is used to periodically detect the production efficiency of question packages with the same question parameters;
[0040] A pairing module is used to pair question packages with the same question parameters according to the production efficiency of the question packages;
[0041] The adjustment module is used to adjust the number of questions in the paired question package according to the production efficiency of the question package.
[0042] A third aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer executable program, and when the computer program is executed by the processor, the processor executes the described method.
[0043] A fourth aspect of the present invention further proposes a computer-readable medium storing a computer-executable program, wherein when the computer-executable program is executed, the method described is implemented.
[0044] (III) Beneficial effects
[0045] When receiving a user's question request, the present invention assigns a corresponding question package to the user according to the correspondence between the user attribute information and the question parameters; by regularly detecting the production efficiency of question packages with the same question parameters, the question packages are paired and the number of questions in the paired question packages is dynamically adjusted according to the production efficiency of the question packages, such as migrating questions in the question package of a user with low production efficiency to the question package of a user with high production efficiency, thereby effectively avoiding the situation where a user with relatively high production efficiency completes production in advance within the specified time and needs to wait for questions to be assigned again, while a user with relatively low production efficiency fails to complete production within the specified time, resulting in a backlog of questions. The overall question production efficiency is improved.
[0046] The present invention obtains question parameters in a question bank; divides the questions into multiple question packages in advance according to the question parameters; when receiving a user's question request, the corresponding question package is assigned to the user according to the correspondence between the user attribute information and the question parameters; there is no need to query multiple data table data fields, which can effectively improve the efficiency of assigning questions and relieve database pressure.
[0047] The present invention obtains the priority of questions in the question bank, and sorts the questions in the same question package according to the priority of the questions, thereby ensuring that all questions are produced synchronously and in order of priority in the production of the user.
[0048] For question packages with the same question parameters, the present invention marks the question packages with a production efficiency greater than a first threshold as first efficiency question packages, and marks the question packages with a production efficiency less than a second threshold as second efficiency question packages; the first threshold is greater than the second threshold; the first efficiency question packages and the second efficiency question packages are paired. If the number of the second efficiency question packages (corresponding to users with low production efficiency) is less than the number of the first efficiency question packages (corresponding to users with high production efficiency), the questions are supplemented from the question bank for the remaining paired first efficiency question packages according to the question parameters and question priorities. Therefore, when the number of question packages with low production efficiency is less than the number of question packages with high production efficiency, the question packages with high production efficiency are supplemented by new questions in the questions, ensuring that there are sufficient questions for users with high production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of a method for dynamically allocating questions in the present invention;
[0050] Figure 2 It is a schematic diagram of the present invention allocating corresponding question packages to users according to the corresponding relationship between user attribute information and question parameters;
[0051] Figure 3a It is a schematic diagram of a question package pairing method of the present invention;
[0052] Figure 3b is a schematic diagram of another question package pairing method of the present invention;
[0053] Figure 4 It is a structural schematic diagram of a dynamic topic allocation device of the present invention;
[0054] Figure 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
[0055] Figure 6 is a schematic diagram of a computer-readable recording medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In the process of introducing specific embodiments, the detailed description of the structure, performance, effect or other characteristics is to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can implement the present invention with a technical solution that does not contain the above-mentioned structure, performance, effect or other characteristics under certain circumstances.
[0057] The flowchart in the accompanying drawings is only an exemplary process demonstration, and does not mean that the solution of the present invention must include all the contents, operations and steps in the flowchart, nor does it mean that it must be executed in the order shown in the figure. For example, some operations / steps in the flowchart can be decomposed, some operations / steps can be combined or partially combined, etc. The execution order shown in the flowchart can be changed according to actual conditions without departing from the main purpose of the present invention.
[0058] Frames in the attached figure Figure 1 Generally, it refers to functional entities, which do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processing unit devices and / or microcontroller devices.
[0059] The same reference numerals in the drawings represent the same or similar elements, components or parts, and thus the repeated description of the same or similar elements, components or parts may be omitted below. It should also be understood that although the first, second, third and other attributives representing the numbers may be used herein to describe various devices, elements, components or parts, these devices, elements, components or parts should not be limited by these attributives. In other words, these attributives are only used to distinguish one from another. For example, the first device may also be called the second device, but it does not deviate from the essential technical solution of the present invention. In addition, the terms "and / or" and "and / or" refer to all combinations including any one or more of the listed items.
[0060] In order to solve the above technical problems, the present invention proposes a method for dynamically assigning questions. The method is applied to the process of question bank producing questions. When receiving a user's question request, the corresponding question package is assigned to the user according to the correspondence between the user attribute information and the question parameters; the production efficiency of question packages with the same question parameters is detected regularly, and the question packages are paired and the number of questions in the paired question packages is dynamically adjusted according to the production efficiency of the question packages. For example, questions in the question packages of users with low production efficiency are migrated to the question packages of users with high production efficiency, thereby effectively avoiding the situation where users with relatively high production efficiency complete production in advance within the specified time and need to wait for questions to be assigned again, while users with relatively low production efficiency fail to complete production within the specified time, resulting in a backlog of questions. The overall question production efficiency is improved.
[0061] The present invention obtains the question parameters in the question bank; divides the questions into multiple question packages in advance according to the question parameters; and when receiving the user's question request, assigns the corresponding question package to the user according to the corresponding relationship between the user attribute information and the question parameters; there is no need to query multiple data table data fields, which can effectively improve the efficiency of assigning questions and relieve the pressure on the database. In addition, the present invention obtains the question priority in the question bank, sorts the questions in the same question package according to the question priority, and ensures that all questions will be produced synchronously in the user's production according to the priority.
[0062] In a specific question package assignment method, the user attribute information includes: at least one of a subject and a learning stage; correspondingly, the question parameters include at least one of a subject and a learning stage; based on the correspondence between the user attribute information and the question parameters, the question parameters matching the user attribute information are searched; and then the matching question parameters are assigned to the user.
[0063] In a specific question package pairing method, for question packages with the same question parameters, question packages with a production efficiency greater than a first threshold are marked as first efficiency question packages (corresponding to users with high production efficiency), and question packages with a production efficiency less than a second threshold are marked as second efficiency question packages (corresponding to users with low production efficiency); wherein the production efficiency is determined according to the number of questions produced within a predetermined time period. The first threshold is greater than the second threshold. Then the first efficiency question package and the second efficiency question package are paired, that is, users with high production efficiency are paired with users with low production efficiency. Correspondingly, the question package adjustment method is: extract a predetermined number of migration questions from the second efficiency question package (corresponding to users with low production efficiency); obtain the question priorities of the first efficiency question package and the migration questions respectively; migrate the migration questions to the first efficiency question package (corresponding to users with high production efficiency), and sort the first efficiency question package and the migration questions according to the question priorities. Thus, the questions in the question package of users with low production efficiency are dynamically allocated to users with high production efficiency according to priority.
[0064] In a more preferred manner, the second efficiency question package (corresponding to users with low production efficiency) is further divided into a third efficiency question package (corresponding to users with low production efficiency but within the normal range) and a fourth efficiency question package (corresponding to users who work overtime) according to production efficiency; after the first efficiency question package and the third efficiency question package are paired, the fourth efficiency question package is promptly collected, thereby avoiding the questions from staying with users who work overtime for too long and wasting time.
[0065] In another more preferred manner, if the number of the second efficiency question packages (corresponding to users with low production efficiency) is less than the number of the first efficiency question packages (corresponding to users with high production efficiency), the remaining first efficiency question packages are supplemented with questions from the question bank according to question parameters and question priorities. Thus, when the number of question packages with low production efficiency is less than the number of question packages with high production efficiency, the question packages with high production efficiency are supplemented with new questions in the questions, ensuring that users with high production efficiency have sufficient questions.
[0066] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
[0067] In the process of introducing specific embodiments, the detailed description of the structure, performance, effect or other characteristics is to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can implement the present invention with a technical solution that does not contain the above-mentioned structure, performance, effect or other characteristics under certain circumstances.
[0068] The flowchart in the accompanying drawings is only an exemplary process demonstration, and does not mean that the solution of the present invention must include all the contents, operations and steps in the flowchart, nor does it mean that it must be executed in the order shown in the figure. For example, some operations / steps in the flowchart can be decomposed, some operations / steps can be combined or partially combined, etc. The execution order shown in the flowchart can be changed according to actual conditions without departing from the main purpose of the present invention.
[0069] Frames in the attached figure Figure 1 Generally, it refers to functional entities, which do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processing unit devices and / or microcontroller devices.
[0070] The same reference numerals in the drawings represent the same or similar elements, components or parts, and thus the repeated description of the same or similar elements, components or parts may be omitted below. It should also be understood that although the first, second, third and other attributives representing the numbers may be used herein to describe various devices, elements, components or parts, these devices, elements, components or parts should not be limited by these attributives. In other words, these attributives are only used to distinguish one from another. For example, the first device may also be called the second device, but it does not deviate from the essential technical solution of the present invention. In addition, the terms "and / or" and "and / or" refer to all combinations including any one or more of the listed items.
[0071] Figure 1 The present invention is a flowchart of a method for dynamically allocating questions, which is applied to the process of producing questions in a question bank, such as Figure 1 As shown, the method comprises the following steps:
[0072] S1. When receiving a user's topic request, obtain user attribute information;
[0073] Specifically, the user enters the question bank system through a user ID (such as a login account) and sends a question request by triggering a virtual button. For example, the user clicks the "Question" button in the question bank system to complete the sending of the question request. Each user ID is pre-configured with corresponding user attribute information. The user attribute information is used to distinguish the type of question the user has taken, and the user attribute information may specifically include: at least one of the subject and the academic stage.
[0074] S2. assigning a corresponding question package to the user according to the correspondence between the user attribute information and the question parameters;
[0075] Among them, the question parameters are used to classify the questions. Including but not limited to: subject, stage of study, answering time, number of question production times, etc. Before this step, the question parameters in the question bank can be obtained first, and the questions can be divided into multiple question packages according to the question parameters. The question types in different question packages are different, and the types of questions in the same question package are the same. The present invention matches the user with the question type produced by the user through the correspondence between the user attribute information and the question parameters. When the user's question request is received, the corresponding question package is assigned to the user according to the correspondence between the user attribute information and the question parameters; there is no need to query multiple data table data fields, which can effectively improve the efficiency of assigning questions and relieve database pressure. Among them, the correspondence between the user attribute information and the question parameters is pre-configured, which can be a one-to-many correspondence, that is, the same user can produce different types of questions; it can also be a many-to-one correspondence, that is, multiple users can produce the same type of questions.
[0076] Furthermore, this step can also obtain the priority of the questions in the question bank, and sort the questions in the same question package according to the priority of the questions. It is preferred that all question packages are sorted according to the same question priority order, for example, the questions in each question package are sorted from high priority to low priority. In this way, the priorities of the questions in the same sorting position in each question package are relatively close, ensuring that all questions will be produced synchronously in the user's production according to the priority. Among them, the priority of the question is pre-configured according to the urgency of the demand for the question itself.
[0077] In one example, the fields contained in the topic parameters and the user attribute information are the same, for example, the topic parameters contain the subject and the grade, and the user attribute information also contains the subject and the grade; or, the topic parameters contain the subject, and the user attribute information also contains the subject; or, the topic parameters contain the grade, and the user attribute information also contains the grade; then, according to the correspondence between the user attribute information and the topic parameters, the topic parameters matching the user attribute information are searched; and then the topic packages corresponding to the matching topic parameters are assigned to the user. Furthermore, when multiple matching topic parameters are found, the number of topic packages corresponding to each matching topic parameter can be queried first, and the topic packages with the largest number can be assigned to the user first, so as to ensure that the production speed of different types of topic packages is basically the same.
[0078] For example, if the question parameters and user attribute information only include subject and grade, Figure 2As shown, the user attribute information of user A is: subject: mathematics, English; grade: second grade, then firstly according to the correspondence between the user attribute information and the question parameters, find out that the question parameter 1 that matches the user attribute information is: subject: mathematics, grade: second grade; the question parameter 2 that matches the user attribute information is: subject: English, grade: second grade; by searching in the database, it is found that the number of question packages corresponding to question parameter 1 is 24, and the number of question packages corresponding to question parameter 2 is 42, then the question package corresponding to question parameter 2 is assigned to the user.
[0079] S3, regularly checking the production efficiency of question packages with the same question parameters;
[0080] The production efficiency is determined according to the number of questions produced by the user within a predetermined time period, that is, the production efficiency of the question package is obtained by regularly detecting the number of questions produced by a question package with the same question parameters within adjacent time intervals.
[0081] S4, pairing question packages with the same question parameters according to the production efficiency of the question packages;
[0082] In a specific question package pairing method, for question packages with the same question parameters, question packages with a production efficiency greater than a first threshold are marked as first-efficiency question packages (corresponding to users with high production efficiency), and question packages with a production efficiency less than a second threshold are marked as second-efficiency question packages (corresponding to users with low production efficiency); wherein the first threshold is greater than the second threshold. Then, the first-efficiency question package and the second-efficiency question package are paired, that is, users with high production efficiency are paired with users with low production efficiency. Figure 3a , question packages A, B, ... M with production efficiency greater than the first threshold are marked as first-efficiency question packages, question packages a, b, ... n with production efficiency less than the second threshold are marked as second-efficiency question packages, and question packages 1, 2, ... r have production efficiencies between the first threshold and the second threshold, which can be considered normal production efficiencies. Pair the marked first-efficiency question packages with the marked second-efficiency question packages, such as: pair question package A with question package a, and question package B with question package b, etc.
[0083] In a preferred question package pairing method, based on Figure 3aThe question package distribution method divides the question packages with the same question parameters into the first efficiency question package and the second efficiency question package, and further divides the second efficiency question package (corresponding to users with low production efficiency) into the third efficiency question package (corresponding to users with low production efficiency but within the normal range) and the fourth efficiency question package (corresponding to users with overtime work) according to production efficiency; for example, the question package with a production efficiency less than the second threshold and greater than the third threshold is marked as the third efficiency question package, and the question package with a production efficiency less than the third threshold is marked as the fourth efficiency question package; wherein the third threshold is less than the second threshold; after pairing the first efficiency question package with the third efficiency question package, the fourth efficiency question package is promptly retrieved. This prevents the questions from staying with users who have overtime work for too long, wasting time. Figure 3b ,based on Figure 3a On the basis of, the question packages a1, a2...s whose production efficiency is less than the second threshold and greater than the third threshold are marked as third efficiency question packages, and the question packages b1, b2...e whose production efficiency is less than the third threshold are marked as fourth efficiency question packages, and the marked first efficiency question packages are paired with the marked third efficiency question packages, such as: question package A is paired with question package a1, question package B is paired with question package a2, etc. The marked fourth efficiency question packages, such as question packages b1, b2...e, are recycled.
[0084] S5. Adjust the number of questions in the paired question package according to the production efficiency of the question package.
[0085] In this step, the questions in the question packages with low production efficiency are transferred to the question packages with high production efficiency, so as to meet the question needs of users with different production efficiencies. Figure 3a For example, the corresponding question package adjustment method is: extract a predetermined number of migration questions from the second efficiency question package (corresponding to users with low production efficiency); obtain the question priorities of the first efficiency question package and the migration questions respectively; migrate the migration questions to the first efficiency question package (corresponding to users with high production efficiency), and sort the first efficiency question package and the migration questions according to the question priorities. In this way, the questions in the question package of users with low production efficiency are dynamically allocated to users with high production efficiency according to the priority.
[0086] Among them, the predetermined number can be pre-configured, and the process of question migration only needs to mark the migrated questions and the migrated question packages (such as the first efficiency question package and the second efficiency question package). The operation efficiency is high, and since it is an offline task, there is no efficiency bottleneck problem.
[0087] Further, in Figure 3aIn the example, if the number of the second efficiency question packages (corresponding to users with low production efficiency) is less than the number of the first efficiency question packages (corresponding to users with high production efficiency); for example, n is less than M, the remaining first efficiency question packages are supplemented with questions from the question bank according to the question parameters and question priorities. Thus, when the number of question packages with low production efficiency is less than the number of question packages with high production efficiency, the question packages with high production efficiency are supplemented with new questions in the questions, ensuring that there are sufficient questions for users with high production efficiency.
[0088] Figure 4 The present invention is a structural schematic diagram of a live class portrait slimming processing device, which is used in the process of generating questions in the question bank, such as Figure 4 As shown, the device comprises:
[0089] The acquisition module 41 is used to acquire user attribute information when receiving a user's topic request;
[0090] The assignment module 42 is used to assign a corresponding question package to the user according to the corresponding relationship between the user attribute information and the question parameters;
[0091] A detection module 43, used for regularly detecting the production efficiency of question packages with the same question parameters;
[0092] A pairing module 44, for pairing question packages with the same question parameters according to the production efficiency of the question packages;
[0093] The adjustment module 45 is used to adjust the number of questions in the paired question package according to the production efficiency of the question package.
[0094] In a preferred embodiment, the device further comprises:
[0095] A first acquisition module 46 is used to acquire question parameters and question priorities in the question bank;
[0096] The classification and sorting module 47 is used to divide the questions into multiple question packages according to the question parameters, and sort the questions in the same question package according to the question priority.
[0097] In a specific implementation, the user attribute information includes: at least one of a subject and a learning period; correspondingly, the question parameter includes at least one of a subject and a learning period; the assignment module 42 includes:
[0098] A search module, used to search for topic parameters matching the user attribute information according to the corresponding relationship;
[0099] The sub-assignment module is used to assign the matching topic parameters to the user.
[0100] The pairing module 44 includes:
[0101] A first marking module is used for marking, for question packages with the same question parameters, question packages with a production efficiency greater than a first threshold as first efficiency question packages, and question packages with a production efficiency less than a second threshold as second efficiency question packages; the first threshold is greater than the second threshold;
[0102] The first sub-pairing module is used to pair the first efficiency question package with the second efficiency question package.
[0103] The adjustment module 45 includes:
[0104] An extraction module, used for extracting a predetermined number of migration questions from the second efficiency question package;
[0105] A second acquisition module is used to respectively acquire the priority of the first efficiency question package and the migration question;
[0106] A migration module is used to migrate the migration questions to the first efficiency question package, and sort the questions in the first efficiency question package and the migration questions according to question priorities.
[0107] Furthermore, the device also includes:
[0108] A second marking module is used to mark a question package whose production efficiency is less than a second threshold and greater than a third threshold as a third efficiency question package, and mark a question package whose production efficiency is less than the third threshold as a fourth efficiency question package; the third threshold is less than the second threshold;
[0109] A second sub-pairing module, used for pairing the first efficiency question package with the third efficiency question package;
[0110] The retrieving module is used to retrieve the fourth efficiency question package.
[0111] The supplementing module is used for supplementing the remaining first efficiency question packages with questions from the question bank according to question parameters and question priorities if the number of the second efficiency question packages is less than the number of the first efficiency question packages.
[0112] Those skilled in the art will appreciate that the modules in the above device embodiments may be distributed in the device as described, or may be changed accordingly and distributed in one or more devices different from the above embodiments. The modules in the above embodiments may be combined into one module, or may be further split into multiple submodules.
[0113] Figure 5 It is a structural diagram of an electronic device according to an embodiment of the present invention. The electronic device includes a processor and a memory. The memory is used to store a computer executable program. When the computer program is executed by the processor, the processor executes a dynamic topic allocation method.
[0114] like Figure 5 As shown, the electronic device is presented in the form of a general computing device. The processor may be one or more and work in coordination. The present invention does not exclude distributed processing, that is, the processor may be dispersed in different physical devices. The electronic device of the present invention is not limited to a single entity, but may also be the sum of multiple physical devices.
[0115] The memory stores a computer executable program, which is usually a machine-readable code. The computer-readable program can be executed by the processor to enable the electronic device to perform the method of the present invention, or at least part of the steps in the method.
[0116] The memory includes a volatile memory, such as a random access memory unit (RAM) and / or a cache memory unit, and may also be a non-volatile memory, such as a read-only memory unit (ROM).
[0117] Optionally, in this embodiment, the electronic device further includes an I / O interface, which is used for the electronic device to exchange data with an external device. The I / O interface can represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.
[0118] It should be understood that Figure 5 The electronic device shown is only an example of the present invention, and the electronic device of the present invention may also include elements or components not shown in the above examples. For example, some electronic devices also include display units such as display screens, and some electronic devices also include human-computer interaction elements such as buttons, keyboards, etc. As long as the electronic device can execute the computer-readable program in the memory to implement the method of the present invention or at least part of the steps of the method, it can be considered as an electronic device covered by the present invention.
[0119] Figure 6 Schematic diagram of a computer readable recording medium according to an embodiment of the present invention. Figure 6As shown, a computer executable program is stored in a computer-readable recording medium, and when the computer executable program is executed, the above-mentioned dynamic topic assignment method of the present invention is implemented. The computer-readable storage medium may include a data signal propagated in a baseband or as part of a carrier, which carries a readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0120] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0121] Through the above description of the implementation mode, it is easy for those skilled in the art to understand that the present invention can be implemented by hardware capable of executing a specific computer program, such as the system of the present invention, and the electronic processing unit, server, client, mobile phone, control unit, processor, etc. contained in the system. The present invention can also be implemented by a vehicle comprising at least a part of the above system or components. The present invention can also be implemented by computer software that executes the method of the present invention, such as control software executed by a microprocessor, an electronic control unit, a client, a server, etc. of a live broadcast device. However, it should be noted that the computer software that executes the method of the present invention is not limited to being executed by one or a specific hardware entity, and it can also be implemented in a distributed manner by unspecified specific hardware. For computer software, the software product can be stored in a computer-readable storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.), or it can be distributed and stored on the network, as long as it enables the electronic device to execute the method according to the present invention.
[0122] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for dynamically allocating questions, used in the process of producing questions in a question bank, characterized in that: The method comprises the following steps: When receiving a user's topic request, obtain the corresponding pre-configured user attribute information according to the user ID; A corresponding question package is assigned to the user according to the correspondence between the user attribute information and one or more pre-configured question parameters; wherein the question parameters classify the questions and divide the questions into multiple question packages, the types of questions in different question packages are different, and the types of questions in the same question package are the same. The types of questions generated by the question parameters are matched through the correspondence between the user attribute information and the question parameters, and the question package of the corresponding question type is assigned to the user without querying the fields of multiple data tables; all question packages sort the questions according to the same question priority; Regularly detect the production efficiency of question packages with the same question parameters. The production efficiency is determined by the number of questions produced in adjacent time intervals. Pairing question packages with the same question parameters according to the production efficiency of the question packages, including: marking a question package with a production efficiency greater than a first threshold as a first efficiency question package, marking a question package with a production efficiency less than a second threshold as a second efficiency question package, the first threshold is greater than the second threshold, and then pairing the first efficiency question package and the second efficiency question package in pairs, wherein the production efficiency between the first threshold and the second threshold is normal production efficiency; The number of questions in the paired question packages is adjusted according to the production efficiency of the question packages, wherein the questions in the question packages of users with low production efficiency are dynamically allocated to the question packages of users with high production efficiency according to the priority of the questions.
2. The method for dynamically assigning topics according to claim 1, characterized in that: Also includes: Get the question parameters and question priority in the question bank; The questions are divided into a plurality of question packages according to the question parameters, and the questions in the same question package are sorted according to the question priorities.
3. The method for dynamically allocating topics according to claim 2, characterized in that: The user attribute information includes: at least one of a subject and a learning period; correspondingly, the question parameter includes at least one of a subject and a learning period; The step of allocating a corresponding question package to a user according to the correspondence between the user attribute information and one or more pre-configured question parameters specifically includes: searching for question parameters matching the user attribute information according to the correspondence, and allocating the matching question parameters to the user.
4. The method for dynamically allocating topics according to claim 3, characterized in that: Searching for a topic parameter that matches the user attribute information according to the corresponding relationship, and assigning the matching topic parameter to the user comprises: When multiple matching question parameters are found, the number of question packages corresponding to each matching question parameter is queried first, and question packages with a larger number are preferentially assigned to the user to ensure that the production speed of different types of question packages is basically the same.
5. The method for dynamically allocating topics according to claim 4, characterized in that: The adjusting the number of questions in the paired question package according to the production efficiency of the question package includes: extracting a predetermined number of migration questions from the second efficiency question package; Respectively obtaining the topic priorities of the first efficiency topic package and the migration topic; The migration questions are migrated to the first efficiency question package, and the first efficiency question package questions and the migration questions are sorted according to question priorities.
6. The method for dynamically allocating topics according to claim 4, characterized in that: After pairing question packages with the same question parameters according to the production efficiency of the question packages, the method further includes: Marking the question packages whose production efficiency is less than the second threshold and greater than the third threshold as the third efficiency question packages, and marking the question packages whose production efficiency is less than the third threshold as the fourth efficiency question packages; the third threshold is less than the second threshold; pairing the first efficiency question package with the third efficiency question package; Retrieve the fourth efficiency question package.
7. The method for dynamically allocating topics according to claim 4, characterized in that: The method further comprises: If the number of the second efficiency question packages is less than the number of the first efficiency question packages; Supplement questions from the question bank to the remaining first efficiency question package according to question parameters and question priorities.
8. A dynamic question allocation device, used in the process of question bank generating questions, characterized in that: The device comprises: The acquisition module is used to acquire the corresponding pre-configured user attribute information according to the user ID when receiving the user's topic request; The dispatching module is used to dispatch the corresponding question package to the user according to the correspondence between the user attribute information and one or more parameters pre-configured for the question; wherein the question parameters classify the questions and divide the questions into multiple question packages, the types of questions in different question packages are different, and the types of questions in the same question package are the same. The types of questions generated by the question parameters are matched through the correspondence between the user attribute information and the question parameters, and the question package of the corresponding question type is dispatched to the user without querying the fields of multiple data tables; all question packages sort the questions according to the same question priority; A detection module is used to periodically detect the production efficiency of question packages with the same question parameters, where the production efficiency is determined by the number of questions produced in adjacent time intervals; A pairing module is used to pair question packages with the same question parameters according to the production efficiency of the question packages, including: marking a question package with a production efficiency greater than a first threshold as a first efficiency question package, marking a question package with a production efficiency less than a second threshold as a second efficiency question package, the first threshold is greater than the second threshold, and then pairing the first efficiency question package and the second efficiency question package in pairs, wherein the production efficiency between the first threshold and the second threshold is normal production efficiency; The adjustment module is used to adjust the number of questions in the paired question package according to the production efficiency of the question package, wherein the questions in the question package of the user with low production efficiency are dynamically allocated to the question package of the user with high production efficiency according to priority.
9. An electronic device, comprising a processor and a memory, wherein the memory is used to store a computer executable program, wherein: When the computer program is executed by the processor, the processor performs the method according to any one of claims 1 to 7.
10. A computer-readable medium storing a computer-executable program, characterized in that: When the computer executable program is executed, the method according to any one of claims 1 to 7 is implemented.
