User questionnaire evaluation method, system and device
By obtaining user questionnaire, its evaluation rules and priority order, and using the rule engine to conduct questionnaire evaluation, the problem of complex questionnaire evaluation is solved, and a clear and flexible evaluation process is achieved.
Patent Information
- Application Number
- CN202111317509.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-09
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2041-11-09
AI Technical Summary
When there are many logical operations in the questionnaire or when the logical operations are complex, how to achieve effective evaluation of the user questionnaire is a problem that needs to be solved.
By obtaining the pending user questionnaire and its corresponding evaluation rules and priorities, the rule engine is used to evaluate the questionnaire. The evaluation rules include inter-question rules, inter-question part rules and special rules, which are executed in order of priority to determine the final evaluation results of the questionnaire.
It realizes a clear logic of complex questionnaires, easy maintenance and expansion evaluation process, and improves the flexibility of the system and the accuracy of questionnaires evaluation.
Smart Images

Figure CN114022208B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a user questionnaire evaluation method, system and device. Background Art
[0002] With the development of the Internet and the growing business needs, the questionnaire system has become increasingly complex and diversified. There are multiple logical operations in the questions in the questionnaire, and multiple rules are needed to evaluate the user questionnaire. For example, one evaluation rule is that if the user selects option a in the xth question of the questionnaire, then the highest score for the y1th question of the questionnaire is m1, and the highest score for the y2th question is m2; another evaluation rule is that if the user meets certain conditions, then in the xth question of the questionnaire, only option a can be selected (or not selected); another evaluation rule is that if the questionnaire is divided into several parts, if the score in the first part is m, then the score of the entire questionnaire is n.
[0003] When there are multiple logical operations or complex logical operations in the questions of the questionnaire, how to evaluate the user questionnaire is a problem that needs to be solved at present. Summary of the invention
[0004] In a first aspect, a user questionnaire evaluation method includes: obtaining a user questionnaire to be processed, wherein the user questionnaire includes at least one question and answer data corresponding to the at least one question; obtaining evaluation rules corresponding to the user questionnaire and a priority order of the evaluation rules;
[0005] The user questionnaire is evaluated according to the evaluation rules and the priority order of the evaluation rules to obtain an evaluation result of the user questionnaire.
[0006] Optionally, the evaluation rules include at least one of inter-question rules, inter-questionnaire part rules, and special rules. The inter-question rules are used to specify the constraint relationship between the evaluation result of one question and the answer data of another question. The inter-questionnaire part rules are used to specify the constraint relationship between the evaluation results of one question and one or more questionnaire parts and the evaluation result of the user questionnaire. The special rules are used to specify the constraint relationship between the evaluation result of the user questionnaire and the answer data of a specified question or the evaluation result of a specified questionnaire part. The user questionnaire includes at least two questionnaire parts, each of which includes at least one question.
[0007] Optionally, the user questionnaire is evaluated according to the evaluation rules and the priority order of the evaluation rules, including: obtaining user type information corresponding to the user questionnaire; if the answer data corresponding to the first question in the user questionnaire does not match the user type indicated by the user type information, then ending the evaluation of the user questionnaire; wherein the first question is any one of the questions included in the user questionnaire.
[0008] Optionally, if the evaluation rules include inter-question rules, then the user questionnaire is evaluated according to the evaluation rules and the priority order of the evaluation rules, including: evaluating the answer data of each question respectively to obtain an evaluation result of each question; wherein, if the current question corresponds to an inter-question rule, then the evaluation result of the current question is determined according to the constraint relationship between the evaluation result of the current question and the answer data of another question specified by the inter-question rule; based on the evaluation result of each question, the evaluation result of each questionnaire part of the user questionnaire is determined; based on the evaluation result of each questionnaire part of the user questionnaire, the evaluation result of the user questionnaire is determined.
[0009] Optionally, if the user rules include rules between questionnaire parts, then the user questionnaire is evaluated according to the evaluation rules and the priority order of the evaluation rules, including: evaluating the answer data of each question separately to obtain an evaluation result of each question; determining the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; determining the evaluation result of the user questionnaire according to the evaluation result of each questionnaire part of the user questionnaire and based on the constraint relationship between the evaluation results of one or more questionnaire parts specified by the rules between questionnaire parts and the evaluation result of the user questionnaire.
[0010] Optionally, if the user rules include the special rules, the user questionnaire is evaluated according to the evaluation rules and the priority order of the evaluation rules, including: evaluating the answer data of each question respectively to obtain the evaluation result of each question; determining the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; determining the evaluation result of the user questionnaire according to the evaluation result of each questionnaire part of the user questionnaire; updating the evaluation result of the user questionnaire according to the constraint relationship between the answer data of the question specified in the special rules and the evaluation result of the user questionnaire; and / or updating the evaluation result of the user questionnaire according to the constraint relationship between the evaluation result of the questionnaire part specified in the special rules and the evaluation result of the user questionnaire.
[0011] Optionally, the evaluation rule is carried in a script file, and the method further includes: receiving an update request for the evaluation rule, wherein the update request includes update information of the evaluation rule; and updating the script file according to the update information of the evaluation rule.
[0012] Optionally, the evaluation rules are arranged in order of priority from high to low: the rules between questions, the rules between questionnaire parts, and the special rules.
[0013] In a second aspect, a user questionnaire evaluation system includes: a questionnaire interaction unit, used to obtain a user questionnaire to be processed, wherein the user questionnaire includes at least one question and answer data corresponding to the at least one question; a rule loading unit, used to obtain evaluation rules corresponding to the user questionnaire and a priority order of the evaluation rules; and a rule engine unit, used to evaluate the user questionnaire according to the evaluation rules and the priority order of the evaluation rules to obtain an evaluation result of the user questionnaire.
[0014] Optionally, the evaluation rules include at least one of inter-question rules, inter-questionnaire part rules, and special rules. The inter-question rules are used to specify the constraint relationship between the evaluation result of one question and the answer data of another question. The inter-questionnaire part rules are used to specify the constraint relationship between the evaluation results of one question and one or more questionnaire parts and the evaluation result of the user questionnaire. The special rules are used to specify the constraint relationship between the evaluation result of the user questionnaire and the answer data of a specified question or the evaluation result of a specified questionnaire part. The user questionnaire includes at least two questionnaire parts, each of which includes at least one question.
[0015] Optionally, the rule engine unit is specifically used to: obtain user type information corresponding to the user questionnaire; if the answer data corresponding to the first question in the user questionnaire does not match the user type indicated by the user type information, then end the evaluation of the user questionnaire; wherein the first question is any one of the questions included in the user questionnaire.
[0016] Optionally, the rule engine unit is specifically used to: evaluate the answer data of each question respectively to obtain an evaluation result of each question; wherein, if the current question corresponds to an inter-question rule, then determine the evaluation result of the current question according to the constraint relationship between the evaluation result of the current question and the answer data of another question specified by the inter-question rule; determine the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; determine the evaluation result of the user questionnaire according to the evaluation result of each questionnaire part of the user questionnaire.
[0017] Optionally, the rule engine unit is specifically used to: evaluate the answer data of each question respectively to obtain an evaluation result of each question; determine the evaluation result of each questionnaire part of the user questionnaire based on the evaluation result of each question; determine the evaluation result of the user questionnaire based on the evaluation result of each questionnaire part of the user questionnaire and based on the constraint relationship between the evaluation results of one or more questionnaire parts specified by the rules between the questionnaire parts and the evaluation results of the user questionnaire.
[0018] Optionally, the rule engine unit is specifically used to: evaluate the answer data of each question respectively to obtain an evaluation result of each question; determine the evaluation result of each questionnaire part of the user questionnaire based on the evaluation result of each question; determine the evaluation result of each questionnaire part of the user questionnaire based on the evaluation result of each questionnaire part of the user questionnaire; update the evaluation result of the user questionnaire based on the constraint relationship between the answer data of the question specified in the special rule and the evaluation result of the user questionnaire; and / or update the evaluation result of the user questionnaire based on the constraint relationship between the evaluation result of the questionnaire part specified in the special rule and the evaluation result of the user questionnaire.
[0019] Optionally, the evaluation rule is carried in a script file; the rule loading unit is further used to: receive an evaluation rule update request, the update request includes update information of the evaluation rule; and update the script file according to the update information of the evaluation rule.
[0020] Optionally, the evaluation rules are arranged in order of priority from high to low: the rules between questions, the rules between questionnaire parts, and the special rules.
[0021] In a third aspect, a communication device comprises: a processor and a memory; the memory stores computer instructions; the processor is used to read the computer instructions and execute the method described in the first aspect.
[0022] According to a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to enable a computer to execute the method according to the first aspect.
[0023] According to a fifth aspect, a computer program product is provided. When the computer program product is called by a computer, the computer is caused to execute the method according to the first aspect.
[0024] In an embodiment of the present application, the user questionnaire to be processed is first obtained, and then the evaluation rules corresponding to the user questionnaire and the priority order of the evaluation rules are obtained. The user questionnaire is evaluated according to the evaluation rules and the priority order of the evaluation rules, so that the logic of the entire execution process is clear, easy to maintain and expand, and the flexibility of the system can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 An exemplary structure diagram of a user questionnaire evaluation system provided in an embodiment of the present application is shown;
[0026] Figure 2 A flowchart of a user questionnaire evaluation method provided by an embodiment of the present application is exemplified;
[0027] Figure 3 The following is a schematic diagram of the structure of a user questionnaire provided in an embodiment of the present application;
[0028] Figure 4 A schematic diagram of a process of evaluating a user questionnaire provided in an embodiment of the present application is exemplified;
[0029] Figure 5 The structure diagram of the communication device provided in the embodiment of the present application is exemplified. DETAILED DESCRIPTION
[0030] In an embodiment of the present application, the evaluation rules used for evaluating user questionnaires are divided into several types, and the priority order of the evaluation rules of the several types is set, so that the user questionnaires can be evaluated according to the evaluation rules and the priority order of the evaluation rules, so that the logic of the entire execution process is clear, easy to maintain and expand, and the flexibility of the system can be improved.
[0031] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0032] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0033] See also Figure 1 The schematic diagram of the structure of a user questionnaire evaluation system provided in the embodiment of the present application is exemplified. As shown in the figure, the system includes: a questionnaire interaction unit 10, a rule loading unit 11, and a rule engine unit 12.
[0034] The questionnaire interaction unit 10 is used to provide a user interface, and obtain the user questionnaire to be processed and the answer data of the user questionnaire according to the user interface.
[0035] The rule loading unit 11 is used to obtain the evaluation rules and the priority order of the evaluation rules corresponding to the user questionnaire according to the user questionnaire obtained by the questionnaire interaction unit 10. Optionally, the evaluation rules may include rules between questions 11a, rules between questionnaire parts 11b, and special rules 11c. In the embodiment of the present application, the evaluation rules can be classified in advance, and the user rules can be divided into rules between questions, rules between questionnaire parts, special rules, etc. in the embodiment of the present application. A detailed description of each type of rules can be found below.
[0036] The rule engine unit 12 is used to evaluate the user questionnaire according to the evaluation rules and the priority order of the evaluation rules corresponding to the user questionnaire obtained by the rule loading unit 11, so as to obtain the final evaluation result of the user questionnaire.
[0037] Optionally, the rule engine unit 12 can use a rule engine component based on javax.script.ScriptEngine, and of course other rule engine components can also be used. Through this engine component, when there are multiple logical operations or complex logical operations in the user questionnaire, the problem that needs to be hard-coded to be solved can be converted into front-end development, and the relevant operations are performed through the configuration of JavaScript. Among them, front-end development refers to the process of creating a front-end interface such as a WEB page or APP to present it to the user, and various technologies, frameworks, and solutions derived from hypertext markup language (HTML), cascading style sheets (CSS), scripting languages (JavaScript, JS), etc. are used to realize the user interface interaction of Internet products. Among them, the rule engine is a component embedded in the application. Its task is to test and compare the data object currently submitted to the engine with the business rules loaded in the engine, activate those business rules that meet the current data state (i.e., the evaluation rules in this application), and trigger the corresponding operations in the application according to the execution logic declared in the business rules. It has the characteristics of adapting to various rule changes and high matching efficiency.
[0038] The rule engine unit 12 adopts the basic mechanism of the above rule engine, including the description of the dependency relationship between user questionnaires, questions, answers, etc., and evaluates the data object submitted to the engine (ie, the user questionnaire).
[0039] See also Figure 2 The flowchart schematic diagram of a user questionnaire evaluation method provided in an embodiment of the present application is exemplified. The process can be executed by the above-mentioned user questionnaire processing system. The process first obtains the data of the user questionnaire to be processed, then obtains the evaluation rules of each type included in the user questionnaire and the corresponding priority order, and finally evaluates the user questionnaire according to the priority order to obtain the evaluation result of the user questionnaire. Among them, the evaluation result can refer to the score, scoring or grade of the user questionnaire. In the embodiment of the present application, the evaluation result is described by taking the score as an example.
[0040] like Figure 2 As shown, the specific process is as follows:
[0041] S201: Obtain user questionnaires to be processed.
[0042] The structure of the user questionnaire can be found in Figure 3 , Figure 3 The following is a schematic diagram of the user questionnaire structure provided in an embodiment of the present application.
[0043] As shown in the figure, a user questionnaire may include a questionnaire identifier (for example, its number or version number is used as the unique identifier of the user questionnaire). Each user questionnaire includes one or more questions. For different questions, there are multiple ways to answer the question (such as filling in the blanks, single choice, multiple choice, sorting, connecting, etc.).
[0044] S202: Obtaining evaluation rules corresponding to the user questionnaire and the priority order of the evaluation rules.
[0045] Optionally, the evaluation rule may include at least one of the rules between questions, the rules between questionnaire parts, and the special rules. For example, it may include only the rules between questions, or only the rules between questionnaire parts, or only the special rules, or include the rules between questions, the rules between questionnaire parts, and the special rules. It should be noted that the evaluation rules corresponding to the user questionnaire can be configured according to business needs.
[0046] Optionally, the evaluation rules corresponding to the user questionnaire may include one or more inter-topic rules, such as setting corresponding inter-topic rules for one or more topics; the evaluation rules corresponding to the user questionnaire may include one or more inter-questionnaire part rules, or one or more special rules.
[0047] In the embodiment of the present application, the evaluation rules may be classified in advance. In the embodiment of the present application, the user rules may be divided into rules between questions, rules between questionnaire parts, special rules, etc.
[0048] Among them, the inter-question rule is used to define the constraint relationship between the evaluation result of one question and the answer data of another question. For example, an example of an inter-question rule is: if option a is selected in question x, then the highest score in question y is m; another example of an inter-question rule is: if option a is selected in question x, then the highest score in question y1 is m1, and the highest score in question y2 is m2.
[0049] The rules between questionnaire parts are used to define the constraint relationship between the evaluation results of one or more questionnaire parts and the evaluation results of the user questionnaire. The user questionnaire includes at least two questionnaire parts, and each questionnaire part includes at least one question. For example, an example of a rule between questionnaire parts is: if the score in the first part is m, then the score of the user questionnaire is n; another example of a rule between questionnaire parts is: the total score of the user questionnaire is the maximum value of the scores of several parts, of course, it may also be the minimum value, or the scores of several parts are subjected to more complex logical operations to obtain the total score of the user questionnaire.
[0050] Special rules are used to define the constraint relationship between the evaluation results of the user questionnaire and the answer data of the specified question or the evaluation results of the specified questionnaire part. An example of a special rule is: if option a is selected in question x, the maximum final score of the user questionnaire is m; another example of a special rule is: if option a is selected in question x1 and option b is selected in question x2, the maximum final score of the user questionnaire is m.
[0051] Optionally, the above-mentioned various types of evaluation rules may be carried in a script file to facilitate updating of the evaluation rules. Exemplarily, when the system receives an update request for the evaluation rules, the script file may be updated according to the update information of the evaluation rules included in the update request.
[0052] Among them, the script is an executable file written in a certain format using a specific descriptive language. The key is to use the configuration file to define and expand the events and actions supported in the user questionnaire. When receiving different evaluation rules, different operations can be performed to trigger different events. A major advantage of the script is that the script can be written just like writing code, without having to compile it before running. It only needs to be interpreted and executed by the script engine. Therefore, the script can be used to easily add objects (i.e., the update information of the evaluation rules in this application) similar to writing code to reference objects. The script can directly write the logical actions triggered by the event to achieve the purpose of expansion without modifying the core code and recompiling.
[0053] S203: Evaluate the user questionnaire according to the evaluation rules and the priority order of the evaluation rules.
[0054] Optionally, user type information corresponding to the user questionnaire may be obtained first. If the answer data corresponding to a question (such as the first question) in the user questionnaire does not match the user type indicated by the user type information, the evaluation of the user questionnaire is terminated. The user type information may include gender, age, occupation, etc. The user type information may be included in the user questionnaire, and the system may also use other methods to obtain the user type information corresponding to the user questionnaire.
[0055] For example, if for question X in the user questionnaire, it is predefined that user type M is not allowed to select option a. When the system scores question X in the user questionnaire, it first obtains the user type information corresponding to the user questionnaire. If the user type is M and the user selects option a for question X in the user questionnaire, the user type indicated by the user type information does not match, and the evaluation of the user questionnaire ends; if the user selects option b for question X, the evaluation of the user questionnaire continues.
[0056] Exemplarily, if the evaluation rules corresponding to the user questionnaire include inter-question rules, then in S203, the execution steps of evaluating the user questionnaire according to the evaluation rules and the priority order of the evaluation rules include:
[0057] First, evaluate the answer data of each question separately to obtain the evaluation result of each question. Among them, if there is an inter-question rule corresponding to the current question, the evaluation result of the current question is determined according to the constraint relationship between the evaluation result of the current question and the answer data of another question specified by the inter-question rule. For example, when scoring the answer to the current question X3, the inter-question rule corresponding to question X3 stipulates that the score of question X3 is related to the answer to question X1. For example, if the answer to question X1 is a, the score of question X3 is not less than m. In this case, when scoring question X3, it is necessary to refer to the answer to question X1 and make the score of question X3 meet the requirements of the rule.
[0058] Then, the evaluation result of each questionnaire part of the user questionnaire is determined according to the evaluation result of each question. Exemplarily, for each questionnaire part, the scores of all questions in the part can be added together to obtain the evaluation result (ie, score) of the part.
[0059] Finally, the evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire. Exemplarily, the score of each questionnaire part can be added together to obtain the total score of the user questionnaire.
[0060] Exemplarily, if the evaluation rule corresponding to the user questionnaire includes a rule between questionnaire parts, then in S203, the execution step of evaluating the user questionnaire according to the evaluation rule and the priority order of the evaluation rule includes:
[0061] First, the answer data of each question is evaluated respectively to obtain the evaluation result of each question. Then, the evaluation result of each questionnaire part of the user questionnaire is determined according to the evaluation result of each question. Finally, the evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire and the constraint relationship between the evaluation result of one or more questionnaire parts and the evaluation result of the user questionnaire stipulated by the rules between the questionnaire parts.
[0062] For example, when scoring the first part of the current questionnaire, the questionnaire part rule corresponding to the first part stipulates that the score of the entire questionnaire is related to the score of the first part. For example, if the score of the first part is m, the final score of the user questionnaire is n. Then, when scoring the overall questionnaire, it is necessary to refer to the score of the first part of the questionnaire and make the overall score of the questionnaire meet the requirements of the rule.
[0063] Exemplarily, if the evaluation rules corresponding to the user questionnaire include special rules, the execution steps of evaluating the user questionnaire according to the evaluation rules and the priority order of the evaluation rules in S203 include:
[0064] First, the answer data of each question is evaluated respectively to obtain the evaluation result of each question. Then, the evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire. Finally, the evaluation result of the user questionnaire is updated according to the constraint relationship between the answer data of the question specified in the special rule and the evaluation result of the user questionnaire.
[0065] For example, when scoring the answer to the current question X4, the special rule corresponding to question X4 stipulates that the overall score of the questionnaire is related to the answer to question X4. For example, if the overall score of the questionnaire is m, if the answer to question X4 is a, the final score of the questionnaire will be updated to n.
[0066] Alternatively, first, the answer data of each question is evaluated respectively to obtain the evaluation result of each question. Then, the evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire. Finally, the evaluation result of the user questionnaire is updated according to the constraint relationship between the evaluation result of the questionnaire part specified in the special rule and the evaluation result of the user questionnaire.
[0067] For example, when scoring the third part of the current questionnaire, the special rules corresponding to the third part of the questionnaire stipulate that the overall score of the questionnaire is related to the score of the third part of the questionnaire. For example, if the score of the third part of the questionnaire is m, the final score of the questionnaire will be updated to n.
[0068] Alternatively, first, the answer data of each question is evaluated respectively to obtain the evaluation result of each question. Then, the evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire. Finally, the evaluation result of the user questionnaire is updated according to the constraint relationship between the answer data of the question specified in the special rule and the evaluation result of the user questionnaire and the constraint relationship between the evaluation result of the questionnaire part specified in the special rule and the evaluation result of the user questionnaire.
[0069] For example, if the evaluation rules corresponding to the user questionnaire may include two or three of the inter-question rules, the inter-question part rules, and the special rules, the method for evaluating the user questionnaire according to the evaluation rules and the priority order of the evaluation rules is as follows: Figure 2 The process shown is similar.
[0070] The following example takes the evaluation rules corresponding to the user questionnaire as an example, which may include rules between questions, rules between questionnaire parts, and special rules, and the order of priority of rule execution from high to low is rules between questions, rules between questionnaire parts, and special rules. Figure 4 Describe the evaluation process of the user questionnaire.
[0071] See also Figure 4 A flowchart of evaluating a user questionnaire provided in an embodiment of the present application is exemplified.
[0072] As shown in the figure, if according to the user type information, the Xth question does not allow the selection of option a, but the answer returned by the front end shows that the user has selected a, then the user type indicated by the user type information does not match, and the evaluation of the user questionnaire is terminated. If option a is not selected for the Xth question, the user questionnaire is continued to be evaluated according to the evaluation rules and the priority order of the evaluation rules. First, the score of each question is obtained according to the rules between questions, which are used to specify the constraint relationship between the score of one question and the answer data of another question. Then, according to the rules between questionnaire parts, which are used to specify the constraint relationship between the score of one or more questionnaire parts and the overall score of the user questionnaire, the score of each questionnaire part of the user questionnaire and the overall score of the user questionnaire are determined. Finally, according to the special rules, which are used to specify the constraint relationship between the overall score of the user questionnaire and the answer data of the specified question or the score of the specified questionnaire part, the final score of the user questionnaire is obtained.
[0073] In an embodiment of the present application, the user questionnaire to be processed is first obtained, and then the evaluation rules corresponding to the user questionnaire and the priority order of the evaluation rules are obtained. The user questionnaire is evaluated according to the evaluation rules and the priority order of the evaluation rules, so that the logic of the entire execution process is clear, easy to maintain and expand, and the flexibility of the system can be improved.
[0074] Based on the same technical concept, an embodiment of the present application also provides a communication device, which can implement the method flow provided in the above embodiment of the present application.
[0075] Figure 5 The structure diagram of the communication device provided in the embodiment of the present application is exemplified. As shown in the figure, the device may include: a processor 501, a memory 502 and a bus interface 503.
[0076] The processor 501 is responsible for managing the bus architecture and general processing, and the memory 502 can store data used by the processor 501 when performing operations.
[0077] The bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 501 and memory represented by memory 502. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. Processor 501 is responsible for managing the bus architecture and general processing, and memory 502 may store data used by processor 501 when performing operations.
[0078] The process disclosed in the embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. In the implementation process, each step of the signal processing process can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The processor 501 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams of the application in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method applied in conjunction with the embodiment of the present application can be directly embodied as a hardware processor to be executed, or the hardware and software modules in the processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the information processing process in conjunction with its hardware.
[0079] Specifically, the processor 501 is used to read the computer instructions in the memory 502 and execute the Internet of Vehicles device management method in the embodiment of the present application.
[0080] It should be noted here that the above-mentioned communication device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0081] The present application also provides a computer-readable storage medium storing computer-executable instructions for enabling a computer to execute Figure 2 The process being executed.
[0082] The present application also provides a computer program product, which, when called by a computer, enables the computer to execute Figure 2 The process being executed.
[0083] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0084] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.
[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0087] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A user questionnaire evaluation method, characterized in that: The method comprises: Obtaining a user questionnaire to be processed, wherein the user questionnaire includes at least one question and answer data corresponding to the at least one question; Obtaining evaluation rules corresponding to the user questionnaire and the priority order of the evaluation rules; According to the evaluation rules and the priority order of the evaluation rules, the user questionnaire is evaluated to obtain an evaluation result of the user questionnaire; Among them, the evaluation rules include at least one of the rules between questions, rules between questionnaire parts, and special rules. The rules between questions are used to specify the constraint relationship between the evaluation result of one question and the answer data of another question. The rules between questionnaire parts are used to specify the constraint relationship between the evaluation results of one or more questionnaire parts and the evaluation results of the user questionnaire. The special rules are used to specify the constraint relationship between the evaluation results of the user questionnaire and the answer data of a specified question or the evaluation results of a specified questionnaire part. The user questionnaire includes at least two questionnaire parts, and each of the questionnaire parts includes at least one question.
2. The method according to claim 1, characterized in that The step of evaluating the user questionnaire according to the evaluation rules and the priority order of the evaluation rules includes: Obtaining user type information corresponding to the user questionnaire; If the answer data corresponding to the first question in the user questionnaire does not match the user type indicated by the user type information, the evaluation of the user questionnaire is terminated; wherein the first question is any one of the questions included in the user questionnaire.
3. The method according to claim 1, characterized in that If the evaluation rule includes an inter-question rule, then evaluating the user questionnaire according to the evaluation rule and the priority order of the evaluation rule includes: Evaluate the answer data of each question respectively to obtain the evaluation result of each question; wherein, if the current question corresponds to an inter-question rule, determine the evaluation result of the current question according to the constraint relationship between the evaluation result of the current question and the answer data of another question specified by the inter-question rule; Determine the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; The evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire.
4. The method according to claim 1, characterized in that If the user rule includes a rule between questionnaire parts, then the step of evaluating the user questionnaire according to the evaluation rule and the priority order of the evaluation rule includes: Evaluate the answer data of each question respectively to obtain the evaluation result of each question; Determine the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; The evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire and based on the constraint relationship between the evaluation results of one or more questionnaire parts stipulated by the rules between the questionnaire parts and the evaluation result of the user questionnaire.
5. The method according to claim 1, characterized in that If the user rule includes the special rule, then evaluating the user questionnaire according to the evaluation rule and the priority order of the evaluation rule includes: Evaluate the answer data of each question respectively to obtain the evaluation result of each question; Determine the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; Determining an evaluation result of the user questionnaire according to the evaluation result of each questionnaire part of the user questionnaire; The evaluation results of the user questionnaire are updated according to the constraint relationship between the answer data of the questions specified in the special rules and the evaluation results of the user questionnaire; and / or the evaluation results of the user questionnaire are updated according to the constraint relationship between the evaluation results of the questionnaire part specified in the special rules and the evaluation results of the user questionnaire.
6. The method according to claim 1, characterized in that The evaluation rules are carried in a script file, and the method further includes: Receiving an update request for an evaluation rule, wherein the update request includes update information of the evaluation rule; The script file is updated according to the update information of the evaluation rule.
7. The method according to any one of claims 1 to 6, characterized in that: The evaluation rules are arranged in descending order of priority as follows: the inter-question rule, the inter-questionnaire part rule, and the special rule.
8. A user questionnaire evaluation system, characterized in that: include: A questionnaire interaction unit, used to obtain a user questionnaire to be processed, wherein the user questionnaire includes at least one question and answer data corresponding to the at least one question; A rule loading unit, used to obtain the evaluation rules corresponding to the user questionnaire and the priority order of the evaluation rules; A rule engine unit, used to evaluate the user questionnaire according to the evaluation rules and the priority order of the evaluation rules to obtain an evaluation result of the user questionnaire; Among them, the evaluation rules include at least one of the rules between questions, rules between questionnaire parts, and special rules. The rules between questions are used to specify the constraint relationship between the evaluation result of one question and the answer data of another question. The rules between questionnaire parts are used to specify the constraint relationship between the evaluation results of one or more questionnaire parts and the evaluation results of the user questionnaire. The special rules are used to specify the constraint relationship between the evaluation results of the user questionnaire and the answer data of a specified question or the evaluation results of a specified questionnaire part. The user questionnaire includes at least two questionnaire parts, and each of the questionnaire parts includes at least one question.
9. The system according to claim 8, characterized in that The rule engine unit is specifically used for: Obtaining user type information corresponding to the user questionnaire; If the answer data corresponding to the first question in the user questionnaire does not match the user type indicated by the user type information, the evaluation of the user questionnaire is terminated; wherein the first question is any one of the questions included in the user questionnaire.
10. The system according to claim 8, characterized in that The rule engine unit is specifically used for: Evaluate the answer data of each question respectively to obtain the evaluation result of each question; wherein, if the current question corresponds to an inter-question rule, determine the evaluation result of the current question according to the constraint relationship between the evaluation result of the current question and the answer data of another question specified by the inter-question rule; Determine the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; The evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire.
11. The system according to claim 8, characterized in that The rule engine unit is specifically used for: Evaluate the answer data of each question respectively to obtain the evaluation result of each question; Determine the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; The evaluation result of the user questionnaire is determined according to the evaluation result of each questionnaire part of the user questionnaire and based on the constraint relationship between the evaluation results of one or more questionnaire parts stipulated by the rules between the questionnaire parts and the evaluation result of the user questionnaire.
12. The system according to claim 8, characterized in that The rule engine unit is specifically used for: Evaluate the answer data of each question respectively to obtain the evaluation result of each question; Determine the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each question; Determining the evaluation result of each questionnaire part of the user questionnaire according to the evaluation result of each questionnaire part of the user questionnaire; updating the evaluation result of the user questionnaire according to the constraint relationship between the answer data of the question specified in the special rule and the evaluation result of the user questionnaire; And / or, updating the evaluation result of the user questionnaire according to the constraint relationship between the evaluation result of the questionnaire part specified in the special rule and the evaluation result of the user questionnaire.
13. The system of claim 8, wherein: The evaluation rules are carried in a script file; The rule loading unit is further used for: Receiving an evaluation rule update request, wherein the update request includes update information of the evaluation rule; The script file is updated according to the update information of the evaluation rule.
14. The system according to any one of claims 8 to 13, characterized in that: The evaluation rules are arranged in descending order of priority as follows: the inter-question rule, the inter-questionnaire part rule, and the special rule.
15. A communication device, characterized in that: include: Processor, memory; The memory stores computer instructions; The processor is used to read the computer instructions and execute the method according to any one of claims 1-7.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
17. A computer program product, characterized in that When the computer program product is called by a computer, the computer executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Information acquiring, evaluation, questionnaire method and apparatus, and server
CN106875206A
Full-coverage test method, device and equipment for risk assessment options and storage medium
CN110377505A