Intelligent test paper and answer sheet making plug-in based on oncivilization
By developing the intelligent production plug-in for test papers and answer sheets on the Wenxin Yiyan platform, we have solved the problems of intelligent generation of test questions, personalized needs and answer sheet production, realized the intelligent rapid generation and integration of test questions and answer sheets, and improved the Application scope and user experience in education.
Patent Information
- Application Number
- CN202410795973.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology cannot intelligently generate test questions, is difficult to meet personalized needs, lacks answer sheet production and typesetting functions, and has scattered and unintegrated functions, which limits the application scope and user experience of the Wenxin Yiyan platform in the education field.
Developed an intelligent production plug-in for test papers and answer sheets based on Wen Xinyiyan, including intelligent generation, analysis, random selection of questions and answer sheet diversity production modules, using the Vue framework and Python language, and using ERNIE Bot SDK to call large models to generate test questions , providing integrated test question editing and answer sheet generation functions.
It realizes the intelligent and rapid generation of test questions and answer sheets to meet personalized needs, improves the efficiency of test paper generation, reduces the threshold for manual production by users, provides a comprehensive and personalized intelligent production experience, integrates multiple functions into one, and improves work efficiency. Efficiency and convenience.
Smart Images

Figure CN118656145A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of intelligent teaching aid development, and specifically is a test paper and answer sheet intelligent production plug-in based on Wenxinyiyan. Background Art
[0002] Document production and typesetting technology is a comprehensive process that involves multiple aspects to ensure the professionalism, readability and aesthetics of documents. It is one of the key technologies for the intelligent production of test papers and answer sheets. This technology automatically adjusts the typesetting format, font style, font size, line spacing and other parameters of test papers and answer sheets according to user requirements, making the test papers and answer sheets more beautiful and easy to read. With the release of large language models, the plug-in mechanism, as a new form of large model application, aims to expand the boundaries of large model capabilities and better adapt to scene needs. Therefore, for the Baidu platform, which is in a period of vigorous development, its current demand for plug-ins with scene value based on large models is increasing. It hopes to attract and incubate plug-ins with landing value and promote the prosperity of the domestic large model ecosystem. Among them, the Wenxin Yiyan platform has a particularly strong demand for plug-in functions in the field of office education, aiming to provide office assistance to large user groups in the IT Internet and education industries, meet the various needs of users in daily office work, and improve work efficiency and user experience.
[0003] However, the prior art has the following problems:
[0004] (1) Unable to generate questions intelligently
[0005] The Wenxinyiyan platform has not yet launched a plug-in that can intelligently generate questions, which limits its application in the education field. (2) It is difficult to meet personalized needs
[0006] Educators such as students, parents and teachers have personalized needs for test questions and answer sheets, but existing technologies often cannot meet these needs.
[0007] (3) Lack of functions such as answer sheet production and typesetting
[0008] Answer sheets are an indispensable part of the education process, but existing technologies often lack functions such as answer sheet production and typesetting. This results in users having to manually produce and typeset answer sheets, which is not only inefficient but also prone to errors.
[0009] (4) Functions are dispersed and not integrated
[0010] Currently, the question-selecting platforms on the market often disperse various functions into different modules, and their functions are incomplete and have not achieved true integration. Summary of the invention
[0011] The purpose of the present invention is to provide a test paper and answer sheet intelligent production plug-in based on Wen Xin Yi Yan in order to solve the above-mentioned problems.
[0012] The technical solution adopted by the present invention is as follows: a test paper and answer sheet intelligent production plug-in based on Wenxin Yiyan, the plug-in includes: a test paper intelligent generation function module, a test paper analysis function module, a random question selection function module and an answer sheet diversity production module;
[0013] The front-end part of the plug-in is developed using the Vue framework, using HTML layout, CSS for style design, JavaScript for interaction and dynamic effect design, and introducing third-party components such as Element Plus to optimize the interface;
[0014] The backend part of the plug-in is designed with corresponding data structures and algorithms, and the backend part of the plug-in designs specific parsing strategies according to the characteristics of different question types. The parsing strategy captures the key information of the question and accurately maps it to the corresponding nodes of the tree structure. The backend part of the plug-in uses Python language to design the parse tree.
[0015] In a preferred implementation, the data transmission of the intelligent test paper generation function module adopts the HTTP request method, uses the requests library to obtain the test paper generation requirements input by the user, performs certain restriction processing on the input statement internally, and then uses the convenient and easy-to-use interface provided by the ERNIE Bot SDK to call the capabilities of the Wenxin Yiyan model. By restricting the Prompt field, the test paper results generated by Wenxin Yiyan are returned to the user after certain rewriting and polishing, and a link to the plug-in front end is provided.
[0016] In a preferred embodiment, when the intelligent test paper generation function module is in use, the user clicks on a link to enter the plug-in front-end interface. After the back-end segments and parses the questions generated by Wenxin Yiyan, the data is returned to the front-end in the form of a list. After receiving the data, the front-end can present it in the question display area. After some editing, the user can click to download the test paper. The front-end returns the modified question list in the question display area to the back-end to generate a test paper interface. The interface receives the latest data and formats the questions and writes them into a word document. After editing, the file is uploaded to the front-end. The front-end can download the test paper word document for the user, and the user can get a standardized test paper document.
[0017] In a preferred implementation, the test paper parsing function module adopts HTTP request method for data transmission in the plug-in configuration, uses the requests library to obtain the URL of the test paper document uploaded by the user, and the back end saves the document locally.
[0018] In a preferred embodiment, the test paper parsing algorithm of the test paper parsing function module includes:
[0019] The entire test paper string is parsed into paper, which parses out the common information of the test paper such as title, score, and subject, and cuts out the character string of the big question according to the question number pattern (one, two, three, or (one) (two) or I, II, III or others).
[0020] Pass the question string and the test paper public information into bigquestion to parse the question number, title, score information and other public information of the question and the question number pattern of the subordinate questions. If it is 1, 2, 3, or (1)(2)(3), it is a small question. If there is I, II, (III) IV (A) first and then 1, 2, (3)(4), it is a medium question.
[0021] If it is a middle question, the middle question string is cut out, and the big question and the test paper public information are handed over to the middle question analysis. The middle question accepts the string, parses the question number pattern, title, score, parses the small question number pattern, cuts out the small question string, and hands over the big question, middle question, and test paper public information to the small question analysis. If there is no middle question, the small question string is directly cut out, and the big question and the test paper public information are handed over to the small question analysis.
[0022] The small questions are stored in strings, and the strings, big questions, middle questions (if there are none, they will be treated as empty strings), and common information of the test paper are passed into questiontype for parsing.
[0023] Questiontype will be parsed according to various question types, and weighted according to different subjects, different question numbers, and different question contents to determine the question type. It also performs forced parsing on questions to improve robustness. The parsing results for the corresponding question type only contain useful information such as the number of options, number of blanks, length, and size of the answer area.
[0024] This structure clearly shows the hierarchical relationship of the test paper. After parsing the test paper document, you can get a list of the number of multiple-choice questions, fill-in-the-blank questions, and comprehensive questions. By limiting the prompt field, the test paper analysis results are returned to the user after a certain prompt rewriting and polishing. The user can clearly know the number of question types in the test paper. Especially for question bank documents with a large number of questions, the plug-in can quickly implement statistical analysis functions with high efficiency.
[0025] In a preferred embodiment, the random question drawing function module provides a question quantity counting function and a random question drawing function.
[0026] In a preferred embodiment, during the use of the random question extraction function, the user can select the question bank document from the local file to upload through the "Upload local question bank" button, and the front end transmits the file to the back-end test paper parsing interface. The interface obtains the number list of multiple-choice questions, fill-in-the-blank questions, and comprehensive questions in the question bank document by calling the method of the test paper parsing library, and returns it to the front-end page to display it to the user. After the user sets the number of different question types to be extracted according to personal needs, click the "One-click question extraction" button. The front end sets a response event and uses the Ajax method to send the user's required extraction list data to the back-end question extraction interface. Based on the received data, the interface uses the random library to extract a specified number of questions from the total question list of the test paper and returns it to the front end in the form of a list. The front end refreshes the data to the question display area, and the user can see the extracted target question. The question display area provides up, down and delete buttons, and the user can adjust the questions and control the number of questions.
[0027] In a preferred embodiment, the answer sheet diversity making module is an answer sheet generation module in the plug-in front-end interface, providing answer sheet style selection and answer sheet making functions.
[0028] In a preferred embodiment, during the use of the answer sheet diversity production module, the user can click the "Upload Test Paper" button to select a test paper document from the local file for uploading, and then the user can click on the answer sheet template he likes in the answer sheet template display area (the existing templates are as follows: Figure 2 ), and finally click the "Generate Answer Sheet" button. The front end sets the response time and uses the Ajax method to pass the file and template style data to the back-end answer sheet production interface. After the interface receives the data, it first parses the test paper document by calling the method in the encapsulated parsing library to determine the type of each question in the test paper, and then sets a variety of answer sheet template structures according to the question type and answer sheet template. For example, the multiple-choice question type can be set to a table or fill-in card form, the fill-in-the-blank question can be set to a horizontal line form corresponding to the number of spaces, and the calculation question can be set to a certain specification of blank area. After the answer sheet word document is typeset and edited with the help of the python-docx library, the generated answer sheet document is sent to the front end, and the front end can download the answer sheet word document for the user, and the user can get a standardized answer sheet.
[0029] In a preferred embodiment, the overall usage process of the plug-in is:
[0030] A. Start: The user enters the Wenxin Yiyan platform and selects the Zhijuan Huibian plug-in.
[0031] B. User input: Different interfaces are triggered according to different user inputs. If the user makes a request for generating a test paper, the test paper generation interface is triggered, and the questions generated by the Wenxin Yiyan model and the link to the Zhijuan Huibian interface are returned; if the user uploads a document, the question extraction and answer sheet generation interface is triggered, and the test question analysis results and the link to the Zhijuan Huibian interface are returned.
[0032] C. Edit questions: Users can edit questions by moving up, moving down, deleting, etc. in the question display area.
[0033] D. Test paper download: After completing editing, the user can click "Generate Test Paper" and download it to the local computer in docx format.
[0034] E. Enter the number of questions to be drawn: After parsing the question bank document uploaded by the user, the number of each question type in the question bank is returned. The user can enter the number of questions to be drawn within this range.
[0035] F. One-click question extraction: The extracted results will be fed back to the question display area, and users can perform subsequent editing and download operations. After editing, you can click "Generate Test Paper" and download it to your local computer in docx format.
[0036] G. Select the answer sheet style: Users can choose any one of the answer sheet templates provided and click on the template to select the answer sheet style.
[0037] H. Generate answer sheet and download: After completing the answer sheet style selection, the user can click "Generate Answer Sheet" and download it to the local computer in docx format.
[0038] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0039] 1. In the present invention, relying on the advantages of "Wen Xin Yi Yan", the present invention realizes the rapid understanding and analysis of user needs. Compared with the need for users to manually search and filter test questions, we use the "Wen Xin Yi Yan" large language model, and only need users to input their personal needs to intelligently return what users need; the present invention makes a python library to realize the automatic segmentation of test questions in word documents and the classification of question types, which is convenient for question extraction and question bank statistics. Different from other question extraction functions on the market that can only randomly extract questions that have been segmented in excel, Zhijuan Huibian supports uploading word documents for operation, which is more in line with the document type of most people's question banks and has better universality.
[0040] 2. In the present invention, the test paper and answer sheet can be made intelligently with one click, and a test question editing area and an answer sheet making area are provided. We support deletion and order adjustment operations for test questions to facilitate users to edit test papers more carefully. In the answer sheet making area, we provide templates. You only need to upload the test paper and select the template to generate the answer sheet with one click, which greatly reduces the workload and lowers the threshold for users to make test papers and answer sheets.
[0041] The present invention takes advantage of "Wen Xin Yi Yan" to improve the efficiency and pertinence of test question generation. The plug-in automatically screens and combines the test question resources in the question bank according to the needs of teachers or students to generate test papers that meet the teaching objectives. The realization of this function not only reduces the workload of teachers in setting questions, but also helps to improve the quality and pertinence of test papers, so as to better serve teaching needs. The present invention integrates multiple functions into one, providing a comprehensive and personalized intelligent production experience. The "Smart Volume Huibian" plug-in breaks the cumbersomeness and limitations of traditional test paper production, and integrates multiple functions such as question bank analysis, balanced question extraction, test question editing, template selection, test paper and answer sheet generation and download. This integrated design allows users to complete the entire process of test paper production on one platform, greatly improving work efficiency and convenience.
[0042] 3. In the present invention, a random question drawing function is also provided to ensure that the difficulty of the questions and the knowledge points in the test paper are balanced and reasonable. In terms of question editing, the plug-in supports a variety of question types and templates to choose from, and users can make personalized settings according to their needs. Finally, the plug-in can also automatically generate test papers and answer sheets, and support downloading, providing users with a comprehensive and personalized intelligent production experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A flow chart for using the plug-in of the present invention;
[0044] Figure 2 This is the layout diagram of the Zhijuan Huibian interface in the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0046] Reference Figure 1-2 ,
[0047] In view of the above problems, the present invention proposes the following solutions:
[0048] (1) Calling the Wenxin Yiyan model to intelligently generate questions
[0049] This invention will use the powerful capabilities of the Wenxinyiyan model to intelligently generate questions. By calling the API interface of Wenxinyiyan and combining the professional knowledge base and algorithms in the field of education, high-quality test questions are automatically generated according to conditions such as knowledge points, difficulty, and question types. This method is not only efficient and fast, but also can ensure the scientificity and accuracy of the test questions, thereby meeting teaching needs.
[0050] (2) Personalized questions
[0051] In order to meet the personalized needs of educators such as students, parents and teachers, the present invention will provide the function of personalized customization of questions. Users can select corresponding knowledge points, difficulty and question types according to their own learning progress, ability level, interests and hobbies, and generate test questions that meet their needs. In addition, the system can also intelligently adjust the test question generation strategy according to the user's learning situation and feedback, providing a more personalized learning experience.
[0052] (3) Provide functions related to answer sheet production
[0053] In order to solve the problem of missing the function of making answer sheets, the present invention will provide related functions such as answer sheet template selection, typesetting, and production. Users can automatically generate corresponding answer sheets that meet the specifications by uploading test papers. At the same time, the system also supports functions such as answer sheet template selection, downloading and printing, so that users can easily make answer sheets that meet their needs. This will greatly reduce the production threshold and improve the user's efficiency.
[0054] (4) Multi-function integration
[0055] In order to improve the user experience and work efficiency, the present invention will realize multi-functional integration. By integrating the functions of test question generation, answer sheet production, template selection, download and printing into a unified plug-in, the user can complete all operations in one interface without frequently switching different functional modules. This integrated design will make the user's use process smoother and more efficient, and also improve the overall performance and stability of the system.
[0056] A plug-in for intelligent production of test papers and answer sheets based on Wenxin Yiyan. There are two ways to trigger the plug-in. On the one hand, the plug-in supports users to propose test paper customization requirements, and calls the "Wenxin Yiyan" large model to generate personalized test questions, and provides a "Smart Volume Smart Editor" link, click to enter our interface; on the other hand, users can also upload question banks by themselves, and the plug-in will analyze the content, provide users with feedback on question statistics, and provide a "Smart Volume Smart Editor" link, click to enter our interface.
[0057] After entering the "Smart Book" platform, users are provided with the following detailed functions:
[0058] (1) Random question selection: After the user uploads the question bank document, he can select the number of questions corresponding to the question type. The plug-in will randomly and evenly select questions and feed back the selection results to the front-end question display area;
[0059] (2) Question editing: Users can move questions up, down, or delete them in the question display area, and adjust the order and number of questions;
[0060] (3) Test paper generation: After the user has completed the question adjustment, he can click the "Download Test Paper" area to complete the download of the standard test paper;
[0061] (4) Answer sheet preparation: Users can upload the test paper document and select the answer sheet style. Click the "Generate Answer Sheet" area to download the answer sheet of the corresponding style.
[0062] An interface layout of an intelligent production plug-in for test papers and answer sheets based on Wenxin Yiyan includes:
[0063] Top bar (navigation bar): Place the plug-in logo and slogan in the top bar, and briefly introduce the basic information of the plug-in.
[0064] Upper sidebar area (question drawing editing area): This area includes uploading question bank, question statistics, and one-click question drawing. This area displays the question statistics in the question bank in a table format, and places an editable counter to provide users with the function of controlling the number of questions. Users can customize the number of questions by manually entering or clicking the button on the side of the counter. This area is also equipped with "Upload local question bank" and "One-click question drawing" buttons, which are eye-catching and intuitive, easy for users to understand and operate.
[0065] Main area (question display area): This area displays the question information extracted by the user in a table format, which is divided into serial number, question, and operation columns, and is used to intuitively display the specific content and order of the extracted questions to the user. The operation column provides "up", "down", and "delete" buttons, which are eye-catching and intuitive, allowing users to directly click and operate.
[0066] Bottom bar (exam paper download area): This area provides a "Generate Exam Paper" button. Users can click this button to download the exam paper consisting of all the questions in the physical display area to their local computer.
[0067] Lower sidebar area (answer sheet generation area): This area displays answer sheet styles in a revolving lantern format, and users can click the left and right buttons to select a style. This area provides "Upload Test Paper" and "Generate Answer Sheet" buttons, and users can upload test papers according to their personal needs, generate and download corresponding answer sheets to their local computer.
[0068] A test paper and answer sheet intelligent production plug-in based on Wenxin Yiyan, characterized in that the plug-in includes: a test paper intelligent generation function module, a test paper analysis function module, a random question selection function module and an answer sheet diversity production module;
[0069] The front-end part of the plug-in is developed using the Vue framework, using HTML layout, CSS for style design, JavaScript for interaction and dynamic effect design, and introducing third-party components such as Element Plus to optimize the interface;
[0070] The backend of the plug-in is designed with corresponding data structures and algorithms. The backend of the plug-in designs specific parsing strategies based on the characteristics of different question types. The parsing strategy captures the key information of the question and accurately maps it to the corresponding nodes of the tree structure. The backend of the plug-in uses Python language to design the parse tree.
[0071] The data transmission of the test paper intelligent generation function module adopts the HTTP request method, and uses the requests library to obtain the test paper generation requirements input by the user. After certain restrictions are processed internally on the input sentences, the convenient and easy-to-use interface provided by the ERNIE Bot SDK is used to call the capabilities of the Wenxin Yiyan model. By restricting the Prompt field, the test paper results generated by Wenxin Yiyan are returned to the user after certain rewriting and polishing, and a link to the plug-in front end is provided.
[0072] When using the intelligent test paper generation function module, the user clicks on the link to enter the plug-in front-end interface. The back-end segments and parses the questions generated by Wenxin Yiyan, and returns the data to the front-end in the form of a list. After receiving the data, the front-end can present it in the question display area. After some editing, the user can click to download the test paper. The front-end returns the modified question list in the question display area to the back-end to generate the test paper interface. The interface receives the latest data and formats the questions and writes them into a word document. After editing, the file is uploaded to the front-end, and the front-end can download the test paper word document for the user, and the user can get a standardized test paper document.
[0073] In the plug-in configuration, the test paper parsing function module uses the HTTP request method for data transmission, uses the requests library to obtain the URL of the test paper document uploaded by the user, and the backend saves the document locally.
[0074] The test paper parsing algorithm of the test paper parsing function module includes:
[0075] The entire test paper string is parsed into paper, which parses out the common information of the test paper such as title, score, and subject, and cuts out the character string of the big question according to the question number pattern (one, two, three, or (one) (two) or I, II, III or others).
[0076] Pass the question string and the test paper public information into bigquestion to parse the question number, title, score information and other public information of the question and the question number pattern of the subordinate questions. If it is 1, 2, 3, or (1)(2)(3), it is a small question. If there is I, II, (III) IV (A) first and then 1, 2, (3)(4), it is a medium question.
[0077] If it is a middle question, the middle question string is cut out, and the big question and the test paper public information are handed over to the middle question analysis. The middle question accepts the string, parses the question number pattern, title, score, parses the small question number pattern, cuts out the small question string, and hands over the big question, middle question, and test paper public information to the small question analysis. If there is no middle question, the small question string is directly cut out, and the big question and the test paper public information are handed over to the small question analysis.
[0078] The small questions are stored in strings, and the strings, big questions, middle questions (if there are none, they will be treated as empty strings), and common information of the test paper are passed into questiontype for parsing.
[0079] Questiontype will be parsed according to various question types, and weighted according to different subjects, different question numbers, and different question contents to determine the question type. It also performs forced parsing on questions to improve robustness. The parsing results for the corresponding question type only contain useful information such as the number of options, number of blanks, length, and size of the answer area.
[0080] This structure clearly shows the hierarchical relationship of the test paper. After parsing the test paper document, you can get a list of the number of multiple-choice questions, fill-in-the-blank questions, and comprehensive questions. By limiting the prompt field, the test paper analysis results are returned to the user after a certain prompt rewriting and polishing. The user can clearly know the number of question types in the test paper. Especially for question bank documents with a large number of questions, the plug-in can quickly implement statistical analysis functions with high efficiency.
[0081] The random question selection function module provides question quantity statistics function and random question selection function.
[0082] During the use of the random question extraction function, users can select question bank documents from local files for upload through the "Upload local question bank" button. The front end transmits the file to the back-end test paper parsing interface. The interface obtains the number of multiple-choice questions, fill-in-the-blank questions, and comprehensive questions in the question bank document by calling the method of the test paper parsing library, and returns it to the front-end page for display to the user. After the user sets the number of questions to be extracted according to personal needs, click the "One-click question extraction" button. The front end sets a response event and uses the Ajax method to send the list data that the user needs to extract to the back-end question extraction interface. Based on the received data, the interface uses the random library to extract a specified number of questions from the total question list of the test paper and returns it to the front end in the form of a list. The front end refreshes the data to the question display area, and the user can see the extracted target question. The question display area provides up, down, and delete buttons, and the user can adjust the questions and control the number of questions.
[0083] The answer sheet diversity production module is the answer sheet generation module in the plug-in front-end interface, which provides answer sheet style selection and answer sheet production functions.
[0084] When using the answer sheet diversity production module, users can click the "Upload Test Paper" button to select a test paper document from the local file for uploading. Users can click their favorite answer sheet template in the answer sheet template display area (existing templates are as follows Figure 2 ), and finally click the "Generate Answer Sheet" button. The front end sets the response time and uses the Ajax method to pass the file and template style data to the back-end answer sheet production interface. After the interface receives the data, it first parses the test paper document by calling the method in the encapsulated parsing library to determine the type of each question in the test paper, and then sets a variety of answer sheet template structures according to the question type and answer sheet template. For example, the multiple-choice question type can be set to a table or fill-in card form, the fill-in-the-blank question can be set to a horizontal line form corresponding to the number of spaces, and the calculation question can be set to a certain specification of blank area. After the answer sheet word document is typeset and edited with the help of the python-docx library, the generated answer sheet document is sent to the front end, and the front end can download the answer sheet word document for the user, and the user can get a standardized answer sheet.
[0085] The overall usage process of the plug-in is:
[0086] A. Start: The user enters the Wenxin Yiyan platform and selects the Zhijuan Huibian plug-in.
[0087] B. User input: Different interfaces are triggered according to different user inputs. If the user makes a request for generating a test paper, the test paper generation interface is triggered, and the questions generated by the Wenxin Yiyan model and the link to the Zhijuan Huibian interface are returned; if the user uploads a document, the question extraction and answer sheet generation interface is triggered, and the test question analysis results and the link to the Zhijuan Huibian interface are returned.
[0088] C. Edit questions: Users can edit questions by moving up, moving down, deleting, etc. in the question display area.
[0089] D. Test paper download: After completing editing, the user can click "Generate Test Paper" and download it to the local computer in docx format.
[0090] E. Enter the number of questions to be drawn: After parsing the question bank document uploaded by the user, the number of each question type in the question bank is returned. The user can enter the number of questions to be drawn within this range.
[0091] F. One-click question extraction: The extracted results will be fed back to the question display area, and users can perform subsequent editing and download operations. After editing, you can click "Generate Test Paper" and download it to your local computer in docx format.
[0092] G. Select the answer sheet style: Users can choose any one of the answer sheet templates provided and click on the template to select the answer sheet style.
[0093] H. Generate answer sheet and download: After completing the answer sheet style selection, the user can click "Generate Answer Sheet" and download it to the local computer in docx format.
[0094] The present invention relies on the advantages of "Wen Xin Yi Yan" to achieve rapid understanding and analysis of user needs. Compared with requiring users to manually search and filter test questions, we use the "Wen Xin Yi Yan" large language model, which only requires users to input their personal needs and intelligently returns what users need.
[0095] The present invention makes a python library to realize the automatic segmentation of test questions in word documents and the classification of question types, which is convenient for question extraction and question statistics in the question bank.
[0096] Different from other question extraction functions on the market that can only randomly extract questions that have been divided in Excel, the present invention supports uploading Word documents for operation, which is more in line with the document type of most people's question banks and has better universality.
[0097] The present invention realizes one-click intelligent production of test papers and answer sheets, and provides a test question editing area and an answer sheet production area. We support deletion and order adjustment operations for test questions to facilitate users to edit test papers more carefully. We provide templates in the answer sheet production area. You only need to upload the test paper and select the template to generate the answer sheet with one click, which greatly reduces the workload and lowers the threshold for users to make test papers and answer sheets.
[0098] The present invention takes advantage of "Wen Xin Yi Yan" to improve the efficiency and pertinence of test question generation. The plug-in automatically screens and combines the test question resources in the question bank according to the needs of teachers or students to generate test papers that meet the teaching objectives. The realization of this function not only reduces the workload of teachers in setting questions, but also helps to improve the quality and pertinence of test papers, thereby better serving teaching needs.
[0099] The present invention integrates multiple functions into one, providing a comprehensive and personalized intelligent production experience. The "Smart Paper Editing" plug-in breaks the tediousness and limitations of traditional test paper production, integrating multiple functions such as question bank analysis, balanced question extraction, test question editing, template selection, test paper and answer sheet generation and download. This integrated design allows users to complete the entire process of test paper production on one platform, greatly improving work efficiency and convenience.
[0100] The present invention also provides a random question selection function to ensure that the difficulty of the test questions and the knowledge points in the test paper are balanced and reasonable. In terms of test question editing, the plug-in supports a variety of question types and templates to choose from, and users can personalize them according to their needs. Finally, the plug-in can also automatically generate test papers and answer sheets, and support downloading, providing users with a comprehensive and personalized intelligent production experience.
[0101] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or still includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0102] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A plug-in for intelligent production of test papers and answer sheets based on Wenxin Yiyan, Features: The plug-in includes: an intelligent test paper generation function module, a test paper analysis function module, a random question selection function module and an answer sheet diversity production module; The front-end part of the plug-in is developed using the Vue framework, using HTML layout, CSS for style design, JavaScript for interaction and dynamic effect design, and introducing the Element Plus third-party component to optimize the interface; The backend part of the plug-in is designed with corresponding data structures and algorithms. The backend part of the plug-in designs specific parsing strategies according to the characteristics of different question types; the parsing strategies capture the key information of the questions and accurately map them to the corresponding nodes of the tree structure; the backend part of the plug-in uses Python language to design the parsing tree.
2. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: The data transmission of the intelligent test paper generation function module adopts the HTTP request method, uses the requests library to obtain the test paper generation requirements input by the user, and after certain restrictions are processed internally on the input sentences, with the help of the convenient and easy-to-use interface provided by the ERNIE Bot SDK, calls the capabilities of the Wenxin Yiyan model, and returns the test paper results generated by Wenxin Yiyan to the user after certain rewriting and polishing through the restrictions on the Prompt field, and provides a link to the plug-in front end.
3. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: During the use of the intelligent test paper generation function module, the user clicks on a link to enter the plug-in front-end interface. The back-end segments and parses the questions generated by Wenxin Yiyan, and returns the data to the front-end in the form of a list. After receiving the data, the front-end can present it in the question display area. The user can click to download the test paper after some editing. The front-end returns the modified question list in the question display area to the back-end to generate a test paper interface. The interface receives the latest data and formats the questions and writes them into a word document. After editing, the file is uploaded to the front-end, and the front-end can download the test paper word document for the user, and the user can get a standardized test paper document.
4. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: The test paper parsing function module adopts HTTP request method for data transmission in the plug-in configuration, uses the requests library to obtain the URL of the test paper document uploaded by the user, and the back end saves the document locally.
5. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: The test paper parsing algorithm of the test paper parsing function module includes: The entire test paper string is parsed in paper, which parses out the common information of the test paper, such as title, score, and subject, and cuts out the character string of the big question according to the question number pattern (one, two, three, or (one) (two) or I, II, III or others); Pass the question string and the test paper public information into bigquestion to parse the question number, title, score information and the question number pattern of the subordinate questions; if it is 1, 2, 3, or (1)(2)(3), it is a small question. If there is I, II, (III) IV (A) first and then 1, 2, (3)(4), it is a medium question. If it is a middle question, the middle question string is cut out, and the main question and the test paper public information are handed over to the middle question analysis. The middle question receives the string, parses the question number pattern, title, score, parses the small question number pattern, cuts out the small question string, and hands over the main question, middle question, and test paper public information to the small question analysis; if there is no middle question, the small question string is directly cut out, and the main question and the test paper public information are handed over to the small question analysis; The small questions are stored as strings, and the strings, big questions, middle questions (if there are none, they will be treated as empty strings), and common information of the test paper are passed to questiontype for parsing; Questiontype will be parsed according to various question types, and weighted according to different subjects, question numbers, and question contents to determine the question type. It will also perform forced parsing on questions to improve robustness. The parsing results for the corresponding question types only include useful information such as the number of options, number of blanks, length, and size of the answer area. This structure clearly shows the hierarchical relationship of the test paper; after parsing the test paper document, a list of the number of multiple-choice questions, fill-in-the-blank questions, and comprehensive questions can be obtained. By restricting the Prompt field, the test paper analysis results are returned to the user after a certain Prompt rewrite and polishing. The user can clearly know the number of question types in the test paper. Especially for question bank documents with a large number of questions, the plug-in can quickly implement statistical analysis functions and is highly efficient.
6. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: The random question drawing function module provides question quantity statistics function and random question drawing function.
7. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: During the use of the random question extraction function, the user can select a question bank document from the local file to upload through the "Upload local question bank" button, and the front end transmits the file to the back end test paper parsing interface. The interface obtains the number list of multiple-choice questions, fill-in-the-blank questions, and comprehensive questions in the question bank document by calling the method of the test paper parsing library, and returns it to the front end page for display to the user; after the user sets the number of different question types to be extracted according to personal needs, click the "One-click question extraction" button; the front end sets a response event and uses the Ajax method to send the list data required by the user to the back end question extraction interface; Based on the received data, the interface uses the random library to extract a specified number of questions from the total question list of the test paper and returns them to the front end in the form of a list. The front end refreshes the data to the question display area, and the user can see the extracted target questions. The question display area provides up, down and delete buttons, and the user can adjust the questions and control the number of questions.
8. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: The answer sheet diversity production module is an answer sheet generation module in the plug-in front-end interface, providing answer sheet style selection and answer sheet production functions.
9. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: During the use of the answer sheet diversity production module, the user can select the test paper document from the local file through the "Upload Test Paper" button to upload, and then the user can click the answer sheet template he likes in the answer sheet template display area, and finally click the "Generate Answer Sheet" button; the front end sets the response time, and passes the file and template style data to the back-end answer sheet production interface through the Ajax method; after the interface receives the data, it first parses the test paper document by calling the method in the encapsulated parsing library to determine the type of each question in the test paper, and then sets a variety of answer sheet template structures according to the question type and answer sheet template. For example, the multiple-choice question type can be set to a table or a fill-in card form, the fill-in-the-blank question can be set to a horizontal line form corresponding to the number of spaces, and the calculation question can be set to a blank area of a certain specification. After the answer sheet word document is typeset and edited with the help of the python-docx library, the generated answer sheet document is sent to the front end, and the front end can download the answer sheet word document for the user, and the user can get a standardized answer sheet.
10. The intelligent production plug-in for test papers and answer sheets based on Wen Xin Yi Yan as claimed in claim 1, Features: The overall usage process of the plug-in is as follows: A. Start: The user enters the Wenxin Yiyan platform and selects the Zhijuan Huibian plug-in; B. User input: Different interfaces are triggered according to different user inputs. If the user makes a request to generate a test paper, the test paper generation interface is triggered, and the questions generated by the Wenxin Yiyan model and the link to the Zhijuan Huibian interface are returned. If the user uploads a document, the question extraction and answer sheet generation interface is triggered, and the test question analysis results and the link to the Zhijuan Huibian interface are returned. C. Editing questions: Users can edit questions by moving up, moving down, or deleting them in the question display area; D. Test paper download: After editing, the user can click "Generate Test Paper" and download it to the local computer in docx format; E. Enter the number of questions to be drawn: After parsing the question bank document uploaded by the user, the number of each question type in the question bank is returned. The user can enter the number of questions to be drawn within this range; F. One-click question extraction: The results of the extraction will be fed back to the question display area, and the user can perform subsequent editing and downloading operations. After editing, click "Generate Test Paper" and download it to the local computer in docx format; G. Select the answer sheet style: Users can select any one of the answer sheet templates provided and click on the template to select the answer sheet style; H. Generate answer sheet and download: After completing the answer sheet style selection, the user can click "Generate Answer Sheet" and download it to the local computer in docx format.
