WO2021218063A1 - 基于名称映射的参数赋值方法、装置、计算机设备 - Google Patents

基于名称映射的参数赋值方法、装置、计算机设备 Download PDF

Info

Publication number
WO2021218063A1
WO2021218063A1 PCT/CN2020/122452 CN2020122452W WO2021218063A1 WO 2021218063 A1 WO2021218063 A1 WO 2021218063A1 CN 2020122452 W CN2020122452 W CN 2020122452W WO 2021218063 A1 WO2021218063 A1 WO 2021218063A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
name
information
mapping
chinese
Prior art date
Application number
PCT/CN2020/122452
Other languages
English (en)
French (fr)
Inventor
罗金雄
胡宏伟
马骏
王少军
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021218063A1 publication Critical patent/WO2021218063A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/049Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs

Definitions

  • This application relates to the field of computer technology, in particular to a parameter assignment method, device, and computer equipment based on name mapping.
  • the server runs the system program stored in the server to provide services to the clients that access the server.
  • the multiple systems included in the system program exchange data through interfaces, that is, the data contains multiple interfaces in the system program.
  • the system program involves the front-end and back-end interaction process of each system, and the increase in the number of sub-systems has led to a substantial increase in the number of overall interfaces.
  • the name of the access parameter (also called attribute) of the interface in the system program has been determined at the beginning of the system program design. It is impossible to dynamically configure the name of the access parameter of the interface according to the system requirements without adjusting the code logic, and the interface parameter in Chinese There is a one-to-one correspondence between the name and the English name. The inventor found that in a system program with a large number of interfaces, there will be a large number of interface parameters with the same Chinese name but inconsistent English names, or a large number of different Chinese names but similar English names.
  • the embodiments of the present application provide a method, device, computer equipment, and storage medium for parameter assignment based on name mapping, aiming to solve the problem of low efficiency of parameter assignment in the existing technical methods.
  • an embodiment of the present application provides a parameter assignment method based on name mapping, which includes:
  • an embodiment of the present application provides a parameter assignment device based on name mapping, which includes:
  • the program to be traversed traversal unit is configured to, if the program to be traversed input by the user of the management server is received, traverse the interfaces included in the program to be traversed to obtain an interface parameter information table containing parameter information;
  • the first mapping unit is configured to map the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information including the first mapping information;
  • the first information removal unit is configured to remove the parameter information corresponding to the first name mapping information in the interface parameter information table to obtain a remaining parameter information table;
  • the second mapping unit is configured to map the parameter names of the parameter information in the remaining parameter information table according to a preset mapping creation model to obtain second name mapping information including second mapping information;
  • the second information removal unit is configured to remove the parameter information corresponding to the second name mapping information in the remaining parameter information table to obtain an unmapped parameter information table;
  • An information storage unit configured to store the first name mapping information, the second name mapping information, and the unmapped parameter information table in a preset parameter database
  • the target parameter name obtaining unit is configured to, if a parameter processing request from the client is received, obtain the target parameter name corresponding to the parameter processing request from the parameter database;
  • the target parameter assignment unit is configured to assign the target parameter corresponding to the target parameter name in the program to be traversed according to the parameter value of the request parameter name in the parameter processing request.
  • an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer
  • the program implements the parameter assignment method based on name mapping described in the first aspect.
  • an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the above-mentioned first On the one hand, the parameter assignment method based on name mapping.
  • the embodiments of the present application provide a parameter assignment method, device, and computer equipment based on name mapping.
  • the name mapping information is established according to the parameter name in the parameter information table, so that the Chinese name and English name stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, so the parameter information of the interface can be reduced.
  • the efficiency and accuracy of data transmission in each interface can be improved by establishing name mapping information, that is, the efficiency of assigning the parameters of the interface is improved.
  • FIG. 1 is a schematic flowchart of a parameter assignment method based on name mapping provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of an application scenario of a parameter assignment method based on name mapping provided in an embodiment of the application;
  • FIG. 3 is a schematic diagram of a sub-flow of a parameter assignment method based on name mapping provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of another sub-process of the parameter assignment method based on name mapping provided by an embodiment of the application;
  • FIG. 5 is a schematic diagram of another sub-process of the parameter assignment method based on name mapping provided by an embodiment of the application;
  • FIG. 6 is a schematic diagram of another sub-process of the parameter assignment method based on name mapping provided by an embodiment of the application.
  • FIG. 7 is a schematic block diagram of a parameter assignment device based on name mapping provided by an embodiment of the application.
  • FIG. 8 is a schematic block diagram of a computer device provided by an embodiment of the application.
  • FIG. 1 is a schematic flowchart of a parameter assignment method based on name mapping provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of an application scenario of a parameter assignment method based on name mapping provided in an embodiment of the present application.
  • the parameter assignment method based on name mapping is applied to the management server 10.
  • the method is executed by application software installed in the management server 10.
  • the management server 10 establishes a network connection with the client 20 to communicate with the client 20, and the client
  • the user of the terminal 20 can send a parameter processing request to the management server 10 through the client, and the management server 10 executes the parameter assignment method based on name mapping to assign the target parameter corresponding to the parameter processing request.
  • the management server 10 is used For an enterprise terminal that executes a parameter assignment method based on name mapping, the client terminal 20 is a terminal device for sending parameter processing requests, and the client terminal 20 may be a desktop computer, a laptop computer, a tablet computer, or a mobile phone.
  • FIG. 2 only shows that one client 20 and the management server 10 transmit data information. In practical applications, the management server 10 can also transmit data information with multiple clients 20 at the same time.
  • the method includes steps S110 to S180.
  • the interfaces included in the program to be traversed are traversed to obtain an interface parameter information table containing parameter information.
  • the program to be traversed includes multiple interfaces. Each interface corresponds to at least one input parameter and at least one output parameter.
  • the input parameters and output parameters are the parameters corresponding to the interface.
  • the parameters include the parameter name and the parameter value, and the parameter name includes the parameter of the parameter. Chinese name and English name, the parameter value is the assignment information corresponding to the parameter.
  • the output parameter of one interface can be used as the input parameter of another interface, that is, the parameter value is To be passed through multiple interfaces included in the program to be traversed.
  • an interface parameter information table containing parameter information can be obtained.
  • the interface parameter information table obtained after traversing the interface of a certain program to be traversed is shown in Table 1.
  • S120 Map the parameter names in the parameter information according to a preset mapping rule to obtain first name mapping information including first mapping information.
  • the parameter name in the parameter information is mapped according to a preset mapping rule to obtain first name mapping information including the first mapping information.
  • the mapping rule is the rule used to establish the first name mapping information according to the parameter name of the parameter information.
  • the parameter name includes the Chinese name and the English name.
  • the Chinese name is used to identify the meaning of the parameter.
  • the Chinese can be compared according to the parameter value of the parameter.
  • the name is assigned and displayed to the user.
  • the English name is the identification information when the parameter value is processed inside the program.
  • the program code calculates the parameter value assigned by the parameter according to the English name.
  • the Chinese name and the English name corresponding to each parameter are stored in the system memory.
  • step S120 includes sub-steps S121 and S122.
  • parameter information includes parameters with the same English name, obtain all the parameters with the same English name, and map all Chinese names corresponding to all the parameters with the English name according to the mapping rule to obtain a first mapping information.
  • the mapping rule is the rule information for establishing the mapping information . Obtain all the first mapping information to obtain the first name mapping information, and the obtained first name mapping information includes at least one piece of first mapping information.
  • the input parameter "Customer Mobile Number” of the interface "AA” and the input parameter "Mobile Number” of the interface “BB” correspond to the same English names, then the "Customer Mobile Number” and “Mobile Number” will be mapped to "Cell-phone” gets a piece of first mapping information.
  • the parameter information corresponding to the first name mapping information in the interface parameter information table is removed to obtain a remaining parameter information table.
  • the interface parameter information table contains the parameter information of all interfaces.
  • the parameter information corresponding to the first name mapping information in the interface parameter information table can be eliminated to obtain the remaining parameter information table, that is, the remaining parameter information table does not contain the first name Parameter information corresponding to the mapping information.
  • S140 Map the parameter names of the parameter information in the remaining parameter information table according to a preset mapping creation model to obtain second name mapping information including second mapping information.
  • the parameter names of the parameter information in the remaining parameter information table are mapped to obtain second name mapping information including second mapping information.
  • the mapping creation model is the model information used to establish the second name mapping information according to the parameter name of the parameter information.
  • the second name mapping information is created based on the parameter information in the remaining parameter information table, wherein the mapping creation model includes the character length Information, character vector table, Long Short-Term Memory (LSTM) and similarity judgment rules.
  • the character vector table is the data table that records the vector information of each character.
  • the long and short-term memory network is the neural network that calculates the parameter name feature vector to obtain the output information of the corresponding memory network.
  • the similarity judgment rules are two Rule information for judging the similarity between network output information.
  • step S140 includes sub-steps S141, S142, S143, S144, and S145.
  • S141 Perform standardization processing on the Chinese name of each parameter in the parameter information according to the character length information to obtain a corresponding standard name.
  • the Chinese name of each parameter in the parameter information is standardized according to the character length information to obtain a corresponding standard name.
  • the Chinese name of the parameter does not contain the same number of characters.
  • the Chinese name of each parameter needs to be processed according to the character length information to obtain a standard name with the same number of characters.
  • the long and short-term memory network contains multiple cells, and the character length information can be set as the number of cells in the long- and short-term memory network.
  • the first N characters in the Chinese name are intercepted as the parameter name; if the number of characters contained in the Chinese name of the parameter is less than the character length Information N, use empty characters (using ⁇ to indicate) to fill in the missing characters in the Chinese name to obtain a parameter name containing N characters; if the number of characters contained in the Chinese name of the parameter is equal to the character length information N , The Chinese name is directly used as the parameter name.
  • S142 Acquire a parameter name feature vector corresponding to each parameter name according to the character vector table.
  • the character vector table contains a 1 ⁇ M-dimensional vector corresponding to each character, and the 1 ⁇ M-dimensional vector can be used to quantify the characteristics of the character.
  • a 1 ⁇ M-dimensional vector corresponding to each character in the standard name can be obtained from the character vector information table, and the 1 ⁇ M-dimensional vector corresponding to the N characters contained in the standard name can be combined, namely An N ⁇ M vector can be obtained, that is, the parameter name feature vector obtained.
  • character 1 ⁇ M-dimensional vector guest ⁇ 0.7, 0.3, 0.5, 0.6, 0.9, 0, 0.8, 0.1, 0.5, 0.9 ⁇ Household ⁇ 0.8, 0.1, 0.4, 0.2, 0.9, 0.7, 0.3, 0.1, 0.3, 0.2 ⁇ hand ⁇ 0.6, 0.2, 0.8, 0.9, 0.7, 0.3, 0.1, 0.4, 0.6, 0.8 ⁇ machine ⁇ 0.2, 0.9, 0.7, 0.3, 0.6, 0.2, 0.6, 0, 0.5, 0.2 ⁇ No ⁇ 0.9, 0.3, 0.1, 0.4, 0.2, 0.8, 0.9, 0.6, 0.2, 0.7 ⁇ code ⁇ 0.4, 0.6, 0.3, 0.6, 1.0, 0.3, 0.6, 0.1, 0.4, 0.2 ⁇ ⁇ (blank character) ⁇ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ⁇
  • the parameter name feature vector is input into the long and short-term memory network to calculate the output information of the memory network of each parameter name feature vector.
  • C(t) C(t_1) ⁇ f(t)+i(t) ⁇ a(t)
  • C is the accumulated cell memory information in each calculation process
  • C(t) is the current The cell memory information output by the cell
  • C(t_1) is the cell memory information output by the previous cell
  • is the vector operator
  • the calculation process of C(t_1) ⁇ f(t) is the calculation process of each in the vector C(t_1)
  • the one-dimensional value is respectively multiplied by f(t), and the calculated vector dimension is the same as the dimension in the vector C(t_1).
  • 5Calculate the output information of the current cell: y(t) ⁇ (V ⁇ h(t)+c), V and c are the parameter values of the formula in this cell. Each cell is calculated to obtain an output information.
  • the output information of a parameter name feature vector can be obtained by synthesizing the output information of the N cells.
  • the output information of the memory network of a parameter name feature vector is a 1 ⁇ N-dimensional vector.
  • the similarity judgment rule includes a similarity calculation formula and a similarity threshold.
  • the similarity calculation formula can calculate the similarity between two Chinese names based on the two memory network output information corresponding to the two Chinese names, and the similarity threshold can judge whether the two Chinese names are similar based on the calculated similarity.
  • step S144 includes sub-steps S1441, S1442, and S1443.
  • the similarity of the two Chinese names is greater than the similarity threshold, and the two Chinese names that are greater than the similarity threshold are regarded as a pair of similar Chinese names. Specifically, based on the similarity threshold, it is judged whether two Chinese names are similar Chinese name pairs. If the similarity between the two Chinese names is greater than the similarity threshold, the two Chinese names are regarded as similar Chinese name pairs; If the similarity between the names is not greater than the similarity threshold, the two Chinese characters are not regarded as a pair of similar Chinese names.
  • the similar Chinese name pairs containing the same Chinese name are combined to obtain a similar Chinese name group. If multiple pairs of similar Chinese names all contain the same Chinese name, multiple pairs of similar Chinese names can also be combined to obtain a group of similar Chinese names.
  • a pair of similar Chinese names is “number of calls” and “number of calls”
  • another pair of similar Chinese names is “number of calls” and “number of calls”
  • both pairs of similar Chinese names contain “number of calls”.
  • “Number of times”, after combining the above two pairs of similar Chinese names, "number of calls”, “number of calls” and “frequency of calls” are used as a group of similar Chinese names.
  • All Chinese names included in the similar Chinese name group are mapped to an English name corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
  • Obtain multiple parameters corresponding to the similar Chinese name group randomly select an English name from the English names of the multiple parameters, and map the multiple Chinese names contained in the similar Chinese name group with a randomly selected English name to obtain the second
  • two parameters corresponding to similar Chinese name pairs can also be mapped in the above manner to obtain the second mapping information.
  • All the second mapping information is acquired to obtain the second name mapping information, and the obtained second name mapping information includes at least one piece of second mapping information.
  • the parameter information corresponding to the second name mapping information in the remaining parameter information table is removed to obtain an unmapped parameter information table.
  • the parameter information corresponding to the second name mapping information in the remaining parameter information table can be eliminated to obtain the unmapped parameter information table, that is, the unmapped parameter information table does not contain the first name mapping information and the second name mapping information corresponding Parameter information.
  • the first name mapping information, the second name mapping information, and the unmapped parameter information table are stored in a preset parameter database.
  • the parameter database may be a database configured in the system memory of the management server, and the first name mapping information, the second name mapping information, and the Chinese names and English names included in the mapping parameter information table are stored in the parameter database.
  • the name mapping information is established according to the parameter names in the parameter information table. Since the Chinese names and English names stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, the interface parameters can be reduced in the system memory.
  • the target parameter name corresponding to the parameter processing request is obtained from the parameter database. If a parameter processing request is received, the target parameter name corresponding to the parameter processing request can be obtained from the parameter database.
  • the parameter processing request includes the request parameter name and the parameter value of the request parameter name.
  • the request parameter names are all Chinese names.
  • the parameter name is an English name, and the program code calculates the parameter value in the parameter processing request according to the target parameter name.
  • step S170 includes sub-steps S171, S172, S173, S174, and S175.
  • Determine whether the unmapped parameter information table includes the request parameter name in the parameter processing request First, it can be judged whether the request parameter name is included in the unmapped parameter information table, and the Chinese name of the parameter information in the unmapped information table can be used to determine whether the request parameter name is the same as a certain Chinese name, so as to determine whether the unmapped information table contains the request parameter name. The judgment result of the request parameter name.
  • the unmapped parameter information table includes the request parameter name
  • the English name of the parameter corresponding to the request parameter name in the unmapped information table is determined as the target parameter name.
  • the unmapped information table contains multiple parameter information, and each parameter information correspondingly includes a Chinese name and an English name. According to the Chinese name of the request parameter name in the unmapped information table, the corresponding Chinese name can be obtained The English name of as the target parameter name corresponding to the request parameter name.
  • the unmapped parameter information table does not include the request parameter name, it is determined whether the first name mapping information or the second name mapping information includes the request parameter name. Since the interface parameter information table contains parameter information of all interfaces, if the request parameter name is not included in the unmapped parameter information table, it must be included in the first name mapping information or the second name mapping information.
  • the first name mapping information includes the request parameter name, obtain an English name that is mapped to the request parameter name according to the first name mapping information and determine it as the target parameter name.
  • the first name mapping information includes the request parameter name
  • an English name that is mapped to the request parameter name is acquired according to the first name mapping information to determine the target parameter name.
  • the second name mapping information includes the request parameter name, obtain all English names that are mapped to the request parameter name according to the second name mapping information and determine the target parameter name.
  • the second name mapping information includes the request parameter name
  • all English names that are mapped to the request parameter name are acquired according to the second name mapping information to determine the target parameter name.
  • the target parameter name corresponds to the target parameter in the management server.
  • the target parameter is assigned according to the parameter value corresponding to the request parameter name in the parameter processing request, and the assigned target parameter is input into the corresponding interface to obtain the interface.
  • the parameter value of the output parameter to obtain the processing result of the parameter processing request.
  • the program to be traversed input by the user is traversed to obtain the interface parameter information table, and the mapping is established according to the parameter names in the parameter information table to obtain the first name mapping information and the second name mapping information.
  • Name mapping information storing the first name mapping information, the second name mapping information, and the unmapped parameter information table in the parameter database, obtain the target parameter name corresponding to the parameter processing request from the parameter database, and treat the traversal program according to the target parameter name Assign a value to the corresponding target parameter in the.
  • the name mapping information is established according to the parameter name in the parameter information table, so that the Chinese name and English name stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, so the parameter information of the interface can be reduced.
  • the efficiency and accuracy of data transmission in each interface can be improved by establishing name mapping information, that is, the efficiency of assigning the parameters of the interface is improved.
  • the embodiment of the present application also provides a parameter assignment device based on name mapping, and the parameter assignment device based on name mapping is used to execute any embodiment of the aforementioned parameter assignment method based on name mapping.
  • FIG. 7, is a schematic block diagram of a parameter assignment device based on name mapping provided in an embodiment of the present application.
  • the parameter assignment device based on name mapping may be configured in the management server 10.
  • the parameter assignment device 100 based on name mapping includes a program to be traversed traversal unit 110, a first mapping unit 120, a first information removal unit 130, a second mapping unit 140, a second information removal unit 150, and an information storage unit.
  • the program to be traversed traversal unit 110 is configured to, if the program to be traversed input by the user of the management server is received, traverse the interfaces included in the program to be traversed to obtain an interface parameter information table containing parameter information.
  • the first mapping unit 120 is configured to map the parameter names in the parameter information according to preset mapping rules to obtain first name mapping information including first mapping information.
  • the first mapping unit 120 includes sub-units: an English name judgment unit and a first name mapping unit.
  • the English name judgment unit is used to judge whether the parameter information contains parameters with the same English name; the first name mapping unit is used to obtain all the parameters with the same English name if the parameter information contains parameters with the same English name, According to the mapping rule, all Chinese names corresponding to all the parameters are mapped with the English names to obtain first mapping information.
  • the first information removal unit 130 is configured to remove the parameter information corresponding to the first name mapping information in the interface parameter information table to obtain a remaining parameter information table.
  • the second mapping unit 140 is configured to map the parameter names of the parameter information in the remaining parameter information table according to a preset mapping creation model to obtain second name mapping information including second mapping information.
  • the second mapping unit 140 includes subunits: a standard name obtaining unit, a feature vector obtaining unit, a memory network output information obtaining unit, a similar Chinese name group obtaining unit, and a second name mapping unit.
  • the standard name obtaining unit is used to standardize the Chinese name of each parameter in the parameter information according to the character length information to obtain the corresponding standard name; the feature vector obtaining unit is used to obtain and according to the character vector table The parameter name feature vector corresponding to each of the parameter names; a memory network output information acquisition unit for inputting the parameter name feature vector into the long and short-term memory network to calculate the memory network of each of the parameter name feature vectors Output information; a similar Chinese name group acquisition unit for judging whether the Chinese names are similar according to the similarity judgment rule and the memory network output information, and combining similar Chinese names to obtain a similar Chinese name group; The second name mapping unit is used to map all Chinese names included in the similar Chinese name group with an English name corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
  • the similar Chinese name group obtaining unit includes subunits: a similarity obtaining unit, a similar Chinese name pair obtaining unit, and a similar Chinese name pair combining unit.
  • the similarity acquisition unit is configured to calculate the similarity between the two Chinese names according to the similarity calculation formula in the similarity judgment rule and the memory network output information corresponding to the Chinese name; similar Chinese name pair acquisition unit , For judging whether the similarity of the two Chinese names is greater than the similarity threshold, and using the two Chinese names that are greater than the similarity threshold as a similar Chinese name pair; a similar Chinese name pair combination unit for The similar Chinese name pairs containing the same Chinese name are combined to obtain a similar Chinese name group.
  • the second information removal unit 150 is configured to remove the parameter information corresponding to the second name mapping information in the remaining parameter information table to obtain an unmapped parameter information table.
  • the information storage unit 160 is configured to store the first name mapping information, the second name mapping information, and the unmapped parameter information table in a preset parameter database.
  • the target parameter name obtaining unit 170 is configured to, if a parameter processing request from the client is received, obtain a target parameter name corresponding to the parameter processing request from the parameter database.
  • the target parameter name acquiring unit 170 includes subunits: a first determining unit, a first target parameter name determining unit, a second determining unit, a second target parameter name determining unit, and a third target parameter name determining unit. unit.
  • the first determining unit is configured to determine whether the unmapped parameter information table includes the request parameter name in the parameter processing request; the first target parameter name determining unit is configured to determine if the unmapped parameter information table includes the request Parameter name, which determines the English name of the parameter corresponding to the request parameter name in the unmapped information table as the target parameter name; the second judgment unit is used for if the unmapped parameter information table does not contain the request parameter name , Judging whether the first name mapping information or the second name mapping information includes the request parameter name; the second target parameter name determining unit is configured to: if the first name mapping information includes the request parameter name, The first name mapping information acquires the English name that is mapped to the request parameter name and determines it as the target parameter name; the third target parameter name determination unit is configured to: if the second name mapping information contains the request parameter name, according to the The second name mapping information acquires all English names that are mapped to the request parameter name to determine the target parameter name.
  • the target parameter assignment unit 180 is configured to assign a target parameter corresponding to the target parameter name in the program to be traversed according to the parameter value of the request parameter name in the parameter processing request.
  • the above-mentioned name mapping-based parameter assignment method is applied to traverse the program to be traversed input by the user to obtain the interface parameter information table, and the mapping is established according to the parameter name in the parameter information table.
  • the first name mapping information and the second name mapping information, the first name mapping information, the second name mapping information, and the unmapped parameter information table are stored in the parameter database, and the target parameter name corresponding to the parameter processing request is obtained from the parameter database, And assign the corresponding target parameter in the traversal program according to the target parameter name.
  • the name mapping information is established according to the parameter name in the parameter information table, so that the Chinese name and English name stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, so the parameter information of the interface can be reduced.
  • the establishment of name mapping information can improve the efficiency and accuracy of data transmission in each interface, that is, improve the efficiency of assigning interface parameters.
  • the above-mentioned parameter assignment device based on name mapping can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in FIG. 8.
  • FIG. 8 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the processor 502 can execute the parameter assignment method based on name mapping.
  • the processor 502 is used to provide calculation and control capabilities, and support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute the parameter assignment method based on name mapping.
  • the network interface 505 is used for network communication, such as providing data information transmission.
  • the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied.
  • the specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
  • the processor 502 is configured to run a computer program 5032 stored in a memory to implement the corresponding function in the above-mentioned method for assigning a parameter based on name mapping.
  • the embodiment of the computer device shown in FIG. 8 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or less components than those shown in the figure. Or combine certain components, or different component arrangements.
  • the computer device may only include a memory and a processor. In such an embodiment, the structures and functions of the memory and the processor are consistent with the embodiment shown in FIG. 8 and will not be repeated here.
  • the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
  • a computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, where the computer program, when executed by a processor, implements the steps included in the above-mentioned name mapping-based parameter assignment method.
  • the disclosed equipment, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods, or the units with the same function may be combined into one. Units, for example, multiple units or components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product can be stored in a computer.
  • the read storage medium includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the computer-readable storage medium is a tangible, non-transitory storage medium, and the computer-readable storage medium may be an internal storage unit of the aforementioned device, such as a physical storage medium such as a hard disk or a memory of the device.
  • the storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card. (Flash Card) and other physical storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Evolutionary Computation (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种基于名称映射的参数赋值方法、装置、计算机设备。该方法包括:遍历用户所输入的待遍历程序得到接口参数信息表,根据参数信息表中的参数名称建立映射得到第一名称映射信息及第二名称映射信息,将第一名称映射信息、第二名称映射信息及未映射参数信息表存储至参数数据库,从参数数据库中获取与参数处理请求对应的目标参数名称,并根据目标参数名称对待遍历程序中对应的目标参数进行赋值。该方法基于系统性能优化技术,根据参数信息表中的参数名称建立名称映射信息,因此可减少参数信息在系统内存中所占用的存储空间,通过建立名称映射信息可提高数据在各接口中传递的效率及准确率,也即是提高了对接口的参数进行赋值的效率。

Description

基于名称映射的参数赋值方法、装置、计算机设备
本申请要求于2020年04月27日提交中国专利局、申请号为202010345889.2,发明名称为“基于名称映射的参数赋值方法、装置、计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种基于名称映射的参数赋值方法、装置、计算机设备。
背景技术
服务器通过运行存储于服务器中的系统程序以对访问该服务器的客户端提供服务,系统程序中所包含的多个系统之间通过接口进行数据交互,也即是数据在系统程序所包含多个接口中进行传递,随着服务器所需提供的功能越来越完善,系统程序涉及各系统的前后端交互过程,分系统数量的增加导致整体接口数量也大幅增长。
系统程序中接口的出入参数名称(也叫属性)在系统程序设计之初就已经确定,无法在不做代码逻辑调整的情况下根据系统要求动态配置接口的出入参数的名称,而接口参数的中文名称和英文名称是一一对应的,发明人发现在接口数量较大的系统程序中则会导致存在大量中文名称相同但英文名称却不一致的接口参数,或大量中文名称不相同但英文名称却近似的接口参数,为确保数据在各接口中传递的准确性,需大幅增加对接口进行管理的成本,且内存中会存储大量的接口参数,导致系统内存占用率较高,从而影响了对参数进行赋值的效率,导致服务器对客户端的服务请求进行响应的速度变慢。因而,现有技术方法中的大型系统程序在运行时存在对参数进行赋值的效率不高的问题。
发明内容
本申请实施例提供了一种基于名称映射的参数赋值方法、装置、计算机设备及存储介质,旨在解决现有的技术方法中所存在的对参数进行赋值的效率不高的问题。
第一方面,本申请实施例提供了一种基于名称映射的参数赋值方法,其包括:
若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表;
根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息;
将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表;
根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息;
将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表;
将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置 的参数数据库;
若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称;
根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
第二方面,本申请实施例提供了一种基于名称映射的参数赋值装置,其包括:
待遍历程序遍历单元,用于若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表;
第一映射单元,用于根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息;
第一信息剔除单元,用于将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表;
第二映射单元,用于根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息;
第二信息剔除单元,用于将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表;
信息存储单元,用于将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库;
目标参数名称获取单元,用于若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称;
目标参数赋值单元,用于根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
第三方面,本申请实施例又提供了一种计算机设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的基于名称映射的参数赋值方法。
第四方面,本申请实施例还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行上述第一方面所述的基于名称映射的参数赋值方法。
本申请实施例提供了一种基于名称映射的参数赋值方法、装置、计算机设备。通过上述方法,根据参数信息表中的参数名称建立名称映射信息,以使参数数据库中所存储的中文名称及英文名称相比接口参数信息表中的参数信息大幅减少,因此可减少接口的参数信息在系统内存中所占用的存储空间,通过建立名称映射信息可提高数据在各接口中传递的效率及准确性,也即是提高了对接口的参数进行赋值的效率。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术 人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的基于名称映射的参数赋值方法的流程示意图;
图2为本申请实施例提供的基于名称映射的参数赋值方法的应用场景示意图;
图3为本申请实施例提供的基于名称映射的参数赋值方法的子流程示意图;
图4为本申请实施例提供的基于名称映射的参数赋值方法的另一子流程示意图;
图5为本申请实施例提供的基于名称映射的参数赋值方法的另一子流程示意图;
图6为本申请实施例提供的基于名称映射的参数赋值方法的另一子流程示意图;
图7为本申请实施例提供的基于名称映射的参数赋值装置的示意性框图;
图8为本申请实施例提供的计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
请参阅图1,图1是本申请实施例提供的基于名称映射的参数赋值方法的流程示意图,图2为本申请实施例提供的基于名称映射的参数赋值方法的应用场景示意图。该基于名称映射的参数赋值方法应用于管理服务器10中,该方法通过安装于管理服务器10中的应用软件进行执行,管理服务器10通过与客户端20建立网络连接以与客户端20进行通信,客户端20的使用者可通过客户端发送参数处理请求至管理服务器10,管理服务器10执行基于名称映射的参数赋值方法以对与参数处理请求对应的目标参数进行赋值,其中,管理服务器10即是用于执行基于名称映射的参数赋值方法的企业终端,客户端20即是用于发送参数处理请求的终端设备,客户端20可以是台式电脑、笔记本电脑、平板电脑或手机等。图2中仅仅示意出一台客户端20与管理服务器10进行数据信息传输,在实际应用中,管理服务器10也可与多台客户端20同时进行数据信息传输。
如图1所示,该方法包括步骤S110~S180。
S110、若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表。
若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口 进行遍历以得到包含参数信息的接口参数信息表。待遍历程序中包含多个接口,每一接口对应至少一个输入参数及至少一个输出参数,输入参数及输出参数均为接口所对应的参数,参数包括参数名称及参数值,参数名称包括该参数的中文名称及英文名称,参数值即为该参数对应的赋值信息。将输入参数作为待处理数据输入至接口,该接口对输入参数进行处理后即将处理结果作为输出参数进行反馈,一个接口的输出参数可作为另一个接口的输入参数进行使用,也即是参数值在待遍历程序所包含的多个接口中进行传递。对待遍历程序中所包含的接口及每一接口对应的参数进行遍历,即可得到包含参数信息的接口参数信息表。
例如,对某一待遍历程序的接口进行遍历后所得的接口参数信息表如表1所示。
Figure PCTCN2020122452-appb-000001
表1
S120、根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息。
根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息。映射规则即是用于根据参数信息的参数名称建立第一名称映射信息的规则,参数名称包含中文名称及英文名称,中文名称用于对参数的含义进行标识,可根据该参数的参数值对中文名称进行赋值并对用户进行显示,英文名称为程序内部对参数值进行处理时的标识信息,程序代码依据英文名称对参数所赋予的参数值进行计算处理。为便于系统程序运行,传统技术方法中会将每一参数所对应的中文名称及英文名称均存储至系统内存中。
在一实施例中,如图3所示,步骤S120包括子步骤S121和S122。
S121、判断所述参数信息中是否包含英文名称相同的参数。
S122、若所述参数信息中包含英文名称相同的参数,获取英文名称相同的所有参数,根据所述映射规则将所有所述参数对应的所有中文名称均与所述英文名称映射以得到第一映射信息。
获取参数信息中任意两个参数,判断两个参数的英文名称是否相同。若两个或两个以上参数的英文名称相同,根据映射规则将多个参数对应的多个中文名称与相同的英文名称进行映射,得到第一映射信息,映射规则即是建立映射信息的规则信息。获取所有第一映射信息以得到第一名称映射信息,所得到的第一名称映射信息包含至少一条第一映射信息。
例如,表1中接口“AA”的入参“客户手机号”和接口“BB”的入参“手机号码”对应的英文名称均相同,则将“客户手机号”及“手机号码”映射至“Cell-phone”得到一条第一映射信息。
S130、将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩 余参数信息表。
将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表。接口参数信息表中包含所有接口的参数信息,可将接口参数信息表中与第一名称映射信息对应的参数信息剔除,得到剩余参数信息表,也即是剩余参数信息表中不包含第一名称映射信息对应的参数信息。
例如,所得到的一条第一映射信息为:“客户手机号”及“手机号码”映射至“Cell-phone”,则将该第一映射信息从表1所包含的参数信息中剔除,得到的剩余参数信息表如表2所示。
Figure PCTCN2020122452-appb-000002
表2
S140、根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息。
根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息。映射创建模型即是用于根据参数信息的参数名称建立第二名称映射信息的模型信息,第二名称映射信息基于剩余参数信息表中的参数信息创建得到,其中,所述映射创建模型包括字符长度信息、字符向量表、长短期记忆网络(Long Short-Term Memory,LSTM)及相似度判断规则。字符向量表即为对每一字符的向量信息进行记录的数据表,长短期记忆网络即为对参数名称特征向量进行计算以获取对应记忆网络输出信息的神经网络,相似度判断规则即为两个网络输出信息之间的相似度进行判断的规则信息。
在一实施例中,如图4所示,步骤S140包括子步骤S141、S142、S143、S144和S145。
S141、根据所述字符长度信息对所述参数信息中每一参数的中文名称进行标准化处理以得到对应的标准名称。
根据所述字符长度信息对所述参数信息中每一参数的中文名称进行标准化处理以得到对应的标准名称。参数的中文名称所包含的字符数量并不相等,为方便后续长短期记忆网络对中文名称进行处理,需根据字符长度信息对每一参数的中文名称进行处理,以得到字符数量相同的标准名称。长短期记忆网络中包含多个细胞,可将字符长度信息设置为长短期记忆网络中的细胞数。具体的,若参数的中文名称中所包含的字符的数量超过字符长度信息N,则截取中文名称中前N个字符作为参数名称;若参数的中文名称中所包含的字符的数量少于字符长度信息N,则使用空字符(使用□进行表示)将中文名称中缺失的字符进行补齐以得到包含N个字符的参数名称;若参数的中文名称中所包含的字符的数量等于字符长度信息N,则直接将该中文名称作为参数名称。
S142、根据所述字符向量表获取与每一所述参数名称对应的参数名称特征向量。
根据所述字符向量表获取与每一所述参数名称对应的参数名称特征向量。具体的,字符 向量表中包含每一字符对应的一个1×M维的向量,该1×M维的向量可用于对字符的特征进行量化。根据标准名称即可从字符向量信息表中获取该标准名称中每一字符对应的一个1×M维向量,将该标准名称中包含的N个字符所对应的1×M维向量进行组合,即可得到一个N×M的向量,也即是所得到的参数名称特征向量。
例如,若M=10,字符向量表中所包含的部分信息如表3所示。
字符 1×M维的向量
{0.7,0.3,0.5,0.6,0.9,0,0.8,0.1,0.5,0.9}
{0.8,0.1,0.4,0.2,0.9,0.7,0.3,0.1,0.3,0.2}
{0.6,0.2,0.8,0.9,0.7,0.3,0.1,0.4,0.6,0.8}
{0.2,0.9,0.7,0.3,0.6,0.2,0.6,0,0.5,0.2}
{0.9,0.3,0.1,0.4,0.2,0.8,0.9,0.6,0.2,0.7}
{0.4,0.6,0.3,0.6,1.0,0.3,0.6,0.1,0.4,0.2}
□(空字符) {0,0,0,0,0,0,0,0,0,0}
表3
某一段文字为“客户手机号”,即可对应得到一个与该文字信息对应的5×10维的特征向量:
Figure PCTCN2020122452-appb-000003
S143、将所述参数名称特征向量输入所述长短期记忆网络以计算得到每一所述参数名称特征向量的记忆网络输出信息。
将所述参数名称特征向量输入所述长短期记忆网络以计算得到每一所述参数名称特征向量的记忆网络输出信息。具体的,计算某一参数名称特征向量的记忆网络输出信息的步骤分为五步,①计算遗忘门输出信息:f(t)=σ(Wf×h(t_1)+Uf×X(t)+bf),其中f(t)为遗忘门参数值,0≤f(t)≤1;σ为激活函数计算符号,σ可具体表示为f(x)=(1+e^ (-x)) -1,则将Wf×h(t_1)+Uf×X(t)+bf的计算结果作为x输入激活函数σ即可计算得到f(t);Wf、Uf及bf均为本细胞中公式的参数值;h(t_1)为上一细胞的输出门信息;X(t)为参数名称特征向量,也即是输入当前细胞的1×M维的向量,若当前细胞为长短期记忆网络中的第一个细胞,则h(t_1)为零。②计算输入门信息:i(t)=σ(Wi×h(t_1)+Ui×X(t)+bi);a(t)=tanh(Wa×h(t-1)+Ua×X(t)+ba),其中i(t)为输入门参数值,0≤i(t)≤1;Wi、Ui、bi、Wa、Ua及ba均为本细胞中公式的参数值,a(t)为所计算得到的输入门向量值,a(t)为一个1×M维的向量。③更新细胞记忆信息:C(t)=C(t_1)⊙f(t)+i(t)⊙a(t),C为每一次计算过程所累计的细胞记忆信息,C(t)为当前细胞所输出的细胞记忆信息,C(t_1)为上一细胞所输出的细胞记忆信息,⊙为向量运算符,C(t_1)⊙f(t)的计算过程为将向量C(t_1)中每一维度值分别与f(t)相乘,所计算的得到的向量维度与向量C(t_1)中的维度相同。④计算输出门信息:o(t)=σ(Wo×h(t_1)+Uo×X(t)+bo);h(t)=o(t)⊙tanh(C(t)),o(t)为输出门参数值,0≤o(t)≤1;Wo、Uo及bo均为本细胞中公式的参数值,h(t)为本细胞的输出门信息,h(t)为一个1×M维的向量。⑤计算当前细胞的输出信息:y(t)=σ(V×h(t)+c),V及c均为本细胞中 公式的参数值。每一个细胞均计算得到一个输出信息,综合N个细胞的输出信息即可得到一个参数名称特征向量的记忆网络输出信息,一个参数名称特征向量的记忆网络输出信息为一个1×N维的向量。
S144、根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组。
根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组。所述相似度判断规则包括相似度计算公式及相似度阈值。相似度计算公式可基于两个中文名称对应的两份记忆网络输出信息计算得到两个中文名称之间的相似度,相似度阈值即可基于所计算得到的相似度判断两个中文名称是否相似。
在一实施例中,如图5所示,步骤S144包括子步骤S1441、S1442和S1443。
S1441、根据所述相似度判断规则中的相似度计算公式及所述中文名称对应的记忆网络输出信息计算两个所述中文名称之间的相似度。
根据所述相似度判断规则中的相似度计算公式及所述中文名称对应的记忆网络输出信息计算两个所述中文名称之间的相似度,获取剩余参数信息表中任意两个参数所对应的两个中文名称,基于相似度计算公式及两个中文名称对应的两份记忆网络输出信息计算得到相似度,具体的,相似度计算公式可表示为P=(f 1×g 1+f 2×g 2+…+f N×g N)/[(f 1 2+f 2 2+…+f N 2) 1/2×(g 1 2+g 2 2+…+g N 2) 1/2],其中,F=(f 1,f 2…f N)为第一个中文名称对应的记忆网络输出信息,G=(g 1,g 2……g N)为第二个中文名称对应的记忆网络输出信息。
S1442、对两个所述中文名称的相似度是否大于所述相似度阈值进行判断,将大于所述相似度阈值的两个中文名称作为相似中文名称对。
对两个所述中文名称的相似度是否大于所述相似度阈值进行判断,将大于所述相似度阈值的两个所述中文名称作为相似中文名称对。具体的,基于相似度阈值判断两个中文名称是否为相似中文名称对,若两个中文名称之间的相似度大于相似度阈值,则将两个中文名称作为相似中文名称对;若两个中文名称之间的相似度不大于相似度阈值,则不将两个中文作为相似中文名称对。
S1443、将包含相同中文名称的所述相似中文名称对进行组合以得到相似中文名称组。
将包含相同中文名称的所述相似中文名称对进行组合以得到相似中文名称组。若多个相似中文名称对中均包含相同的中文名称,还可对多个相似中文名称对进行组合,得到相似中文名称组。
例如,某一相似中文名称对为“接通次数”及“通话次数”,另一相似中文名称对为“接通次数”及“通话频次”,两个相似中文名称对中均包含“接通次数”,则对上述两个相似中文名称对进行组合后,将“接通次数”、“通话次数”及“通话频次”作为一个相似中文名称组。
S145、将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组中任意一个中文名称对应的英文名称映射以得到第二名称映射信息。
将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组中任意一个中文名称对应的英文名称映射以得到第二名称映射信息。获取相似中文名称组所对应的多个参数,从多个参数的英文名称中随机选择一个英文名称,将相似中文名称组所包含的多个中文名称与随机选择的一个英文名称映射,得到第二映射信息,对相似中文名称对所对应的两个参数也可采用上述方式进行映射处理得到第二映射信息。获取所有第二映射信息以得到第二名称映射信息,所得到的第二名称映射信息包含至少一条第二映射信息。
例如,某一相似中文名称对包含接口“AA”的出参“通话次数”和接口“BB”的出参“接通次数”,随机选择上述两个中文名中的一个中文名称“通话次数”对应的英文名称“Call-number”,将“通话次数”及“接通次数”均映射至“Call-number”,即可得到一条第二映射信息。
S150、将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表。
将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表。可将剩余参数信息表中与第二名称映射信息对应的参数信息剔除,得到未映射参数信息表,也即是未映射参数信息表中不包含第一名称映射信息及第二名称映射信息所对应的参数信息。
S160、将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库。
将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库。具体的,参数数据库可以是配置于管理服务器的系统内存中的数据库,将第一名称映射信息、第二名称映射信息及为映射参数信息表所包含的中文名称及英文名称存储至参数数据库中。据参数信息表中的参数名称建立名称映射信息,由于参数数据库中所存储的中文名称及英文名称相比接口参数信息表中的参数信息大幅减少,因此可减少接口参数在系统内存中所占用的存储空间,通过建立名称映射信息可提高数据在各接口中传递的效率及准确性,也即是提高了对待遍历程序中接口的参数进行赋值的效率,在各接口中进行传递的数据即为对接口中的参数进行赋值的具体数值。因此在通过待遍历程序中的接口对参数处理请求进行处理时,可大幅提高系统程序对参数处理请求进行处理时的响应速度。
S170、若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称。
若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称。若接收到参数处理请求,则可从参数数据库中获取与参数处理请求对应的目标参数名称,参数处理请求中包含请求参数名称及该请求参数名称的参数值,请求参数名称均为中文名称,目标参数名称为英文名称,程序代码依据目标参数名称对参数处理请求中的参数值进行计算处理。
在一实施例中,如图6所示,步骤S170包括子步骤S171、S172、S173、S174和S175。
S171、判断所述未映射参数信息表是否包含所述参数处理请求中的请求参数名称。
判断所述未映射参数信息表是否包含所述参数处理请求中的请求参数名称。首先可判断未映射参数信息表中是否包含请求参数名称,可通过未映射信息表中参数信息的中文名称,判断请求参数名称是否与某一中文名称相同,以得到未映射信息表中是否包含该请求参数名称的判断结。
S172、若所述未映射参数信息表包含所述请求参数名称,将所述未映射信息表中与所述请求参数名称对应参数的英文名称确定为目标参数名称。
若所述未映射参数信息表包含所述请求参数名称,将所述未映射信息表中与所述请求参数名称对应参数的英文名称确定为目标参数名称。未映射信息表中包含多个参数信息,每一参数信息均对应包含一个中文名称及一个英文名称,则可根据未映射信息表中与该请求参数名称相同的中文名称,获取与该中文名称对应的英文名称,作为与请求参数名称对应的目标参数名称。
S173、若所述未映射参数信息表不包含所述请求参数名称,判断所述第一名称映射信息或第二名称映射信息是否包含所述请求参数名称。
若所述未映射参数信息表不包含所述请求参数名称,判断所述第一名称映射信息或第二名称映射信息是否包含所述请求参数名称。由于接口参数信息表中包含所有接口的参数信息,因此若请求参数名称不包含于未映射参数信息表中,则一定包含于第一名称映射信息或第二名称映射信息中。
S174、若所述第一名称映射信息包含所述请求参数名称,根据所第一名称映射信息获取与所述请求参数名称相映射的英文名称确定为目标参数名称。
若所述第一名称映射信息包含所述请求参数名称,根据所第一名称映射信息获取与所述请求参数名称相映射的英文名称确定为目标参数名称。获取第一名称映射信息中与该请求参数名称相同的中文名称,并获取该中文名称所映射的英文名称作为目标参数名称。
S175、若所述第二名称映射信息包含所述请求参数名称,根据所第二名称映射信息获取与所述请求参数名称相映射的所有英文名称确定为目标参数名称。
若所述第二名称映射信息包含所述请求参数名称,根据所第二名称映射信息获取与所述请求参数名称相映射的所有英文名称确定为目标参数名称。获取第二名称映射信息中与该请求参数名称相同的中文名称,并获取该中文名称所映射的英文名称作为目标参数名称。
S180、根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。目标参数名称即与管理服务器中的目标参数对应,根据参数处理请求中请求参数名称所对应的参数值对目标参数进行赋值,并将赋值后的目标参数输入对应的接口,即可通过获取该接口的输出参数的参数值以获取该参数处理请求的处理结果。
在本申请实施例所提供的基于名称映射的参数赋值方法中,遍历用户所输入的待遍历程序得到接口参数信息表,根据参数信息表中的参数名称建立映射得到第一名称映射信息及第二名称映射信息,将第一名称映射信息、第二名称映射信息及未映射参数信息表存储至参数 数据库,从参数数据库中获取与参数处理请求对应的目标参数名称,并根据目标参数名称对待遍历程序中对应的目标参数进行赋值。通过上述方法,根据参数信息表中的参数名称建立名称映射信息,以使参数数据库中所存储的中文名称及英文名称相比接口参数信息表中的参数信息大幅减少,因此可减少接口的参数信息在系统内存中所占用的存储空间,通过建立名称映射信息可提高数据在各接口中传递的效率及准确性,也即是提高了对接口的参数进行赋值的效率。
本申请实施例还提供一种基于名称映射的参数赋值装置,该基于名称映射的参数赋值装置用于执行前述基于名称映射的参数赋值方法的任一实施例。具体地,请参阅图7,图7是本申请实施例提供的基于名称映射的参数赋值装置的示意性框图。该基于名称映射的参数赋值装置可以配置于管理服务器10中。
如图7所示,基于名称映射的参数赋值装置100包括待遍历程序遍历单元110、第一映射单元120、第一信息剔除单元130、第二映射单元140、第二信息剔除单元150、信息存储单元160、目标参数名称获取单元170和目标参数赋值单元180。
待遍历程序遍历单元110,用于若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表。
第一映射单元120,用于根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息。
其他发明实施例中,所述第一映射单元120包括子单元:英文名称判断单元和第一名称映射单元。
英文名称判断单元,用于判断所述参数信息中是否包含英文名称相同的参数;第一名称映射单元,用于若所述参数信息中包含英文名称相同的参数,获取英文名称相同的所有参数,根据所述映射规则将所有所述参数对应的所有中文名称均与所述英文名称映射以得到第一映射信息。
第一信息剔除单元130,用于将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表。
第二映射单元140,用于根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息。
其他发明实施例中,所述第二映射单元140包括子单元:标准名称获取单元、特征向量获取单元、记忆网络输出信息获取单元、相似中文名称组获取单元和第二名称映射单元。
标准名称获取单元,用于根据所述字符长度信息对所述参数信息中每一参数的中文名称进行标准化处理以得到对应的标准名称;特征向量获取单元,用于根据所述字符向量表获取与每一所述参数名称对应的参数名称特征向量;记忆网络输出信息获取单元,用于将所述参数名称特征向量输入所述长短期记忆网络以计算得到每一所述参数名称特征向量的记忆网络输出信息;相似中文名称组获取单元,用于根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组;第二名称映射单元,用于将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组 中任意一个中文名称对应的英文名称映射以得到第二名称映射信息。
其他发明实施例中,所述相似中文名称组获取单元包括子单元:相似度获取单元、相似中文名称对获取单元和相似中文名称对组合单元。
相似度获取单元,用于根据所述相似度判断规则中的相似度计算公式及所述中文名称对应的记忆网络输出信息计算两个所述中文名称之间的相似度;相似中文名称对获取单元,用于对两个所述中文名称的相似度是否大于所述相似度阈值进行判断,将大于所述相似度阈值的两个中文名称作为相似中文名称对;相似中文名称对组合单元,用于将包含相同中文名称的所述相似中文名称对进行组合以得到相似中文名称组。
第二信息剔除单元150,用于将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表。
信息存储单元160,用于将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库。
目标参数名称获取单元170,用于若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称。
其他发明实施例中,所述目标参数名称获取单元170包括子单元:第一判断单元、第一目标参数名称确定单元、第二判断单元、第二目标参数名称确定单元和第三目标参数名称确定单元。
第一判断单元,用于判断所述未映射参数信息表是否包含所述参数处理请求中的请求参数名称;第一目标参数名称确定单元,用于若所述未映射参数信息表包含所述请求参数名称,将所述未映射信息表中与所述请求参数名称对应参数的英文名称确定为目标参数名称;第二判断单元,用于若所述未映射参数信息表不包含所述请求参数名称,判断所述第一名称映射信息或第二名称映射信息是否包含所述请求参数名称;第二目标参数名称确定单元,用于若所述第一名称映射信息包含所述请求参数名称,根据所第一名称映射信息获取与所述请求参数名称相映射的英文名称确定为目标参数名称;第三目标参数名称确定单元,用于若所述第二名称映射信息包含所述请求参数名称,根据所第二名称映射信息获取与所述请求参数名称相映射的所有英文名称确定为目标参数名称。
目标参数赋值单元180,用于根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
在本申请实施例所提供的基于名称映射的参数赋值装置应用上述基于名称映射的参数赋值方法,遍历用户所输入的待遍历程序得到接口参数信息表,根据参数信息表中的参数名称建立映射得到第一名称映射信息及第二名称映射信息,将第一名称映射信息、第二名称映射信息及未映射参数信息表存储至参数数据库,从参数数据库中获取与参数处理请求对应的目标参数名称,并根据目标参数名称对待遍历程序中对应的目标参数进行赋值。通过上述方法,根据参数信息表中的参数名称建立名称映射信息,以使参数数据库中所存储的中文名称及英文名称相比接口参数信息表中的参数信息大幅减少,因此可减少接口的参数信息在系统内存中所占用的存储空间,通过建立名称映射信息可提高数据在各接口中传递的效率及准确性, 也即是提高了对接口的参数进行赋值的效率。
上述基于名称映射的参数赋值装置可以实现为计算机程序的形式,该计算机程序可以在如图8所示的计算机设备上运行。
请参阅图8,图8是本申请实施例提供的计算机设备的示意性框图。
参阅图8,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行基于名称映射的参数赋值方法。
该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。
该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行基于名称映射的参数赋值方法。
该网络接口505用于进行网络通信,如提供数据信息的传输等。本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现上述的基于名称映射的参数赋值方法中对应的功能。
本领域技术人员可以理解,图8中示出的计算机设备的实施例并不构成对计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图8所示实施例一致,在此不再赘述。
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在本申请的另一实施例中提供计算机可读存储介质。该计算机可读存储介质可以为非易失性的计算机可读存储介质,也可以是易失性的计算机可读存储介质。该计算机可读存储介质存储有计算机程序,其中计算机程序被处理器执行时实现上述的基于名称映射的参数赋值方法中所包含的步骤。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为逻辑功能划分,实际实现时可以有另外的划分方式,也可以将具有相同功能的单元集合成一个单元,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
所述计算机可读存储介质为实体的、非瞬时性的存储介质,所述计算机可读存储介质可以是前述设备的内部存储单元,例如设备的硬盘或内存等实体存储介质。所述存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等实体存储介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种基于名称映射的参数赋值方法,应用于管理服务器,所述管理服务器与至少一台客户端进行通信,其中,所述方法包括:
    若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表;
    根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息;
    将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表;
    根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息;
    将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表;
    将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库;
    若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称;
    根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
  2. 根据权利要求1所述的基于名称映射的参数赋值方法,其中,所述根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息,包括:
    判断所述参数信息中是否包含英文名称相同的参数;
    若所述参数信息中包含英文名称相同的参数,获取英文名称相同的所有参数,根据所述映射规则将所有所述参数对应的所有中文名称均与所述英文名称映射以得到第一映射信息。
  3. 根据权利要求1所述的基于名称映射的参数赋值方法,其中,所述映射创建模型包括字符长度信息、字符向量表、长短期记忆网络及相似度判断规则,所述根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息,包括:
    根据所述字符长度信息对所述参数信息中每一参数的中文名称进行标准化处理以得到对应的标准名称;
    根据所述字符向量表获取与每一所述参数名称对应的参数名称特征向量;
    将所述参数名称特征向量输入所述长短期记忆网络以计算得到每一所述参数名称特征向量的记忆网络输出信息;
    根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组;
    将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组中任意一个中文名称对应的英文名称映射以得到第二名称映射信息。
  4. 根据权利要求3所述的基于名称映射的参数赋值方法,其中,所述相似度判断规则包括相似度计算公式及相似度阈值,所述根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组,包括:
    根据所述相似度判断规则中的相似度计算公式及所述中文名称对应的记忆网络输出信息计算两个所述中文名称之间的相似度;
    对两个所述中文名称的相似度是否大于所述相似度阈值进行判断,将大于所述相似度阈值的两个中文名称作为相似中文名称对;
    将包含相同中文名称的所述相似中文名称对进行组合以得到相似中文名称组。
  5. 根据权利要求1所述的基于名称映射的参数赋值方法,其中,所述若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称,包括:
    判断所述未映射参数信息表是否包含所述参数处理请求中的请求参数名称;
    若所述未映射参数信息表包含所述请求参数名称,将所述未映射信息表中与所述请求参数名称对应参数的英文名称确定为目标参数名称;
    若所述未映射参数信息表不包含所述请求参数名称,判断所述第一名称映射信息或第二名称映射信息是否包含所述请求参数名称;
    若所述第一名称映射信息包含所述请求参数名称,根据所第一名称映射信息获取与所述请求参数名称相映射的英文名称确定为目标参数名称;
    若所述第二名称映射信息包含所述请求参数名称,根据所第二名称映射信息获取与所述请求参数名称相映射的所有英文名称确定为目标参数名称。
  6. 根据权利要求3所述的基于名称映射的参数赋值方法,其中,所述第二名称映射信息包含至少一条第二映射信息,所述将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组中任意一个中文名称对应的英文名称映射以得到第二名称映射信息,包括:
    从一个所述相似中文名称组对应的多个参数中随机选择一个英文名称;
    将所述相似中文名称组包含的多个中文名称与选择得到的一个所述英文名称进行映射,得到一条第二映射信息。
  7. 根据权利要求3所述的基于名称映射的参数赋值方法,其中,所述参数名称特征向量为一个N×M维向量,其中,N为参数名称所包含字符的数量。
  8. 一种基于名称映射的参数赋值装置,被配置于管理服务器中,所述管理服务器与至少一台客户端进行通信,其中,所述装置包括:
    待遍历程序遍历单元,用于若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表;
    第一映射单元,用于根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息;
    第一信息剔除单元,用于将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表;
    第二映射单元,用于根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息;
    第二信息剔除单元,用于将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表;
    信息存储单元,用于将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库;
    目标参数名称获取单元,用于若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称;
    目标参数赋值单元,用于根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
  9. 一种计算机设备,所述计算机设备为管理服务器,所述管理服务器与至少一台客户端进行通信,所述管理服务器包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:
    若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表;
    根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息;
    将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表;
    根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息;
    将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表;
    将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库;
    若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称;
    根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
  10. 根据权利要求9所述的计算机设备,其中,所述根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息,包括:
    判断所述参数信息中是否包含英文名称相同的参数;
    若所述参数信息中包含英文名称相同的参数,获取英文名称相同的所有参数,根据所述映射规则将所有所述参数对应的所有中文名称均与所述英文名称映射以得到第一映射信息。
  11. 根据权利要求9所述的计算机设备,其中,所述映射创建模型包括字符长度信息、字符向量表、长短期记忆网络及相似度判断规则,所述根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息,包括:
    根据所述字符长度信息对所述参数信息中每一参数的中文名称进行标准化处理以得到对应的标准名称;
    根据所述字符向量表获取与每一所述参数名称对应的参数名称特征向量;
    将所述参数名称特征向量输入所述长短期记忆网络以计算得到每一所述参数名称特征向量的记忆网络输出信息;
    根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组;
    将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组中任意一个中文名称对应的英文名称映射以得到第二名称映射信息。
  12. 根据权利要求11所述的计算机设备,其中,所述相似度判断规则包括相似度计算公式及相似度阈值,所述根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组,包括:
    根据所述相似度判断规则中的相似度计算公式及所述中文名称对应的记忆网络输出信息计算两个所述中文名称之间的相似度;
    对两个所述中文名称的相似度是否大于所述相似度阈值进行判断,将大于所述相似度阈值的两个中文名称作为相似中文名称对;
    将包含相同中文名称的所述相似中文名称对进行组合以得到相似中文名称组。
  13. 根据权利要求9所述的计算机设备,其中,所述若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称,包括:
    判断所述未映射参数信息表是否包含所述参数处理请求中的请求参数名称;
    若所述未映射参数信息表包含所述请求参数名称,将所述未映射信息表中与所述请求参数名称对应参数的英文名称确定为目标参数名称;
    若所述未映射参数信息表不包含所述请求参数名称,判断所述第一名称映射信息或第二名称映射信息是否包含所述请求参数名称;
    若所述第一名称映射信息包含所述请求参数名称,根据所第一名称映射信息获取与所述请求参数名称相映射的英文名称确定为目标参数名称;
    若所述第二名称映射信息包含所述请求参数名称,根据所第二名称映射信息获取与所述请求参数名称相映射的所有英文名称确定为目标参数名称。
  14. 根据权利要求11所述的计算机设备,其中,所述第二名称映射信息包含至少一条第二映射信息,所述将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组中任意一个中文名称对应的英文名称映射以得到第二名称映射信息,包括:
    从一个所述相似中文名称组对应的多个参数中随机选择一个英文名称;
    将所述相似中文名称组包含的多个中文名称与选择得到的一个所述英文名称进行映射,得到一条第二映射信息。
  15. 根据权利要求11所述的计算机设备,其中,所述参数名称特征向量为一个N×M维向量,其中,N为参数名称所包含字符的数量,M为所述字符向量表中每一字符对应的一个向量的维度数。
  16. 一种计算机可读存储介质,所述计算机可读存储介质应用于管理服务器,所述管理服务器与至少一台客户端进行通信,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序当被管理服务器的处理器执行时使所述处理器执行以下操作:
    若接收到所述管理服务器的用户所输入的待遍历程序,对所述待遍历程序所包含的接口进行遍历以得到包含参数信息的接口参数信息表;
    根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息;
    将所述接口参数信息表中与所述第一名称映射信息对应的参数信息剔除以得到剩余参数信息表;
    根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息;
    将所述剩余参数信息表中与所述第二名称映射信息对应的参数信息剔除以得到未映射参数信息表;
    将所述第一名称映射信息、所述第二名称映射信息及所述未映射参数信息表存储至预置的参数数据库;
    若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称;
    根据所述参数处理请求中请求参数名称的参数值对所述待遍历程序中与所述目标参数名称对应的目标参数进行赋值。
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述根据预置的映射规则对所述参数信息中的参数名称进行映射以得到包含第一映射信息的第一名称映射信息,包括:
    判断所述参数信息中是否包含英文名称相同的参数;
    若所述参数信息中包含英文名称相同的参数,获取英文名称相同的所有参数,根据所述映射规则将所有所述参数对应的所有中文名称均与所述英文名称映射以得到第一映射信息。
  18. 根据权利要求16所述的计算机可读存储介质,其中,所述映射创建模型包括字符长度信息、字符向量表、长短期记忆网络及相似度判断规则,所述根据预置的映射创建模型对所述剩余参数信息表中参数信息的参数名称进行映射以得到包含第二映射信息的第二名称映射信息,包括:
    根据所述字符长度信息对所述参数信息中每一参数的中文名称进行标准化处理以得到对应的标准名称;
    根据所述字符向量表获取与每一所述参数名称对应的参数名称特征向量;
    将所述参数名称特征向量输入所述长短期记忆网络以计算得到每一所述参数名称特征向量的记忆网络输出信息;
    根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组;
    将所述相似中文名称组所包含的所有中文名称与所述相似中文名称组中任意一个中文名称对应的英文名称映射以得到第二名称映射信息。
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述相似度判断规则包括相似度计算公式及相似度阈值,所述根据所述相似度判断规则及所述记忆网络输出信息判断所述中文名称之间是否相似,将相似的中文名称进行组合以得到相似中文名称组,包括:
    根据所述相似度判断规则中的相似度计算公式及所述中文名称对应的记忆网络输出信息计算两个所述中文名称之间的相似度;
    对两个所述中文名称的相似度是否大于所述相似度阈值进行判断,将大于所述相似度阈值的两个中文名称作为相似中文名称对;
    将包含相同中文名称的所述相似中文名称对进行组合以得到相似中文名称组。
  20. 根据权利要求16所述的计算机可读存储介质,其中,所述若接收到来自所述客户端的参数处理请求,从所述参数数据库中获取与所述参数处理请求对应的目标参数名称,包括:
    判断所述未映射参数信息表是否包含所述参数处理请求中的请求参数名称;
    若所述未映射参数信息表包含所述请求参数名称,将所述未映射信息表中与所述请求参数名称对应参数的英文名称确定为目标参数名称;
    若所述未映射参数信息表不包含所述请求参数名称,判断所述第一名称映射信息或第二名称映射信息是否包含所述请求参数名称;
    若所述第一名称映射信息包含所述请求参数名称,根据所第一名称映射信息获取与所述请求参数名称相映射的英文名称确定为目标参数名称;
    若所述第二名称映射信息包含所述请求参数名称,根据所第二名称映射信息获取与所述请求参数名称相映射的所有英文名称确定为目标参数名称。
PCT/CN2020/122452 2020-04-27 2020-10-21 基于名称映射的参数赋值方法、装置、计算机设备 WO2021218063A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010345889.2A CN111694923A (zh) 2020-04-27 2020-04-27 基于名称映射的参数赋值方法、装置、计算机设备
CN202010345889.2 2020-04-27

Publications (1)

Publication Number Publication Date
WO2021218063A1 true WO2021218063A1 (zh) 2021-11-04

Family

ID=72476641

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/122452 WO2021218063A1 (zh) 2020-04-27 2020-10-21 基于名称映射的参数赋值方法、装置、计算机设备

Country Status (2)

Country Link
CN (1) CN111694923A (zh)
WO (1) WO2021218063A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114185575A (zh) * 2021-12-13 2022-03-15 中国建设银行股份有限公司 一种业务系统升级方法和装置
CN116107561A (zh) * 2023-04-14 2023-05-12 湖南云畅网络科技有限公司 一种基于低代码的动作节点快速构建方法、系统和存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694923A (zh) * 2020-04-27 2020-09-22 平安科技(深圳)有限公司 基于名称映射的参数赋值方法、装置、计算机设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649488A (zh) * 2016-09-30 2017-05-10 广东网金数据服务有限公司 多数据源交互接口的调用方法及装置
US20170374019A1 (en) * 2016-06-28 2017-12-28 Alibaba Group Holding Limited Querying domain name information
CN108427613A (zh) * 2018-03-12 2018-08-21 平安普惠企业管理有限公司 异常接口定位方法、装置、计算机设备和存储介质
CN108491199A (zh) * 2018-03-06 2018-09-04 福建天泉教育科技有限公司 一种自动生成接口的方法及终端
CN110263314A (zh) * 2019-06-19 2019-09-20 北京明略软件系统有限公司 表格处理方法及装置、存储介质、电子装置
CN110826004A (zh) * 2019-11-05 2020-02-21 杭州安恒信息技术股份有限公司 一种前端请求数据的处理方法及相关装置
CN111694923A (zh) * 2020-04-27 2020-09-22 平安科技(深圳)有限公司 基于名称映射的参数赋值方法、装置、计算机设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170374019A1 (en) * 2016-06-28 2017-12-28 Alibaba Group Holding Limited Querying domain name information
CN106649488A (zh) * 2016-09-30 2017-05-10 广东网金数据服务有限公司 多数据源交互接口的调用方法及装置
CN108491199A (zh) * 2018-03-06 2018-09-04 福建天泉教育科技有限公司 一种自动生成接口的方法及终端
CN108427613A (zh) * 2018-03-12 2018-08-21 平安普惠企业管理有限公司 异常接口定位方法、装置、计算机设备和存储介质
CN110263314A (zh) * 2019-06-19 2019-09-20 北京明略软件系统有限公司 表格处理方法及装置、存储介质、电子装置
CN110826004A (zh) * 2019-11-05 2020-02-21 杭州安恒信息技术股份有限公司 一种前端请求数据的处理方法及相关装置
CN111694923A (zh) * 2020-04-27 2020-09-22 平安科技(深圳)有限公司 基于名称映射的参数赋值方法、装置、计算机设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114185575A (zh) * 2021-12-13 2022-03-15 中国建设银行股份有限公司 一种业务系统升级方法和装置
CN116107561A (zh) * 2023-04-14 2023-05-12 湖南云畅网络科技有限公司 一种基于低代码的动作节点快速构建方法、系统和存储介质

Also Published As

Publication number Publication date
CN111694923A (zh) 2020-09-22

Similar Documents

Publication Publication Date Title
WO2021218063A1 (zh) 基于名称映射的参数赋值方法、装置、计算机设备
KR102151862B1 (ko) 서비스 처리 방법 및 장치
CN111737300A (zh) 业务处理方法、装置、设备及计算机可读存储介质
US11360684B2 (en) Data storage method and apparatus, storage medium and computer device
WO2019056496A1 (zh) 图片复审概率区间生成方法及图片复审判定方法
CN110335061B (zh) 交易模式画像建立方法、装置、介质及电子设备
CN115421922A (zh) 一种分布式系统的限流方法、装置、设备、介质及产品
WO2021189845A1 (zh) 时间序列异常点的检测方法、装置、设备及可读存储介质
CN116796085A (zh) 一种文件处理方法、装置、电子设备及存储介质
CN116319576A (zh) 一种访问流量控制方法、装置、计算机设备及存储介质
CN115827766A (zh) 数据修改方法、装置、电子设备及计算机存储介质
CN113094415B (zh) 数据抽取方法、装置、计算机可读介质及电子设备
CN113626387A (zh) 一种任务数据的导出方法、装置、电子设备及存储介质
CN114461363A (zh) 任务执行方法及装置、计算机可读存储介质
CN113726885A (zh) 一种流量配额的调整方法和装置
CN117251769B (zh) 基于监控组件的异常数据识别方法、装置、设备及介质
CN110489515B (zh) 通讯录检索的方法、服务器及存储介质
CN112215527A (zh) 一种物流管理方法及装置
CN110619275A (zh) 信息推送方法、装置、计算机设备和存储介质
CN113326890B (zh) 标注数据处理方法、相关装置及计算机程序产品
CN115063217B (zh) 预算管理方法、装置、设备及介质
CN113313196B (zh) 标注数据处理方法、相关装置及计算机程序产品
CN115022083B (zh) 一种异常定界方法和装置
CN114650252B (zh) 基于企业服务总线的路由方法、装置及计算机设备
WO2023051270A1 (zh) 内存占用量预估方法、装置及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20934085

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20934085

Country of ref document: EP

Kind code of ref document: A1