CN116302218B - Function information adding method, device, equipment and storage medium - Google Patents
Function information adding method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116302218B CN116302218B CN202310267527.XA CN202310267527A CN116302218B CN 116302218 B CN116302218 B CN 116302218B CN 202310267527 A CN202310267527 A CN 202310267527A CN 116302218 B CN116302218 B CN 116302218B
- Authority
- CN
- China
- Prior art keywords
- function
- information
- dependent
- predefined
- source code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000006870 function Effects 0.000 claims abstract description 681
- 230000001419 dependent effect Effects 0.000 claims abstract description 107
- 238000012545 processing Methods 0.000 claims abstract description 30
- 230000008569 process Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004806 packaging method and process Methods 0.000 claims description 10
- 238000013135 deep learning Methods 0.000 abstract description 5
- 238000013473 artificial intelligence Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 8
- 238000013461 design Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000007667 floating Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure provides a method, a device, equipment and a storage medium for adding function information, relates to the technical field of artificial intelligence, and particularly relates to the technical field of deep learning and data processing. The specific implementation scheme is as follows: the electronic device can obtain a source file of a package, the source file comprising: information configuration file and source code, the information configuration file includes: function information of at least one predefined function. The electronic device may parse the source code and the information configuration file, respectively, to determine a function identifier of each dependent function and function information of each predefined function in the source code. The electronic device determines target function information from function information of the predefined functions according to the function identification of each dependent function. The electronic device may generate, according to the objective function information, an objective file of the package, where the objective file includes: and the target file is used for triggering prompt target function information when the dependent function in the program package is called.
Description
Technical Field
The disclosure relates to the technical field of artificial intelligence, in particular to the technical fields of deep learning, image processing and computer vision, and specifically relates to a method, a device, equipment and a storage medium for adding function information.
Background
In the process of developing the application program, a developer can realize corresponding functions in the program package by calling the program package. The package includes a plurality of function functions, and each function in the package has function information (such as name of the function, type of input parameter, type of output parameter, etc.). When a developer calls a function in a program package through the electronic device, the electronic device can display function information so as to assist the developer to acquire accurate function information of the function.
Disclosure of Invention
The disclosure provides a method, a device, equipment and a storage medium for adding function information.
In a first aspect, the present disclosure provides a method for adding function information, including:
In the process of packaging the package, the electronic device may obtain a source file of the package, where the source file includes: information configuration file and source code, the information configuration file includes: function information of at least one predefined function, the source code comprising: function identification of at least one dependent function. The electronic device may then parse the source code and the information configuration file, respectively, to determine a function identification of each dependent function and function information of each predefined function in the source code. And, the electronic device may determine, from the function information of the predefined function, objective function information according to the function identification of each dependent function, the objective function information including: function information of the same predefined function as the function identification of the dependent function. Then, the electronic device may generate, according to the objective function information, an objective file of the program package, where the objective file includes: and the target file is used for triggering prompt target function information when the dependent function in the program package is called.
In a second aspect, the present disclosure provides an adding device for function information, including:
The acquiring unit is configured to acquire a source file of a package in a process of packaging the package, where the source file includes: information configuration file and source code, the information configuration file includes: function information of at least one predefined function, the source code comprising: function identification of at least one dependent function. And the processing unit is used for respectively analyzing the source code and the information configuration file and determining the function identification of each dependent function and the function information of each predefined function in the source code. A processing unit, configured to determine objective function information from function information of the predefined function according to the function identifier of each dependent function, where the objective function information includes: function information of the same predefined function as the function identification of the dependent function. The processing unit is used for generating a target file of the program package according to the target function information, wherein the target file comprises: and the target file is used for triggering prompt target function information when the dependent function in the program package is called.
In a third aspect, the present disclosure provides an electronic device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the methods of the first aspect.
In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, comprising:
the computer instructions are for causing a computer to perform any of the methods of the first aspect.
In a fifth aspect, the present disclosure provides a computer program product comprising:
A computer program which, when executed by a processor, performs any of the methods of the first aspect.
According to the technology disclosed by the invention, the problem that the universality is not high due to the fact that the function information is added depending on the form style is solved, and the robustness of the function information addition is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
Fig. 1 is a flow chart of a method for adding function information according to an embodiment of the disclosure;
FIG. 2 is a flow chart of another method for adding function information according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating another method for adding function information according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating another method for adding function information according to an embodiment of the present disclosure;
Fig. 5 is a schematic structural diagram of an adding device for function information according to an embodiment of the present disclosure;
Fig. 6 is a block diagram of an electronic device according to a method for adding function information according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
Before describing the method for adding function information in detail in the embodiments of the present disclosure, an application scenario in the embodiments of the present disclosure is described.
In developing an application, a developer may implement the corresponding functionality in the python package by calling a package, such as the python package. The python package includes a plurality of function functions, each function in the python package having function information (e.g., name of function, type of input parameter, type of output parameter, etc.). When a developer invokes a function in the python package through the electronic device, the electronic device may display function information to assist the developer in obtaining accurate function information for the function.
For example, if a developer calls a function a in a package through an electronic device, the developer may input a function name of the function a at the electronic device. Then, the electronic device can prompt information such as the type of the input parameter and the type of the output parameter of the function a so as to assist a developer to accurately use the function a.
Wherein the function information of the function in the python package is added to the python package by the developer.
Currently, when developing the python package, a developer can add function information of a function to the python package in the following two ways (a first way and a second way).
The first mode is to manually edit the function information of each function for the developer. However, in the case of more function functions in the python source code, the effort to edit the function information of each function is large. Moreover, when the python package is updated (e.g., the function is changed), the function information in the python package will change with the addition, deletion, and modification of the function in the package. In this way, when a developer manually edits function information of a function, the function information needs to be edited again, which seriously affects development efficiency.
And secondly, analyzing the python source code through a static analysis tool, and adding function information for the function. But part of the function functions in the python package are written by calling other code to implement the corresponding function functions. For example, the Tensor is one of basic concepts in deep learning, and developers inevitably frequently use the Tensor when writing deep learning codes, and call functional functions and attributes of the Tensor. In the deep learning framework of flyer (PADDLE PADDLE), tensor is implemented at the C++ end through pybind, resulting in that static analysis tools cannot obtain function information by analyzing python source code.
In order to solve the above problems, an embodiment of the present disclosure provides a method for adding function information, which is applied to an application scenario for adding function information. In the method, in the process of packaging the package, the electronic device may obtain a source file of the package, where the source file includes: information configuration file and source code, the information configuration file includes: function information of at least one predefined function, the source code comprising: function identification of at least one dependent function. The electronic device may then parse the source code and the information configuration file, respectively, to determine a function identification of each dependent function and function information of each predefined function in the source code. The electronic device may then determine, from the function information of the predefined function, objective function information according to the function identification of each dependent function, the objective function information including: function information of the same predefined function as the function identification of the dependent function. Thus, the electronic device can acquire function information of the dependent functions in the source code. Then, the electronic device may generate, according to the objective function information, an objective file of the program package, where the objective file includes: and the target file is used for triggering prompt target function information when the dependent function in the program package is called. That is, the electronic device may add a file containing function information of the functions in the source code to the package during the package process. Therefore, a developer is not required to manually add function information for the functions in the source code, and the efficiency of developing the program package is improved; and when the function information does not exist in the source code, the electronic equipment can still acquire the function information by analyzing the information configuration file, so that the integrity of the function information in the source code is ensured. The execution subject of the function information adding method provided by the disclosure may be a device for adding function information, and the device may be an electronic device. Meanwhile, the device can also be a central processing unit (Central Processing Unit, CPU) of the electronic equipment or an adding module for adding function information in the electronic equipment. In the embodiment of the present disclosure, an example of a method for adding function information executed by an electronic device is described.
It should be noted that, the embodiments of the present disclosure do not limit the electronic device. The electronic device in the embodiments of the present disclosure may be a tablet, a mobile phone, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, a vehicle-mounted device, or the like, and the embodiments of the present disclosure do not limit the specific form of the electronic device.
Alternatively, the electronic device may be a server. The server may be a single physical server or may be a server cluster made up of a plurality of servers. Or the server cluster may also be a distributed cluster. Or the server may be a cloud server. The embodiment of the application does not limit the specific implementation mode of the server.
As shown in fig. 1, a method for adding function information according to an embodiment of the present disclosure includes:
S101, the electronic equipment acquires a source file of a program package.
Wherein, the source file includes: information profile and source code. The information configuration file includes: function information of at least one predefined function. The source code includes: function identification of at least one dependent function.
It should be noted that, in the embodiment of the present application, the dependency function in the source code may call the predefined function to implement the function of the predefined function. That is, the predefined function is the underlying code that provides the implementation functions for the dependent functions in the source code.
In an embodiment of the application, the predefined function is a functional function composed of a first programming language and the dependent function is a functional function composed of a second programming language. The first programming language is different from the second programming language.
Illustratively, if the first programming language is the c++ language, the second programming language is the python language. The predefined function may include: predefined function a, predefined function b, predefined function c. The predefined function may be exposed to the python terminal through pybind. The dependency functions in the python source code may include: a dependent function a, a dependent function b and a dependent function c. The dependent function a may implement the function of the predefined function a, the dependent function b may implement the function of the predefined function b, and the dependent function c may implement the function of the predefined function c.
It should be noted that the function in the c++ language has higher performance and the python language has poorer performance. But the python language programming experience is higher for the developer. Thus, the dependent function compiled by python calls a predefined function compiled by c++, not only improves the function performance, but also improves the development experience.
In an embodiment of the application, the information profile (which may also be referred to as operator definition file) is used to store function information (which may also be referred to as operator information) of the predefined function. The function information of the function may include: at least one parameter information, which may be information of a function name, a type of an input parameter, a type of an output parameter, etc.
In one possible design, the information profile is a file in another markup language (YAML Ain' tMarkup Language, yaml) format or a file in the Yml format.
It will be appreciated that the electronic device may be caused to obtain the function information to generate the target file by using a file in Yaml format or a file in Yml format.
Alternatively, the information profile may be a c++ file.
It should be noted that, in the embodiment of the present application, the information configuration file is a description type configuration file, and the information configuration file does not include a function code of a predefined function.
In one possible implementation, the electronic device may obtain the source file of the package during the packaging of the package.
For example, the electronic device may receive a packaging instruction that indicates to package the file. In response to the packaging instruction, the electronic device may execute S101-S105 and generate a package.
S102, the electronic equipment analyzes the source code and determines the function identification of each dependent function in the source code.
In one possible design, the function identification may include: function name.
Optionally, the function identification may further include: parameter type, parameter number. Wherein, the parameter types include: the types of the input parameters and the types of the output parameters, and the number of the parameters comprises: the number of input parameters and the number of output parameters.
In one possible implementation, the electronic device may call a first regular expression identifying a function name, a parameter type, a parameter number for each function. The first regular expression is used to identify function information.
S103, the electronic equipment analyzes the information configuration file and determines the function information of each predefined function.
In one possible implementation, the electronic device may parse the information configuration file through a parsing tool to determine function information for each predefined function. The analysis tool is used for analyzing the information configuration file.
Illustratively, the parsing tool may be pyyaml tools.
S104, the electronic equipment determines target function information from function information of the predefined functions according to the function identification of each dependent function.
Wherein the objective function information includes: function information of the same predefined function as the function identification of the dependent function.
In one possible implementation, the function identification includes: function name, number of parameters. For each dependent function, the electronic device may determine whether the function name, the number of parameters, and the function information of the first function are the same for the dependent function, the first function being any one of the at least one predefined function.
If the function name and the parameter number of the dependent function are the same as the function information of the first function, the electronic device takes the function information of the first function as target function information.
Illustratively, if the dependency function includes: function a (i.e., function name), the input parameters of function a include: parameters a and b, and output parameters include: parameter c. The predefined function includes: two functions a (such as a function A1 and a function A2), the input parameters of the function A1 include three parameters, the output parameters include one parameter, the input parameters of the function A2 include two parameters, and the output parameters include one parameter, the function information of the function A2 is the function information of the function a. For example, the input parameters of the parameter A2 include: and if the output parameters comprise floating point number type parameters, the parameters a and b in the function A are respectively integer type parameters and character string type parameters, and the parameter c is a floating point number type parameter.
Optionally, the function identification may further include: parameter names. That is, if the function name, the parameter name, and the parameter number of the dependent function are the same as the function information of the first function, the electronic device uses the function information of the first function as the target function information.
It can be understood that, for each dependent function, if the function name and the parameter number of the dependent function are the same as the function information of the first function, which indicates that the dependent function is identical to the first function, the electronic device may use the function information of the first function as the target function information, thereby improving the accuracy of the function information.
S105, the electronic equipment generates a target file of the program package according to the target function information.
Wherein, the target file includes: and the target file is used for triggering prompt target function information when the dependent function in the program package is called.
Illustratively, the function information of the cast function is shown as code one below.
def cast(self,dtype:np.dtype|str):
Args:dtype(np.dtype|str):Data type of the output:
Pool, float16, float32, float64, int8, int32, int64, uint8 code one.
Where dtype (np. Dtype|str) is used to indicate that dtype (i.e. input parameter) may be np. Dtype type or str type, "Data type of the output: the types of output parameters used to represent cast functions for the pool, float16, float32, float64, int8, int32, int64, uint8 "are: pool, float16, float32, float64, int8, int32, int64, uint8.
In one possible design, the target file may be a proxy file, which may be a source code file.
In another possible design, the target file may be a stub file, i.e., a stub file. The electronic device may generate stub files through a stub file generation tool.
Illustratively, the stub file generation tool may be a mypy tool.
In some embodiments, after generating the object file of the package, the electronic device may generate a packaged package comprising: a target file.
That is, when a subsequent developer invokes the package, the electronic device may provide the developer with function information of the function.
Illustratively, suppose that the packaged python package includes a function of Tensor and a target file of Tenson. When a developer calls a Tensor in the packaged python package in an integrated development environment (INTEGRATED DEVELOPMENT ENVIRONMENT, IDE) or Editor, the IDE or Editor may issue a hint message to indicate the function information of the Tensor function.
It will be appreciated that in packaging a package, an electronic device may obtain source files for the package, the source files comprising: information configuration file and source code, the information configuration file includes: function information of at least one predefined function, the source code comprising: function identification of at least one dependent function. That is, function information of a predefined function is configured in the source file in the present application. The electronic device may then parse the source code and the information configuration file, respectively, to determine a function identification of each dependent function and function information of each predefined function in the source code. The electronic device may then determine, from the function information of the predefined function, objective function information according to the function identification of each dependent function, the objective function information including: function information of the same predefined function as the function identification of the dependent function. Thus, the electronic device can acquire function information of the dependent functions in the source code. Then, the electronic device may generate, according to the objective function information, an objective file of the program package, where the objective file includes: and the target file is used for triggering prompt target function information when the dependent function in the program package is called. That is, the electronic device may add a file containing function information of the functions in the source code to the package during the package process. Therefore, a developer is not required to manually add function information for the functions in the source code, and the efficiency of developing the program package is improved; and the function information which does not exist in the source code can still be obtained through analyzing the information configuration file, so that the integrity of the function information in the source code is ensured.
In some embodiments, the information profile further includes a data tag corresponding to the function information, from which the electronic device can determine the function information.
As shown in fig. 2, another method for adding function information is provided in an embodiment of the disclosure.
S201, the electronic equipment acquires a source file of a program package.
In the embodiment of the present application, the information configuration file further includes: the function information of each predefined function comprises: parameter information corresponding to the data tag.
Wherein the plurality of data tags may include: name tags, input parameter tags, output parameter tags, etc. The parameter information may be information such as function name and parameter type. The name label corresponds to the function name, the input parameter label corresponds to the parameter type of the input parameter, and the output parameter label corresponds to the parameter type of the output parameter.
Illustratively, as shown in code two, it shows the correspondence between the data tag and the parameter information.
op:allclose
args:(Tensor x,Tenseor y)
Output: tensor (out) code two.
Wherein op is a name tag, args is an input parameter tag, output is an output parameter tag, allclose is a function name, tensor is a type of input parameter, x and y are names of input parameters, and Tensor (out) is a type of output parameter.
It should be noted that, the description of S201 may refer to the description of S101, which is not repeated here.
S202, the electronic equipment analyzes the source code and determines the function identification of each dependent function in the source code.
It should be noted that, the description of S202 may refer to the description of S102, which is not repeated herein.
S203, the electronic equipment acquires parameter information corresponding to each data tag according to a plurality of data tags corresponding to the predefined function.
In one possible implementation, the electronic device may identify a name tag, an input parameter tag, an output parameter tag, respectively, for each predefined function. Then, the electronic device can determine the function name corresponding to the name label, input the parameter type of the input parameter corresponding to the parameter label, and output the parameter type of the output parameter corresponding to the parameter label.
Illustratively, in combination with code two, if the plurality of data tags includes: op (i.e. name tag), args (i.e. input parameter tag), output (output parameter tag), the electronic device may determine that the function name is allclose according to op, determine that the types of the input parameters are Tensor according to args, and determine that the types of the output parameters are Tensor according to output.
Alternatively, the parameter information corresponding to each data tag in the information configuration file may be represented in different rows. That is, the rows of parameter information corresponding to different data tags are different.
Illustratively, as shown in code two, op corresponds allclose in the first row, args corresponds (Tensor x, tenseor y) in the second row, and output corresponds to Tensor (out) in the third row.
It can be understood that the parameter information corresponding to each data tag in the information configuration file can be represented in different rows, so that different parameter information is prevented from being in the same row, the probability of parameter information disorder is reduced, and the readability of the parameter information is improved.
In the embodiment of the present application, for each predefined function, the electronic device may execute S203 to obtain function information of each predefined function.
It will be appreciated that the information profile also includes: the function information of each predefined function comprises: parameter information corresponding to the data tag. Thus, the electronic equipment can respectively acquire the parameter information corresponding to each data tag according to the data tags.
S204, the electronic equipment converts the function information of each preset definition function into structured data according to a plurality of data labels corresponding to each predefined function, and the function information converted into the structured data is obtained.
It should be noted that, structured data, also referred to as row data, is data implemented by two-dimensional table structural expression, and may be stored and managed by a database (e.g., a relational database).
In the embodiment of the application, the electronic equipment converts the parameter information of each preset definition function into the structured data to generate the target data, wherein the target data comprises the function information converted into the structured data.
Alternatively, the electronic device may store the target data in a database.
Illustratively, as shown in Table 1, function information converted into structured data is shown.
TABLE 1 functional information of structured data
op | args |
allclose | Tensor x,Tensor y |
study | Int a |
open | Tensor b,Int c |
That is, the input parameters with function names allclose are all of the types of Tensor, and the output parameters are all of the types of Tensor. The input parameters with the function name of student are all of the type Int, and the output parameters are of the type Str. The input parameters with the function name open are of the types Tensor and Int, and the output parameters are of the type Tensor.
It will be appreciated that the electronic device converts the determined function information into structured data based on the data tag. Thus, the function information is convenient to operate subsequently.
S205, the electronic equipment determines target function information from function information of the predefined functions according to the function identification of each dependent function.
In one possible implementation, the electronic device may read the function information by means of key-value pairs, and determine the objective function information according to the function identification of each dependent function.
It should be noted that, for the description of S205, reference may be made to the description in S104, which is not repeated here.
S206, the electronic equipment generates a target file of the program package according to the target function information.
It should be noted that, for the description of S206, reference may be made to the description in S105, which is not repeated here.
It should be noted that, during the process of developing a package by a developer, function information of a part of functions may be added to the source code, that is, a part of functions already have function information in the source code. Therefore, if the function information is acquired by the function identification of each dependent function and added, the function information may be repeatedly added. Thus, not only data redundancy but also repeated workload is increased.
In some embodiments, the electronic device may identify a dependent function that does not carry function information and add function information to the dependent function that does not carry function information.
As shown in fig. 3, another method for adding function information is provided in an embodiment of the disclosure.
S301, the electronic equipment acquires a source file of a program package.
It should be noted that, for the description of S301, reference may be made to the description of S101, which is not repeated here.
S302, the electronic equipment analyzes the source code and determines the function identification of the objective class function.
In an embodiment of the present application, the at least one dependency function includes: the system comprises an objective class function and a first class function, wherein the objective class function is a dependent function which does not carry function information in a source code, and the first class function is a dependent function which carries function information in the source code.
In one possible implementation, the electronic device may determine from the source code a function identification of all dependent functions and a function identification of a first class of functions. And then, the electronic equipment determines the function identification of the target class function according to the function identifications of all the dependent functions and the function identifications of the first class functions, wherein the target class function is a dependent function except the first class function in all the dependent functions.
In one possible design, the electronic device has stored therein a preset configuration file for function information stored in the source code. The electronic device may identify a first class of functions from the source code according to a preset configuration file, thereby determining the objective function.
The preset configuration file may be an aspect database, for example.
S303, the electronic equipment acquires parameter information corresponding to each data tag according to a plurality of data tags corresponding to the predefined function.
It should be noted that, for the description of S303, reference may be made to the description in S203, which is not repeated here.
S304, the electronic equipment converts the parameter information of each preset definition function into structured data according to a plurality of data labels corresponding to each predefined function, and obtains function information converted into the structured data.
It should be noted that, for the description of S304, reference may be made to the description in S204, which is not repeated here.
S305, the electronic equipment determines target function information from function information of the predefined function according to the function identification of the target class function.
The objective function information specifically includes: function information of the same predefined function as the function identification of the object class function.
That is, the objective function information includes only the dependent functions that do not carry function information.
It should be noted that, specifically, for the description of determining the objective function information from the function information of the predefined function according to the function identifier of the objective function by the electronic device, reference may be made to the description in S205, which is not repeated herein.
It should be noted that, for the description of S205, reference may be made to the description in S104, which is not repeated here.
It is understood that the at least one dependency function includes: and the target class function is a dependent function which does not carry function information in the source code. The electronic equipment can determine the function identification of the first class of functions from the function identifications of all the dependent functions in the source code, wherein the first class of functions are the dependent functions carrying function information in the source code, and further determine the function identifications of the target class of functions. That is, the electronic device only needs to determine function information of the dependent function which does not carry function information in the source code, so that data redundancy is avoided, the data volume of the function information is reduced, and the efficiency of acquiring target function information is improved.
S306, the electronic equipment generates a target file of the program package according to the target function information.
It should be noted that, for the description of S306, reference may be made to the description in S105, which is not repeated here.
The method for adding function information in the embodiment of the application is described below with reference to specific examples. As shown in fig. 4, during the python package process, the electronic device determines that the function in the python source code does not carry function information. The electronic device may acquire function information of the function (S102-S104). After that, the electronic device may add function information for the function (S105). The electronic device may then generate a packaged python package, and the packaged python package includes function information for the function.
The foregoing description of the embodiments of the present disclosure has been presented primarily in terms of computer apparatus. It will be appreciated that the computer device, in order to carry out the functions described above, comprises corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative method steps of adding function information described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The embodiment of the disclosure may divide the function modules or the function units according to the method example to add the function information, for example, each function module or each function unit may be divided corresponding to each function, or two or more functions may be integrated in one processing module. The integrated modules may be implemented in hardware, or in software functional modules or functional units. The division of modules or units in the embodiments of the present disclosure is merely a logic function division, and other division manners may be actually implemented.
Fig. 5 is a schematic structural diagram of an adding device for function information according to an embodiment of the present disclosure. The function information adding means may include: an acquisition unit 501 and a processing unit 502.
An obtaining unit 501, configured to obtain, in a process of packaging a package, a source file of the package, where the source file includes: information configuration file and source code, the information configuration file includes: function information of at least one predefined function, the source code comprising: function identification of at least one dependent function. And the processing unit 502 is configured to parse the source code and the information configuration file respectively, and determine a function identifier of each dependent function and function information of each predefined function in the source code. A processing unit 502, configured to determine, according to the function identifier of each dependent function, objective function information from function information of the predefined function, where the objective function information includes: function information of the same predefined function as the function identification of the dependent function. The processing unit 502 is configured to generate, according to the objective function information, an objective file of the package, where the objective file includes: and the target file is used for triggering prompt target function information when the dependent function in the program package is called.
Optionally, the information configuration file further includes: the function information of each predefined function comprises: parameter information corresponding to the data tag. The obtaining unit 501 is configured to obtain, for each predefined function, parameter information corresponding to each data tag according to a plurality of data tags corresponding to the predefined function, so as to obtain function information of each preset defined function.
Optionally, the processing unit 502 is configured to convert function information of each preset defined function into structured data according to a plurality of data tags corresponding to each predefined function, so as to obtain function information converted into structured data.
Optionally, the information configuration file is a Yaml format file or a Yml format file.
Optionally, the function identification includes: function name, number of parameters. And the processing unit 502 is configured to, for each dependent function, use the function information of the first function as the objective function information if the function name and the parameter number of the dependent function are the same as the function information of the first function, where the first function is any one of at least one predefined function.
Optionally, the at least one dependency function includes: and the target class function is a dependent function which does not carry function information in the source code. The processing unit 502 is configured to determine, from the source code, function identifiers of all the dependent functions in the source code and function identifiers of a first type of function, where the first type of function is a dependent function carrying function information in the source code. The processing unit 502 is configured to determine, according to the function identifications of all the dependent functions and the function identifications of the first class functions, a function identification of an objective class function, where the objective class function is a dependent function other than the first class function in all the dependent functions. Optionally, the predefined function is used to provide the dependent functions with the underlying code that implements the function.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 6 illustrates a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, mouse, etc.; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The calculation unit 601 performs the respective methods and processes described above, for example, the addition method of function information. For example, in some embodiments, the method of adding function information may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the above-described method of adding function information may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the method of adding function information in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (15)
1. A method of adding function information, comprising:
in the process of packaging a program package, acquiring a source file of the program package, wherein the source file comprises: an information profile and source code, the information profile comprising: function information of at least one predefined function, the source code comprising: a function identification of at least one dependent function, the predefined function being underlying code for providing an implementation function for the dependent function;
analyzing the source code and the information configuration file respectively, and determining the function identification of each dependent function and the function information of each predefined function in the source code;
Determining objective function information from function information of the predefined functions according to function identification of each dependent function, wherein the objective function information comprises: function information of a predefined function identical to the function identification of the dependent function;
generating an object file of the program package according to the object function information, wherein the object file comprises: and the target file is used for triggering and prompting the target function information when the dependent function in the program package is called.
2. The method of claim 1, wherein the information profile further comprises: the function information of each predefined function comprises: parameter information corresponding to the data tag;
analyzing the information configuration file to determine the function information of each predefined function, including:
And for each predefined function, acquiring parameter information corresponding to each data tag according to the plurality of data tags corresponding to the predefined function so as to acquire function information of each predefined function.
3. The method of claim 2, the method further comprising:
And converting the function information of each predefined function into structured data according to a plurality of data labels corresponding to each predefined function to obtain the function information converted into the structured data.
4. A method according to any one of claims 1-3, the information profile being a Yaml format file or a Yml format file.
5. A method according to any of claims 1-3, wherein the function identification comprises: function name, number of parameters; the determining objective function information from the function information of the predefined functions according to the function identification of each dependent function comprises the following steps:
And for each dependent function, if the function name and the parameter number of the dependent function are the same as those of a first function, the function information of the first function is used as the target function information, and the first function is any function in the at least one predefined function.
6. A method according to any of claims 1-3, wherein the at least one dependency function comprises: the target class function is a dependent function which does not carry function information in the source code; analyzing the source code, and determining the function identification of each dependent function in the source code, wherein the method comprises the following steps:
Determining function identifiers of all dependent functions in the source code and function identifiers of first-class functions from the source code, wherein the first-class functions are dependent functions carrying function information in the source code;
And determining the function identification of the objective class function according to the function identifications of all the dependent functions and the function identifications of the first class function, wherein the objective class function is a dependent function except the first class function in all the dependent functions.
7. An adding device of function information, comprising:
An obtaining unit, configured to obtain a source file of a package in a process of packaging the package, where the source file includes: an information profile and source code, the information profile comprising: function information of at least one predefined function, the source code comprising: a function identification of at least one dependent function, the predefined function being used to provide underlying code for implementing functions for the dependent function;
The processing unit is used for respectively analyzing the source code and the information configuration file and determining the function identification of each dependent function and the function information of each predefined function in the source code;
The processing unit is configured to determine objective function information from function information of the predefined functions according to a function identifier of each dependent function, where the objective function information includes: function information of a predefined function identical to the function identification of the dependent function;
The processing unit is configured to generate, according to the objective function information, an objective file of the package, where the objective file includes: and the target file is used for triggering and prompting the target function information when the dependent function in the program package is called.
8. The apparatus of claim 7, the information profile further comprising: the function information of each predefined function comprises: parameter information corresponding to the data tag;
The acquiring unit is configured to acquire, for each of the predefined functions, parameter information corresponding to each of the data tags according to the plurality of data tags corresponding to the predefined functions, so as to acquire function information of each of the predefined functions.
9. The device according to claim 8,
The processing unit is used for converting the function information of each predefined function into structured data according to a plurality of data labels corresponding to each predefined function to obtain the function information converted into the structured data.
10. The apparatus according to any of claims 7-9, the information profile being a Yaml format file or a Yml format file.
11. The apparatus of any of claims 7-9, the function identification comprising: function name, number of parameters;
The processing unit is configured to, for each of the dependent functions, take function information of a first function as the objective function information if function names and parameter numbers of the dependent functions are the same as function information of the first function, where the first function is any one of the at least one predefined function.
12. The apparatus of any of claims 7-9, the at least one dependency function comprising: the target class function is a dependent function which does not carry function information in the source code;
The processing unit is used for determining function identifiers of all dependent functions in the source code and function identifiers of a first type of functions from the source code, wherein the first type of functions are dependent functions carrying function information in the source code;
the processing unit is used for determining the function identification of the objective function according to the function identifications of all the dependent functions and the function identifications of the first class functions, wherein the objective function is a dependent function except the first class function in all the dependent functions.
13. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310267527.XA CN116302218B (en) | 2023-03-15 | 2023-03-15 | Function information adding method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310267527.XA CN116302218B (en) | 2023-03-15 | 2023-03-15 | Function information adding method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116302218A CN116302218A (en) | 2023-06-23 |
CN116302218B true CN116302218B (en) | 2024-05-10 |
Family
ID=86792152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310267527.XA Active CN116302218B (en) | 2023-03-15 | 2023-03-15 | Function information adding method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116302218B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117075912B (en) * | 2023-10-16 | 2023-12-26 | 芯行纪科技有限公司 | Method for program language conversion, compiling method and related equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018181127A (en) * | 2017-04-19 | 2018-11-15 | 株式会社システムズ | Document creating apparatus, document producing method, and program |
CN110377336A (en) * | 2019-06-17 | 2019-10-25 | 平安普惠企业管理有限公司 | Interface document generation method, device, computer equipment and storage medium |
CN110471694A (en) * | 2019-07-11 | 2019-11-19 | 平安普惠企业管理有限公司 | Annotation information processing method, device, computer equipment and storage medium |
CN110612705A (en) * | 2017-11-08 | 2019-12-24 | 华为技术有限公司 | Method for service deployment under server-free architecture and function management platform |
CN111090461A (en) * | 2019-11-18 | 2020-05-01 | 中山大学 | Code annotation generation method based on machine translation model |
CN113254347A (en) * | 2021-06-21 | 2021-08-13 | 南京统信软件技术有限公司 | Log function adding method, computing device and storage medium |
EP3872653A2 (en) * | 2020-12-11 | 2021-09-01 | Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. | Annotation tool generation method and apparatus, annotation method and apparatus, electronic device and storage medium and program product |
CN113377614A (en) * | 2021-06-08 | 2021-09-10 | 北京百度网讯科技有限公司 | Generation method and device of call chain information, electronic equipment and storage medium |
CN113591091A (en) * | 2020-04-30 | 2021-11-02 | 华为技术有限公司 | Application processing method and device, cloud environment and storage medium |
CN114153459A (en) * | 2021-12-03 | 2022-03-08 | 中国建设银行股份有限公司 | Interface document generation method and device |
CN114385174A (en) * | 2020-10-19 | 2022-04-22 | 武汉斗鱼鱼乐网络科技有限公司 | Compiling method, device, equipment and storage medium of functional module |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7458063B2 (en) * | 2004-09-14 | 2008-11-25 | Microsoft Corporation | Method and apparatus for supporting functionality documentation |
US10719431B2 (en) * | 2018-12-18 | 2020-07-21 | Sap Se | Graph based code performance analysis |
US11693855B2 (en) * | 2019-12-20 | 2023-07-04 | International Business Machines Corporation | Automatic creation of schema annotation files for converting natural language queries to structured query language |
JP7295469B2 (en) * | 2020-01-07 | 2023-06-21 | 富士通株式会社 | Function generation program, function generation method, and information processing device |
-
2023
- 2023-03-15 CN CN202310267527.XA patent/CN116302218B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018181127A (en) * | 2017-04-19 | 2018-11-15 | 株式会社システムズ | Document creating apparatus, document producing method, and program |
CN110612705A (en) * | 2017-11-08 | 2019-12-24 | 华为技术有限公司 | Method for service deployment under server-free architecture and function management platform |
CN110377336A (en) * | 2019-06-17 | 2019-10-25 | 平安普惠企业管理有限公司 | Interface document generation method, device, computer equipment and storage medium |
CN110471694A (en) * | 2019-07-11 | 2019-11-19 | 平安普惠企业管理有限公司 | Annotation information processing method, device, computer equipment and storage medium |
CN111090461A (en) * | 2019-11-18 | 2020-05-01 | 中山大学 | Code annotation generation method based on machine translation model |
CN113591091A (en) * | 2020-04-30 | 2021-11-02 | 华为技术有限公司 | Application processing method and device, cloud environment and storage medium |
CN114385174A (en) * | 2020-10-19 | 2022-04-22 | 武汉斗鱼鱼乐网络科技有限公司 | Compiling method, device, equipment and storage medium of functional module |
EP3872653A2 (en) * | 2020-12-11 | 2021-09-01 | Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. | Annotation tool generation method and apparatus, annotation method and apparatus, electronic device and storage medium and program product |
CN113377614A (en) * | 2021-06-08 | 2021-09-10 | 北京百度网讯科技有限公司 | Generation method and device of call chain information, electronic equipment and storage medium |
CN113254347A (en) * | 2021-06-21 | 2021-08-13 | 南京统信软件技术有限公司 | Log function adding method, computing device and storage medium |
CN114153459A (en) * | 2021-12-03 | 2022-03-08 | 中国建设银行股份有限公司 | Interface document generation method and device |
Non-Patent Citations (2)
Title |
---|
一种C代码软件设计信息提取方法研究;雷宇;黄松;于秀山;惠战伟;;南通大学学报(自然科学版);20161220(第04期);全文 * |
雷宇 ; 黄松 ; 于秀山 ; 惠战伟 ; .一种C代码软件设计信息提取方法研究.南通大学学报(自然科学版).2016,(第04期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN116302218A (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113342345A (en) | Operator fusion method and device of deep learning framework | |
CN112860356B (en) | API call control method and device, electronic equipment and storage medium | |
CN113360672B (en) | Method, apparatus, device, medium and product for generating knowledge graph | |
CN113392346A (en) | Path processing method and device for resource file, electronic equipment and storage medium | |
CN114445682A (en) | Method, device, electronic equipment, storage medium and product for training model | |
CN115686499A (en) | Method, device, storage medium and electronic equipment for generating request message | |
CN116302218B (en) | Function information adding method, device, equipment and storage medium | |
CN115509522A (en) | Interface arranging method and system for low-code scene and electronic equipment | |
CN112989797B (en) | Model training and text expansion methods, devices, equipment and storage medium | |
CN114330718A (en) | Method and device for extracting causal relationship and electronic equipment | |
CN117992569A (en) | Method, device, equipment and medium for generating document based on generation type large model | |
CN118363977A (en) | Structured query language sentence generation method, device, equipment and storage medium | |
CN116893819A (en) | Program compiling method, device, chip, electronic device and storage medium | |
CN113344405B (en) | Method, device, equipment, medium and product for generating information based on knowledge graph | |
CN114115854A (en) | SDK file generation method, device, equipment and storage medium | |
CN114218313A (en) | Data management method, device, electronic equipment, storage medium and product | |
CN113961672A (en) | Information labeling method and device, electronic equipment and storage medium | |
CN114416215A (en) | Function calling method and device | |
CN113722037A (en) | User interface refreshing method and device, electronic equipment and storage medium | |
CN116431108B (en) | Object type processing method and device, electronic equipment and storage medium | |
CN114218026B (en) | Score board generation method and device, electronic equipment and storage medium | |
CN113835893B (en) | Data processing method, device, equipment, storage medium and program product | |
CN115965018B (en) | Training method of information generation model, information generation method and device | |
CN113342990B (en) | Knowledge graph construction method and device | |
CN113590483B (en) | Use case operation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |