Data processing method and device
By using the target information tree instead of the flowchart, the task node is determined based on user input, and the task completion information is generated, the flowchart complexity problem is solved and simple task maintenance is achieved.
Patent Information
- Application Number
- CN202111166638.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-09-30
AI Technical Summary
When the flowchart describes task steps, complexity leads to maintenance difficulties, especially when there is no obvious order of steps. The flowchart needs to list all possible sequences, resulting in complex maintenance.
The target information tree is used to indicate the information required by the task, and the selected node in the target information tree is determined by obtaining the user input information, generating task completion information, and outputting task completion information.
The task maintenance process is simplified, avoiding the complexity of flowcharts due to the incomplete sequence of steps, and making maintenance easier.
Smart Images

Figure CN113919682B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a data processing method and device. Background Art
[0002] Currently, for a certain task, a flowchart can be used to describe the various steps required to achieve the task. Figure 1 For example, when there is no obvious sequence between the steps in a task, it is necessary to list all possible sequences in the flowchart, which makes the flowchart complex and difficult to maintain.
[0003] Therefore, there is an urgent need for a solution that can solve the above problems. Summary of the Invention
[0004] The technical problem to be solved by this application is: a method for describing the steps of implementing a task through a flowchart, which is complex and difficult to maintain, and a data processing method and device are provided.
[0005] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising:
[0006] Obtaining a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task;
[0007] determining a selected node in the target information tree according to the information input by the first user;
[0008] If all nodes in the first branch of the target information tree are selected, generating completion information of the target task according to the selected first branch;
[0009] Output the completion information of the target task.
[0010] Optionally, before obtaining the information input by the first user, the method further includes:
[0011] Prompt information is output in the order from the root node to the leaf node in the target information tree; the prompt information is used to prompt the first user to input information.
[0012] Optionally, the method further includes:
[0013] If the information input by the first user indicates that at least one node in the target information tree is not selected;
[0014] determining a reason why the at least one node is not selected based on the information input by the first user;
[0015] The reason why the at least one node is not selected is recorded and output.
[0016] Optionally, the method further includes:
[0017] If all leaf nodes in the target information tree are not selected, an exception handling measure is executed.
[0018] Optionally, obtaining the target information tree includes:
[0019] Determining the field to which the target task belongs based on the information input by the first user;
[0020] Determine the target user corresponding to the target task;
[0021] An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
[0022] In a second aspect, an embodiment of the present application provides a data processing device, the device comprising:
[0023] an acquiring unit, configured to acquire a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task;
[0024] a first determining unit, configured to determine a selected node in the target information tree according to information input by the first user;
[0025] a generating unit, configured to generate completion information of the target task according to the selected first branch if all nodes in the first branch of the target information tree are selected;
[0026] The first output unit is used to output the completion information of the target task.
[0027] Optionally, the device further includes:
[0028] The second output unit is used to output prompt information in the order from the root node to the leaf node in the target information tree before obtaining the information input by the first user; the prompt information is used to prompt the first user to input information.
[0029] Optionally, the device further includes:
[0030] a second determining unit, configured to determine a reason why the at least one node is not selected according to the information input by the first user, if the information input by the first user indicates that at least one node in the target information tree is not selected;
[0031] a recording unit, configured to record a reason why the at least one node is not selected;
[0032] The third output unit is configured to output a reason why the at least one node is not selected.
[0033] Optionally, the device further includes:
[0034] An execution unit is configured to execute an exception handling measure if all leaf nodes in the target information tree are not selected.
[0035] Optionally, the acquiring unit is configured to:
[0036] Determining the field to which the target task belongs based on the information input by the first user;
[0037] Determine the target user corresponding to the target task;
[0038] An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
[0039] In a third aspect, an embodiment of the present application provides a data processing device comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:
[0040] Obtaining a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task;
[0041] determining a selected node in the target information tree according to the information input by the first user;
[0042] If all nodes in the first branch of the target information tree are selected, generating completion information of the target task according to the selected first branch;
[0043] Output the completion information of the target task.
[0044] Optionally, before obtaining the information input by the first user, the operation further includes:
[0045] Prompt information is output in the order from the root node to the leaf node in the target information tree; the prompt information is used to prompt the first user to input information.
[0046] Optionally, the operation further includes:
[0047] If the information input by the first user indicates that at least one node in the target information tree is not selected;
[0048] determining a reason why the at least one node is not selected based on the information input by the first user;
[0049] The reason why the at least one node is not selected is recorded and output.
[0050] Optionally, the operation further includes:
[0051] If all leaf nodes in the target information tree are not selected, an exception handling measure is executed.
[0052] Optionally, obtaining the target information tree includes:
[0053] Determining the field to which the target task belongs based on the information input by the first user;
[0054] Determine the target user corresponding to the target task;
[0055] An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute any of the methods described in the first aspect above.
[0057] Compared with the prior art, the embodiments of the present application have the following advantages:
[0058] An embodiment of the present application provides a data processing method, in which the various steps for achieving a target task are no longer described by a flowchart, but a target information tree is pre-constructed, and the target information tree is used to indicate the information required to achieve the target task. When executing the target task, the target information tree and the information input by the first user can be obtained, and then, based on the information input by the first user, the selected node in the target information tree is determined. If all the nodes in the first branch of the target information tree are selected, it means that the information required to execute the target task has been determined. Therefore, the completion information of the target task can be generated according to the selected first branch, and the completion information can be output. It can be seen that, using this solution, even if there are steps in the target task that have no sequence, since the target information tree describes the information required to achieve the target task, it has nothing to do with the sequence of the steps. Therefore, the target information tree maintained by this solution will not become complicated due to the lack of sequence between the steps, and thus maintenance is simpler. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0060] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application;
[0061] Figure 2 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0062] Figure 3 A schematic diagram of the structure of the client provided in an embodiment of the present application;
[0063] Figure 4 A schematic diagram of the structure of the server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0065] After research, the inventors of this application discovered that for a particular task, a flowchart can be used to describe the various steps required to achieve the task. However, when using a flowchart to describe the various steps required to achieve the task, if there are steps that cannot be prioritized, the flowchart must list all possible execution orders, resulting in a complex flowchart and difficulty in maintenance. For example, when adding a new step, all possible processing flows related to that step must be added to the flowchart.
[0066] In order to solve the above problems, the embodiments of the present application provide a data processing method and device.
[0067] Various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0068] Exemplary Methods
[0069] See also Figure 1 , which is a flow chart of a data processing method provided in an embodiment of the present application.
[0070] The method provided in the embodiments of the present application may be executed by, for example, a first device, where the first device mentioned herein includes, but is not limited to, a terminal device and a server. The terminal device mentioned herein may be a mobile terminal such as a smartphone or tablet computer, or a terminal device such as a desktop computer.
[0071] The solutions provided in the embodiments of this application can be applied, for example, to an intelligent call-answering platform. In one example, the intelligent call-answering platform can be applied in the express delivery field, allowing users to answer calls from couriers. In another example, the intelligent call-answering platform can also be applied in the real estate field, allowing users to answer calls from property sales agents. Of course, it can also be applied in other fields, which are not specifically limited by the embodiments of this application.
[0072] In an embodiment of the present application, calls made by others, such as couriers, to users can be transferred to the intelligent call answering platform. A robot of the intelligent call answering platform will answer the call for the user, record key information during the conversation, and finally feed it back to the user.
[0073] Figure 1 The method shown can be implemented, for example, through the following S101-S104.
[0074] S101: Acquire a target information tree and information input by a first user, where the target information tree is used to indicate information required to achieve a target task.
[0075] In an embodiment of the present application, the target information tree may be an information tree related to the target user and used to achieve the target task. The target information tree is used to describe the information for achieving the target task. The target information tree includes a root node and leaf nodes, wherein one leaf node corresponds to one type of information. The root node may correspond to information or may be a logical node. When the root node is a logical node, the root node does not correspond to information. Of course, the target information tree may also include intermediate nodes, i.e., nodes that have both a parent node and a child node. An intermediate node also corresponds to one type of information.
[0076] Regarding the target information tree, an example of a target task being a courier delivery task will be used for explanation.
[0077] For example:
[0078] Assume that for the target user, the express delivery point can be Xingfu Community or Science and Technology Building. Among them, Xingfu Community can include 3 optional delivery addresses, namely: the canteen, the reception room and the express delivery cabinet. The Science and Technology Building has one express delivery point: the front desk. Then the target information tree can include a root node. The root node includes two child nodes, corresponding to Xingfu Community and Science and Technology Building respectively. The node corresponding to Xingfu Community includes 3 child nodes, corresponding to the canteen, the reception room and the express delivery cabinet respectively. The node corresponding to Science and Technology Building includes 1 child node, corresponding to the front desk. It can be understood that at this time, the root node is a logical node and does not correspond to any information. The nodes corresponding to the canteen, the reception room, the express delivery cabinet and the front desk are leaf nodes, and the nodes corresponding to Xingfu Community and Science and Technology Building are intermediate nodes.
[0079] Another example:
[0080] Assume that for a target user, their express delivery location could be Xingfu Community. Xingfu Community can include three optional delivery locations: a convenience store, a reception desk, and a parcel locker. The target information tree can then include a root node. This root node has three child nodes, corresponding to the convenience store, the reception desk, and the parcel locker. In this case, the root node corresponds to Xingfu Community, and the nodes corresponding to the convenience store, the reception desk, and the parcel locker are leaf nodes. There are no intermediate nodes.
[0081] In an embodiment of the present application, the target information tree may be pre-configured by the target user. In one example, the target user may configure an information tree for each of the various fields. In an embodiment of the present application, obtaining the target information tree may be implemented through the following steps AC.
[0082] Step A: Determine the field to which the target task belongs based on the information input by the first user.
[0083] In an embodiment of the present application, the information input by the first user may be, for example, a sentence said by the first user during a call. The first user may be the user who makes the call, and the first user may be, for example, a courier. In one example, after the robot of the intelligent call answering platform answers the call, the first user says: "Hello, you have a courier." The first device may analyze the information input by the first user to determine the field to which the target task belongs. For example, based on the sentence "You have a courier," the first device determines that the field to which the target task belongs is the "courier field."
[0084] Step B: Determine the target user corresponding to the target task.
[0085] In this embodiment of the present application, the first device can determine the target user based on the phone number called by the first user and pre-stored user phone number information. For example, if the first user dials number 123, and number 123 is the phone number of user A, the target user can be determined to be user A.
[0086] It should be noted that the order of step A and step B is not specifically limited in the embodiments of the present application.
[0087] Step C: Acquire the information tree corresponding to the field pre-set by the target user to obtain the target information tree.
[0088] As described above, the target user can configure an information tree for each of the various fields. Therefore, after determining the target user and the target field, the information tree corresponding to the field to which the target task belongs can be searched from the multiple information trees corresponding to the target user, thereby obtaining the target information tree.
[0089] It should be noted that when the target user configures the target information tree, for multiple child nodes with the same parent node, the user can also configure the priority of the child node. For example:
[0090] For the nodes "Xingfu Community" and "Technology Building", the target user can configure the priority of the two. For example, if the user wants express delivery to Xingfu Community first, the priority of the node "Xingfu Community" can be set to the first priority and the priority of the node "Technology Building" can be set to the second priority. The first priority is higher than the second priority.
[0091] Another example:
[0092] For the nodes "Store", "Express Cabinet" and "Message Room", the target user can configure the priorities of the three. For example, if the user wants the express to be delivered to the store first, followed by the message room, and finally the express cabinet, then the priority of the node "Store" can be set to the first priority, the priority of the node "Message Room" can be set to the second priority, and the priority of the node "Express Cabinet" can be set to the third priority. Among them, the first priority is higher than the second priority, and the second priority is higher than the third priority.
[0093] S102: Determine a selected node in the target information tree according to the information input by the first user.
[0094] The information input by the first user may include information for indicating the selected node in the target information tree. In one implementation of the embodiment of the present application, the information input by the first user may be actively input by the first user. For example: after the robot answers the call, the first user says: "Hello, you have a courier, and it has been placed in the courier cabinet in Xingfu Community." It can be determined that the node corresponding to Xingfu Community and the node corresponding to the courier cabinet in the target information tree are selected.
[0095] In another implementation of the embodiment of the present application, the information input by the first user may be input under the prompt of the first device. In this case, the first device may also output prompt information in the order from the root node to the leaf node in the target information tree, and the prompt information is used to prompt the first user to input information. In the embodiment of the present application, the first device may pre-store prompt information corresponding to each node in the target information tree, and before each node in the first branch is selected, output the prompt information corresponding to each node in the order from the root node to the leaf node. Specifically, when the parent node of a branch is determined not to be selected, the prompt information of the child node corresponding to the parent node is no longer output, and the prompt information of the nodes corresponding to other branches continues to be output. In addition, if the target user configures the priority of the nodes in the information tree when configuring the target information tree, the prompt information can be output in the order from the highest priority to the lowest priority when outputting the prompt information. The first branch mentioned here refers to any branch from the root node to the leaf node in the target information tree.
[0096] Regarding the prompt information, the target information tree is described as in Example 1 above as an example:
[0097] Table 1
[0098] node Prompt information Happiness Community Is it delivered to Xingfu Community? commissary Please put it in the store Communication Room Please put it in the reception room Express lockers Please put it in the express cabinet Technology Building Is it delivered to the Technology Building? front desk Please put it on the front desk
[0099] In the above example, the parent node of Xingfu Community and Technology Building is the root node. At this time, the root node can be a logical node. When determining the selected node in the target information tree, the root node can be the selected node by default.
[0100] Regarding the first user inputting information according to the prompt information output by the first device, an example is now provided:
[0101] Example 1 (the priority of the node Xingfu Community is higher than that of the node Technology Building):
[0102] After the robot answers the call:
[0103] The first user said: Hello, you have a delivery.
[0104] The robot said: Excuse me, are you sending it to Xingfu Community?
[0105] The first user said: No.
[0106] The robot said: Is it delivered to the Science and Technology Building?
[0107] The first user said: Yes, I will put it on the front page for you.
[0108] The robot said: OK, thank you.
[0109] Through the information input by the first user, it can be determined that the root node in the target information tree, the node corresponding to the science and technology building, and the node corresponding to the front desk are selected.
[0110] Example 2 (the priority of the node Xingfu Community is higher than that of the node Technology Building):
[0111] After the robot answers the call:
[0112] The first user said: Hello, you have a delivery.
[0113] The robot said: Excuse me, are you sending it to Xingfu Community?
[0114] The first user said: No, it was sent to the Science and Technology Building. Where is it placed in the Science and Technology Building?
[0115] The robot said: Please put it on the front desk.
[0116] The first user said: OK.
[0117] Through the information input by the first user, it can be determined that the root node in the target information tree, the node corresponding to the science and technology building, and the node corresponding to the front desk are selected.
[0118] Example 3 (the priority of the node Xingfu Community is higher than that of the node Technology Building, the priority of the node Canteen is higher than that of the node Message Room, and the priority of the node Message Room is higher than that of the node Express Cabinet):
[0119] After the robot answers the call:
[0120] The first user said: Hello, you have a delivery.
[0121] The robot said: Are you sending it to Xingfu Community?
[0122] The first user said: Yes, then where should it be delivered to in the Xingfu Community?
[0123] The robot said: Please put it in the canteen.
[0124] The first user said: No, the convenience store is closed.
[0125] The robot said: Please put it in the message room.
[0126] The first user said: The message room has gone off duty.
[0127] The robot said: Please put it in the express cabinet.
[0128] The first user said: OK, I’ll put it in the express cabinet for you.
[0129] The robot said: OK, thank you.
[0130] Through the information input by the first user above, it can be determined that the root node in the target information tree, the node corresponding to the Xingfu Community, and the node corresponding to the express cabinet are selected.
[0131] After the selected node is determined, a mark may be added to the selected node, for example, the selected node may be marked as “selected”.
[0132] S103: If all nodes in the first branch of the target information tree are selected, then generating completion information of the target task according to the selected first branch.
[0133] S104: Outputting completion information of the target task.
[0134] In the embodiment of the present application, the tags of each node in the target information tree may be traversed. If each node in the first branch has a selected tag, it can be determined that each node in the first branch is selected.
[0135] In this embodiment of the present application, each node in the first branch is selected, indicating that the information required to achieve the target task is already available, and therefore, the target task can be completed normally. At this time, the completion information of the target task can be generated based on the first branch. For example, for the scenario corresponding to Example 3 above, the completion information can be generated and output: You have a courier placed in the express cabinet of Xingfu Community.
[0136] In an embodiment of the present application, the target user can view the completion information through a web page or an application.
[0137] Considering that in actual applications, the target user may want to know the reason why other information was not selected during the completion of the target task. Therefore, in one implementation of the embodiment of the present application, if the information input by the first user indicates that at least one node in the target information tree is not selected, the reason why the at least one node is not selected can be determined based on the information input by the first user, and the reason why the at least one node is not selected can be recorded and output. For example:
[0138] After the robot answers the call:
[0139] The first user said: Hello, you have a delivery.
[0140] The robot said: Are you sending it to Xingfu Community?
[0141] The first user said: Yes, then where should it be delivered to in the Xingfu Community?
[0142] The robot said: Please put it in the canteen.
[0143] The first user said: No, the convenience store is closed.
[0144] The robot said: Please put it in the message room.
[0145] The first user said: OK.
[0146] The robot said: Thank you.
[0147] Based on the information entered by the first user, it can be determined that the convenience store was not selected, and the reason for not selecting the convenience store is that it is closed. In this case, the node corresponding to the convenience store can be given the message "Closed". Furthermore, the user can be given the message "You have a package, but the convenience store is closed. We have placed it at the reception desk of Xingfu Community."
[0148] Considering that for the target information tree, if all leaf nodes in the target information tree are not selected, the target task cannot be completed normally. For this situation, in an embodiment of the present application, an exception handling measure can be executed. The exception handling measure mentioned here can, for example, output a corresponding exception response statement during a call with the first user. For another example, it can be outputting exception information to the target user.
[0149] For example:
[0150] After the robot answers the call:
[0151] The first user said: Hello, you have a delivery.
[0152] The robot said: Are you sending it to Xingfu Community?
[0153] The first user said: No.
[0154] The robot said: Is it delivered to the Science and Technology Building?
[0155] The first user said: Yes, then where should it be sent to the Science and Technology Building?
[0156] The robot said: Please put it on the front desk.
[0157] The first user said: The front desk does not accept express delivery.
[0158] The robot said: OK, I will call you back later.
[0159] Based on the information entered by the first user, it can be determined that the leaf nodes in the target information tree are not selected: the canteen, the reception desk, the parcel locker, and the front desk. At this point, the robot executes the exception handling measure and sends a voice message to the first user, "OK, I'll call you back later." Alternatively, in this case, the first device can also output an exception message: "You have a package for the Science and Technology Building. The front desk of the Science and Technology Building does not accept parcels. Please call the courier as soon as possible."
[0160] In the above scenario, for the express cabinet, the message room and the canteen, when determining the specific placement of the express, the order of these three is partly determined. In addition, the content said by the first user cannot be controlled. If a flowchart is used to describe it, all possibilities need to be listed, and the flowchart is complicated. If the target user adds or deletes the express placement point, the maintenance of the flowchart is also very complicated. In the embodiment of the present application, since what is maintained is the target information tree, the target information tree describes the information required to achieve the target task and has nothing to do with the order of the steps. Therefore, the target information tree maintained by this solution will not become complicated due to the lack of order between the steps. In addition, if the target user adds or deletes the express placement point, it only needs to add or delete the corresponding node. It can be seen that the information tree of this solution is simpler to maintain than the flowchart.
[0161] Exemplary devices
[0162] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.
[0163] See also Figure 2 , which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The device 200 may specifically include: an acquisition unit 201, a first determination unit 202, a generation unit 203 and a first output unit 204.
[0164] An acquisition unit 201 is configured to acquire a target information tree and information input by a first user, wherein the target information tree indicates information required to achieve a target task;
[0165] A first determining unit 202, configured to determine a selected node in the target information tree according to information input by the first user;
[0166] A generating unit 203 is configured to generate completion information of the target task according to the selected first branch if all nodes in the first branch of the target information tree are selected;
[0167] The first output unit 204 is configured to output completion information of the target task.
[0168] Optionally, the device further includes:
[0169] The second output unit is used to output prompt information in the order from the root node to the leaf node in the target information tree before obtaining the information input by the first user; the prompt information is used to prompt the first user to input information.
[0170] Optionally, the device further includes:
[0171] a second determining unit, configured to determine a reason why the at least one node is not selected according to the information input by the first user, if the information input by the first user indicates that at least one node in the target information tree is not selected;
[0172] a recording unit, configured to record a reason why the at least one node is not selected;
[0173] The third output unit is configured to output a reason why the at least one node is not selected.
[0174] Optionally, the device further includes:
[0175] An execution unit is configured to execute an exception handling measure if all leaf nodes in the target information tree are not selected.
[0176] Optionally, the acquiring unit 201 is configured to:
[0177] Determining the field to which the target task belongs based on the information input by the first user;
[0178] Determine the target user corresponding to the target task;
[0179] An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
[0180] Since the device 200 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 200 is based on the same concept as the above method embodiment. Therefore, regarding the specific implementation of each unit of the device 200, please refer to the description part of the above method embodiment, which will not be repeated here.
[0181] The method provided in the embodiment of the present application can be executed by a client or a server. The client and server that execute the above method are described below respectively.
[0182] Figure 31 shows a block diagram of a client 300. For example, the client 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0183] Reference Figure 3 The client 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 33 , a sensor component 314 , and a communication component 316 .
[0184] The processing component 302 generally controls the overall operation of the client 300, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the above-described method. Furthermore, the processing component 302 may include one or more modules to facilitate interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
[0185] The memory 304 is configured to store various types of data to support operations on the client 300. Examples of such data include instructions for any application or method operating on the client 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0186] The power supply component 306 provides power to the various components of the client 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the client 300.
[0187] The multimedia component 308 includes a screen that provides an output interface between the client 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the client 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0188] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), which is configured to receive external audio signals when the client 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signal can be further stored in the memory 304 or transmitted via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0189] The I / O interface provides an interface between the processing component 302 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0190] Sensor assembly 314 includes one or more sensors for providing various aspects of the status assessment of client 300. For example, sensor assembly 314 can detect the open / closed state of device 300, the relative positioning of components, such as the display and keypad of client 300. Sensor assembly 314 can also detect changes in the position of client 300 or a component of client 300, the presence or absence of user contact with client 300, the orientation or acceleration / deceleration of client 300, and changes in the temperature of client 300. Sensor assembly 314 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 314 can also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0191] The communication component 316 is configured to facilitate wired or wireless communication between the client 300 and other devices. The client 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0192] In an exemplary embodiment, the client 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the following methods:
[0193] Obtaining a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task;
[0194] determining a selected node in the target information tree according to the information input by the first user;
[0195] If all nodes in the first branch of the target information tree are selected, generating completion information of the target task according to the selected first branch;
[0196] Output the completion information of the target task.
[0197] Optionally, before obtaining the information input by the first user, the method further includes:
[0198] Prompt information is output in the order from the root node to the leaf node in the target information tree; the prompt information is used to prompt the first user to input information.
[0199] Optionally, the method further includes:
[0200] If the information input by the first user indicates that at least one node in the target information tree is not selected;
[0201] determining a reason why the at least one node is not selected based on the information input by the first user;
[0202] The reason why the at least one node is not selected is recorded and output.
[0203] Optionally, the method further includes:
[0204] If all leaf nodes in the target information tree are not selected, an exception handling measure is executed.
[0205] Optionally, obtaining the target information tree includes:
[0206] Determining the field to which the target task belongs based on the information input by the first user;
[0207] Determine the target user corresponding to the target task;
[0208] An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
[0209] Figure 4 : is a structural diagram of the server in an embodiment of the present application. The server 400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 422 (for example, one or more processors) and memory 432, one or more storage media 430 (for example, one or more mass storage devices) for storing application programs 442 or data 444. Among them, the memory 432 and the storage medium 430 can be temporary storage or permanent storage. The program stored in the storage medium 430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 422 can be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the server 400.
[0210] Furthermore, the CPU 422 may execute the following method:
[0211] Obtaining a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task;
[0212] determining a selected node in the target information tree according to the information input by the first user;
[0213] If all nodes in the first branch of the target information tree are selected, generating completion information of the target task according to the selected first branch;
[0214] Output the completion information of the target task.
[0215] Optionally, before obtaining the information input by the first user, the method further includes:
[0216] Prompt information is output in the order from the root node to the leaf node in the target information tree; the prompt information is used to prompt the first user to input information.
[0217] Optionally, the method further includes:
[0218] If the information input by the first user indicates that at least one node in the target information tree is not selected;
[0219] determining a reason why the at least one node is not selected based on the information input by the first user;
[0220] The reason why the at least one node is not selected is recorded and output.
[0221] Optionally, the method further includes:
[0222] If all leaf nodes in the target information tree are not selected, an exception handling measure is executed.
[0223] Optionally, obtaining the target information tree includes:
[0224] Determining the field to which the target task belongs based on the information input by the first user;
[0225] Determine the target user corresponding to the target task;
[0226] An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
[0227] The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input and output interfaces 456, one or more keyboards 456, and / or one or more operating systems 441, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0228] The present application also provides a computer-readable medium having instructions stored thereon, which, when executed by one or more processors, causes a device to perform the following method:
[0229] Obtaining a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task;
[0230] determining a selected node in the target information tree according to the information input by the first user;
[0231] If all nodes in the first branch of the target information tree are selected, generating completion information of the target task according to the selected first branch;
[0232] Output the completion information of the target task.
[0233] Optionally, before obtaining the information input by the first user, the method further includes:
[0234] Prompt information is output in the order from the root node to the leaf node in the target information tree; the prompt information is used to prompt the first user to input information.
[0235] Optionally, the method further includes:
[0236] If the information input by the first user indicates that at least one node in the target information tree is not selected;
[0237] determining a reason why the at least one node is not selected based on the information input by the first user;
[0238] The reason why the at least one node is not selected is recorded and output.
[0239] Optionally, the method further includes:
[0240] If all leaf nodes in the target information tree are not selected, an exception handling measure is executed.
[0241] Optionally, obtaining the target information tree includes:
[0242] Determining the field to which the target task belongs based on the information input by the first user;
[0243] Determine the target user corresponding to the target task;
[0244] An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
[0245] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0246] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0247] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task, and the information input by the first user includes information indicating a selected node in the target information tree; determining a selected node in the target information tree according to the information input by the first user; If all nodes in the first branch of the target information tree are selected, generating completion information of the target task according to the selected first branch; Outputting completion information of the target task; Wherein, obtaining the target information tree includes: Determining the field to which the target task belongs based on the information input by the first user; Determine the target user corresponding to the target task; An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
2. The method according to claim 1, characterized in that Before obtaining the information input by the first user, the method further includes: Prompt information is output in the order from the root node to the leaf node in the target information tree; the prompt information is used to prompt the first user to input information.
3. The method according to claim 1, characterized in that The method further comprises: If the information input by the first user indicates that at least one node in the target information tree is not selected; determining a reason why the at least one node is not selected based on the information input by the first user; The reason why the at least one node is not selected is recorded and output.
4. The method according to claim 1, wherein The method further comprises: If all leaf nodes in the target information tree are not selected, an exception handling measure is executed.
5. A data processing device, characterized in that: The device comprises: an acquiring unit, configured to acquire a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task, and the information input by the first user includes information indicating a selected node in the target information tree; a first determining unit, configured to determine a selected node in the target information tree according to information input by the first user; a generating unit, configured to generate completion information of the target task according to the selected first branch if all nodes in the first branch of the target information tree are selected; A first output unit, configured to output completion information of the target task; Wherein, the acquisition unit is used to: Determining the field to which the target task belongs based on the information input by the first user; Determine the target user corresponding to the target task; An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
6. The device according to claim 5, characterized in that The device further comprises: The second output unit is used to output prompt information in the order from the root node to the leaf node in the target information tree before obtaining the information input by the first user; the prompt information is used to prompt the first user to input information.
7. The device according to claim 5, characterized in that The device further comprises: a second determining unit, configured to determine a reason why the at least one node is not selected according to the information input by the first user, if the information input by the first user indicates that at least one node in the target information tree is not selected; a recording unit, configured to record a reason why the at least one node is not selected; The third output unit is configured to output a reason why the at least one node is not selected.
8. The device according to claim 5, characterized in that The device further comprises: An execution unit is configured to execute an exception handling measure if all leaf nodes in the target information tree are not selected.
9. A data processing device, characterized in that: The system includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: Acquire a target information tree and information input by a first user, wherein the target information tree is used to indicate information required to achieve a target task, and the information input by the first user includes information indicating a selected node in the target information tree; determining a selected node in the target information tree according to the information input by the first user; If all nodes in the first branch of the target information tree are selected, generating completion information of the target task according to the selected first branch; Outputting completion information of the target task; Wherein, obtaining the target information tree includes: Determining the field to which the target task belongs based on the information input by the first user; Determine the target user corresponding to the target task; An information tree corresponding to the field and pre-set by the target user is acquired to obtain the target information tree.
10. The device according to claim 9, characterized in that Before obtaining the information input by the first user, the operation further includes: Prompt information is output in the order from the root node to the leaf node in the target information tree; the prompt information is used to prompt the first user to input information.
11. The device according to claim 9, characterized in that The operations further include: If the information input by the first user indicates that at least one node in the target information tree is not selected; determining a reason why the at least one node is not selected based on the information input by the first user; The reason why the at least one node is not selected is recorded and output.
12. The device according to claim 9, characterized in that The operations further include: If all leaf nodes in the target information tree are not selected, an exception handling measure is executed.
13. A computer-readable medium having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Task completion judgment method and device, storage medium and electronic equipment
CN110908867A