CN113761147A - Logic editor-based questionnaire question display method and device and electronic equipment - Google Patents

Logic editor-based questionnaire question display method and device and electronic equipment Download PDF

Info

Publication number
CN113761147A
CN113761147A CN202110420630.4A CN202110420630A CN113761147A CN 113761147 A CN113761147 A CN 113761147A CN 202110420630 A CN202110420630 A CN 202110420630A CN 113761147 A CN113761147 A CN 113761147A
Authority
CN
China
Prior art keywords
question
topic
display
logic
questionnaire
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110420630.4A
Other languages
Chinese (zh)
Inventor
李泽帆
范俊豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110420630.4A priority Critical patent/CN113761147A/en
Publication of CN113761147A publication Critical patent/CN113761147A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a logic editor-based questionnaire question display method and device, electronic equipment and a computer-readable storage medium, and relates to the technical field of artificial intelligence and natural language processing. The method comprises the following steps: analyzing the question display logic information of the first question to obtain logic keywords corresponding to the first question, determining a display dependency relationship between each first question and a second question corresponding to the first question based on the logic keywords corresponding to the first question, and determining a display strategy of the first question based on the answer information of the second question and the dependency relationship after receiving the answer information of the second question from a user so as to display the question of the questionnaire. Compared with the prior art that a large amount of codes are compiled for the questionnaire to be displayed, the method and the device only need to compile simple and understandable semantic logic keywords through the logic editor to generate the subject display logic information for displaying the questionnaire, and therefore time and labor cost of complex questionnaires are reduced.

Description

Logic editor-based questionnaire question display method and device and electronic equipment
Technical Field
The application relates to the technical field of artificial intelligence and natural language processing, in particular to a questionnaire question display method and device based on a logic editor, electronic equipment and a computer-readable storage medium.
Background
Questionnaires are a tool used in social studies to gather information. With the gradual deepening of various researches on the market, research methods are gradually refined, a research User group has more subdivided fields, questionnaires are designed to be more and more complex, a question maker needs to set question display logic in a questionnaire system before putting in the questionnaire and collecting research data, the conventional setting of the questionnaire logic is generally realized through a Graphical User Interface (GUI) front-end component, and the scheme cannot meet the complex logic and is very difficult and inefficient to operate when the number of questions and logics is more. Or, when setting a display rule, the questionnaire system on the existing market needs the question maker to edit the logic script aiming at the rule, so that the questionnaire system generates the display rule according to the logic script.
Disclosure of Invention
The purpose of the present application is to solve at least one of the above technical drawbacks, in particular, the technical drawback of inefficient implementation of questionnaire topic display logic.
According to an aspect of the present application, there is provided a method for displaying questionnaire questions based on a logic editor, the method comprising:
acquiring topic display logic information of a first topic contained in a questionnaire, wherein the topic display logic information is generated through a logic editor according to at least one logic keyword for representing a display strategy of the first topic;
analyzing the topic display logic information of the first topic to obtain logic keywords corresponding to the first topic, and determining a display dependency relationship between each first topic and a second topic corresponding to the first topic based on the logic keywords corresponding to the first topic, wherein the second topic corresponding to the first topic is a topic displayed before the first topic is displayed;
and after receiving the answer information of the user on the second question, determining 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 the corresponding second question so as to display the questionnaire questions.
In one possible implementation form of the method,
the logical keywords include:
displaying at least one of the condition keywords and the display mode keywords.
In one possible implementation, the method further includes:
and updating the subject display logic information in real time through a logic editor, wherein the updating mode comprises at least one of correcting an error logic statement and completing an incomplete logic statement, and the logic statement is formed based on logic keywords.
In one possible implementation manner, the second topic includes at least one third topic, and the third topic is a topic that is displayed in a preset manner in response to the initiation of the questionnaire, and the method further includes:
and receiving the answer information of the user for 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 the corresponding third question.
In one possible implementation manner, the display dependency relationship includes a relationship between a display condition of the first topic and answer information of the second topic,
determining a display strategy of the first topics based on answer information of the second topics and a display dependency relationship between each first topic and the corresponding second topic, wherein the determining the display strategy comprises the following steps:
and when the received answer information of the corresponding second question is matched with the display condition of the first question, displaying the first question.
In one possible implementation manner, the display dependency relationship further includes a relationship between a display manner of the first topic and answer information of the second topic,
determining a display strategy of the first topics based on answer information of the second topics and a display dependency relationship between each first topic and the corresponding second topic, wherein the determining the display strategy comprises the following steps:
and displaying the first question in a display mode corresponding to the answer information of the second question based on the relation between the display mode of the first question and the answer information of the second question.
In one possible implementation, the display of the first topic includes at least one of:
replacing part of the content in the first question with answer information of the second question,
Randomly arranging a plurality of first subjects in sequence,
Randomly arranging the order of answer options in the first question,
One or more answer choices in the first topic are hidden.
In one possible implementation, the method further includes:
and when the answer information of the second question and/or the answer information of the first question meet the preset questionnaire ending condition, displaying an ending page.
According to another aspect of the present application, there is provided a logic editor-based questionnaire topic display device, the device comprising:
the system comprises an acquisition module, a logic editor and a display module, wherein the acquisition module is used for acquiring topic display logic information of a first topic contained in a questionnaire, and the topic display logic information is generated by the logic editor according to at least one logic keyword for representing a display strategy of the first topic;
the analysis module is used for analyzing the topic display logic information of the first topic to obtain a logic keyword corresponding to the first topic, and determining a display dependency relationship between each first topic and a second topic corresponding to the first topic based on the logic keyword corresponding to the first topic, wherein the second topic corresponding to the first topic is a topic displayed before the first topic is displayed;
and the display module is used for determining the display strategy of the first questions based on the answer information of the second questions and the display dependency relationship between each first question and the corresponding second question after receiving the answer information of the second questions from the user, so as to display the questionnaire questions.
According to another aspect of the present application, there is provided an electronic device including:
one or more processors;
a 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, the one or more computer programs configured to: the method for displaying questionnaire questions based on the logic editor as shown in the first aspect of the present application is performed.
For example, in a third aspect of the present application, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the logic editor-based questionnaire topic display method as shown in the first aspect of the application.
According to yet another aspect of the present application, there is provided a computer-readable storage medium, wherein a computer program is executed by a processor to implement the method for displaying questionnaire topics based on a logic editor as shown in the first aspect of the present application.
For example, in a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for displaying questionnaire titles based on a logical editor shown in the first aspect of the present application.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided in the various alternative implementations of the first aspect described above.
The beneficial effect that technical scheme that this application provided brought is:
in the embodiment of the application, the topic display logic information is generated by the logic editor according to at least one logic keyword used for representing a display strategy of a first topic, so that after the topic display logic information of the first topic is analyzed, the logic keyword corresponding to the first topic is obtained, and the display dependency relationship between each first topic and a corresponding second topic is determined based on the logic keyword corresponding to the first topic, so that the display strategy of the first topic is determined based on the answer information of a user and the display dependency relationship between each first topic and the corresponding second topic. Compared with the prior art that a large amount of codes or huge graphical components are compiled for the questionnaire to be displayed, the method and the device only need to be based on semantic logic keywords for representing the question display strategy, and generate question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question display logic is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for displaying questionnaires based on a logic editor according to an embodiment of the present application;
fig. 3 is a schematic view of an application scenario of a questionnaire topic display method based on a logic editor according to an embodiment of the present application;
fig. 4 is a second schematic view of an application scenario of a questionnaire topic display method based on a logic editor according to an embodiment of the present application;
fig. 5 is a third application scenario schematic diagram of a questionnaire title display method based on a logic editor provided in the embodiment of the present application;
fig. 6 is a second schematic flowchart of a method for displaying questionnaires based on a logic editor according to an embodiment of the present application;
fig. 7 is an analysis schematic diagram of a questionnaire topic display method based on a logic editor according to an embodiment of the present application;
fig. 8 is a second analysis diagram of a questionnaire topic display method based on a logic editor according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a questionnaire topic display device based on a logic editor according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device for displaying questionnaire questions based on a logic editor according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The setup of questionnaire logic in the related art is generally implemented by a GUI front-end component, or by writing a large number of generations, which fails to satisfy complicated logic and is difficult and inefficient to operate when there are many subjects and logics, resulting in inefficiency in setting questionnaire logic.
The application provides a questionnaire topic display method, a questionnaire topic display device, electronic equipment and a computer-readable storage medium based on a logic editor, and aims to solve the above technical problems of the related art.
The terms referred to in this application will first be introduced and explained: for ease of understanding and description, some key terms are first defined.
1. The display logic: and setting a logic condition at a management end of the questionnaire system, and displaying the corresponding question when the answer information of the answer end conforms to the logic condition. In the answering process of the answering user, the question can be hidden or displayed according to the answering condition and the display logic of the answering user. For example, the display logic set by the management end is "question 1 selects option 1, and question 2 is displayed", and if the answer user selects option 2 when answering question 1, then question 2 is hidden, that is, question 2 is not displayed by the answer end.
2. The logical relationship is as follows: such as and, means "all conditions are satisfied", or (or), means "any condition is satisfied", and when there are a plurality of logical conditions, these logical conditions create a logical combination relationship by a logical rule.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The questionnaire topic display method based on the logic editor in the embodiment of the application can be realized based on an Artificial Intelligence technology, wherein Artificial Intelligence (AI) is a theory, a method, a technology and an application system which simulate, extend and expand human Intelligence by using a digital computer or a machine controlled by the digital computer, sense the environment, acquire knowledge and use the knowledge to acquire an optimal result. In other words, artificial intelligence is a comprehensive technique of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence. Artificial intelligence is the research of the design principle and the realization method of various intelligent machines, so that the machines have the functions of perception, reasoning and decision making.
The artificial intelligence technology is a comprehensive subject and relates to the field of extensive technology, namely the technology of a hardware level and the technology of a software level. The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
Among them, Natural Language Processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that enable efficient communication between humans and computers using natural language. Natural language processing is a science integrating linguistics, computer science and mathematics. Therefore, the research in this field will involve natural language, i.e. the language that people use everyday, so it is closely related to the research of linguistics. Natural language processing techniques typically include text processing, semantic understanding, machine translation, robotic question and answer, knowledge mapping, and the like.
The system architecture of the present application is described below with reference to fig. 1, where fig. 1 is a schematic diagram of the system architecture provided by the present application. As shown in fig. 1, the system may include a server 10a and a user terminal cluster, and the user terminal cluster may include: user terminal 10b, user terminals 10c, … …, and user terminal 10d, wherein there may be a communication connection between the user terminal clusters, for example, there may be a communication connection between user terminal 10b and user terminal 10c, and there may be a communication connection between user terminal 10b and user terminal 10 d. Meanwhile, any user terminal in the user terminal cluster may have a communication connection with the server 10a, for example, a communication connection exists between the user terminal 10b and the server 10a, and a communication connection exists between the user terminal 10c and the server 10a, where the communication connection is not limited to a connection manner, and may be directly or indirectly connected through a wired communication manner, may also be directly or indirectly connected through a wireless communication manner, and may also be through other manners, which is not limited herein.
The server 10a provides services for the user terminal cluster through the communication connection function, the server 10a may be a background server of the research platform, and the user terminal 10b, the user terminals 10c and …, and the user terminal 10d may all access the research platform through the communication connection function. The network connected to the above communication may be a wide area network or a local area network, or a combination of the two.
In the embodiment of the present application, the method for displaying questionnaire topics based on the logic editor may be implemented by the server 10a, or may be implemented by the terminal device.
When the logic editor-based questionnaire topic display method of the present application is executed by a server, the server may obtain topic display logic information of a questionnaire topic, for example, obtain topic display logic information from a database, analyze the topic display logic information, determine a display policy of a topic included in a questionnaire based on that a terminal device receives answer information of a user on the questionnaire topic, and then send the determined display policy of the topic to the terminal device, so that the terminal device displays the questionnaire topic. It should be noted that the questionnaire questions related to the present application may be designed and stored in advance, and for example, the question texts of the questionnaire questions may be stored in the questionnaire database, or in the server, or may be stored locally in the terminal device. The embodiment of the present application does not limit this.
In addition, when the logic editor-based questionnaire question display method of the present application is executed by a terminal device, the terminal device may receive question display logic information of a questionnaire question from the logic editor, may further acquire the question display logic information from a questionnaire database or a preset storage location, then parse the question display logic information, and determine a display policy of questions included in the questionnaire and display the questionnaire question based on the fact that the terminal device receives answer information of the questionnaire question from a user.
It is understood that the above-mentioned questionnaire database may be a local database of the server 10a, or may be a separate data server, which is not limited herein. The questionnaire database can be regarded as an electronic file cabinet, which is a place for storing electronic files, in the embodiment of the present application, the electronic files can refer to at least two topic texts, at least two option texts, a result text, a condition logic combination relationship, and answer information, and also refer to topic identifications corresponding to at least two topic texts, option identifications corresponding to at least two option texts, a condition logic combination relationship, and the like, which are not limited here, and can be changed according to actual application scenarios. The server 10a may perform operations such as adding, querying, updating, and deleting on the electronic file. A "database" is a collection of data that is stored together in a manner that can be shared by multiple users, has as little redundancy as possible, and is independent of the application.
In addition, the method provided by the embodiment of the present application may be executed by a computer device, which includes but is not limited to a terminal (also including the user terminal described above) or a server (also including the server 10a described above). The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a CDN, a big data and artificial intelligence platform, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
The server 10a, the user terminal 10b, the user terminal 10c, and the user terminal 10d in fig. 1 may include a mobile phone, a tablet computer, a notebook computer, and a palm computer.
In addition, in the embodiment of the present invention, the questionnaire may be a questionnaire, or may be examination/practice questions, and the embodiment of the present invention is not limited uniquely.
The embodiment of the application provides a questionnaire topic display method based on a logic editor, and an execution main body of the method can be various terminal devices or server devices with questionnaire topic display capability, and can also be devices or chips integrated on the devices. As shown in fig. 2, which is a schematic flowchart 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:
s201: and acquiring topic display logic information of a first topic contained in the questionnaire.
Wherein the topic display logic information is generated by a logic editor according to at least one logic keyword for characterizing a display strategy of the first topic.
Specifically, in the questionnaires for a plurality of answering users, the questions to be displayed on the questionnaires often differ according to the situation of the answering users. Therefore, when a questionnaire creator creates a questionnaire, it is necessary to set display logic of questionnaire questions displayed to the answering users according to the situation of the answering users, for example, corresponding question display logic may be set for users of different types, for example, the number of questions displayed, the display order of the questions, and the like may be different for a questionnaire for investigating a skin care product, for male answering users and female answering users. For another example, for a questionnaire for researching life conditions of retired elderly people, only male elderly users older than 60 years old and female elderly users older than 50 years old are displayed with questions subsequent to the questionnaire, and the questions displayed to the users by the questionnaire, the number of displayed questions, the display order of the questions, the order of answer options included in the questions, and the like may be different according to different types of users and the answering situations of the users.
For convenience of description, the questions included in the questionnaire may be referred to as first questions, and the first questions may be questions other than the questions displayed in a preset manner in response to the activation of the questionnaire, for example, the questions other than the questions displayed by default after the activation of the questionnaire.
Specifically, the display logic of the questionnaire questions set by the questionnaire creator is used to describe the situation related to the display of the questionnaire questions, in this embodiment, the display logic of the questionnaire questions may be represented by question display logic information, and the questionnaire display logic information may include a relationship between the display of the corresponding first question and the type of the answering user, for example, which age class and which occupation the questionnaire questions are for. The questionnaire display logic information may further include a relationship between the displays of the first subjects included in the questionnaire, a display condition and a display mode of the corresponding first subjects, and the like. For example, the questions included in the questionnaire may be displayed one by one, or two adjacent questions may be displayed simultaneously, or whether to display the next question or not may be determined according to the answer options of the user of the previous question, and the answer options in the questions may be displayed in a preset order, or may be displayed in a random order to eliminate the influence of the option order on the answer selection of the user, and so on.
In addition, in an actual scenario, if a questionnaire contains many questions and the display logic of the questions is complex, a questionnaire creator is generally difficult to write question display logic information and has a large workload, and therefore, in the embodiment of the present application, the display logic of the questions can be generated into the question display logic information through the logic editor according to a preset grammar rule through a semantic logic language, the generation process of the question display logic information can be simplified, and the generation efficiency of the question display logic can be greatly improved. Specifically, the logic language may include a preset logic identifier, a preset logic keyword, or the like, so that the theme display logic information may be generated by the logic editor according to a preset grammar rule or an identification rule, or the like, through the preset logic language. For example, the topic display logic information may include one or more preset logic sentences or keywords, where the logic keywords in the topic display logic information are used to characterize a display policy of the first topic, for example, may be used to characterize under what conditions the first topic is displayed, what content is displayed, how to display, and so on. In order to facilitate the questionnaire creator to learn how to compile question display logic information through logic keywords and to perform subsequent and rapid compiling operations, the logic keywords may be represented by simple and easy-to-understand semantically-enabled Chinese characters or English words, or may be represented by visualized characters or symbols according to preset representation rules. In addition, the above two expression methods and the expression using numbers, letters, and the like may be combined. Therefore, through the logic keywords which are easy to understand and master and used for representing the display strategy of the first question, on one hand, a questionnaire creator can create the questionnaire more quickly, and on the other hand, because the logic keywords can represent the display strategy of the question, other people except the creator can understand the question display logic information of the questionnaire through the logic keywords more conveniently.
In addition, when the topic display logic information is acquired, the topic display logic information can be acquired from a preset storage position after the questionnaire creator completes the setting of the topic display logic. For example, it may be obtained from a preset cache, or may also be obtained from a preset cloud storage location, and from a preset database. In addition, the topic display logic information generated by the logic editor may also be received in the process of setting the topic display logic information by the questionnaire creator. Therefore, it can be understood that, in the process of acquiring the topic display logic information, the acquired topic display logic information may be topic display logic information of all first topics included in the questionnaire, or may be topic display logic information of a part of the first topics.
S202: analyzing the topic display logic information of the first topic to obtain logic keywords corresponding to the first topic, and determining the display dependency relationship between each first topic and a second topic corresponding to the first topic based on the logic keywords corresponding to the first topic.
In the embodiment of the application, the logic keywords corresponding to the first topic are obtained by analyzing the topic display logic information of the first topic, and because the logic keywords related in the application are semantically used for representing the first topic display strategy, the display dependency relationship between the first topic and the corresponding second topic contained in the first topic display strategy can be conveniently obtained based on the representation meaning of each logic keyword.
Specifically, the second topic corresponding to the first topic is a topic displayed before the first topic is displayed. The display dependency relationship between each first topic and its corresponding second topic is a relationship between the display of the first topic and the second topic, and may specifically include a relationship between a display condition of the first topic and the second topic, for example, after one or more second topics are displayed, the display of the corresponding first topic is determined, or after a user selects a specific answer option of the second topic or fills in specific answer information, the corresponding first topic is displayed, for example, a questionnaire about makeup for women, and only when the user selects "woman" (or "girl", "female", etc.) or fills in "woman" when answering the second topic about gender, the corresponding first topic is displayed. In addition, the relationship between the display mode of the first topic and the second topic, for example, the relationship between the sequence of a plurality of first topics and the second topic, the relationship between the sequence of each answer option of the first topic and the second topic, the relationship between whether a certain answer option in the first topic is displayed and the second topic, and the like, may also be included, where the relationship with the second topic may include: a relationship with whether the second question is displayed, a relationship with answer information of the second question of the user, and the like, wherein the answer information can comprise answer options of the user or answer contents filled in by the user.
In addition, the second topic in the embodiment of the present application is not a specific topic, and the second topic corresponds to each first topic, where the second topic corresponding to each first topic and having a display dependency relationship with the first topic may be one topic displayed before the first topic, or may be a plurality of topics displayed before the first topic. Thus, it can be appreciated that the second topic corresponds to, and is specific to, the first topic.
S203: and after receiving the answer information of the user on the second question, determining 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 the corresponding second question so as to display the questionnaire questions.
Specifically, the answer information of the second question may include the answer options selected by the user for the answer options of the second question or the content of the answer questions filled by the user. The display policy of the first topic may include under what circumstances the first topic is displayed, in what manner the first topic is displayed, and so on.
And it can be understood that the display of the first question in the questionnaire of the embodiment of the present application may be gradually displayed during the user's questionnaire answering, for example, during the questionnaire answering, the questions in one or more questionnaires are displayed along with the user's answering process and the dependency relationship between the questions.
According to the method and the device for displaying the questionnaire questions, question display logic information of first questions contained in the questionnaire is obtained, the question display logic information of the first questions is analyzed, display dependency relationship between each first question and a second question corresponding to the first question is determined, and after answer information of a user on the second questions is received, display strategies of the first questions are determined based on the answer information of the second questions and the dependency relationship between each first question and the second question corresponding to the first question, so that the questionnaire questions are displayed. Compared with the prior art that a large amount of codes are compiled for the questionnaire to be displayed, the method and the device only need to compile simple and understandable semantic question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question display logic is improved.
In one embodiment of the present application, the logic keyword may include a display condition keyword or a display mode keyword, and the like.
Specifically, the topic display logic information may be generated by a logic language according to a preset grammar rule, where the logic language may include a plurality of logic keywords, each of the logic keywords may express a preset logic relationship, and a logic statement may be formed by the plurality of logic keywords to represent the logic of the topic display. The logic keywords may be represented by chinese characters or english words, letters, numbers, or logic symbols, and specifically, may be represented by one of the above representation methods or a combination of several methods. For example, in the case of representing english words, the logical keywords may include the following display condition keywords or display mode keywords, respectively:
displaying condition keywords Description of the invention
And Logic AND
Or Logic or
Not Logical not
If…then Conditional logic
Figure BDA0003027715580000131
Figure BDA0003027715580000141
In addition, at least one logical symbol, for example, a greater than sign ">, a less than sign" < ", an equal to sign" ═ or "and the like, may also be included in the logical language to describe the logical relationship of the title display. Further, in generating the topic display logic information, the generated plurality of logic sentences may follow preset syntax rules, for example, topic 1 is identified by Q1, i.e., topic 1, item 1 of topic 1 is identified by Q1a1, the number of answers to topic 1 is identified by lenQ1, and the like. Therefore, according to the logic language and the preset grammar rule, the logic editor can generate question display logic information of a first question contained in the questionnaire, for example, assuming a questionnaire for investigating retired elderly people, the display logic of the 3 rd question is as follows: gender female is selected for the 1 st question and the answer information for the 2 nd question for the age is more than 50 years old, or gender male is selected for the 1 st question and the 3 rd question is displayed when the answer information for the second question for the age is more than 60 years old. That is, "sex is female and age is over 50 years old, or sex is male and age is over 60 years old" shows topic 3. Therefore, the topic display logic information of topic 3 generated by the logic editor may be: if (Q1A1 and Q2>50) or (Q1A2 and Q2>60) the show Q3. Wherein, the numbers in the above-mentioned 1 st question and 2 nd question are the serial numbers or the title labels of the titles in the questionnaire.
In the embodiment of the application, the topic display logic information is generated by the logic editor according to at least one logic keyword used for representing a display strategy of a first topic, so that after the topic display logic information of the first topic is analyzed, the logic keyword corresponding to the first topic is obtained, and the display dependency relationship between each first topic and a corresponding second topic is determined based on the logic keyword corresponding to the first topic, so that the display strategy of the first topic is determined based on the answer information of a user and the display dependency relationship between each first topic and the corresponding second topic. Compared with the prior art that a large amount of codes or huge graphical components are compiled for the questionnaire to be displayed, the method and the device only need to be based on semantic logic keywords for representing the question display strategy, and generate question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question display logic is improved.
In another embodiment of the present application, the embodiment of the present application may further include the following steps:
and updating the subject display logic information in real time through a logic editor, wherein the updating mode comprises at least one of correcting the error logic statement and completing the incomplete logic statement.
Specifically, the logic sentences are formed based on the logic keywords, and in the process of generating the theme display logic information based on the logic language, the logic editor can preview the edited theme display logic information, correct wrong logic sentences, complete incomplete logic sentences and the like.
Referring to fig. 3 to 4, which are schematic application scenarios of the questionnaire title display method based on the logical editor provided in the embodiment of the present application, as shown in fig. 3, a logical language editing area is on the left side of the logical editor, and a questionnaire title preview area is on the right side of the logical editor. And generating theme display logic information by editing preset logic keywords in the logic language editing area, and previewing the corresponding theme in the right area after finishing the theme display logic information of the theme. For example, in a questionnaire for research on retired elderly people, when the logic editor completes the question display logic information of question 3 on the left side: after "if (Q1a1 and Q2>50) or (Q1a2 and Q2>60) the show Q3", the corresponding title information of title 3 can be previewed in the preview area on the right side of the logical editor, that is, "what is the motion mode selected after you retire? ". It should be noted that, each topic included in the questionnaire in the embodiment of the present application may be designed in advance as topic content, and after the design is completed, each topic text included in the questionnaire may be stored in the questionnaire database. The content related to the embodiment of the application is a questionnaire topic display method which is performed based on questionnaire topic display logic execution after topic content design is completed.
In addition, as shown in fig. 4, when a logical sentence corresponding to the title display logical information is generated through the left logical language editing area, when a part of the logical keywords are input, the logical language editing area automatically displays the contents of the alternative logical keywords correspondingly so as to complete the corresponding logical sentence, or when an error occurs in the input logical keyword, the contents of the alternative correct logical keywords can also occur correspondingly so as to correct the occurred error. For example, as shown in fig. 4, when the input content does not conform to the preset grammar rule, i.e., "Q1 a" does not conform to the preset grammar rule, the logical language editing area correspondingly displays a correct representation conforming to the preset grammar rule, i.e., "Q1 a 1: XX-the most frequently used chat software is? ".
The method and the device for displaying the question of the questionnaire are based on visual logic words with semantic meaning, such as a plurality of preset logic keywords, and according to preset grammar rules, question display logic information of the questionnaire question is generated through a logic editor, and in the generation process, wrong logic sentences are corrected or incomplete logic sentences are supplemented, so that intelligent question display logic information generation is achieved, the operation difficulty of a questionnaire creator is reduced, the time and labor cost of a complex questionnaire in the implementation process is reduced, and the questionnaire creation efficiency is improved.
In another embodiment of the present application, the second topics include at least one third topic, the third topic being a topic that is displayed in a predetermined manner in response to the initiation of the questionnaire, the method further comprising the steps of:
and receiving the answer information of the user for 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 the corresponding third question.
Specifically, when a questionnaire creator constructs a questionnaire, the second topic in the constructed questionnaire may include one or more third topics, that is, the one or more third topics are displayed before the corresponding first topic, and a display dependency relationship exists between the corresponding first topic and the third topic. The third topic is displayed in a preset manner when the questionnaire is started. For example, at least two third topics may be displayed in a preset display order upon activation of the questionnaire. Specifically, the third topic may be a topic that is displayed first when the questionnaire is started, where the display of one or more third topics displayed first is independent of the display of other topics, and the third topics may be displayed in a default order when the questionnaire is started, for example, in a topic label order. In an actual scenario, the third topic may be the 1 st topic in the questionnaire, or when the third topic is a plurality of topics, the third topic may be the 1 st, 2 nd, or 3 rd 3 … … th topic in the questionnaire.
Taking the questions in the actual questionnaire as an example, in the questionnaire questions, the third question may be a question for performing basic attribute judgment on the user, for example, whether to show a subsequent question to the user or which subsequent questions to show to the user is determined by answer information input by the user for the third question. For example, according to different contents of the questionnaire, the third topic may be one or more, specifically, for example, a questionnaire for cosmetic survey, and the third topic may be a topic for gender determination of the user, for example, the third topic may be the 1 st topic displayed after the questionnaire is started, such as:
"1, ask for what is your gender? "
If the answer information of the user is female, the subsequent questions are continuously displayed, and if the answer information of the user is male, the questionnaire can be ended. For another example, in some research, there may be a plurality of topics for performing basic attribute judgment on a user, and in a questionnaire for performing research on a retired elderly, it is necessary to judge the gender and age of the user to determine whether the user is a target user for the research, so after the questionnaire is started, two topics may be displayed by default, for example:
"1, ask for what is your gender?
2. Ask how much your age is? "
If the answer information of the user is female and the age is more than 50 years old, or male and the age is more than 60 years old, the display of the following questions can be continued for the subsequent investigation. If the user's answer information does not satisfy the above-described conditions for sex and age of the retired elderly, the questionnaire investigation may be ended.
It should be noted that, in an actual scene, the third topic may be set according to a specific situation of a questionnaire, and the topic content investigated by the third topic and the display of a subsequent topic of the questionnaire determined according to answer information of the third topic are set according to a situation of the actual questionnaire, and the setting of the third topic may be used to determine whether to display the subsequent topic, and may also be used to determine a type of the subsequent displayed topic, and the like.
In the embodiment of the application, the second questions comprise at least one third question, the third question is a question displayed in a preset mode in response to the starting of the questionnaire, and the display strategy of the first question is determined by receiving the answer information of the user on the third question, the answer information based on the third question and the display dependency relationship between the first question and the corresponding third question, so that the intelligent question display logic information generation is realized, the operation difficulty of a questionnaire creator is reduced, the time and labor cost of a complex questionnaire in the implementation process is reduced, and the questionnaire creation efficiency is improved.
In one embodiment of the present application, the display dependency relationship includes a relationship between a display condition of the first topic and answer information of the second topic,
determining a display strategy of the first topics based on answer information of the second topics and a display dependency relationship between each first topic and the corresponding second topic, wherein the determining the display strategy comprises the following steps:
and when the received answer information of the corresponding second question is matched with the display condition of the first question, displaying the first question.
Specifically, in the display dependency relationship between the first question and the second question, the display condition of the first question may depend on the answer information of one corresponding second question, or may depend on the answer information of a plurality of corresponding second questions, for example, in an actual questionnaire, the display condition of the 5 th question may be: when topic 4 selects option a, topic 5 is displayed. As another example, the display condition of topic 5 may also be: when topic 3 selects option a and when topic 4 selects option D, topic 5 is displayed. When there are a plurality of second questions, the plurality of second questions may be questions having consecutive question numbers, and for example, the display of the 5 th question depends on the answer information of the 3 rd question and the 4 th question. The plurality of second questions may be questions with discontinuous question numbers, for example, the display of the 7 th question depends on the answer information of the 1 st question, the 3 rd question, and the 5 th question. In addition, when the display of the first question depends on a plurality of second questions, the display condition of the first question may be: and when the answer information of each second question meets the preset logical relationship, displaying the first question. For example, the display condition of topic 5 may be: when the answer information of the 4 th question is smaller than that of the 3 rd question, the 5 th question is displayed.
In addition, the display conditions of the first subjects may be the same or different, that is, the display conditions of the first subjects may be determined by the same second subject or different second subjects. Therefore, it can be understood that after the user answers the second topic, one first topic may be correspondingly displayed, and a plurality of first topics may also be correspondingly displayed. In addition, in the display conditions of the first question, in addition to that the answer information of the second question corresponds to the selection of the specific option, the display conditions may be such that when the answer information of the second question does not select the specific option, the corresponding first question is displayed, and for example, the display conditions of the 5 th question are as follows: when no option a is selected for topic 4, topic 5 is displayed.
Therefore, in the embodiment of the present application, when the answer information of the second question matches with the display condition of the first question, the first question is displayed.
In another embodiment of the present application, the display dependency relationship further includes a relationship between a display manner of the first topic and answer information of the second topic,
determining a display strategy of the first topics based on answer information of the second topics and a display dependency relationship between each first topic and the corresponding second topic, wherein the determining the display strategy comprises the following steps:
and displaying the first question in a display mode corresponding to the answer information of the second question based on the relation between the display mode of the first question and the answer information of the second question.
Specifically, in the display process of the actual questionnaire questions, the display mode of the first question may also have a dependency relationship with the answer information of the second question, where the display mode of the first question may include the following modes:
(1) and replacing part of the content in the first subject by answer information of the second subject. For example, when the exercise situation of the user is investigated, the contents of the investigation of the second topic before the first topic are: "what do you like sports? ", the corresponding first topic is: "how much do you go on XXX exercise weekly? "and, the relationship between the display mode of the first topic and the second topic is that the answer information of the second topic replaces the" XXX "content in the first topic, for example, when the answer information of the second topic input or selected by the user is" badminton ", then the first topic will correspondingly display" how much is the total time of badminton you doing every week? ".
(2) Randomly arranging the sequence of a plurality of first questions and randomly arranging the sequence of answer options in the first questions.
Specifically, in the actual questionnaire, in the display mode corresponding to the answer information of the second question, the order of randomly arranging the plurality of first questions or the order of randomly arranging the answer options in the first questions may be included, and in addition, the order of randomly arranging the plurality of questions and the order of randomly arranging the answer options in the questions may be included in the matrix-type questions including the plurality of questions. With reference to fig. 5, a third application scenario schematic diagram of the questionnaire topic display method based on the logic editor provided in the embodiment of the present application is shown, where the matrix topic includes sub-questions for investigating pages of 3 APPs, so that APPs corresponding to 3 sub-questions can be randomly ordered, and answer options corresponding to 3 sub-questions are randomly ordered, that is, "home page", "chat page", and "personal name card page" in the answer options are randomly ordered.
(3) One or more answer choices in the first topic are hidden.
Specifically, when the answer information of the second question meets the hiding condition of one or more answer options in the first question, the corresponding answer option in the first question may be correspondingly hidden, for example, when the answer option of the 3 rd question selects the a option (or does not select the a option), the B option in the 4 th question is hidden.
Therefore, the display dependency relationship in the embodiment of the present application further includes a relationship between the display manner of the first question and the answer information of the second question, and the first question is displayed in a display manner corresponding to the answer information of the second question based on the relationship between the display manner of the first question and the answer information of the second question.
In another embodiment of the present application, the method further comprises the steps of:
and when the answer information of the second question and/or the answer information of the first question meet the preset questionnaire ending condition, displaying an ending page.
Specifically, in the actual questionnaire, the questionnaire termination condition may depend on one first topic or one second topic, may depend on a plurality of first topics or second topics, and may depend on the first topic and the second topic. It should be noted that the second topic may include a topic displayed in a preset manner when the questionnaire is started.
For example, the questionnaire ending condition may depend on a second topic, which is a topic displayed in a preset manner when the questionnaire is started, for example, the 1 st topic displayed after the questionnaire is started. Specifically, for example, when a survey is made for beauty cosmetics, "question 1, what is your gender? When the answer information of the question is female, the condition of the questionnaire ending is met, and an ending page is displayed.
For example, the questionnaire ending condition may also depend on the second topic and the first topic, for example, the second topic is question 1 in the questionnaire, the first topic is question 3 in the questionnaire, and the questionnaire ending condition may be: and when the answer information of the 3 rd question is larger than that of the 1 st question, displaying an end page.
According to the method and the device for displaying the questionnaire questions, question display logic information of first questions contained in the questionnaire is obtained, the question display logic information of the first questions is analyzed, display dependency relationship between each first question and a second question corresponding to the first question is determined, and after answer information of a user on the second questions is received, display strategies of the first questions are determined based on the answer information of the second questions and the dependency relationship between each first question and the second question corresponding to the first question, so that the questionnaire questions are displayed. Compared with the prior art that a large amount of codes are compiled for the questionnaire to be displayed, the method and the device only need to compile simple and understandable semantic question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question logic is improved.
The following describes a specific implementation scenario provided in the embodiment of the present application with reference to fig. 6 to 8. Fig. 6 is a second flowchart of a method for displaying questionnaires based on a logic editor according to an embodiment of the present application, and fig. 7 to 8 are analysis diagrams of the method for displaying questionnaires based on a logic editor according to an embodiment of the present application.
Specifically, as shown in fig. 6, it is a second flowchart of a method for displaying questionnaire topics based on a logic editor provided in this embodiment of the present application, and in this embodiment of the present application, after a questionnaire creator completes setting of display logic of questionnaire topics, or in a setting process of the display logic of questionnaire topics, topic display logic information of topics other than topics displayed in a preset manner in the questionnaire topics can be obtained after starting a questionnaire. After the topic display information is acquired, the topic display logic information may be analyzed, and in the process of analyzing, since the questionnaire may include a plurality of topics and the topic display logic information of each topic may include a plurality of logic sentences, in the process of analyzing the topic display logic information corresponding to the questionnaire topic, a relationship between the display condition of each topic and the answer information of the corresponding second topic, and a relationship between the display mode of each topic and the answer information of the corresponding second topic may be extracted, for example, as shown in fig. 7, in the analyzed logic relationship tree, a display condition for the 3 rd topic Q3, that is, when Q1 (1 st topic) selects a1 and Q2>50 (Q2 is the 2 nd topic), or when Q1 selects a2 and Q2>60, is obtained, Q3 is displayed. After the relationship between the display condition of each question and the answer information of the corresponding second question and the relationship between the display mode of each question and the answer information of the corresponding second question are obtained, that is, after the logical relationship tree shown in fig. 7 is obtained, because the logical relationship tree includes the display conditions of a plurality of questions and a plurality of display modes, the logical relationship in the logical relationship tree can be classified according to the display conditions and the display modes, and the logical relationship between the display conditions and the display modes of each question and the answer information of the corresponding second question shown in fig. 8 is obtained, so that when the answer information of the second question of the user is matched with the logical relationship corresponding to the display conditions and the display modes, the corresponding question can be displayed or the corresponding display mode can be displayed. And when the answer information of the user meets the end condition, correspondingly displaying an end page.
According to the method and the device for displaying the questionnaire questions, question display logic information of first questions contained in the questionnaire is obtained, the question display logic information of the first questions is analyzed, display dependency relationship between each first question and a second question corresponding to the first question is determined, and after answer information of a user on the second questions is received, display strategies of the first questions are determined based on the answer information of the second questions and the dependency relationship between each first question and the second question corresponding to the first question, so that the questionnaire questions are displayed. Compared with the prior art that a large amount of codes are compiled for the questionnaire to be displayed, the method and the device only need to compile simple and understandable semantic question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question logic is improved.
An embodiment of the present application provides a compiling task scheduling device, and as shown in fig. 9, it is a schematic structural diagram of a logic editor-based questionnaire topic display device provided in an embodiment of the present application, where the logic editor-based questionnaire topic display device 90 may include: an acquisition module 901, a parsing module 902, and a display module 903, wherein,
an obtaining module 901, configured to obtain topic display logic information of a first topic included in a questionnaire, where the topic display logic information is generated by a logic editor according to at least one logic keyword used to represent a display policy of the first topic;
the analysis module 902 is configured to analyze the topic display logic information of the first topic to obtain a logic keyword corresponding to the first topic, and determine a display dependency relationship between each first topic and a second topic corresponding to the first topic based on the logic keyword corresponding to the first topic, where the second topic corresponding to the first topic is a topic displayed before the first topic is displayed;
and the display module 903 is configured to determine, after receiving answer information of a second question from a user, a display policy of the first question based on the answer information of the second question and a dependency relationship between each first question and the corresponding second question, so as to display the questionnaire questions.
In another embodiment of the present invention, the substrate is,
the logical keywords include:
displaying at least one of the condition keywords and the display mode keywords.
In another embodiment, the apparatus further comprises an update module.
And the updating module is used for updating the topic display logic information in real time through the logic editor, the updating mode comprises at least one of correcting an error logic statement and completing an incomplete logic statement, and the logic statement is formed based on the logic key words.
In another embodiment, the second topic includes at least one third topic that is displayed in a predetermined manner in response to the initiation of the questionnaire.
The device also comprises a strategy determining module, which is used for receiving the answer information of the user for 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 the corresponding third question.
In another embodiment, the display dependency relationship includes a relationship between a display condition of the first topic and answer information of the second topic.
The display module is specifically configured to display the first question when the answer information of the received corresponding second question matches the display condition of the first question.
In another embodiment, the display dependency relationship further includes a relationship between a display manner of the first topic and answer information of the second topic.
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.
In another embodiment, the first topic is displayed in a manner that includes at least one of:
replacing part of the content in the first question with answer information of the second question,
Randomly arranging a plurality of first subjects in sequence,
Randomly arranging the order of answer options in the first question,
One or more answer choices in the first topic are hidden.
In another embodiment, the apparatus further comprises an end determination module.
The ending judgment module is specifically used for displaying an ending page when the answer information of the second question and/or the answer information of the first question meets a preset questionnaire ending condition.
The logic editor-based questionnaire topic display device of this embodiment can execute the logic editor-based questionnaire topic display method shown in the above embodiments of this application, and the implementation principles thereof are similar, and are not described herein again.
In the embodiment of the application, the topic display logic information is generated by the logic editor according to at least one logic keyword used for representing a display strategy of a first topic, so that after the topic display logic information of the first topic is analyzed, the logic keyword corresponding to the first topic is obtained, and the display dependency relationship between each first topic and a corresponding second topic is determined based on the logic keyword corresponding to the first topic, so that the display strategy of the first topic is determined based on the answer information of a user and the display dependency relationship between each first topic and the corresponding second topic. Compared with the prior art that a large amount of codes or huge graphical components are compiled for the questionnaire to be displayed, the method and the device only need to be based on semantic logic keywords for representing the question display strategy, and generate question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question display logic is improved.
An embodiment of the present application provides an electronic device, including: a memory and a processor; at least one program stored in the memory for execution by the processor to perform, in comparison with the related art: in the embodiment of the application, the topic display logic information is generated by the logic editor according to at least one logic keyword used for representing a display strategy of a first topic, so that after the topic display logic information of the first topic is analyzed, the logic keyword corresponding to the first topic is obtained, and the display dependency relationship between each first topic and a corresponding second topic is determined based on the logic keyword corresponding to the first topic, so that the display strategy of the first topic is determined based on the answer information of a user and the display dependency relationship between each first topic and the corresponding second topic. Compared with the prior art that a large amount of codes or huge graphical components are compiled for the questionnaire to be displayed, the method and the device only need to be based on semantic logic keywords for representing the question display strategy, and generate question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question display logic is improved.
In an alternative embodiment, an electronic device is provided, as shown in fig. 10, the electronic device 4000 shown in fig. 10 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, and the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may 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 device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 4003 is used for storing application program codes (computer programs) for executing the present scheme, and is controlled by the processor 4001 to execute. Processor 4001 is configured to execute application code stored in memory 4003 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile phones, notebook computers, multimedia players, desktop computers, and the like.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the logic editor-based questionnaire topic display method described above.
The present application further provides a computer program product containing instructions, which when run on a computer device, causes the computer device to execute the method for displaying questionnaire questions based on a logic editor provided in the above-mentioned method embodiments.
In the embodiment of the application, the topic display logic information is generated by the logic editor according to at least one logic keyword used for representing a display strategy of a first topic, so that after the topic display logic information of the first topic is analyzed, the logic keyword corresponding to the first topic is obtained, and the display dependency relationship between each first topic and a corresponding second topic is determined based on the logic keyword corresponding to the first topic, so that the display strategy of the first topic is determined based on the answer information of a user and the display dependency relationship between each first topic and the corresponding second topic. Compared with the prior art that a large amount of codes or huge graphical components are compiled for the questionnaire to be displayed, the method and the device only need to be based on semantic logic keywords for representing the question display strategy, and generate question display logic information through the logic editor for displaying the questionnaire, so that the time and labor cost of the complex questionnaire to be displayed in the implementation process is reduced, and the efficiency of designing question display logic is improved. It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A questionnaire topic display method based on a logic editor is characterized by comprising the following steps:
acquiring topic display logic information of a first topic contained in a questionnaire, wherein the topic display logic information is generated through a logic editor according to at least one logic keyword for representing a display strategy of the first topic;
analyzing the topic display logic information of the first topic to obtain a logic keyword corresponding to the first topic, and determining a display dependency relationship between each first topic and a second topic corresponding to the first topic based on the logic keyword corresponding to the first topic, wherein the second topic corresponding to the first topic is a topic displayed before the first topic is displayed;
and after receiving the answer information of the second question from the user, determining 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 the corresponding second question so as to display the questionnaire questions.
2. The questionnaire question generating method of claim 1,
the logic keywords include:
displaying at least one of the condition keywords and the display mode keywords.
3. The questionnaire question generating method of claim 2, wherein the method further comprises:
and updating the theme display logic information in real time through the logic editor, wherein the updating mode comprises at least one of correcting an error logic statement and completing an incomplete logic statement, and the logic statement is formed based on the logic keywords.
4. The method for generating questionnaire topics according to claim 1, wherein the second topics include at least one third topic, and the third topic is a topic that is displayed in a preset manner in response to the start of a questionnaire, and the method further comprises:
and receiving the answer information of the third question from the user, 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 the corresponding third question.
5. The questionnaire question generation method of claim 1, wherein the display dependency comprises a relationship between the display condition of the first question and the answer information of the second question,
the determining a display strategy of the first topic based on the answer information of the second topic and the display dependency relationship between each first topic and the corresponding second topic comprises:
and when the received answer information of the corresponding second question is matched with the display condition of the first question, displaying the first question.
6. The questionnaire question generation method of claim 1, wherein the display dependency further comprises a relationship between a display manner of the first question and answer information of the second question,
the determining a display strategy of the first topic based on the answer information of the second topic and the display dependency relationship between each first topic and the corresponding second topic comprises:
and displaying the first question in a display mode corresponding to the answer information of the second question based on the relation between the display mode of the first question and the answer information of the second question.
7. The questionnaire question generation method of claim 6, wherein the display mode of the first question comprises at least one of:
replacing part of the content in the first question with answer information of the second question,
A plurality of the first subjects are randomly arranged in the order,
Randomly arranging the order of answer options in the first question,
Hiding one or more answer choices in the first topic.
8. The questionnaire question generating method of any one of claims 1 to 7, wherein the method further comprises:
and when the answer information of the second question and/or the answer information of the first question meet a preset questionnaire ending condition, displaying an ending page.
9. A logic editor-based questionnaire question display device, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring topic display logic information of a first topic contained in a questionnaire, and the topic display logic information is generated based on a logic editor;
the analysis module is used for analyzing the theme display logic information of the first theme and determining the display dependency relationship between each first theme and a second theme corresponding to the first theme, wherein the second theme corresponding to the first theme is a theme displayed before the first theme is displayed;
and the display module is used for determining 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 the corresponding second question after receiving the answer information of the second question of the user so as to display the questionnaire questions.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a 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, the one or more computer programs configured to: executing the method for displaying questionnaire questions based on a logic editor according to any one of claims 1 to 8.
CN202110420630.4A 2021-04-19 2021-04-19 Logic editor-based questionnaire question display method and device and electronic equipment Pending CN113761147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110420630.4A CN113761147A (en) 2021-04-19 2021-04-19 Logic editor-based questionnaire question display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110420630.4A CN113761147A (en) 2021-04-19 2021-04-19 Logic editor-based questionnaire question display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113761147A true CN113761147A (en) 2021-12-07

Family

ID=78787030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110420630.4A Pending CN113761147A (en) 2021-04-19 2021-04-19 Logic editor-based questionnaire question display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113761147A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116010712A (en) * 2023-03-22 2023-04-25 北京时代新威信息技术有限公司 Form recommendation method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116010712A (en) * 2023-03-22 2023-04-25 北京时代新威信息技术有限公司 Form recommendation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
Giannoulakis et al. Evaluating the descriptive power of Instagram hashtags
CN107346336B (en) Information processing method and device based on artificial intelligence
Gurcan et al. Mapping human–computer interaction research themes and trends from its existence to today: A topic modeling-based review of past 60 years
US11327978B2 (en) Content authoring
CN112711937B (en) Template recommendation method, device, equipment and storage medium
CN107220352B (en) Method and device for constructing comment map based on artificial intelligence
Kumar et al. Text mining: concepts, process and applications
CN109635094B (en) Method and device for generating answer
CN113704428B (en) Intelligent inquiry method, intelligent inquiry device, electronic equipment and storage medium
US11574123B2 (en) Content analysis utilizing general knowledge base
Joyner et al. Visualization accessibility in the wild: Challenges faced by visualization designers
CN113392179A (en) Text labeling method and device, electronic equipment and storage medium
CN112287085B (en) Semantic matching method, system, equipment and storage medium
CN116796857A (en) LLM model training method, device, equipment and storage medium thereof
CN113704420A (en) Method and device for identifying role in text, electronic equipment and storage medium
Jing et al. Stylized data-to-text generation: A case study in the e-commerce domain
Kaur et al. Semantic-based integrated plagiarism detection approach for english documents
CN109992711A (en) Information recommendation method, device, computer equipment and storage medium
CN110222144A (en) Method for extracting content of text, device, electronic equipment and storage medium
CN113761147A (en) Logic editor-based questionnaire question display method and device and electronic equipment
Nguyen et al. A novel approach for automatic extraction of semantic data about football transfer in sport news
Gerard Practical Machine Learning in JavaScript
Dos Reis et al. Addressing universal access in social networks: an inclusive search mechanism
CN115270746A (en) Question sample generation method and device, electronic equipment and storage medium
Chen et al. Transitions in daily search tactics: during the cross-app interaction search process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination