Questionnaire question display method, device and electronic device based on logic editor

The logic editor is used to generate and analyze the display logic of questionnaire questions, which solves the problem of low efficiency of complex logic settings in the existing technology and realizes efficient questionnaire design.

CN113761147BActive Publication Date: 2025-09-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110420630.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-19
Publication Date
2025-09-23
Estimated Expiration
2041-04-19

AI Technical Summary

Technical Problem

Existing questionnaire design systems are inefficient when setting complex logic, have a high threshold for question setters, require programming skills, and are difficult to operate.

Method used

A logic editor-based approach is adopted to obtain question display logic information, generate and parse display dependencies using logic keywords, determine the display strategy of questionnaire questions, reduce programming requirements and improve efficiency.

Benefits of technology

It simplifies the questionnaire logic setting process, reduces time and labor costs, and improves the efficiency of questionnaire design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113761147B_ABST
    Figure CN113761147B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for displaying questionnaire questions based on a logic editor, and relate to the field of artificial intelligence and natural language processing technology. The method includes: parsing the question display logic information of the first question to obtain the logic keywords corresponding to the first question, and determining the display dependency relationship between each first question and its corresponding second question based on the logic keywords corresponding to the first question, and after receiving the user's answer information to the second question, determining the display strategy of the first question based on the answer information of the second question and the above-mentioned dependency relationship to display the questionnaire question. Compared with the related art of writing a large amount of code for the questionnaire to be displayed, the present application only needs to write simple and easy-to-understand semantic logic keywords through a logic editor to generate question display logic information for the display of the questionnaire, thereby reducing the time and manpower costs of complex questionnaires.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence and natural language processing technology. Specifically, the present application relates to a questionnaire question display method, device, electronic device and computer-readable storage medium based on a logic editor. Background Art

[0002] Questionnaires are a tool used to collect data in social research. As various types of research in the market deepen, survey methods become increasingly refined, and the user groups surveyed expand into more niche areas, questionnaire design is becoming increasingly complex. Before issuing questionnaires and collecting survey data, question setters need to set the display logic for the questions in the questionnaire system. Existing questionnaire logic settings are typically implemented through GUI (Graphical User Interface) front-end components. This approach cannot handle complex logic and is difficult and inefficient when there are many questions and logic. Alternatively, existing questionnaire systems require question setters to edit a logic script specific to the rule, which the questionnaire system then generates based on. This approach clearly presents a high barrier to entry for question setters, requiring programming skills. Furthermore, manually writing logic scripts takes a long time, resulting in inefficiencies in setting questionnaire logic. Summary of the Invention

[0003] The purpose of this application is to solve at least one of the above technical deficiencies, especially the technical defect of low efficiency in implementing the logic for displaying questionnaire questions.

[0004] According to one aspect of the present application, a method for displaying questionnaire questions based on a logic editor is provided, the method comprising:

[0005] Obtaining question display logic information of a first question included in the questionnaire, where the question display logic information is generated by a logic editor based on at least one logic keyword used to characterize a display strategy for the first question;

[0006] Parsing the question display logic information of the first question to obtain the logical keywords corresponding to the first question, and determining the display dependency relationship between each first question and its corresponding second question based on the logical keywords corresponding to the first question, where the second question corresponding to the first question is the question displayed before the first question is displayed;

[0007] After receiving the user's answer information to the second question, based on the answer information to the second question and the display dependency relationship between each first question and its corresponding second question, a display strategy for the first question is determined to display the questionnaire questions.

[0008] In one possible implementation,

[0009] Logical keywords include:

[0010] At least one of a display condition keyword and a display method keyword.

[0011] In one possible implementation, the method further includes:

[0012] The logic information displayed on the question is updated in real time through the logic editor. The updating method includes correcting erroneous logic statements and completing at least one of incomplete logic statements. The logic statements are composed based on logic keywords.

[0013] In one possible implementation, the second topic includes at least one third topic, where the third topic is a topic displayed in a preset manner in response to the questionnaire being initiated. The method further includes:

[0014] Receive the user's answer information to the third question, and determine a display strategy for the first question based on the answer information to the third question and a display dependency relationship between the first question and its corresponding third question.

[0015] In a possible implementation, the display dependency relationship includes the relationship between the display condition of the first question and the answer information of the second question.

[0016] Determining a display strategy for the first question based on the answer information for the second question and the display dependency relationship between each first question and its corresponding second question includes:

[0017] When the received answer information corresponding to the second question matches the display condition of the first question, the first question is displayed.

[0018] In a possible implementation, the display dependency relationship also includes the relationship between the display mode of the first question and the answer information of the second question.

[0019] Determining a display strategy for the first question based on the answer information for the second question and the display dependency relationship between each first question and its corresponding second question includes:

[0020] Based on the relationship between the display manner of the first question and the answer information of the second question, the first question is displayed in a display manner corresponding to the answer information of the second question.

[0021] In one possible implementation, the display mode of the first question includes at least one of the following:

[0022] Replace part of the first question with the answer information of the second question,

[0023] Randomly arrange the order of multiple first questions,

[0024] Randomize the order of the answer options in the first question,

[0025] Hide one or more answer options for the first question.

[0026] In one possible implementation, the method further includes:

[0027] When the answer information of the second question and / or the answer information of the first question meets the preset questionnaire end conditions, the end page is displayed.

[0028] According to another aspect of the present application, a questionnaire question display device based on a logic editor is provided, the device comprising:

[0029] An acquisition module, configured to acquire question display logic information of a first question included in the questionnaire, wherein the question display logic information is generated by a logic editor based on at least one logic keyword used to characterize a display strategy for the first question;

[0030] a parsing module, configured to parse the question display logic information of the first question, obtain the logical keywords corresponding to the first question, and determine the display dependency relationship between each first question and its corresponding second question based on the logical keywords corresponding to the first question, where the second question corresponding to the first question is the question displayed before the first question is displayed;

[0031] The display module is used to determine the display strategy of the first question based on the answer information of the second question and the display dependency relationship between each first question and its corresponding second question after receiving the user's answer information to the second question, so as to display the questionnaire questions.

[0032] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:

[0033] one or more processors;

[0034] Memory;

[0035] One or more computer programs, wherein the one or more computer programs are stored in a memory and configured to be executed by one or more processors, and the one or more computer programs are configured to: execute the questionnaire question display method based on a logic editor as shown in the first aspect of the present application.

[0036] For example, a third aspect of the present application provides a computing device, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;

[0037] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the questionnaire question display method based on the logic editor as shown in the first aspect of the present application.

[0038] According to another aspect of the present application, a computer-readable storage medium is provided, and when the computer program is executed by a processor, the method for displaying questionnaire questions based on a logic editor as shown in the first aspect of the present application is implemented.

[0039] For example, the fourth aspect of the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for displaying questionnaire questions based on a logic editor shown in the first aspect of the present application is implemented.

[0040] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the first aspect described above.

[0041] The beneficial effects of the technical solution provided by this application are:

[0042] In the embodiment of the present application, since the question display logic information is generated by a logic editor based on at least one logic keyword used to characterize the display strategy of the first question, after parsing the question display logic information of the first question, the logic keyword corresponding to the first question is obtained, and the display dependency relationship between each first question and its corresponding second question is determined based on the logic keyword corresponding to the first question, thereby determining the display strategy of the first question based on the user's answer information and the display dependency relationship between each first question and its corresponding second question. Compared to the related art of writing a large amount of code or a large graphical component for the questionnaire to be displayed, the present application only needs to generate the question display logic information for the display of the questionnaire based on the semantic logic keyword used to characterize the question display strategy, and through the logic editor, thereby reducing the time and manpower costs in the implementation process of the complex questionnaire to be displayed, and improving the efficiency of designing the question display logic. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.

[0044] Figure 1 A schematic diagram of a system architecture provided in an embodiment of the present application;

[0045] Figure 2 This is a flowchart of a method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application;

[0046] Figure 3 This is a schematic diagram of one of the application scenarios of the questionnaire question display method based on the logic editor provided in an embodiment of the present application;

[0047] Figure 4 This is a second schematic diagram of an application scenario of the questionnaire question display method based on a logic editor provided in an embodiment of the present application;

[0048] Figure 5 The third schematic diagram of an application scenario of the method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application;

[0049] Figure 6 The second flowchart of a method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application;

[0050] Figure 7 This is one of the analytical schematic diagrams of a method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application;

[0051] Figure 8 This is a second analytical diagram of a method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application;

[0052] Figure 9 A schematic diagram of the structure of a questionnaire question display device based on a logic editor provided in an embodiment of the present application;

[0053] Figure 10 A schematic diagram of the structure of an electronic device for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limiting the present application.

[0055] It will be understood by those skilled in the art that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" used herein includes all or any units and all combinations of one or more associated listed items.

[0056] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0057] In related technologies, the setting of questionnaire logic is generally implemented through GUI front-end components, or by writing a large number of purchasing agents. This solution cannot meet the needs of complex logic, and is very difficult and inefficient to operate when there are many questions and logic, resulting in low efficiency in setting questionnaire logic.

[0058] The questionnaire question display method, device, electronic device and computer-readable storage medium based on a logic editor provided in this application are intended to solve the above technical problems of related technologies.

[0059] First, the nouns involved in this application are introduced and explained: In order to facilitate understanding and description, some key terms are first defined.

[0060] 1. Display Logic: Logical conditions are set on the questionnaire system's administration side. Questions are displayed only when the responses on the respondent side meet these conditions. During the user's response, questions are hidden or displayed based on the user's responses and the display logic. For example, if the administration side sets the display logic as "Select option 1 for question 1, display question 2," then if the user selects option 2 when responding to question 1, question 2 will be hidden, meaning it will not be displayed on the respondent side.

[0061] 2. Logical relationship: For example, "and" means "all conditions are met", and "or" means "any condition is met". When there are multiple logical conditions, these logical conditions create a logical combination relationship through logical rules.

[0062] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0063] The questionnaire question display method based on the logic editor of the embodiment of the present application can be implemented based on artificial intelligence technology. Artificial Intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0064] Artificial intelligence (AI) technology is a comprehensive discipline encompassing a wide range of fields, encompassing both hardware and software technologies. Foundational AI technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, speech processing, natural language processing, and machine learning / deep learning.

[0065] Natural language processing (NLP) is a key area of ​​research in computer science and artificial intelligence. It studies the theories and methods that enable effective communication between humans and computers using natural language. Natural language processing (NLP) integrates linguistics, computer science, and mathematics. Therefore, research in this field involves natural language—the language we use in everyday life—and is closely linked to the study of linguistics. Natural language processing technologies typically include text processing, semantic understanding, machine translation, robotic question answering, and knowledge graphs.

[0066] The following combination Figure 1 The system architecture of the embodiment of the present application is described. Figure 1 This is a schematic diagram of a system architecture provided by an embodiment of the present application. Figure 1As shown, the system may include a server 10a and a user terminal cluster, and the user terminal cluster may include: user terminal 10b, user terminal 10c, ..., user terminal 10d, wherein a communication connection may exist between the user terminal clusters, for example, a communication connection exists between user terminal 10b and user terminal 10c, and a communication connection exists between user terminal 10b and user terminal 10d. At the same time, any user terminal in the user terminal cluster may have a communication connection with the server 10a, for example, a communication connection exists between user terminal 10b and server 10a, and a communication connection exists between user terminal 10c and server 10a, wherein the above-mentioned communication connection does not limit the connection method, and may be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, or through other methods, and this application does not make any restrictions here.

[0067] Server 10a provides services to the user terminal cluster via a communication connection function. Server 10a may be the backend server of the research platform. User terminals 10b, 10c, ..., 10d may all access the research platform via the communication connection function. The network for the communication connection may be a wide area network (WAN), a local area network (LAN), or a combination of the two.

[0068] In the embodiment of the present application, the questionnaire question display method based on the logic editor can be implemented by the server 10a or by the terminal device.

[0069] When the questionnaire question display method based on the logic editor of the present application is executed by the server, the server can obtain the question display logic information of the questionnaire question, for example, obtain the question display logic information from the database, and then parse the question display logic information, and based on the user's answer information to the questionnaire question received by the terminal device, determine the display strategy of the questions contained in the questionnaire, and then send the determined question display strategy to the terminal device so that the terminal device displays the questionnaire question. It should be noted that the questionnaire questions involved in the present application can be pre-designed and saved. For example, the question text of the questionnaire question involved can be saved in the questionnaire database, or saved in the server. In addition, it can also be saved locally on the terminal device. The embodiments of the present application do not limit this.

[0070] In addition, when the questionnaire question display method based on the logic editor of the present application is executed through a terminal device, the terminal device can receive the question display logic information of the questionnaire questions from the logic editor, and can also obtain the question display logic information from the questionnaire database or a preset storage location, and then parse the question display logic information, and based on the user's answer information to the questionnaire questions received by the terminal device, determine the display strategy of the questions contained in the questionnaire, and display the questionnaire questions.

[0071] It is understandable that the above-mentioned questionnaire database can be a local database of the server 10a, or it can be an independent data server, which is not limited here. The above-mentioned questionnaire database can be regarded as an electronic file cabinet - a place for storing electronic files. In the embodiment of the present application, the above-mentioned electronic files can refer to at least two question texts, at least two option texts, result texts, conditional texts, conditional logical combination relationships and answer information, and can also refer to question identifiers corresponding to at least two question texts, option identifiers corresponding to at least two option texts, conditional logical combination relationships, etc., which are not limited here and can be changed according to the actual application scenario. Server 10a can perform operations such as adding, querying, updating, and deleting electronic files. The so-called "database" is a data set that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application.

[0072] In addition, the method provided in the embodiment of the present application can be executed by a computer device, including but not limited to a terminal (including the above-mentioned user terminal) or a server (including the above-mentioned server 10a). The above-mentioned server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The above-mentioned terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0073] in, Figure 1 The server 10a, the user terminal 10b, the user terminal 10c and the user terminal 10d may include a mobile phone, a tablet computer, a notebook computer and a palmtop computer.

[0074] Furthermore, it should be noted that, in the embodiments of the present application, the questionnaire may be a survey questionnaire or an examination / practice test question, and the embodiments of the present invention do not limit this to a uniqueness.

[0075] In the embodiment of the present application, a method for displaying questionnaire questions based on a logic editor is provided. The execution subject of the method can be various terminal devices or server devices with the ability to display questionnaire questions, or a device or chip integrated on these devices. Figure 2 As shown, it is one of the flow charts of a method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application. The method includes the following steps:

[0076] S201: Obtaining question display logic information of the first question included in the questionnaire.

[0077] The topic display logic information is generated by a logic editor based on at least one logic keyword used to characterize the display strategy of the first topic.

[0078] Specifically, in a questionnaire for many answering users, the questions that need to be displayed in the questionnaire often vary according to the situation of the answering users. Therefore, when the questionnaire creator creates a questionnaire, it is necessary to set the display logic of the questionnaire questions displayed to the answering users according to the situation of the answering users. For example, the corresponding question display logic can be set for different types of users. For example, for a questionnaire investigating a certain skin care product, the number of questions displayed for male answering users and female answering users, the order of display of questions, etc. can all be different. For another example, for a questionnaire investigating the living conditions of retired elderly people, the subsequent questions of the questionnaire are only displayed to male elderly users over 60 years old and female elderly users over 50 years old. In addition, the questions displayed to users, the number of questions displayed, the order of display of questions, and the order of answer options contained in the questions can all vary according to different types of users and the user's answer situation.

[0079] For the convenience of description, the questions included in the questionnaire can be called the first question. The first question can be a question other than the question displayed in a preset manner in response to the launch of the questionnaire, for example, a question other than the question displayed by default after the questionnaire is launched.

[0080] Specifically, the display logic of the questionnaire questions set by the above-mentioned questionnaire creator is used to describe situations related to the display of questionnaire questions. In this embodiment, the display logic of the questionnaire questions can be represented by the question display logic information. The questionnaire display logic information can include the relationship between the display of the corresponding first question and the type of the answering user, for example, which age group and which job type the questionnaire question is for. The questionnaire display logic information can also include the relationship between the display of each first question contained in the questionnaire, the display conditions and display methods of the corresponding first questions, etc. For example, the questions contained in the questionnaire can be displayed one by one, or two adjacent questions can be displayed at the same time. It can also be decided whether to display the next question based on the answer options of the user of the previous question, etc., and the answer options in the question can be displayed in a preset order. In addition, in order to eliminate the influence of the order of options on the user's answer selection, they can also be displayed in a random order, etc.

[0081] In addition, in actual scenarios, if the questionnaire contains a large number of questions and the display logic of the questions is relatively complex, it is usually difficult for the questionnaire creator to write the question display logic information, and the workload is very large. Therefore, in an embodiment of the present application, the question display logic can be generated by a logic editor using a semantic logic language according to preset grammatical rules. This can simplify the process of generating question display logic information and greatly improve the efficiency of generating question display logic. Specifically, the logic language may include preset logical identifiers or preset logical keywords, etc., so that the question display logic information can be generated by the logic editor according to preset grammatical rules or identification rules using the above-mentioned preset logical language. For example, the question display logic information may include one or more preset logical statements or keywords, etc., wherein the logical keywords in the question display logic information are used to characterize the display strategy of the first question, for example, it can be used to characterize under what circumstances the first question is displayed, what content is displayed, and how it is displayed, etc. In order to facilitate questionnaire creators to learn how to write questions and display logical information through logical keywords, and to quickly perform subsequent writing operations, logical keywords can be represented by simple and easy-to-understand Chinese characters or English words with semantic meaning, or they can be represented by figurative characters or symbols according to preset representation rules. In addition, the above two representation methods can be combined with numbers, letters, etc. to represent. Therefore, through the above-mentioned easy-to-understand and grasp logical keywords used to represent the display strategy of the first question, on the one hand, questionnaire creators can create questionnaires more quickly, and on the other hand, because logical keywords can represent the display strategy of the question, it is also easier for other people other than the creator to understand the logical information displayed in the questionnaire question through logical keywords.

[0082] In addition, when obtaining the question display logic information, the question display logic information can be obtained from a preset storage location after the questionnaire creator completes the setting of the question display logic. For example, it can be obtained from a preset cache, or from a preset cloud storage location, and from a preset database. In addition, the question display logic information generated by the logic editor can also be received during the process of the questionnaire creator setting the question display logic information. Therefore, it can be understood that in the process of obtaining the question display logic information, the question display logic information obtained can be the question display logic information of all the first questions contained in the questionnaire, or it can be the question display logic information of a part of the first questions.

[0083] S202: Parse the topic display logic information of the first topic to obtain logic keywords corresponding to the first topic, and determine the display dependency relationship between each first topic and its corresponding second topic based on the logic keywords corresponding to the first topic.

[0084] In an embodiment of the present application, the logical keywords corresponding to the first question are obtained by parsing the question display logic information of the first question. Since the logical keywords involved in this application are semantic keywords used to characterize the first question display strategy, based on the representational meaning of each logical keyword, the display dependency relationship between the first question included in the first question display strategy and its corresponding second question can be easily obtained.

[0085] Specifically, the second question corresponding to the first question is the question displayed before the first question is displayed. The display dependency relationship between each first question and its corresponding second question is the relationship between the display of the first question and the second question. Specifically, it may include the relationship between the display conditions of the first question and the second question. For example, after one or more second questions are displayed, the display of the corresponding first question is determined. Or, the corresponding first question is only displayed after the user selects a specific answer option for the second question or fills in specific answer information. For example, in a beauty survey questionnaire for women, the corresponding first question is only displayed if the user selects "female" (or "girls," "female," etc.) or fills in "female" when answering the second question about gender. In addition, it may also include the relationship between the display method of the first question and the second question, such as the relationship between the order of multiple first questions and the second question, the relationship between the order of each answer option of the first question and the second question, and the relationship between whether a certain answer option in the first question is displayed and the second question. The above relationship with the second question may include: whether the second question is displayed, and the relationship with the user's answer information for the second question, etc., wherein the answer information may include the user's answer options or the answer content filled in by the user.

[0086] In addition, it should be noted that the second topic in the embodiments of the present application is not a specific topic. The second topic corresponds to each first topic. The second topic corresponding to each first topic and having a display dependency relationship therewith can be a single topic displayed before the first topic, or multiple topics displayed before the first topic. Therefore, it can be understood that the second topic corresponds to the first topic and is specific to the first topic.

[0087] S203: After receiving the user's answer information to the second question, based on the answer information to the second question and the display dependency relationship between each first question and its corresponding second question, determine the display strategy for the first question to display the questionnaire questions.

[0088] Specifically, the answer information for the second question may include the answer options selected by the user for each answer option of the second question or the answer content filled in by the user. The display strategy for the first question may include under what circumstances the first question is displayed, and in what manner the first question is displayed.

[0089] It can also be understood that the display of the first question in the questionnaire of the embodiment of the present application can be gradually displayed in the process of the user answering the questionnaire. For example, in the process of answering the questionnaire, one or more questions in the questionnaire are displayed according to the user's answering process and the dependency relationship between the questions.

[0090] The embodiment of the present application obtains the question display logic information of the first question contained in the questionnaire, parses the question display logic information of the first question, determines the display dependency relationship between each first question and its corresponding second question, and after receiving the user's answer information to the second question, determines the display strategy of the first question based on the answer information of the second question and the dependency relationship between each first question and its corresponding second question, so as to display the questionnaire questions. Compared with the related art of writing a large amount of code for the questionnaire to be displayed, the present application only needs to write simple and easy-to-understand semantic question display logic information through a logic editor for the display of the questionnaire, thereby reducing the time and manpower costs in the implementation process of the complex questionnaire to be displayed, and improving the efficiency of designing the question display logic.

[0091] In one embodiment of the present application, the logical keywords may include display condition keywords or display mode keywords, etc.

[0092] Specifically, the question display logic information can be generated by a logical language according to preset grammatical rules, wherein the logical language can include multiple logical keywords, each logical keyword can express a preset logical relationship, and a logical statement can be composed of multiple logical keywords to express the logic of the question display. Among them, the logical keywords can be represented by Chinese characters or English words, letters, numbers, and logical symbols. Specifically, they can be represented by one of the above-mentioned representation methods or a combination of several methods. For example, taking English words as an example, the logical keywords can include the following display condition keywords or display method keywords:

[0093]

[0094]

[0095] In addition, the logical language may also include at least one logical symbol, such as the greater than sign ">", the less than sign "<", the equal to sign "=", etc., to describe the logical relationship of the question display. Furthermore, in the process of generating the question display logic information, the multiple logical statements generated may follow preset grammatical rules, such as using Q1 to identify Question 1, i.e., Question 1, using Q1A1 to identify the first option of Question 1, and using lenQ1 to identify the number of answers to Question 1. Thus, based on the above logical language and preset grammatical rules, the question display logic information for the first question included in the questionnaire can be generated through the logic editor. For example, assuming a questionnaire surveying retired elderly people, the display logic for Question 3 is as follows: if the gender selected for Question 1 is "female" and the answer to Question 2 regarding age is "greater than 50 years old", or if the gender selected for Question 1 is "male" and the answer to Question 2 regarding age is "greater than 60 years old", then Question 3 will be displayed. That is, Question 3 will only be displayed if the gender is "female" and the age is greater than 50 years old, or if the gender is "male" and the age is greater than 60 years old. Therefore, the display logic for question 3 generated by the logic editor can be: if ( Q1A1 and Q2>50 ) or ( Q1A2 and Q2>60 ) then show Q3. The numbers in questions 1 and 2 above are the sequence numbers or question tags of the questions in the questionnaire.

[0096] In the embodiment of the present application, since the question display logic information is generated by a logic editor based on at least one logic keyword used to characterize the display strategy of the first question, after parsing the question display logic information of the first question, the logic keyword corresponding to the first question is obtained, and the display dependency relationship between each first question and its corresponding second question is determined based on the logic keyword corresponding to the first question, thereby determining the display strategy of the first question based on the user's answer information and the display dependency relationship between each first question and its corresponding second question. Compared to the related art of writing a large amount of code or a large graphical component for the questionnaire to be displayed, the present application only needs to generate the question display logic information for the display of the questionnaire based on the semantic logic keyword used to characterize the question display strategy, and through the logic editor, thereby reducing the time and manpower costs in the implementation process of the complex questionnaire to be displayed, and improving the efficiency of designing the question display logic.

[0097] In another embodiment of the present application, the embodiment of the present application may further include the following steps:

[0098] The logic information displayed on the question is updated in real time through the logic editor, and the updating method includes at least one of correcting erroneous logic statements and completing incomplete logic statements.

[0099] Specifically, logical statements are composed based on logical keywords. In the process of generating logical information for question display based on logical language, the logical editor can be used to preview the edited logical information for question display, correct erroneous logical statements, complete incomplete logical statements, etc.

[0100] Combine Figures 3 and 4 As shown, it is a schematic diagram of an application scenario of the questionnaire question display method based on a logic editor provided in an embodiment of the present application, such as Figure 3 As shown, the left side of the logic editor contains the logic language editing area, and the right side contains the questionnaire preview area. In the logic language editing area, you can generate question display logic information by editing preset logical keywords. After completing the question display logic for a question, you can preview the corresponding question in the right area. For example, in a questionnaire targeting retired seniors, after completing the question display logic for question 3 on the left side of the logic editor: "if (Q1A1 andQ2>50) or (Q1A2 and Q2>60) then show Q3," the corresponding question information for question 3, "What type of exercise do you choose after retirement?", can be previewed in the preview area on the right side of the logic editor. It should be noted that the questionnaire content in this embodiment of the present application can be pre-designed, and after the design is completed, the text of each question included in the questionnaire can be stored in the questionnaire database. This embodiment of the present application relates to a questionnaire question display method based on the display logic executed after the question content is designed.

[0101] In addition, if Figure 4 As shown, when generating the logical statement corresponding to the question display logic information through the left logical language editing area, when entering part of the logical keyword, the logical language editing area will automatically display the alternative logical keyword content to complete the corresponding logical statement, or, when the input logical keyword is wrong, the correct alternative logical keyword content can also appear to correct the error. For example, Figure 4 As shown, when the input content does not conform to the preset grammatical rules, that is, "Q1a" does not conform to the preset grammatical rules, the logical language editing area will correspondingly display the correct expression that conforms to the preset grammatical rules, that is, "Q1A1: XX-What is the chat software you use most frequently?".

[0102] The embodiment of the present application is based on figurative and semantic logical language, such as multiple preset logical keywords, and generates the question display logical information of the questionnaire questions through a logic editor according to preset grammatical rules. During the generation process, it corrects erroneous logical statements or completes incomplete logical statements, thereby realizing the intelligent generation of question display logical information, reducing the operational difficulty of the questionnaire creator, and reducing the time and manpower costs in the implementation process of complex questionnaires, thereby improving the efficiency of questionnaire creation.

[0103] In another embodiment of the present application, the second topic includes at least one third topic, and the third topic is a topic displayed in a preset manner in response to the questionnaire being started. The method further includes the following steps:

[0104] Receive the user's answer information to the third question, and determine a display strategy for the first question based on the answer information to the third question and a display dependency relationship between the first question and its corresponding third question.

[0105] Specifically, when the questionnaire creator constructs the questionnaire, the second question in the constructed questionnaire may include one or more third questions, that is, the one or more third questions are displayed before the corresponding first question, and there is a display dependency relationship between the corresponding first question and the third question. The third question is displayed in a preset manner when the questionnaire is started. For example, at least two third questions can be displayed in a preset display order when the questionnaire is started. Specifically, the third question can be the first question displayed when the questionnaire is started, wherein the display of the one or more third questions displayed first does not depend on the display of other questions, and they can be displayed in a default order when the questionnaire is started, for example, in the order of the question numbers. Moreover, in actual scenarios, the third question can be the first question in the questionnaire, or when there are multiple third questions, the third question can be the first, second, third... questions in the questionnaire.

[0106] Taking the questions in an actual questionnaire as an example, the third question in the questionnaire can often be a question that determines the user's basic attributes. For example, the user's answer to the third question determines whether to display subsequent questions to the user, or which subsequent questions to display to the user. For example, depending on the content of the questionnaire, there can be one or more third questions. Specifically, for a questionnaire conducting a beauty research, the third question can be a question that determines the user's gender. For example, the third question can be the first question displayed after the questionnaire is launched, such as:

[0107] "1. What is your gender?"

[0108] If the user's answer information is female, the subsequent questions will continue to be displayed. If the user's answer information is male, the questionnaire can be terminated. For example, in some surveys, there can be multiple questions to judge the basic attributes of the user. In a questionnaire surveying retired elderly people, it is necessary to judge the user's gender and age to determine whether the user is the target user of the survey. Therefore, after the questionnaire is launched, two questions can be displayed by default, for example:

[0109] 1. What is your gender?

[0110] 2. What is your age?

[0111] If the user's answer information indicates that they are female and over 50 years old, or male and over 60 years old, the subsequent questions can be displayed for subsequent surveys. If the user's answer information does not meet the above-mentioned gender and age conditions for retired elderly people, the questionnaire survey can be terminated.

[0112] It should be noted that in actual scenarios, the third question can be set according to the specific circumstances of the survey questionnaire, and the content of the question surveyed by the third question, and the answer information for the third question determine the display of subsequent questions in the questionnaire. The setting of the third question can be used to determine whether to display subsequent questions, and can also be used to determine the type of subsequent displayed questions, etc. The above examples in the embodiments of the present application are only for illustrative reference and are not limiting.

[0113] In an embodiment of the present application, the second question includes at least one third question, and the third question is a question displayed in a preset manner in response to the start of the questionnaire. By receiving the user's answer information to the third question, based on the answer information of the third question and the display dependency relationship between the first question and its corresponding third question, the display strategy of the first question is determined, thereby realizing the intelligent generation of question display logic information, reducing the operational difficulty of the questionnaire creator, and reducing the time and manpower costs in the implementation process of complex questionnaires, thereby improving the efficiency of questionnaire creation.

[0114] In one embodiment of the present application, the display dependency relationship includes the relationship between the display condition of the first question and the answer information of the second question.

[0115] Determining a display strategy for the first question based on the answer information for the second question and the display dependency relationship between each first question and its corresponding second question includes:

[0116] When the received answer information corresponding to the second question matches the display condition of the first question, the first question is displayed.

[0117] Specifically, in the display dependency relationship between a first question and a second question, the display condition of the first question can depend on the answer information of one corresponding second question, or it can depend on the answer information of multiple corresponding second questions. For example, in an actual questionnaire, the display condition of question 5 can be: when option A is selected for question 4, question 5 is displayed. For another example, the display condition of question 5 can also be: when option A is selected for question 3, and when option D is selected for question 4, question 5 is displayed. Furthermore, when there are multiple corresponding second questions, the multiple second questions can be questions with consecutive question numbers. For example, the display of question 5 depends on the answer information of questions 3 and 4. Alternatively, the multiple second questions can be questions with non-consecutive question numbers. For example, the display of question 7 depends on the answer information of questions 1, 3, and 5. Furthermore, it should be noted that when the display of the first question depends on multiple second questions, the display condition of the first question can also be: when the answer information of each second question satisfies a preset logical relationship, the first question is displayed. For example, the display condition for question 5 may be: when the answer information for question 4 is less than the answer information for question 3, question 5 is displayed.

[0118] In addition, in the display conditions of the above-mentioned first questions, the display conditions of different first questions can be the same or different, that is, the display conditions of different first questions can be determined by the same second question or by different second questions. Therefore, it can be understood that after the user answers the second question, one first question can be displayed accordingly, or multiple first questions can be displayed accordingly. In addition, in the display conditions of the above-mentioned first questions, in addition to the answer information of the second question being the corresponding selection of a specific option, the display condition can also be that when the answer information of the second question does not select a specific option, the corresponding first question is displayed. For example, the display condition of question 5 is: when option A is not selected for question 4, question 5 is displayed.

[0119] Therefore, in the embodiment of the present application, when the answer information of the second question matches the display condition of the first question, the first question is displayed.

[0120] In another embodiment of the present application, the display dependency relationship also includes the relationship between the display mode of the first question and the answer information of the second question.

[0121] Determining a display strategy for the first question based on the answer information for the second question and the display dependency relationship between each first question and its corresponding second question includes:

[0122] Based on the relationship between the display manner of the first question and the answer information of the second question, the first question is displayed in a display manner corresponding to the answer information of the second question.

[0123] Specifically, during the actual display of the questionnaire questions, the display method of the first question may also be dependent on the answer information of the second question. The display method of the first question may include the following methods:

[0124] (1) Replace part of the content of the first question with the answer information of the second question. For example, when conducting a survey on the user's sports behavior, the content of the second question before the first question is: "What is your favorite sport?", and the corresponding first question is: "How long do you do XXX sports every week?", and the relationship between the display method of the first question and the second question is that the "XXX" content in the first question is replaced with the answer information of the second question. For example, when the answer information entered or selected by the user for the second question is "badminton", then the first question will correspondingly display "How long do you do badminton every week?"

[0125] (2) Randomly arrange the order of multiple first questions and the order of the answer options in the first question.

[0126] Specifically, in an actual questionnaire, the display method corresponding to the answer information of the second question may include randomly arranging the order of multiple first questions, or randomly arranging the order of answer options in the first question. In addition, in a matrix question containing multiple questions, it may also include randomly arranging the order of multiple questions and randomly arranging the order of answer options in the questions. Figure 5 As shown, it is the third application scenario diagram of the questionnaire question display method based on the logic editor provided in the embodiment of the present application. The matrix question includes sub-questions for investigating the pages of three APPs, so that the APPs corresponding to the three sub-questions can be randomly sorted, and the answer options corresponding to the three sub-questions can be randomly sorted, that is, the "home page", "chat page" and "personal business card page" in the answer options can be randomly sorted.

[0127] (3) Hide one or more answer options in the first question.

[0128] Specifically, when the answer information of the second question meets the hiding conditions of one or more answer options in the first question, the corresponding answer options in the first question can be hidden accordingly. For example, when option A is selected as the answer option for question 3 (or option A is not selected), option B in question 4 is hidden.

[0129] Therefore, in the embodiment of the present application, the display dependency relationship also includes the relationship between the display method of the first question and the answer information of the second question. Based on the relationship between the display method of the first question and the answer information of the second question, the first question is displayed in a display method corresponding to the answer information of the second question.

[0130] In another embodiment of the present application, the method further comprises the following steps:

[0131] When the answer information of the second question and / or the answer information of the first question meets the preset questionnaire end conditions, the end page is displayed.

[0132] Specifically, in an actual questionnaire, the questionnaire termination condition may depend on a first question or a second question, or may depend on multiple first questions or second questions, or may depend on both a first question and a second question. It should be noted that the second question may include a question that is displayed in a preset manner when the questionnaire is started.

[0133] For example, the questionnaire end condition can depend on the second question, which is the question displayed in a preset manner when the questionnaire is launched, such as the first question displayed after the questionnaire is launched. Specifically, for example, when conducting a survey on beauty products, the question "Question 1: What is your gender?" is displayed. If the answer to this question is female, the questionnaire end condition is met and the end page is displayed.

[0134] For example, the questionnaire end condition can also depend on the second question and the first question. For example, the second question is the first question in the questionnaire, and the first question is the third question in the questionnaire. The questionnaire end condition can be: when the answer information of question 3 is greater than the answer information of question 1, the end page is displayed.

[0135] The embodiment of the present application obtains the question display logic information of the first question contained in the questionnaire, parses the question display logic information of the first question, determines the display dependency relationship between each first question and its corresponding second question, and after receiving the user's answer information to the second question, determines the display strategy of the first question based on the answer information of the second question and the dependency relationship between each first question and its corresponding second question, so as to display the questionnaire questions. Compared with the related art of writing a large amount of code for the questionnaire to be displayed, the present application only needs to use a logic editor to write simple and easy-to-understand semantic question display logic information for the questionnaire display, thereby reducing the time and manpower costs in the implementation process of the complex questionnaire to be displayed, and improving the efficiency of designing the question logic.

[0136] The following will be combined Figures 6 to 8 , describes the specific implementation scenarios provided in the embodiments of this application. Figure 6 This is a second flow chart of a method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application. Figure 7-Figure 8 A schematic diagram of an analysis of a method for displaying questionnaire questions based on a logic editor provided in an embodiment of the present application.

[0137] Specifically, such as Figure 6As shown, it is the second flow chart of a questionnaire question display method based on a logic editor provided in an embodiment of the present application. In an embodiment of the present application, after the questionnaire creator completes the setting of the display logic of the questionnaire question, or in the process of setting the display logic of the questionnaire question, the question display logic information of the questions other than the questions displayed in a preset manner after the questionnaire is started can be obtained. After obtaining the question display information, the question display logic information can be parsed. In the process of parsing, since the questionnaire may contain multiple questions, and the question display logic information of each question may contain multiple logical statements, therefore, in the process of parsing the question display logic information corresponding to the questionnaire question, the relationship between the display conditions of each question and the answer information of the corresponding second question, as well as the relationship between the display method of each question and the answer information of the corresponding second question can be extracted first. For example, Figure 7 As shown in the parsed logical relationship tree, the display condition for question 3 Q3 is obtained, that is, when Q1 (question 1) selects A1 and Q2>50 (Q2 is question 2), or when Q1 selects A2 and Q2>60, Q3 is displayed. After obtaining the relationship between the display condition of each question and the answer information of the corresponding second question, as well as the relationship between the display method of each question and the answer information of the corresponding second question, the following is obtained. Figure 7 After the logical relationship tree shown in FIG, since the logical relationship tree contains multiple display conditions and multiple display modes of the questions, the logical relationships in the logical relationship tree can be classified according to the display conditions and display modes, and the following is obtained: Figure 8 The logical relationship between the display conditions and display methods of each question and the corresponding answer information for the second question is shown. Therefore, when the user's answer information for the second question matches the logical relationship between the display conditions and display methods, the corresponding question can be displayed or displayed in the corresponding display method. In addition, when the user's answer information meets the end condition, the corresponding end page is displayed.

[0138] The embodiment of the present application obtains the question display logic information of the first question contained in the questionnaire, parses the question display logic information of the first question, determines the display dependency relationship between each first question and its corresponding second question, and after receiving the user's answer information to the second question, determines the display strategy of the first question based on the answer information of the second question and the dependency relationship between each first question and its corresponding second question, so as to display the questionnaire questions. Compared with the related art of writing a large amount of code for the questionnaire to be displayed, the present application only needs to use a logic editor to write simple and easy-to-understand semantic question display logic information for the questionnaire display, thereby reducing the time and manpower costs in the implementation process of the complex questionnaire to be displayed, and improving the efficiency of designing the question logic.

[0139] The embodiment of the present application provides a compilation task scheduling device, such as Figure 9 As shown, it is a structural diagram of a questionnaire title display device based on a logic editor provided in an embodiment of the present application. The questionnaire title display device based on a logic editor 90 may include: an acquisition module 901, a parsing module 902 and a display module 903, wherein:

[0140] An acquisition module 901 is configured to acquire question display logic information of a first question included in the questionnaire, where the question display logic information is generated by a logic editor based on at least one logic keyword used to characterize a display strategy for the first question.

[0141] Parsing module 902, configured to parse the question display logic information of the first question, obtain the logical keywords corresponding to the first question, and determine the display dependency relationship between each first question and its corresponding second question based on the logical keywords corresponding to the first question, where the second question corresponding to the first question is the question displayed before the first question is displayed;

[0142] The display module 903 is used to determine the display strategy of the first question based on the answer information of the second question and the dependency relationship between each first question and its corresponding second question after receiving the user's answer information to the second question, so as to display the questionnaire questions.

[0143] In another embodiment,

[0144] Logical keywords include:

[0145] At least one of a display condition keyword and a display method keyword.

[0146] In another embodiment, the apparatus further includes an update module.

[0147] The update module is used to update the question display logic information in real time through the logic editor. The update method includes correcting erroneous logic statements and completing at least one of incomplete logic statements. The logic statements are composed of logic keywords.

[0148] In another embodiment, the second topic includes at least one third topic, and the third topic is a topic displayed in a preset manner in response to starting the questionnaire.

[0149] The device also includes a strategy determination module for receiving the user's answer information to the third question, and determining the display strategy of the first question based on the answer information of the third question and the display dependency relationship between the first question and its corresponding third question.

[0150] In another embodiment, the display dependency relationship includes the relationship between the display condition of the first question and the answer information of the second question.

[0151] The display module is specifically configured to display the first question when the received answer information of the corresponding second question matches the display condition of the first question.

[0152] In another embodiment, the display dependency relationship also includes the relationship between the display mode of the first question and the answer information of the second question.

[0153] The display module is specifically configured to display the first question in a display manner corresponding to the answer information of the second question based on a relationship between the display manner of the first question and the answer information of the second question.

[0154] In another embodiment, the display method of the first question includes at least one of the following:

[0155] Replace part of the first question with the answer information of the second question,

[0156] Randomly arrange the order of multiple first questions,

[0157] Randomize the order of the answer options in the first question,

[0158] Hide one or more answer options for the first question.

[0159] In another embodiment, the apparatus further includes an end determination module.

[0160] The end determination module is specifically configured to display an end page when the answer information of the second question and / or the answer information of the first question meets the preset questionnaire end condition.

[0161] The questionnaire question display device based on a logic editor in this embodiment can execute the questionnaire question display method based on a logic editor shown in the above embodiments of this application. The implementation principles are similar and will not be repeated here.

[0162] In the embodiment of the present application, since the question display logic information is generated by a logic editor based on at least one logic keyword used to characterize the display strategy of the first question, after parsing the question display logic information of the first question, the logic keyword corresponding to the first question is obtained, and the display dependency relationship between each first question and its corresponding second question is determined based on the logic keyword corresponding to the first question, thereby determining the display strategy of the first question based on the user's answer information and the display dependency relationship between each first question and its corresponding second question. Compared to the related art of writing a large amount of code or a large graphical component for the questionnaire to be displayed, the present application only needs to generate the question display logic information for the display of the questionnaire based on the semantic logic keyword used to characterize the question display strategy, and through the logic editor, thereby reducing the time and manpower costs in the implementation process of the complex questionnaire to be displayed, and improving the efficiency of designing the question display logic.

[0163] In an embodiment of the present application, an electronic device is provided, which includes: a memory and a processor; at least one program stored in the memory, which is used to be executed by the processor. Compared with the related art, the following can be achieved: in the embodiment of the present application, since the question display logic information is generated by a logic editor based on at least one logic keyword used to characterize the display strategy of the first question, after parsing the question display logic information of the first question, the logic keyword corresponding to the first question is obtained, and the display dependency relationship between each first question and its corresponding second question is determined based on the logic keyword corresponding to the first question, thereby determining the display strategy of the first question based on the user's answer information and the display dependency relationship between each first question and its corresponding second question. Compared with the related art of writing a large amount of code or a large graphical component for the questionnaire to be displayed, the present application only needs to generate the question display logic information for the display of the questionnaire based on the semantic logic keyword used to characterize the question display strategy through the logic editor, thereby reducing the time and manpower cost of the complex questionnaire to be displayed in the implementation process, so as to improve the efficiency of designing the question display logic.

[0164] In an alternative embodiment, an electronic device is provided, such as Figure 10 As shown, Figure 10 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0165] Processor 4001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0166] Bus 4002 may include a path for transmitting information between the above components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0167] The memory 4003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0168] The memory 4003 is used to store the application code (computer program) for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the content shown in the above method embodiment.

[0169] Electronic devices include but are not limited to mobile phones, laptops, multimedia players, desktop computers, etc.

[0170] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.

[0171] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the aforementioned method for displaying questionnaire questions based on a logic editor.

[0172] The present application also provides a computer program product comprising instructions, which, when executed on a computer device, enables the computer device to execute the questionnaire question display method based on a logic editor provided in each of the above method embodiments.

[0173] In the embodiment of the present application, since the question display logic information is generated by a logic editor based on at least one logical keyword used to characterize the display strategy of the first question, after parsing the question display logic information of the first question, the logical keyword corresponding to the first question is obtained, and the display dependency relationship between each first question and its corresponding second question is determined based on the logical keyword corresponding to the first question, thereby determining the display strategy of the first question based on the user's answer information and the display dependency relationship between each first question and its corresponding second question. Compared to the related art of writing a large amount of code or a large graphical component for the questionnaire to be displayed, the present application only needs to generate the question display logic information for the questionnaire display based on the semantic logical keyword used to characterize the question display strategy, thereby reducing the time and manpower cost of implementing the complex questionnaire to be displayed, and improving the efficiency of designing the question display logic. It should be understood that although the steps in the flowchart of the accompanying figure are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction for the execution of these steps, and they can be executed in other orders. Moreover, at least part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. Their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0174] The above are only some of the embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A questionnaire question display method based on a logic editor, characterized in that: include: Obtaining the question display logic information of the first question included in the questionnaire, wherein the question display logic information is obtained in the following manner: Displaying a logic language editing area in a logic editor on a terminal of the creator of the questionnaire; acquiring a logic statement input through the logic language editing area, and displaying a first question corresponding to the logic statement in a questionnaire question preview area of ​​the logic editor; the logic statement including at least one logic keyword that follows a preset grammatical rule and represents a display strategy for the first question; Based on the logic statement corresponding to the first topic, generating the topic display logic information of the first topic by a logic editor corresponding to the preset grammatical rules; Parsing the title display logic information of the first title to obtain logical keywords corresponding to the first title, and determining a display dependency relationship between each of the first titles and its corresponding second title based on the logical keywords corresponding to the first title, where the second title corresponding to the first title is a title displayed before the first title is displayed; After receiving the user's answer information to the second question, determining a display strategy for the first question based on the answer information to the second question and a display dependency relationship between each first question and its corresponding second question, so as to display the questionnaire questions; The preset grammatical rules include a plurality of logical keywords; The acquiring of the logic statement input through the logic language editing area includes: In response to a logic keyword input operation on the logic language editing page, obtaining input logic keyword content; When a partial logical keyword is detected, the corresponding alternative logical keyword content is automatically displayed to complete the corresponding logical statement; When an error is detected in the input logical keyword, alternative correct logical keyword content is displayed to correct the error.

2. The questionnaire display method according to claim 1, wherein: The logical keywords include: At least one of a display condition keyword and a display method keyword.

3. The questionnaire display method according to claim 1, wherein: The second topic includes at least one third topic, and the third topic is a topic displayed in a preset manner in response to the questionnaire being started. The method further includes: Receive the user's answer information to the third question, and determine a display strategy for the first question based on the answer information to the third question and a display dependency relationship between the first question and its corresponding third question.

4. The questionnaire display method according to claim 1, wherein: The display dependency relationship includes the relationship between the display condition of the first question and the answer information of the second question. The determining of a display strategy for the first question based on the answer information of the second question and the display dependency relationship between each first question and its corresponding second question includes: When the received answer information corresponding to the second question matches the display condition of the first question, the first question is displayed.

5. The questionnaire display method according to claim 1, wherein: The display dependency also includes the relationship between the display mode of the first question and the answer information of the second question. The determining of a display strategy for the first question based on the answer information of the second question and the display dependency relationship between each first question and its corresponding second question includes: Based on the relationship between the display manner of the first question and the answer information of the second question, the first question is displayed in a display manner corresponding to the answer information of the second question.

6. The questionnaire display method according to claim 5, wherein: The display method of the first question includes at least one of the following: Replace part of the first question with the answer information of the second question, Randomly arrange the order of the first questions, Randomly arrange the order of the answer options in the first question, Hide one or more answer options for the first question.

7. The questionnaire question display method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the answer information of the second question and / or the answer information of the first question meets the preset questionnaire end conditions, the end page is displayed.

8. A questionnaire question display device based on a logic editor, characterized in that: include: An acquisition module, used to acquire question display logic information of the first question included in the questionnaire; a parsing module, configured to parse the title display logic information of the first title, and determine a display dependency relationship between each of the first titles and its corresponding second title, wherein the second title corresponding to the first title is a title displayed before the first title is displayed; a display module configured to, after receiving the user's answer information to the second question, determine a display strategy for the first question based on the answer information to the second question and a dependency relationship between each first question and its corresponding second question, so as to display the questionnaire questions; The acquisition module is specifically used to: Displaying a logic language editing area in a logic editor on a terminal of the creator of the questionnaire; Acquire a logic statement input through the logic language editing area, and display a first question corresponding to the logic statement in a questionnaire question preview area in the logic editor; The logical statement includes at least one logical keyword that follows a preset grammatical rule and represents a display strategy for the first topic; Based on the logic statement corresponding to the first topic, generating the topic display logic information of the first topic by a logic editor corresponding to the preset grammatical rules; The preset grammar rules include a plurality of logical keywords; when the acquisition module acquires the logical statement input through the logical language editing area, it is specifically used to: In response to a logic keyword input operation on the logic language editing page, obtaining input logic keyword content; When a partial logical keyword is detected, the corresponding alternative logical keyword content is automatically displayed to complete the corresponding logical statement; When an error is detected in the input logical keyword, alternative correct logical keyword content is displayed to correct the error.

9. The device according to claim 8, characterized in that The logic keyword includes at least one of a display condition keyword and a display mode keyword.

10. The device according to claim 8, characterized in that The second topic includes at least one third topic, and the third topic is a topic displayed in a preset manner in response to the questionnaire being started; The device also includes a strategy determination module for receiving the user's answer information to the third question, and determining a display strategy for the first question based on the answer information to the third question and the display dependency relationship between the first question and its corresponding third question.

11. The device according to claim 8, characterized in that The display dependency relationship includes the relationship between the display condition of the first question and the answer information of the second question; When the display module determines the display strategy for the first question based on the answer information of the second question and the display dependency relationship between each first question and its corresponding second question, it is specifically configured to: When the received answer information corresponding to the second question matches the display condition of the first question, the first question is displayed.

12. The device according to claim 8, characterized in that The display dependency relationship also includes the relationship between the display mode of the first question and the answer information of the second question; When the display module determines the display strategy for the first question based on the answer information of the second question and the display dependency relationship between each first question and its corresponding second question, it is specifically configured to: Based on the relationship between the display manner of the first question and the answer information of the second question, the first question is displayed in a display manner corresponding to the answer information of the second question.

13. The device according to claim 12, characterized in that The display method of the first question includes at least one of the following: Replace part of the first question with the answer information of the second question, Randomly arrange the order of the first questions, Randomly arrange the order of the answer options in the first question, Hide one or more answer options for the first question.

14. The device according to any one of claims 8 to 13, characterized in that The device further comprises: The end determination module is specifically used to display the end page when the answer information of the second question and / or the answer information of the first question meets the preset questionnaire end conditions.

15. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to: execute the questionnaire question display method based on the logic editor according to any one of claims 1 to 7.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Questionnaire method and device and storage medium

    CN109614595A

  • Data processing method and device and computer readable storage medium

    CN112149393A