Functional component arrangement method and device and storage medium
Through the scenario knowledge graph, the operation process of artificial intelligence is simplified. By matching and constructing demand scenarios and determining functional components, it solves the problem of cumbersome user demand realization process and improves the user experience and the accuracy of function execution.
Patent Information
- Application Number
- CN202411254198.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-10-15
AI Technical Summary
When artificial intelligence meets user needs, the operation process is cumbersome. Users need to split the needs and call multiple functional components separately, resulting in inconvenience.
Through the scenario knowledge graph, entity data is obtained based on user demand text, relationship data is matched, demand scenarios are constructed, functional components are determined, and functional component sequences are generated to simplify user operation steps and improve usage efficiency.
It achieves rapid disassembly of user needs and accurate invocation of functional components, simplifies the artificial intelligence operation process, and improves the accuracy of function execution and user experience.
Smart Images

Figure CN118779457A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device and storage medium for arranging functional components. Background Art
[0002] Artificial intelligence technology has been widely popularized due to its efficiency and accuracy. Users can use artificial intelligence to meet their needs more conveniently. Among them, artificial intelligence can respond in a similar way to human intelligence through deep learning, so that the execution results of artificial intelligence are more in line with user expectations.
[0003] In related technologies, artificial intelligence can usually only realize corresponding functions based on its own settings, and different artificial intelligences have different functional effects. In actual application scenarios, user needs often involve multiple aspects. Users usually need to first break down their needs into steps that artificial intelligence can understand and implement, and then control artificial intelligence to achieve the corresponding functions. Taking the acquisition of a promotional video as an example, the user needs to first break down the video generation process into steps such as text generation, dubbing generation, and video generation based on their own needs, and implement the corresponding steps through artificial intelligence with corresponding functions. This results in a more cumbersome user operation process in the process of realizing artificial intelligence needs.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a functional component arrangement method, which aims to solve the technical problems that the user's operation process is cumbersome and inconvenient to use during the implementation of artificial intelligence needs.
[0006] To achieve the above object, the present application provides a method for arranging functional components, which comprises the following steps: According to the demand text received by the user end, obtain the first entity data in the scene knowledge graph; Matching the requirement text with the relational data in the scenario knowledge graph, and acquiring second entity data according to the matching result and the first entity data; Constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario; According to the functional components and the demand scenarios, a corresponding functional component sequence is generated.
[0007] Optionally, the step of acquiring the first entity data in the scene knowledge graph according to the demand text received by the user terminal includes: Determine corresponding demand keywords according to the demand text, and determine feature vectors corresponding to the demand keywords; Determine a root node of the scene knowledge graph, and determine a target feature vector associated with the root node; The feature vector is matched with the target feature vector, and a target scene knowledge graph and the first entity data in the target knowledge graph are determined according to the matching result.
[0008] Optionally, the step of matching the requirement text with the relational data in the scenario knowledge graph and acquiring the second entity data according to the matching result and the first entity data includes: Based on the feature vector, matching the demand keyword with the relationship data of the first entity data or the second entity data; Determine, according to the relationship data having the highest matching degree with the demand keyword, a target subnode of the first entity data or the second entity data in the scene knowledge graph; The entity data associated with the target child node is acquired, and the entity data is selected as the second entity data.
[0009] Optionally, the step of constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario includes: sorting the first entity data and the second entity data according to the hierarchical relationship between the first entity data and the second entity data in the scene knowledge graph; According to the sorting result, connecting the first entity data and the second entity data to generate the demand scenario; According to the first entity data and the second entity data, a required function of the required scenario is determined, and a functional component corresponding to the required function is determined.
[0010] Optionally, the step of generating a corresponding functional component sequence according to the functional components and the demand scenario includes: Sorting the functional components according to the order of executing the required functions of the required scenario; Generating the functional component sequence according to the sorting result of the functional components; According to the functional component sequence, control actions of the functional components are executed.
[0011] Optionally, before the step of acquiring the first entity data in the scene knowledge graph according to the demand text received by the user terminal, the step further includes: Acquire user demand information and identify the user demand information; When the user demand information is voice information, extracting voice features of the user demand information, determining a corresponding text sequence according to the voice features, and generating the demand text according to the text sequence; Alternatively, when the user demand information is text information, text feature information in the text information is extracted to generate the demand text.
[0012] Optionally, after the step of constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario, the method further includes: When there is no functional component corresponding to the required function, constructing a search formula according to the required keywords of the required text; According to the search formula, the corresponding open source software is searched, and the functional component is obtained according to the open source software; Alternatively, when the open source software that meets the required functions is not found, a prompt message indicating that the relevant functions are missing is output.
[0013] Optionally, before the step of acquiring the first entity data in the scene knowledge graph according to the demand text received by the user terminal, the step further includes: Acquire a demand sample, and determine a keyword sample of the demand sample, and a sample feature vector of the keyword sample; Classifying the keyword samples according to the sample feature vectors, and determining a target feature vector according to the classification result and the value range of the sample feature vectors; Determine a target demand function according to a target keyword corresponding to the target feature vector, and obtain target relationship data between the target keyword and the target demand function; The target keywords and the target demand functions are used as data nodes, and the scenario knowledge graph is constructed based on the data nodes and the target relationship data.
[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a functional component orchestration device, which includes: a memory, a processor, and a functional component orchestration program stored in the memory and executable on the processor, wherein the functional component orchestration program is configured to implement the steps of the functional component orchestration method described above.
[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, on which a functional component orchestration program is stored, and when the functional component orchestration program is executed by a processor, the steps of the functional component orchestration method described above are implemented.
[0016] This application uses the scenario knowledge graph to disassemble user needs according to the user's demand text, construct the corresponding demand scenario, obtain the corresponding functional components based on the demand scenario, and execute the control actions of the corresponding functional components, which simplifies the operation steps required for users to meet their needs through artificial intelligence and improves the user's efficiency in using artificial intelligence functions. At the same time, this application can accurately deduce the functional components and execution order required to achieve user needs through the scenario knowledge graph, so that the execution results of the functional components are more in line with user expectations. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flowchart of the first embodiment of the method for arranging functional components of the present application; Figure 2 A flowchart of a second embodiment of the method for arranging functional components of the present application; Figure 3 A flowchart of a third embodiment of the method for arranging functional components of the present application; Figure 4 It is a structural diagram of a functional component orchestration device of a hardware operating environment involved in an embodiment of the present application.
[0018] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0019] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0020] This application uses the scenario knowledge graph to break down the steps required to meet user needs and construct the corresponding demand scenario. Through the constructed demand scenario, this application can determine and call the corresponding functional components, complete the corresponding functions, and meet user needs more quickly.
[0021] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0022] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0023] Embodiment 1 In actual application scenarios, artificial intelligence can usually only achieve corresponding effects based on its own functions. When users use artificial intelligence to meet their own needs, they often need to disassemble their own needs and use multiple artificial intelligence components at the same time, which is cumbersome. In order to simplify the user's operation steps for artificial intelligence components and optimize the user experience, this embodiment of the application provides a method for arranging functional components, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the functional component arrangement method of the present application.
[0024] In this embodiment, the functional component arrangement method includes: Step S10: acquiring first entity data in the scene knowledge graph according to the demand text received by the user end; In this embodiment, the functional component arrangement system is composed of a server and a user. The user can receive the user's demand text by interacting with the user. The server stores multiple scene knowledge graphs according to different scene types to ensure that the scene construction scope of the functional component arrangement system can more comprehensively cover user needs. After obtaining the demand text, the server can select the corresponding scene knowledge graph according to the demand text, and obtain the first entity data based on the entity data associated with the root node of the scene knowledge graph.
[0025] Furthermore, the functional component orchestration system can be deployed based on C / S (Client / Server) or B / S (Browser / Server) modes. When the functional component orchestration system is deployed based on the C / S mode, the user end of the functional component orchestration system is the application in the user terminal. The user can download the application in the user terminal and implement the orchestration of the functional component through the application to ensure that the user can interact with the functional component orchestration system in various situations. When the functional component orchestration system is deployed based on the B / S (Browser / Server) mode, the user end of the functional component orchestration system is a web browser. The user can enter the demand text in the corresponding web page through the user terminal and send the demand text to the server. Based on the application scenario, the server can return the orchestration result of the functional component to the user end, or control the corresponding functional component to execute the corresponding function based on the orchestration result, and feed back the execution result to the user end.
[0026] In specific implementation, the functional component arrangement system can receive the user's voice information or the user's text information. After receiving the user's voice information, the functional component arrangement system will first convert the voice information into text information, and then determine the user's demand text. The functional component arrangement system can extract demand keywords in the demand text through the natural language processing (NLP) module. The natural language processing module will first divide the demand text into demand segmentation, and perform semantic analysis on the demand segmentation through the relationship vector between the demand segmentation to determine the demand keywords in the demand text.
[0027] As an optional implementation method for obtaining the first entity data, the functional component arrangement system can determine the feature vector corresponding to the demand keyword according to the natural language processing module. The feature vector is matched with the target feature vector corresponding to the entity data associated with the root node in the scene knowledge graph. Based on the matching result, the functional component arrangement system can select the target scene knowledge graph that best matches the demand text, and obtain the entity data associated with the root node of the target scene knowledge graph as the first entity data.
[0028] It should be noted that the functional components in the embodiments of the present application can be artificial intelligence functional components implemented based on artificial intelligence, or they can be connected to corresponding functional components based on the current application scenario.
[0029] Exemplarily, when the functional component orchestration system receives the demand text "I want to go to the museum" input by the user, it can determine the demand keyword "go" based on the relationship vectors between each word, and based on the matching result between the demand keyword and the entity data in the functional component orchestration system, determine the first entity data of "travel", and determine the target scenario knowledge graph corresponding to the first entity data.
[0030] As another optional implementation method of obtaining the first entity data, the functional component arrangement system can also determine the user's requirement realization effect based on the requirement realization effect. Based on the requirement realization effect, the functional component arrangement system can determine the corresponding scenario knowledge graph and the first entity data.
[0031] Step S20: matching the requirement text with the relational data in the scenario knowledge graph, and acquiring second entity data according to the matching result and the first entity data; In this embodiment, data nodes are connected based on relational data and arranged in a tree-like manner in the scene knowledge graph. The functional component orchestration system can match the demand text with the relational data, determine the relational data with the highest matching degree, determine the data flow in the scene knowledge graph, and obtain the corresponding second entity data. It should be noted that in this embodiment of the present application, the first entity data is the entity data corresponding to the root node in the target scene knowledge graph, and the second entity data is the data node other than the root node in the target scene knowledge graph that meets the demand text, and the corresponding entity data.
[0032] Specifically, the functional component arrangement system can split the demand text level by level according to the scenario knowledge graph to determine the second entity data required to meet the user's needs. In specific implementation, based on the feature vector, the functional component arrangement system will match the demand keyword with the relationship data of the first entity data or the second entity data. Based on the relationship data with the highest matching degree with the demand keyword, the functional component arrangement system can select the target sub-node that meets the demand text according to the sub-node of the first entity data or the second entity data in the scenario knowledge graph. The functional component arrangement system will select the entity data associated with the target sub-node as the second entity data.
[0033] For example, based on the requirement text generated by the video, the functional component arrangement system can determine whether the video needs dubbing, subtitles and other information based on the requirement text, and select whether to call functional components such as text generation or intelligent dubbing based on the requirement text. Furthermore, the functional component arrangement system can also determine the style and other attributes of the video based on the requirement text to determine the execution parameters of the corresponding functional components.
[0034] Step S30: constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario; Step S40: Generate a corresponding functional component sequence according to the functional components and the demand scenarios.
[0035] In this embodiment, after acquiring the first entity data and the second entity data, the function component orchestration system constructs a demand scenario based on the first entity data and the second entity data to determine which demand functions are needed to meet the user's demand text.
[0036] In specific implementation, the functional component orchestration system can sort the first entity data and the second entity data according to the hierarchical relationship between the first entity data and the second entity data in the target scenario knowledge graph. The functional component orchestration system will connect the first entity data and the second entity data according to the sorting result to construct the corresponding demand scenario. According to the first entity data and the second entity data, the functional component orchestration system can determine the required function in the demand scenario and determine the functional component corresponding to the required function, and sort the functional components according to the execution order of the required function of the demand scenario to determine the execution order of the functional components. According to the sorting result of the functional components, the functional component orchestration system generates and outputs a functional component sequence.
[0037] Furthermore, the function component arrangement system can execute the control action of the corresponding function component according to the function component sequence. At the same time, the function component arrangement system can adjust the operation parameters of the function component according to the attribute values of the first entity data and the second entity data, and the user's satisfaction with the historical execution results of the function component arrangement system, so as to ensure that the execution results of the function component sequence are more in line with the user's expectations.
[0038] For example, the functional component arrangement system can be applied to automatic parking lot billing. After determining the demand text for automatic billing, the functional component arrangement system can split the demand text into the steps of automatically identifying the license plate and automatically recording the parking time, and determine the corresponding license plate recognition functional component and timing functional component, and control the license plate recognition functional component and the timing functional component to perform corresponding functions, thereby meeting the user's demand for automatic parking lot billing.
[0039] The embodiment of the present application constructs a corresponding demand scenario through a scenario knowledge graph and based on the demand text received by the user end, so as to determine and call the corresponding functional components, implement the corresponding functions, and meet user needs more quickly.
[0040] Embodiment 2 Based on the same inventive concept, the present application also provides a second embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the method for arranging functional components of the present application.
[0041] In this embodiment, after constructing a demand scenario according to the first entity data and the second entity data as described in step S30, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario, the method further includes: Step S31: when there is no functional component corresponding to the required function, construct a search formula according to the required keywords of the required text; Step S32: searching for corresponding open source software according to the search formula, and obtaining the functional component according to the open source software; Step S33: Alternatively, when the open source software that meets the required function is not found, a prompt message indicating that the relevant function is missing is output.
[0042] In this embodiment, the functional component arrangement system can actively obtain the missing functional components. When the functional components that implement the corresponding required functions are missing, the functional component arrangement system can construct a search formula based on the required keywords corresponding to the required functions. Through the search formula, the functional component arrangement system can retrieve the corresponding open source software through network resources and generate the corresponding functional components based on the open source software. When the open source software that can meet the corresponding required functions is not retrieved, the functional component arrangement system can output the prompt information of the relevant functions to the user terminal or the administrator terminal.
[0043] In specific implementation, the functional component arrangement system can determine the corresponding similar keywords according to the demand keywords, and connect the demand keywords and the similar keywords through the OR logical operator to generate search items. The functional component arrangement system can generate a search formula by connecting the search items with the AND logical operator.
[0044] For example, taking the requirement text generated by video as an example, when the functional component arrangement system lacks the functional component for automatic dubbing, it can construct the corresponding search formula based on keywords such as "dubbing" and obtain open source software that can automatically dub through open source communities such as GitHub or other network resources. After obtaining the source code of the open source software, the functional component arrangement system can automatically adjust and configure the source code based on modules such as GPT and according to the configuration of other functional components in the functional component sequence.
[0045] The embodiment of the present application can obtain the corresponding open source software by constructing a search formula when determining the functional components, so as to ensure that the execution results of the functional component orchestration system can meet the user's expectations.
[0046] Since the system introduced in the second embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of this application.
[0047] Embodiment 3 Based on the same inventive concept, the present application also provides a third embodiment, referring to Figure 3 , Figure 3 This is a flow chart of the second embodiment of the method for arranging functional components of the present application.
[0048] In this embodiment, before obtaining the first entity data in the scene knowledge graph according to the demand text received by the user terminal as described in step S10, the method further includes: Step S11: obtaining a demand sample, and determining a keyword sample of the demand sample, and a sample feature vector of the keyword sample; Step S12: classifying the keyword samples according to the sample feature vectors, and determining a target feature vector according to the classification result and the value range of the sample feature vectors; Step S13: determining a target demand function according to the target keyword corresponding to the target feature vector, and obtaining target relationship data between the target keyword and the target demand function; Step S14: Use the target keywords and the target requirement functions as data nodes, and construct the scenario knowledge graph based on the data nodes and the target relationship data.
[0049] In this embodiment, the functional component arrangement system can construct a scenario knowledge graph based on the acquired demand samples. The functional component arrangement system can determine the acquired demand samples, determine the sample feature vectors of the sample keywords in the demand samples, and determine the corresponding keyword classification based on the sample feature vectors whose difference values are less than the preset range, and select the sample keyword whose sample feature vector value is the middle number in the keyword classification as the corresponding target keyword. By obtaining the relationship data between the target keyword and the target demand function, as well as the attribute value of the target keyword, the functional component arrangement system can use the target keyword and the target demand function as data nodes to construct a scenario knowledge graph.
[0050] Exemplarily, after obtaining the user's evaluation of the execution results of the functional component orchestration system, the functional component orchestration system can modify the entity data and relationship data in the scenario knowledge graph based on the evaluation and historical evaluations to ensure that the scenario knowledge graph's analysis of functional requirements is more accurate.
[0051] In an embodiment of the present application, the functional component orchestration system can construct a corresponding scenario knowledge graph based on the acquired demand samples to ensure that the scenario knowledge graph in the functional component orchestration system can cover user needs.
[0052] Since the system introduced in the third embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of the present application.
[0053] Embodiment 4 Reference Figure 4 , Figure 4 A schematic diagram of the device structure for arranging the functional components of the hardware operating environment involved in the embodiment of the present application.
[0054] like Figure 4 As shown, the functional component arrangement device may include: a processor 1001, such as a core processor (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the arrangement of functional components of the device, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0056] like Figure 4 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a functional component arrangement program.
[0057] exist Figure 4 In the functional component arrangement device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the functional component arrangement device of the present application can be set in the functional component arrangement device, and the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and performs the following steps: According to the demand text received by the user end, obtain the first entity data in the scene knowledge graph; Matching the requirement text with the relational data in the scenario knowledge graph, and acquiring second entity data according to the matching result and the first entity data; Constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario; According to the functional components and the demand scenarios, a corresponding functional component sequence is generated.
[0058] Furthermore, the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and further performs the following steps: Determine corresponding demand keywords according to the demand text, and determine feature vectors corresponding to the demand keywords; Determine a root node of the scene knowledge graph, and determine a target feature vector associated with the root node; The feature vector is matched with the target feature vector, and a target scene knowledge graph and the first entity data in the target knowledge graph are determined according to the matching result.
[0059] Furthermore, the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and further performs the following steps: Based on the feature vector, matching the demand keyword with the relationship data of the first entity data or the second entity data; Determine, according to the relationship data having the highest matching degree with the demand keyword, a child node of the first entity data or the second entity data in the scenario knowledge graph; The entity data associated with the child node is obtained, and the entity data is selected as the second entity data.
[0060] Furthermore, the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and further performs the following steps: sorting the first entity data and the second entity data according to the hierarchical relationship between the first entity data and the second entity data in the scene knowledge graph; According to the sorting result, connecting the first entity data and the second entity data to generate the demand scenario; According to the first entity data and the second entity data, a required function of the required scenario is determined, and a functional component corresponding to the required function is determined.
[0061] Furthermore, the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and further performs the following steps: Sorting the functional components according to the order of executing the required functions of the required scenario; Generating the functional component sequence according to the sorting result of the functional components; According to the functional component sequence, control actions of the functional components are executed.
[0062] Furthermore, the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and further performs the following steps: Acquire user demand information and identify the user demand information; When the user demand information is voice information, extracting voice features of the user demand information, determining a corresponding text sequence according to the voice features, and generating the demand text according to the text sequence; Alternatively, when the user demand information is text information, text feature information in the text information is extracted to generate the demand text.
[0063] Furthermore, the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and further performs the following steps: When there is no functional component corresponding to the required function, constructing a search formula according to the required keywords of the required text; According to the search formula, the corresponding open source software is searched, and the functional component is obtained according to the open source software; Alternatively, when the open source software that meets the required functions is not found, a prompt message indicating that the relevant functions are missing is output.
[0064] Furthermore, the functional component arrangement device calls the functional component arrangement program stored in the memory 1005 through the processor 1001, and further performs the following steps: Acquire a demand sample, and determine a keyword sample of the demand sample, and a sample feature vector of the keyword sample; Classifying the keyword samples according to the sample feature vectors, and determining a target feature vector according to the classification result and the value range of the sample feature vectors; Determine a target demand function according to a target keyword corresponding to the target feature vector, and obtain target relationship data between the target keyword and the target demand function; The target keywords and the target demand functions are used as data nodes, and the scenario knowledge graph is constructed based on the data nodes and the target relationship data.
[0065] In addition, the present application also provides a computer-readable storage medium, which stores the functional component orchestration program. The functional component orchestration program can also be executed by a processor to implement the steps of each embodiment of the above-mentioned functional component orchestration method.
[0066] 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 combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0067] 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 embodiments of 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 generate 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.
[0068] 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 1 A function specified in one or more boxes.
[0069] 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.
[0070] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0071] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0072] 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 method for arranging functional components, characterized in that: The functional component arrangement method comprises the following steps: According to the demand text received by the user end, obtain the first entity data in the scene knowledge graph; Matching the requirement text with the relational data in the scenario knowledge graph, and acquiring second entity data according to the matching result and the first entity data; Constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario; According to the functional components and the demand scenarios, a corresponding functional component sequence is generated.
2. The method for arranging functional components according to claim 1, characterized in that: The step of acquiring the first entity data in the scene knowledge graph according to the demand text received by the user terminal includes: Determine corresponding demand keywords according to the demand text, and determine feature vectors corresponding to the demand keywords; Determine a root node of the scene knowledge graph, and determine a target feature vector associated with the root node; The feature vector is matched with the target feature vector, and a target scene knowledge graph and the first entity data in the target knowledge graph are determined according to the matching result.
3. The method for arranging functional components according to claim 1 or 2, characterized in that: The step of matching the requirement text with the relational data in the scenario knowledge graph and acquiring the second entity data according to the matching result and the first entity data comprises: Based on the feature vector, matching the demand keyword with the relationship data of the first entity data or the second entity data; Determine, according to the relationship data having the highest matching degree with the demand keyword, a target subnode of the first entity data or the second entity data in the scene knowledge graph; The entity data associated with the target child node is acquired, and the entity data is selected as the second entity data.
4. The method for arranging functional components according to claim 1, characterized in that: The step of constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario includes: sorting the first entity data and the second entity data according to the hierarchical relationship between the first entity data and the second entity data in the scene knowledge graph; According to the sorting result, connecting the first entity data and the second entity data to generate the demand scenario; According to the first entity data and the second entity data, a required function of the required scenario is determined, and a functional component corresponding to the required function is determined.
5. The method for arranging functional components according to claim 1, characterized in that: The step of generating a corresponding functional component sequence according to the functional components and the demand scenario comprises: Sorting the functional components according to the order of executing the required functions of the required scenario; Generating the functional component sequence according to the sorting result of the functional components; According to the functional component sequence, control actions of the functional components are executed.
6. The method for arranging functional components according to claim 1, characterized in that: Before the step of acquiring the first entity data in the scene knowledge graph according to the demand text received by the user terminal, the method further includes: Acquire user demand information and identify the user demand information; When the user demand information is voice information, extracting voice features of the user demand information, determining a corresponding text sequence according to the voice features, and generating the demand text according to the text sequence; Alternatively, when the user demand information is text information, text feature information in the text information is extracted to generate the demand text.
7. The method for arranging functional components according to claim 1, characterized in that: After the step of constructing a demand scenario according to the first entity data and the second entity data, and determining a corresponding demand function and a functional component corresponding to the demand function according to the demand scenario, the method further includes: When there is no functional component corresponding to the required function, constructing a search formula according to the required keywords of the required text; According to the search formula, the corresponding open source software is searched, and the functional component is obtained according to the open source software; Alternatively, when the open source software that meets the required functions is not found, a prompt message indicating that the relevant functions are missing is output.
8. The method for arranging functional components according to claim 1, characterized in that: Before the step of acquiring the first entity data in the scene knowledge graph according to the demand text received by the user terminal, the method further includes: Acquire a demand sample, and determine a keyword sample of the demand sample, and a sample feature vector of the keyword sample; Classifying the keyword samples according to the sample feature vectors, and determining a target feature vector according to the classification result and the value range of the sample feature vectors; Determine a target demand function according to a target keyword corresponding to the target feature vector, and obtain target relationship data between the target keyword and the target demand function; The target keywords and the target demand functions are used as data nodes, and the scenario knowledge graph is constructed based on the data nodes and the target relationship data.
9. A functional component arrangement device, characterized in that: The functional component orchestration device comprises: a memory, a processor, and a functional component orchestration program stored in the memory and executable on the processor, wherein the functional component orchestration program is configured to implement the steps of the functional component orchestration method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium stores a functional component arrangement program, and when the functional component arrangement program is executed by the processor, the steps of the functional component arrangement method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Demand determination method and electronic equipment
CN117149991A
Scene-based orchestrable design method
CN118034686A
Cross-scene Internet of Things application rapid building method based on AIOT middle table modularization capability
CN118283090A
Business interface arrangement method and device, computer program product and electronic equipment
CN118585191A
Cited By
Application generation method and device, electronic equipment and storage medium
CN119396387A
