Questionnaire generation method, system, equipment and medium
By introducing natural language processing technology into the questionnaire generation tool, questionnaire questions are automatically generated, which solves the problems of low questionnaire generation efficiency and high learning cost in the existing technology, and achieves a more efficient questionnaire generation process.
Patent Information
- Application Number
- CN202311120113.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-09-17
AI Technical Summary
Existing questionnaire generation tools require users to spend high learning costs, and the efficiency of questionnaire generation is low. Users need to manually set and modify questions.
By providing a dialogue window on the questionnaire generation page, it obtains the text to be processed input by the user, uses natural language processing technology to generate candidate questions, and displays them on the page for user confirmation. It supports automatic generation of questionnaire questions, reduces user learning costs, and improves generation efficiency.
The automatic generation of questionnaires is realized, which reduces the learning cost for users to use the questionnaire generation tool, improves the efficiency of questionnaire generation, and simplifies the question generation process.
Smart Images

Figure CN118657119A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a questionnaire generation method, system, electronic device and computer-readable storage medium. Background Art
[0002] A questionnaire is a series of questions designed to collect information about users' attitudes, values, and opinions on a specific topic. With the continuous development of computer technology, questionnaires have gradually changed from offline distribution to online distribution, and tools for generating questionnaires have emerged, such as questionnaire platforms, questionnaire systems, and other questionnaire generation tools.
[0003] Specifically, the user can use the questionnaire generation tool to formulate multiple questions related to a specific topic, thereby generating a questionnaire. However, the above method requires the user to spend a high learning cost, and the user needs to modify the questions in the questionnaire, and the questionnaire generation efficiency is low. Summary of the invention
[0004] The present application provides a questionnaire generation method. The method can generate questions based on the text to be processed input by the user, realize the automatic generation of the questionnaire, reduce the learning cost of the user to use the questionnaire generation tool, and improve the efficiency of questionnaire generation. The present application also provides a system, electronic device, computer-readable storage medium and computer program product corresponding to the above method.
[0005] In a first aspect, the present application provides a questionnaire generation method, the method comprising:
[0006] In response to a generation trigger operation of a questionnaire generation page, obtaining a text to be processed input by a user in a dialog window, wherein the dialog window is used to receive content input by the user, and the text to be processed is used to indicate generation of a target questionnaire;
[0007] Generate at least one candidate question according to the text to be processed, and display the at least one candidate question on the questionnaire generation page, wherein the candidate question includes a title and an answer item corresponding to the title;
[0008] In response to a confirmation operation on a target candidate question among the at least one candidate question, the target candidate question is used as at least one question of the target questionnaire.
[0009] In some possible implementations, in response to the generation trigger operation of the questionnaire generation page, obtaining the to-be-processed text input by the user in the dialogue window includes:
[0010] In response to a trigger operation on a dialog window in a questionnaire generation page, obtaining a text to be processed input by a user in the dialog window; or,
[0011] In response to a triggering operation on a dialog control in a questionnaire generation page, displaying a dialog window on the questionnaire generation page;
[0012] Get the text to be processed entered by the user in the dialog window.
[0013] In some possible implementations, generating at least one candidate question according to the text to be processed includes:
[0014] The text to be processed is input into a question generation model to generate at least one candidate question.
[0015] In some possible implementations, displaying the at least one candidate question on the questionnaire generation page includes:
[0016] The title of at least one candidate question is displayed on the questionnaire generation page, and, based on the title type of the question and using a display rule corresponding to the title type, the answer items corresponding to the title of the at least one candidate question are displayed on the questionnaire generation page.
[0017] In some possible implementations, the method further includes:
[0018] A target table is generated according to the target questionnaire, and the target table is used to count the questionnaire results of the target questionnaire. The fields of the target table correspond to the questions of the target questionnaire.
[0019] In some possible implementations, the fields of the target table correspond to the questions of the target questionnaire, including:
[0020] The field names of the fields in the target table correspond to the titles of the questions in the target questionnaire; and,
[0021] The field types of the fields in the target table correspond to the title types of the questions in the target questionnaire.
[0022] In some possible implementations, the method further includes:
[0023] In response to a modification operation on a field name of a target field in the target table, updating the title of a target question corresponding to the target field in the target questionnaire; or,
[0024] In response to a modification operation on a field property of a target field in the target table, an answer item of a target question corresponding to the target field in the target questionnaire is updated.
[0025] In some possible implementations, in response to the generation trigger operation of the questionnaire generation page, obtaining the to-be-processed text input by the user in the dialogue window includes:
[0026] In response to a generation trigger operation of a questionnaire generation page, obtaining a first to-be-processed text input by a user in a first dialogue window, wherein the first to-be-processed text is used to indicate generation of a target questionnaire, and the first dialogue window is located in a first area of the questionnaire generation page;
[0027] The step of generating at least one candidate question according to the text to be processed and displaying the at least one candidate question on the questionnaire generation page includes:
[0028] generating at least one first candidate question according to the first text to be processed, and displaying the at least one first candidate question on the questionnaire generation page;
[0029] The method further comprises:
[0030] In response to a generation trigger operation of the questionnaire generation page, obtaining a second text to be processed input by a user in a second dialogue window, wherein the second text to be processed is used to indicate generation of candidate questions, and the second dialogue window is located in a second area of the questionnaire generation page;
[0031] A second candidate question is generated according to the second text to be processed and the at least one first candidate question.
[0032] In some possible implementations, the method further includes:
[0033] In response to a retry operation on the at least one candidate question in the dialog window, the at least one candidate question is regenerated, and the at least one regenerated candidate question is displayed on the questionnaire generation page.
[0034] In some possible implementations, in response to a retry operation on the at least one candidate question in the dialog window, regenerating the at least one candidate question includes:
[0035] In response to a triggering operation on a retry control in the dialog window, regenerating the at least one candidate question; or,
[0036] Acquire a third text to be processed input by the user in the dialog window, wherein the third text to be processed is used to instruct to regenerate the candidate question;
[0037] The at least one candidate question is regenerated based on the third text to be processed.
[0038] In a second aspect, the present application provides a questionnaire generation system, the system comprising:
[0039] An acquisition module, for acquiring the text to be processed input by the user in a dialogue window in response to a generation trigger operation of the questionnaire generation page, wherein the dialogue window is used to receive the content input by the user, and the text to be processed is used to indicate the generation of a target questionnaire;
[0040] A generating module, used for generating at least one candidate question according to the text to be processed;
[0041] A display module, configured to display the at least one candidate question on the questionnaire generation page, wherein the candidate question includes a title and an answer item corresponding to the title;
[0042] The determination module is used to respond to a confirmation operation on a target candidate question among the at least one candidate question and use the target candidate question as at least one question of the target questionnaire.
[0043] In some possible implementations, the acquisition module is specifically used to:
[0044] In response to a trigger operation on a dialog window in a questionnaire generation page, obtaining a text to be processed input by a user in the dialog window; or,
[0045] In response to a triggering operation on a dialog control in a questionnaire generation page, displaying a dialog window on the questionnaire generation page;
[0046] Get the text to be processed entered by the user in the dialog window.
[0047] In some possible implementations, the generating module is specifically used to:
[0048] The text to be processed is input into a question generation model to generate at least one candidate question.
[0049] In some possible implementations, the display module is specifically used to:
[0050] The title of at least one candidate question is displayed on the questionnaire generation page, and, based on the title type of the question and using a display rule corresponding to the title type, the answer items corresponding to the title of the at least one candidate question are displayed on the questionnaire generation page.
[0051] In some possible implementations, the generating module is further configured to:
[0052] A target table is generated according to the target questionnaire, and the target table is used to count the questionnaire results of the target questionnaire. The fields of the target table correspond to the questions of the target questionnaire.
[0053] In some possible implementations, the generating module is specifically used to:
[0054] The field names of the fields in the target table correspond to the titles of the questions in the target questionnaire; and,
[0055] The field types of the fields in the target table correspond to the title types of the questions in the target questionnaire.
[0056] In some possible implementations, the system further includes:
[0057] An update module is used to update the title of the target question corresponding to the target field in the target questionnaire in response to a modification operation on the field name of the target field in the target table; or, in response to a modification operation on the field attributes of the target field in the target table, update the answer items of the target question corresponding to the target field in the target questionnaire.
[0058] In some possible implementations, the acquisition module is specifically used to:
[0059] In response to a generation trigger operation of a questionnaire generation page, obtaining a first to-be-processed text input by a user in a first dialogue window, wherein the first to-be-processed text is used to indicate generation of a target questionnaire, and the first dialogue window is located in a first area of the questionnaire generation page;
[0060] The generation module is specifically used for:
[0061] generating at least one first candidate question according to the first text to be processed, and displaying the at least one first candidate question on the questionnaire generation page;
[0062] The acquisition module is also used for:
[0063] In response to a generation trigger operation of the questionnaire generation page, obtaining a second text to be processed input by a user in a second dialogue window, wherein the second text to be processed is used to indicate generation of candidate questions, and the second dialogue window is located in a second area of the questionnaire generation page;
[0064] The generation module is also used for:
[0065] A second candidate question is generated according to the second text to be processed and the at least one first candidate question.
[0066] In some possible implementations, the generating module is further configured to:
[0067] In response to a retry operation on the at least one candidate question in the dialog window, the at least one candidate question is regenerated, and the at least one regenerated candidate question is displayed on the questionnaire generation page.
[0068] In some possible implementations, the generating module is specifically used to:
[0069] In response to a triggering operation on a retry control in the dialog window, regenerating the at least one candidate question; or,
[0070] Acquire a third text to be processed input by the user in the dialog window, wherein the third text to be processed is used to instruct to regenerate the candidate question;
[0071] The at least one candidate question is regenerated based on the third text to be processed.
[0072] In a third aspect, the present application provides an electronic device, the electronic device comprising a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory so that the electronic device performs the questionnaire generation method in the first aspect or any implementation of the first aspect.
[0073] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, wherein the instructions instruct an electronic device to execute the questionnaire generation method described in the first aspect or any one of the implementations of the first aspect.
[0074] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the questionnaire generating method described in the first aspect or any one of the implementations of the first aspect.
[0075] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations.
[0076] It can be seen from the above technical solutions that this application has the following advantages:
[0077] The present application provides a questionnaire generation method, which responds to a generation trigger operation of a questionnaire generation page, obtains a text to be processed input by a user in a dialog window, wherein the dialog window is used to receive the content input by the user, and the text to be processed is used to indicate the generation of a target questionnaire, then generates at least one candidate question based on the text to be processed, and displays at least one question of the target questionnaire on the questionnaire generation page, the candidate question includes a candidate topic and an answer item corresponding to the candidate topic, and in response to a confirmation operation for a target candidate question in at least one candidate question, uses the target candidate question as at least one question of the target questionnaire.
[0078] This method supports automatic generation of questions in questionnaires. It provides a dialog window on the questionnaire generation page, obtains the text to be processed input by the user, identifies the user's intention for the questionnaire to be generated, generates candidate questions for the user to choose, and confirms the questions in the questionnaire when the user confirms that the candidate questions meet the requirements. In this way, the learning cost of users using questionnaire generation tools is reduced and the efficiency of questionnaire generation is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the technical method of the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.
[0080] Figure 1 A flowchart of a questionnaire generation method provided in an embodiment of the present application;
[0081] FIG. 2A to FIG. 2F A schematic diagram of a questionnaire generation page provided in an embodiment of the present application;
[0082] Figure 3 A schematic diagram of the structure of a questionnaire generation system provided in an embodiment of the present application;
[0083] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0084] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0085] First, some technical terms involved in the embodiments of the present application are introduced.
[0086] A questionnaire is a series of questions designed to collect information about users' attitudes, values, and opinions on a specific topic. In other words, a questionnaire can be used to collect information. A questionnaire can usually include multiple different types of questions, such as open-ended questions and closed-ended questions. Among them, closed-ended questions can also specifically include multiple-choice questions, scoring questions, etc.
[0087] With the continuous development of computer technology, questionnaires have gradually changed from offline distribution to online distribution, and tools for generating questionnaires have emerged. Among them, the tools for generating questionnaires can be questionnaire generation tools such as questionnaire platforms and questionnaire systems. In some examples, the above-mentioned questionnaire generation tools can be independent software systems, such as independent applications (applications, APPs) or mini-programs. In other examples, the above-mentioned questionnaire generation tools can also be deployed in other systems, such as deployed in a business platform, as a system module of the business platform to provide questionnaire generation services to users.
[0088] When a user generates a questionnaire using the questionnaire generation tool, the user can use the questionnaire generation tool to formulate multiple questions related to a specific topic, thereby generating a questionnaire. Specifically, the user can set the titles of multiple questions according to the topic of the questionnaire, and then set the answer items of multiple questions according to the question type. For example, for a question with a multiple-choice question type, multiple options are set, and for a question with a scoring question type, the way to express the score is set.
[0089] However, the above method requires users to spend a high learning cost, and users need to manually set and modify questionnaire questions, and the questionnaire generation efficiency is low.
[0090] In view of this, the present application provides a questionnaire generation method. The method, in response to a generation trigger operation of a questionnaire generation page, obtains a to-be-processed text input by a user in a dialog window, wherein the dialog window is used to receive content input by the user, and the to-be-processed text is used to indicate the generation of a target questionnaire, then generates at least one candidate question based on the to-be-processed text, and displays at least one question of the target questionnaire on the questionnaire generation page, wherein the candidate question includes a candidate topic and an answer item corresponding to the candidate topic, and in response to a confirmation operation for a target candidate question in at least one candidate question, uses the target candidate question as at least one question of the target questionnaire.
[0091] This method supports automatic generation of questions in questionnaires. It provides a dialog window on the questionnaire generation page, obtains the text to be processed input by the user, identifies the user's intention for the questionnaire to be generated, generates candidate questions for the user to choose, and confirms the questions in the questionnaire when the user confirms that the candidate questions meet the requirements. In this way, the learning cost of users using questionnaire generation tools is reduced and the efficiency of questionnaire generation is improved.
[0092] To facilitate understanding of the technical solution provided by the embodiments of the present application, it will be described below with reference to the accompanying drawings.
[0093] See also Figure 1 The embodiment of the present application provides a flowchart of a questionnaire generation method, which specifically includes:
[0094] S101: In response to a generation trigger operation of a questionnaire generation page, obtaining a text to be processed input by a user in a dialog window.
[0095] The questionnaire generation page is a page for generating a questionnaire. In some embodiments, the questionnaire generation page may be a graphical user interface (GUI). In other embodiments, the questionnaire generation page may be a command user interface (CUI).
[0096] Depending on the application scenario, the questionnaire generation page can have different forms of expression. For example, when a user uses an independent questionnaire generation tool to generate a questionnaire, the questionnaire generation page can be a page loaded in the client corresponding to the questionnaire generation tool. For another example, when a user uses a questionnaire generation tool deployed in other systems (such as a business platform) to generate a questionnaire, the questionnaire generation page can be a page loaded in the client corresponding to the other system. For another example, when a user uses a questionnaire generation tool that can be used online to generate a questionnaire, the questionnaire generation page can be a page displayed in a browser.
[0097] The generation trigger operation is an operation that triggers the generation of a questionnaire. Depending on the triggering method, the generation trigger operation may be different. For example, the generation trigger operation may include one or more of a mouse click control operation, a touch control operation, a shortcut key operation, or a voice command trigger operation.
[0098] The dialogue window is used to receive content input by the user. For example, the dialogue window can receive content input by the user in the form of a chat robot, thereby providing a questionnaire generation service to the user.
[0099] In some embodiments, the questionnaire generation page may directly display a dialog window. In this case, in response to a trigger operation on the dialog window in the questionnaire generation page, the text to be processed entered by the user in the dialog window may be obtained. In other embodiments, the questionnaire generation page may not directly display a dialog window, but only display a dialog control. In this case, in response to a trigger operation on a dialog control in the questionnaire generation page, a dialog window may be displayed on the questionnaire generation page, and the text to be processed entered by the user in the dialog window may be obtained.
[0100] The embodiments of the present application support users to input the text to be processed in different ways. For example, the user can input text through a keyboard, and the input text is the text to be processed. For another example, when the device used by the user supports voice input, the user can also input voice, and the text to be processed can be obtained by converting the voice input by the user into text.
[0101] The text to be processed can be used to instruct the generation of a target questionnaire. A questionnaire refers to a series of questions designed for a specific topic, and a target questionnaire can be a questionnaire to be generated that meets the needs of the user. Generally, the text to be processed can be a text described by the user in natural language to express the requirements of the target questionnaire. For example, the text to be processed can include requirements such as the subject of the target questionnaire and the number of questions in the target questionnaire.
[0102] S102: Generate at least one candidate question based on the text to be processed, and display the at least one candidate question on the questionnaire generation page.
[0103] Among them, the candidate questions may include a topic and an answer item corresponding to the topic. Specifically, the topic may have different topic types (also referred to as question types for short), and the topic types include but are not limited to essay questions, single-choice questions, multiple-choice questions, scoring questions, true-or-false questions, etc. Correspondingly, depending on the type of the topic, the answer item corresponding to the topic also has different forms of expression. For example, when the topic type is a essay question, the answer item may be a text box instructing the user to enter the answer. For another example, when the topic type is a single-choice question or a multiple-choice question, the answer item corresponding to the topic may be a plurality of options for the user to select. For another example, when the topic type is a true-or-false question, the answer item corresponding to the topic may be a judgment button indicating "yes" or "no".
[0104] In specific implementation, natural language processing can be performed on the text to be processed to identify the user's needs for the target questionnaire, thereby generating at least one candidate question. Natural language processing (NLP) refers to the technology of using the natural language used by humans to communicate with machines.
[0105] In some possible implementations, the text to be processed may be input into a question generation model to generate at least one candidate question. The question generation model may be a model with semantic understanding and semantic analysis functions and natural language processing capabilities, such as a deep learning model trained using a large amount of text data.
[0106] In some embodiments, the question generation model may be a model deployed in a questionnaire generation tool, and at least one candidate question may be directly generated by inputting the text to be processed into the question generation model. In other embodiments, the question generation model may also be an external model, and at least one candidate question may be generated by calling the question generation model after obtaining the text to be processed.
[0107] In the embodiment of the present application, artificial intelligence technology (such as a question generation model) is connected to the questionnaire generation tool, so that the questionnaire generation tool has the ability of natural language processing. In this way, candidate questions can be generated only through the natural language input by the user, without the need for the user to manually add questions.
[0108] Taking into account that the generated candidate questions may not meet user needs, in an embodiment of the present application, after generating at least one candidate question, at least one candidate question may be displayed on the questionnaire generation page so that the user can confirm the question.
[0109] In specific implementation, the title of at least one candidate question can be displayed on the questionnaire generation page, and, based on the title type of the question and the display rules corresponding to the title type, the answer items corresponding to the title of at least one candidate question can be displayed on the questionnaire generation page.
[0110] In other words, the embodiments of the present application support displaying candidate questions in different display modes. Specifically, when the question type is a question-and-answer question, the display rule may be to display a text box. When the question type is a single-choice question or a multiple-choice question, the display rule may be to display multiple options, such as displaying multiple options and selection boxes corresponding to the options in the form of a list on the questionnaire generation page. When the question type is a scoring question, the display rule may be to display a score mark, such as displaying multiple blank score marks on the questionnaire generation page, and users can score by selecting score marks. For example, when there are 5 blank score marks, the user selects 3 score marks, which means 60 points, and the user selects 4 score marks, which means 80 points.
[0111] S103: In response to a confirmation operation on a target candidate question among the at least one candidate question, taking the target candidate question as at least one question of the target questionnaire.
[0112] The confirmation operation is an operation for confirming that the candidate question is a question in the target questionnaire. In other words, the user can trigger the confirmation operation for the candidate question that meets the requirements of the target questionnaire, thereby taking the candidate question as a question in the target questionnaire.
[0113] In some embodiments, the target candidate question may be one or more candidate questions, and the user may perform confirmation operations respectively, thereby selecting a target candidate question that meets the user's needs from at least one candidate question of the target questionnaire, and using the target candidate question that meets the user's needs as at least one question of the target questionnaire. For example, the candidate questions may be candidate question 1, candidate question 2, candidate question 3, and candidate question 4. By displaying the above candidate questions on the questionnaire generation page, the user performs confirmation operations on the above candidate questions respectively, and uses candidate question 1, candidate question 2, and candidate question 4 that meet the user's needs as target candidate questions. In this way, the questions of the target questionnaire include candidate question 1, candidate question 2, and candidate question 4, but not candidate question 3.
[0114] In other embodiments, the user can perform a one-time confirmation operation on all candidate questions, that is, perform a confirmation operation on all currently generated candidate questions, so that all candidate questions are used as questions of the target questionnaire, or all candidate questions are not used as questions of the target questionnaire. For example, the candidate questions may be candidate question 1, candidate question 2, candidate question 3, and candidate question 4. By displaying the above candidate questions on the questionnaire generation page, the user can make a judgment. When all candidate questions meet the user's needs, the confirmation operation can be triggered for the candidate questions, so that candidate question 1, candidate question 2, candidate question 3, and candidate question 4 are all used as questions of the target questionnaire. When the candidate questions do not meet the user's needs, the confirmation operation may not be triggered for the candidate questions, or the abandonment operation may be triggered for the candidate questions, so that candidate question 1, candidate question 2, candidate question 3, and candidate question 4 are not used as questions of the target questionnaire.
[0115] Furthermore, the embodiment of the present application supports regeneration of candidate questions. In specific implementation, when at least one candidate question does not meet user requirements, the user can trigger a retry operation for at least one candidate question in the dialogue window. In response to the retry operation for at least one candidate question in the dialogue window, at least one candidate question is regenerated, and the at least one regenerated candidate question is displayed on the questionnaire generation page.
[0116] Similar to the confirmation operation for at least one candidate question, in some embodiments, a retry operation can be performed for one or more candidate questions in the candidate questions, so as to regenerate the corresponding candidate questions. For example, the candidate questions can be candidate question 1, candidate question 2, candidate question 3, and candidate question 4. By displaying the above candidate questions on the questionnaire generation page, the user can trigger a retry operation for candidate question 1 and candidate question 2 that do not meet the user's needs in the dialogue window, and in response to the retry operation, candidate question 1 and candidate question 2 can be regenerated.
[0117] In other embodiments, the user can retry all candidate questions, thereby regenerating all candidate questions. For example, the candidate questions may be candidate question 1, candidate question 2, candidate question 3, and candidate question 4. By displaying the above candidate questions on the questionnaire generation page, the user can make a judgment. When all candidate questions do not meet the user's needs, the user can retry all candidate questions in the dialogue window, thereby regenerating candidate question 1, candidate question 2, candidate question 3, and candidate question 4.
[0118] In the embodiment of the present application, the user can trigger the retry operation in different ways. In some possible implementations, the dialog window can display a retry control, and the user can trigger the retry control, so that in response to the triggering operation of the retry control in the dialog window, at least one candidate question is regenerated, thereby quickly regenerating the candidate question through the retry control.
[0119] In some other possible implementations, the user may input a third text to be processed, and the third text to be processed may be used to instruct to regenerate the candidate question. In this way, the third text to be processed input by the user in the dialog window is obtained, and at least one candidate question is regenerated according to the third text to be processed, thereby supporting the user to regenerate the candidate question by inputting natural language.
[0120] Furthermore, the embodiment of the present application also supports the generation of questions with candidate questions as the granularity. Specifically, the generation of the target questionnaire (i.e., the candidate questions of the target questionnaire) or the generation of a single candidate question can be executed according to the different areas where the trigger operation is generated in the questionnaire generation page (i.e., the location of the dialog window).
[0121] In some possible implementations, in response to a generation trigger operation of a questionnaire generation page, a first text to be processed input by a user in a first dialog window is obtained, the first text to be processed is used to indicate the generation of a target questionnaire, the first dialog window is located in the first area of the questionnaire generation page, then at least one first candidate question is generated based on the first text to be processed, and the at least one first candidate question is displayed on the questionnaire generation page. Then, in response to a generation trigger operation of a questionnaire generation page, a second text to be processed input by a user in a second dialog window is obtained, the text to be processed is used to indicate the generation of a candidate question, the second dialog window is located in the second area of the questionnaire generation page, then a second candidate question is generated based on the second text to be processed and the at least one first candidate question.
[0122] In other words, the embodiment of the present application identifies the user's intention by the different areas where the dialog window is located, and determines whether to generate the entire target questionnaire or a single candidate question. When the user's intention indicates to generate a single candidate question, the second to-be-processed text input by the user and the existing candidate questions can be combined for natural language processing to generate a second candidate question that meets the user's needs.
[0123] After determining the questions of the target questionnaire, a target table can be generated according to the target questionnaire. The target table can be used to count the questionnaire results of the target questionnaire, and the fields of the target table correspond to the questions of the target questionnaire.
[0124] In specific implementation, the field names of the fields in the target table can correspond to the titles of the questions in the target questionnaire, and the field types of the fields in the target table can correspond to the title types of the questions in the target questionnaire. In other words, the titles of the questions in the target questionnaire can be converted into the field names of the fields in the target table, and the title types of the questions in the target questionnaire can be converted into the field types of the fields in the target table. For example, a question with a multiple-choice title type can be converted into a multiple-choice field, and in this case, the field attributes of the field can include multiple options. For another example, a question with a scoring title type can be converted into a scoring field, and in this case, the field attributes of the field can include a score.
[0125] In order to facilitate the statistics of questionnaire results, the target table may also include fields for counting questionnaire results, such as fields for counting submitters (i.e., users who answer the target questionnaire) and fields for counting submission time (i.e., the time when the target questionnaire is answered). In this way, when a user answers the target questionnaire, the questionnaire results can be stored in the corresponding fields of the target table, thereby realizing the statistics of questionnaire results.
[0126] Furthermore, the embodiment of the present application also supports the user to modify the target questionnaire by modifying the target table. In specific implementation, in response to the modification operation on the field name of the target field in the target table, the title of the target question corresponding to the target field in the target questionnaire can be updated, or in response to the modification operation on the field attribute of the target field in the target table, the modification operation of the target questionnaire can be updated to update the answer items of the target question corresponding to the target field in the target questionnaire. In other words, the target questionnaire is bidirectionally associated with the target table. When the user modifies a field in the target table, the title of the corresponding position in the target questionnaire will also be modified accordingly, which is convenient for questionnaire management.
[0127] Based on the above description, an embodiment of the present application provides a questionnaire generation method. The method responds to a generation trigger operation of a questionnaire generation page, obtains a to-be-processed text input by a user in a dialog window, wherein the dialog window is used to receive the content input by the user, and the to-be-processed text is used to indicate the generation of a target questionnaire, then generates at least one candidate question based on the to-be-processed text, and displays at least one question of the target questionnaire on the questionnaire generation page, the candidate question includes a candidate question and an answer item corresponding to the candidate question, and in response to a confirmation operation for a target candidate question in at least one candidate question, uses the target candidate question as at least one question of the target questionnaire.
[0128] This method supports automatic generation of questions in questionnaires. It provides a dialog window on the questionnaire generation page, obtains the text to be processed input by the user, identifies the user's intention for the questionnaire to be generated, generates candidate questions for the user to choose, and confirms the questions in the questionnaire when the user confirms that the candidate questions meet the requirements. In this way, the learning cost of users using questionnaire generation tools is reduced and the efficiency of questionnaire generation is improved.
[0129] Next, the questionnaire generation method provided in this application will be explained in conjunction with specific application scenarios.
[0130] See also FIG. 2A to FIG. 2F The diagram shows a questionnaire generation page. The questionnaire generation page may be a page in a questionnaire generation tool. A user may generate a target questionnaire through the questionnaire generation page.
[0131] like Figure 2A As shown, the questionnaire generation page 20 includes a dialogue window 201 and a question adding area 202. Among them, the dialogue window 201 is usually located in the upper half of the questionnaire generation page 20, and the dialogue window 201 is used to trigger the questionnaire generation operation and obtain the text to be processed. Specifically, the user can generate a generation trigger operation by clicking the dialogue window 201, and then the user can enter the text to be processed in the dialogue window 201, and the text to be processed can be used to indicate the generation of the target questionnaire. For example, the text to be processed can be "Create a questionnaire with the theme of programmers' favorite development language". In this way, the user can realize the automatic generation of the questionnaire by entering natural language in the dialogue window 201.
[0132] In some possible implementations, the questionnaire generation page 20 may not directly display the dialogue window 201, but only display the dialogue control. When the user triggers the dialogue control, the dialogue window 201 is displayed again, so as to obtain the text to be processed input by the user in the dialogue window 201.
[0133] The question adding area 202 is usually located below the dialog window 201, and is used to manually add questions. In some embodiments, the user may not use the function of automatically generating a questionnaire provided by the dialog window 201, but may choose to manually add questions. In this case, the user may add a topic in the question adding area 202, such as adding a question description, question options, etc. In this way, the user may generate a questionnaire by manually adding questions in the question adding area 202.
[0134] In some possible implementations, in response to the generation trigger operation of the questionnaire generation page, at least one auxiliary text may be displayed, and the auxiliary text is used to assist the user in inputting the text to be processed. Figure 2B As shown, the questionnaire generation page 20 includes an auxiliary text display area 203. The auxiliary text display area 203 is usually located below the dialog window 201. For example, the auxiliary text display area 203 can display auxiliary texts in the form of a drop-down menu. Specifically, when the user clicks the dialog window 201, in response to the generation trigger operation of the questionnaire generation page 20, at least one auxiliary text can be displayed in the auxiliary text display area 203. For example, the auxiliary text can be "create a survey questionnaire" or "create an information collection form". The user can perform a selection operation on the auxiliary text displayed in the auxiliary text display area 203, so that the text to be processed can be input based on the auxiliary text to improve the efficiency of questionnaire generation. For example, after the user selects the auxiliary text "create an information collection form", the text to be processed can be input based on the auxiliary text, and the final text to be processed can be "create an information collection form to collect programmers' preferences for different development languages".
[0135] The embodiment of the present application supports the automatic generation of the entire target questionnaire or a single candidate question, such as Figure 2C As shown, the questionnaire generation page 20 includes a first dialog window 201, a candidate question display area 204, a question adding control 205, and a second dialog window 206. The first dialog window 201 is used to obtain a first text to be processed, and the first text to be processed is used to instruct the generation of a target questionnaire. For example, the first text to be processed may be "create a questionnaire with the theme of programmers' favorite development language".
[0136] The candidate question display area 204 is used to display candidate questions. Specifically, at least one candidate question can be generated based on the first text to be processed, and the candidate question can be displayed in the candidate question display area 204. For example, the candidate question can be "Do you have programming experience?" The question type of the candidate question is a single-choice question, and the corresponding options can be "yes" or "no".
[0137] The question adding control 205 is used to trigger the question adding operation. Specifically, the user can trigger the adding operation of the candidate question by clicking the question adding control 205. After the adding operation of the candidate question is triggered, the second dialog window 206 is displayed.
[0138] The second dialog window 206 is used to obtain the second text to be processed, and the second text to be processed is used to indicate the generation of candidate questions. In this way, candidate questions can be further generated according to the second text to be processed and the existing candidate questions (i.e., the candidate questions displayed in the candidate question display area 204), so as to realize the automatic generation of a single candidate question. Further, the second dialog window 206 may include at least one auxiliary control, and the auxiliary control may be used to assist the user in inputting the second text to be processed. For example, the auxiliary control may be used to indicate the type of question of the candidate question, and may specifically include an auxiliary control indicating that the question type is a question-and-answer question, an auxiliary control indicating that the question type is a single-choice question, an auxiliary control indicating that the question type is a multiple-choice question, and an auxiliary control indicating that the question type is a scoring question. The user can select the auxiliary control, and on the basis of the question type indicated by the auxiliary control, input the second text to be processed, thereby improving the efficiency of candidate question generation.
[0139] After generating candidate questions for the target questionnaire, the user can process all candidate questions for the target questionnaire. Figure 2D As shown, the questionnaire generation page 20 includes a dialog window 201, a candidate question display area 204 and a questionnaire processing area 207. The questionnaire processing area 207 is used to process all candidate questions, for example, to determine all candidate questions as questions of the target questionnaire, or to regenerate all candidate questions, or to abandon all candidate questions.
[0140] Specifically, the questionnaire processing area 207 may include a quick processing control, a third dialog window, and an auxiliary text display bar. The quick processing control is used to process all candidate questions. For example, the quick processing control may include a control for confirming all candidate questions, a control for retrying all candidate questions, and a control for abandoning all candidate questions. The user may confirm, retry, or abandon all candidate questions by triggering the quick processing control.
[0141] The third dialog window is used to receive text input by the user, and the text input by the user can be used to indicate the processing operation for all candidate questions. For example, the user can enter "keep questions 1, 2, and 3, and regenerate question 4" in the third dialog window, which indicates that questions 1, 2, and 3 are determined as questions of the target questionnaire, and question 4 is regenerated.
[0142] The auxiliary text display bar is used to display at least one auxiliary text, which can be used to assist the user in inputting text indicating processing operations for all candidate questions. For example, the auxiliary text may include "generate more questions", "generate a more detailed questionnaire" or "generate a shorter questionnaire". The user can select the auxiliary text displayed in the auxiliary text box, and then input the text indicating processing operations for all candidate questions based on the auxiliary text, so as to facilitate the questionnaire generation tool to understand the user's intention and generate a target questionnaire that better meets the user's needs.
[0143] Similarly, users can also process a candidate question individually. Figure 2E As shown, the questionnaire generation page 20 includes a dialog window 201, a candidate question display area 204 and a candidate question processing area 208. The candidate question processing area 208 is used to process a candidate question individually, for example, to determine a candidate question as a question of the target questionnaire, or to regenerate a candidate question, or to abandon a candidate question.
[0144] Specifically, the candidate question processing area 208 may include a quick processing control, a fourth dialog window, and an auxiliary text display bar. The quick processing control is used to perform a separate process on a candidate question. For example, the quick processing control may include a control for confirming a candidate question, a control for retrying a candidate question, and a control for abandoning a candidate question. The user may confirm, retry, or abandon a candidate question by triggering the quick processing control.
[0145] The fourth dialog window is used to receive text input by the user, and the text input by the user can be used to indicate a processing operation for a candidate question. For example, the user can enter "regenerate a more detailed second question" in the fourth dialog window, thus indicating to regenerate the second question.
[0146] The auxiliary text display bar is used to display at least one auxiliary text, and the auxiliary text can be used to assist the user in inputting text indicating the processing operation for a candidate question. For example, the auxiliary text may include "add option" or "reduce option". The user can select the auxiliary text displayed in the auxiliary text box, and then input the text indicating the processing operation for a candidate question based on the auxiliary text, so as to facilitate the questionnaire generation tool to understand the user's intention and generate candidate questions that better meet the user's needs.
[0147] After determining the questions in the target questionnaire, you can present the target questionnaire to the user. Figure 2FAs shown, the questionnaire generation page 20 includes a questionnaire display area 209. The questionnaire display area 209 is used to display the questions of the target questionnaire. For questions of different question types, corresponding display rules can be used for display. For example, for questions of single-choice questions or multiple-choice questions, the question and multiple options can be displayed. Furthermore, for single-choice questions and multiple-choice questions, different display effects can be used for display, for example, the selection box of a single-choice question is represented by a circle, and the selection box of a multiple-choice question is represented by a box.
[0148] After determining the questions of the target questionnaire, you can also generate a corresponding target table. The target table can be shown in Table 1:
[0149] Table 1
[0150] Submission time Submitted by Do you have programming experience? Favorite programming language is 2023 / 07 / 10 A yes Python
[0151] As can be seen from Table 1, the field names of the fields in the target table correspond to the titles of the questions in the target questionnaire, and the field types of the fields in the target table correspond to the title types of the questions in the target questionnaire (not all fields are shown in Table 1). In addition, the target table may also include fields for counting questionnaire results, namely, a submission time field and a submitter field. In this way, the target questionnaire results can be counted through the target table, achieving efficient questionnaire management.
[0152] Combination of the above Figure 1 2 and 3 provide a detailed introduction to the questionnaire generation method provided in the embodiment of the present application. The system and device provided in the embodiment of the present application will be introduced below in conjunction with the accompanying drawings.
[0153] See also Figure 3 The structure diagram of the questionnaire generation system shown in FIG. 30 includes:
[0154] The acquisition module 301 is used to acquire the text to be processed input by the user in the dialogue window in response to the generation trigger operation of the questionnaire generation page, wherein the dialogue window is used to receive the content input by the user, and the text to be processed is used to indicate the generation of the target questionnaire;
[0155] A generating module 302, configured to generate at least one candidate question according to the text to be processed;
[0156] A display module 303, configured to display the at least one candidate question on the questionnaire generation page, wherein the candidate question includes a title and an answer item corresponding to the title;
[0157] The determination module 304 is configured to, in response to a confirmation operation on a target candidate question among the at least one candidate question, use the target candidate question as at least one question of the target questionnaire.
[0158] In some possible implementations, the acquisition module 301 is specifically used to:
[0159] In response to a trigger operation on a dialog window in a questionnaire generation page, obtaining a text to be processed input by a user in the dialog window; or,
[0160] In response to a triggering operation on a dialog control in a questionnaire generation page, displaying a dialog window on the questionnaire generation page;
[0161] Get the text to be processed entered by the user in the dialog window.
[0162] In some possible implementations, the generating module 302 is specifically configured to:
[0163] The text to be processed is input into a question generation model to generate at least one candidate question.
[0164] In some possible implementations, the display module 303 is specifically used to:
[0165] The title of at least one candidate question is displayed on the questionnaire generation page, and, based on the title type of the question and using a display rule corresponding to the title type, the answer items corresponding to the title of the at least one candidate question are displayed on the questionnaire generation page.
[0166] In some possible implementations, the generating module 302 is further configured to:
[0167] A target table is generated according to the target questionnaire, and the target table is used to count the questionnaire results of the target questionnaire. The fields of the target table correspond to the questions of the target questionnaire.
[0168] In some possible implementations, the generating module 302 is specifically configured to:
[0169] The field names of the fields in the target table correspond to the titles of the questions in the target questionnaire; and,
[0170] The field types of the fields in the target table correspond to the title types of the questions in the target questionnaire.
[0171] In some possible implementations, the system 30 further includes:
[0172] An update module is used to update the title of the target question corresponding to the target field in the target questionnaire in response to a modification operation on the field name of the target field in the target table; or, in response to a modification operation on the field attributes of the target field in the target table, update the answer items of the target question corresponding to the target field in the target questionnaire.
[0173] In some possible implementations, the acquisition module 301 is specifically used to:
[0174] In response to a generation trigger operation of a questionnaire generation page, obtaining a first to-be-processed text input by a user in a first dialogue window, wherein the first to-be-processed text is used to indicate generation of a target questionnaire, and the first dialogue window is located in a first area of the questionnaire generation page;
[0175] The generating module 302 is specifically used for:
[0176] generating at least one first candidate question according to the first text to be processed, and displaying the at least one first candidate question on the questionnaire generation page;
[0177] The acquisition module 301 is also used for:
[0178] In response to a generation trigger operation of the questionnaire generation page, obtaining a second text to be processed input by a user in a second dialogue window, wherein the second text to be processed is used to indicate generation of candidate questions, and the second dialogue window is located in a second area of the questionnaire generation page;
[0179] The generating module 302 is further used for:
[0180] A second candidate question is generated according to the second text to be processed and the at least one first candidate question.
[0181] In some possible implementations, the generating module 302 is further configured to:
[0182] In response to a retry operation on the at least one candidate question in the dialog window, the at least one candidate question is regenerated, and the at least one regenerated candidate question is displayed on the questionnaire generation page.
[0183] In some possible implementations, the generating module 302 is specifically configured to:
[0184] In response to a triggering operation on a retry control in the dialog window, regenerating the at least one candidate question; or,
[0185] Acquire a third text to be processed input by the user in the dialog window, wherein the third text to be processed is used to instruct to regenerate the candidate question;
[0186] The at least one candidate question is regenerated based on the third text to be processed.
[0187] The questionnaire generation system 30 according to the embodiment of the present application may correspond to the method described in the embodiment of the present application, and the above and other operations and / or functions of each module / unit of the questionnaire generation system 30 are respectively to implement Figure 1 For the sake of brevity, the corresponding processes of each method in the illustrated embodiment are not described in detail here.
[0188] The present application also provides an electronic device. The electronic device is specifically used to implement Figure 3 The functions of the questionnaire generation system 30 in the illustrated embodiment.
[0189] Figure 4 A schematic diagram of the structure of an electronic device 400 is provided. Figure 4 As shown, the electronic device 400 includes a bus 401, a processor 402, a communication interface 403 and a memory 404. The processor 402, the memory 404 and the communication interface 403 communicate with each other via the bus 401.
[0190] The bus 401 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0191] The processor 402 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0192] The communication interface 403 is used for communicating with the outside. For example, the communication interface 403 can be used for communicating with a terminal.
[0193] The memory 404 may include a volatile memory, such as a random access memory (RAM). The memory 404 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0194] The memory 404 stores executable codes, and the processor 402 executes the executable codes to perform the aforementioned questionnaire generation method.
[0195] Specifically, in implementing Figure 3 In the case of the embodiment shown, and Figure 3 When each module or unit of the questionnaire generation system 30 described in the embodiment is implemented by software, Figure 3 The software or program code required for the functions of each module / unit in the system may be partially or completely stored in the memory 404. The processor 402 executes the program code corresponding to each unit stored in the memory 404 to perform the aforementioned questionnaire generation method.
[0196] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the questionnaire generation method applied to the questionnaire generation system 30.
[0197] The embodiment of the present application further provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part.
[0198] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer or data center to another website, computer or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0199] When the computer program product is executed by a computer, the computer executes any of the aforementioned questionnaire generation methods. The computer program product may be a software installation package, and when any of the aforementioned information identification methods is required, the computer program product may be downloaded and executed on a computer.
[0200] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to each embodiment of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0201] The units involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the unit / module does not, in some cases, constitute a limitation on the unit itself.
[0202] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0203] In the context of the present application embodiment, machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable medium can include but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0204] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0205] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0206] It should also 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 also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0207] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0208] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A questionnaire generation method, characterized in that: The method comprises: In response to a generation trigger operation of a questionnaire generation page, obtaining a text to be processed input by a user in a dialog window, wherein the dialog window is used to receive content input by the user, and the text to be processed is used to indicate generation of a target questionnaire; Generate at least one candidate question according to the text to be processed, and display the at least one candidate question on the questionnaire generation page, wherein the candidate question includes a title and an answer item corresponding to the title; In response to a confirmation operation on a target candidate question among the at least one candidate question, the target candidate question is used as at least one question of the target questionnaire.
2. The method according to claim 1, characterized in that The step of obtaining the text to be processed input by the user in the dialog window in response to the generation trigger operation of the questionnaire generation page includes: In response to a trigger operation on a dialog window in a questionnaire generation page, obtaining a text to be processed input by a user in the dialog window; or, In response to a triggering operation on a dialog control in a questionnaire generation page, displaying a dialog window on the questionnaire generation page; Get the text to be processed entered by the user in the dialog window.
3. The method according to claim 1, characterized in that The step of generating at least one candidate question according to the text to be processed comprises: The text to be processed is input into a question generation model to generate at least one candidate question.
4. The method according to claim 1, characterized in that: The displaying of the at least one candidate question on the questionnaire generation page includes: The title of at least one candidate question is displayed on the questionnaire generation page, and, based on the title type of the question and using a display rule corresponding to the title type, the answer items corresponding to the title of the at least one candidate question are displayed on the questionnaire generation page.
5. The method according to claim 1, characterized in that The method further comprises: A target table is generated according to the target questionnaire, and the target table is used to count the questionnaire results of the target questionnaire. The fields of the target table correspond to the questions of the target questionnaire.
6. The method according to claim 5, characterized in that The fields of the target table correspond to the questions of the target questionnaire, including: The field names of the fields in the target table correspond to the titles of the questions in the target questionnaire; and, The field types of the fields in the target table correspond to the title types of the questions in the target questionnaire.
7. The method according to claim 6, characterized in that The method further comprises: In response to a modification operation on a field name of a target field in the target table, updating the title of a target question corresponding to the target field in the target questionnaire; or, In response to a modification operation on a field property of a target field in the target table, an answer item of a target question corresponding to the target field in the target questionnaire is updated.
8. The method according to claim 1, characterized in that The step of obtaining the text to be processed input by the user in the dialog window in response to the generation trigger operation of the questionnaire generation page includes: In response to a generation trigger operation of a questionnaire generation page, obtaining a first to-be-processed text input by a user in a first dialogue window, wherein the first to-be-processed text is used to indicate generation of a target questionnaire, and the first dialogue window is located in a first area of the questionnaire generation page; The step of generating at least one candidate question according to the text to be processed and displaying the at least one candidate question on the questionnaire generation page includes: generating at least one first candidate question according to the first text to be processed, and displaying the at least one first candidate question on the questionnaire generation page; The method further comprises: In response to a generation trigger operation of the questionnaire generation page, obtaining a second text to be processed input by a user in a second dialogue window, wherein the second text to be processed is used to indicate generation of candidate questions, and the second dialogue window is located in a second area of the questionnaire generation page; A second candidate question is generated according to the second text to be processed and the at least one first candidate question.
9. The method according to claim 1, characterized in that: The method further comprises: In response to a retry operation on the at least one candidate question in the dialog window, the at least one candidate question is regenerated, and the at least one regenerated candidate question is displayed on the questionnaire generation page.
10. The method according to claim 9, characterized in that In response to a retry operation on the at least one candidate question in the dialog window, regenerating the at least one candidate question comprises: In response to a triggering operation on a retry control in the dialog window, regenerating the at least one candidate question; or, Acquire a third text to be processed input by the user in the dialog window, wherein the third text to be processed is used to instruct to regenerate the candidate question; The at least one candidate question is regenerated based on the third text to be processed.
11. A questionnaire generation system, characterized in that: The system comprises: An acquisition module, for acquiring the text to be processed input by the user in a dialogue window in response to a generation trigger operation of the questionnaire generation page, wherein the dialogue window is used to receive the content input by the user, and the text to be processed is used to indicate the generation of a target questionnaire; A generating module, used for generating at least one candidate question according to the text to be processed; A display module, configured to display the at least one candidate question on the questionnaire generation page, wherein the candidate question includes a title and an answer item corresponding to the title; The determination module is used to respond to a confirmation operation on a target candidate question among the at least one candidate question and use the target candidate question as at least one question of the target questionnaire.
12. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The method comprises instructions, wherein the instructions instruct an electronic device to execute the method according to any one of claims 1 to 10.
