CN111694923A - Name mapping-based parameter assignment method and device, and computer equipment - Google Patents

Name mapping-based parameter assignment method and device, and computer equipment Download PDF

Info

Publication number
CN111694923A
CN111694923A CN202010345889.2A CN202010345889A CN111694923A CN 111694923 A CN111694923 A CN 111694923A CN 202010345889 A CN202010345889 A CN 202010345889A CN 111694923 A CN111694923 A CN 111694923A
Authority
CN
China
Prior art keywords
parameter
name
information
mapping
chinese
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.)
Granted
Application number
CN202010345889.2A
Other languages
Chinese (zh)
Other versions
CN111694923B (en
Inventor
罗金雄
胡宏伟
马骏
王少军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010345889.2A priority Critical patent/CN111694923B/en
Publication of CN111694923A publication Critical patent/CN111694923A/en
Priority to PCT/CN2020/122452 priority patent/WO2021218063A1/en
Application granted granted Critical
Publication of CN111694923B publication Critical patent/CN111694923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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 Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a parameter assignment method and device based on name mapping and computer equipment. The method comprises the following steps: traversing a program to be traversed input by a user to obtain an interface parameter information table, establishing mapping according to parameter names in the parameter information table to obtain first name mapping information and second name mapping information, storing the first name mapping information, the second name mapping information and an un-mapped parameter information table to a parameter database, obtaining a target parameter name corresponding to a parameter processing request from the parameter database, and assigning a value to a corresponding target parameter in the program to be traversed according to the target parameter name. The invention is based on the system performance optimization technology, and establishes the name mapping information according to the parameter name in the parameter information table, thereby reducing the storage space occupied by the parameter information in the system memory, and improving the efficiency and the accuracy of data transmission in each interface by establishing the name mapping information, namely improving the efficiency of assigning the parameter of the interface.

Description

Name mapping-based parameter assignment method and device, and computer equipment
Technical Field
The invention relates to the technical field of computers, in particular to a name mapping-based parameter assignment method, a name mapping-based parameter assignment device and computer equipment.
Background
The server provides service for the client accessing the server by running the system program stored in the server, data interaction is performed among a plurality of systems contained in the system program through interfaces, namely, data is transmitted in the plurality of interfaces contained in the system program, the system program relates to the front-end and back-end interaction process of each system along with the increasing of functions required to be provided by the server, and the number of the integral interfaces is greatly increased due to the increase of the number of the subsystems.
The access parameter names (also called attributes) of the interfaces in the system program are determined at the beginning of the system program design, the access parameter names of the interfaces can not be dynamically configured according to the system requirements under the condition of not making code logic adjustment, and the Chinese names and the English names of the interface parameters are in one-to-one correspondence, in a system program with a large number of interfaces, a large number of interface parameters with the same name in chinese but different names in english will exist, or a large number of interface parameters with different Chinese names but similar English names, in order to ensure the accuracy of data transmission in each interface, the cost for managing the interface needs to be greatly increased, and a large number of interface parameters are stored in the memory, which results in high system memory occupancy rate, therefore, the efficiency of assigning the parameters is influenced, and the speed of the server responding to the service request of the client terminal is reduced. Therefore, the large system program in the prior art method has the problem of low efficiency of assigning the parameters during operation.
Disclosure of Invention
The embodiment of the invention provides a parameter assignment method and device based on name mapping, computer equipment and a storage medium, aiming at solving the problem of low efficiency of assigning parameters in the prior art.
In a first aspect, an embodiment of the present invention provides a name mapping-based parameter assignment method, including:
if a program to be traversed input by a user of the management server is received, traversing an interface contained in the program to be traversed to obtain an interface parameter information table containing parameter information;
mapping the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information;
parameter information corresponding to the first name mapping information in the interface parameter information table is removed to obtain a residual parameter information table;
mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information;
parameter information corresponding to the second name mapping information in the residual parameter information table is removed to obtain an unmapped parameter information table;
storing the first name mapping information, the second name mapping information and the un-mapped parameter information table to a preset parameter database;
if a parameter processing request from the client is received, acquiring a target parameter name corresponding to the parameter processing request from the parameter database;
and assigning 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.
In a second aspect, an embodiment of the present invention provides a name mapping-based parameter assignment apparatus, including:
a program to be traversed traversing unit, configured to traverse an interface included in the program to be traversed to obtain an interface parameter information table including parameter information, if the program to be traversed input by the user of the management server is received;
the first mapping unit is used for mapping the parameter names in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information;
the first information removing unit is used for removing the parameter information corresponding to the first name mapping information in the interface parameter information table to obtain a residual parameter information table;
the second mapping unit is used for mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information;
a second information removing unit, configured to remove parameter information corresponding to the second name mapping information from 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;
a target parameter name obtaining unit, 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;
and the target parameter assignment unit is used for assigning 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.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the name mapping-based parameter assignment method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the name mapping based parameter assignment method according to the first aspect.
The embodiment of the invention provides a parameter assignment method and device based on name mapping and computer equipment. Traversing a program to be traversed input by a user to obtain an interface parameter information table, establishing mapping according to parameter names in the parameter information table to obtain first name mapping information and second name mapping information, storing the first name mapping information, the second name mapping information and an un-mapped parameter information table to a parameter database, obtaining a target parameter name corresponding to a parameter processing request from the parameter database, and assigning a value to a corresponding target parameter in the program to be traversed according to the target parameter name. By the method, the name mapping information is established according to the parameter name in the parameter information table, so that the Chinese name and the English name stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, the storage space occupied by the parameter information of the interface in a system memory can be reduced, the efficiency and the accuracy of data transmission in each interface can be improved by establishing the name mapping information, and the efficiency of assigning the parameter of the interface is also improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a parameter assignment method based on name mapping according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a parameter assignment method based on name mapping according to an embodiment of the present invention;
fig. 3 is a sub-flow diagram of a parameter assignment method based on name mapping according to an embodiment of the present invention;
fig. 4 is another sub-flow diagram of a parameter assignment method based on name mapping according to an embodiment of the present invention;
fig. 5 is another sub-flow diagram of a parameter assignment method based on name mapping according to an embodiment of the present invention;
fig. 6 is another sub-flow diagram of a parameter assignment method based on name mapping according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a parameter assignment device based on name mapping according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flowchart of a parameter assignment method based on name mapping according to an embodiment of the present invention, and fig. 2 is a schematic application scenario diagram of the parameter assignment method based on name mapping according to the embodiment of the present invention. The parameter assignment method based on the name mapping is applied to a management server 10, the method is executed through application software installed in the management server 10, the management server 10 is in communication with a client 20 through establishing network connection with the client 20, a user of the client 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 the name mapping to assign a target parameter corresponding to the parameter processing request, wherein the management server 10 is an enterprise terminal for executing the parameter assignment method based on the name mapping, the client 20 is a terminal device for sending the parameter processing request, and the client 20 can be a desktop computer, a notebook computer, a tablet computer, a mobile phone or the like. Fig. 2 shows only one client 20 and the management server 10 performing data information transmission, and in practical applications, the management server 10 may perform data information transmission with a plurality of clients 20 at the same time.
As shown in fig. 1, the method includes steps S110 to S180.
S110, if a program to be traversed input by a user of the management server is received, traversing an interface contained in the program to be traversed to obtain an interface parameter information table containing parameter information.
And traversing the interface contained in the program to be traversed to obtain an interface parameter information table containing parameter information if the program to be traversed input by the user of the management server is received. The program to be traversed comprises a plurality of interfaces, each interface corresponds to at least one input parameter and at least one output parameter, the input parameters and the output parameters are parameters corresponding to the interfaces, the parameters comprise parameter names and parameter values, the parameter names comprise Chinese names and English names of the parameters, and the parameter values are assignment information corresponding to the parameters. The input parameters are input to the interfaces as data to be processed, the interfaces process the input parameters and then feed back the processing results as output parameters, the output parameters of one interface can be used as the input parameters of the other interface, namely, the parameter values are transmitted in a plurality of interfaces included in the program to be traversed. And traversing the interfaces contained in the program to be traversed and the parameters corresponding to each interface to obtain an interface parameter information table containing parameter information.
For example, the table of interface parameter information obtained after traversing an interface of a program to be traversed is shown in table 1.
Figure BDA0002470031700000051
TABLE 1
S120, mapping the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information.
And mapping the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information. The mapping rule is a rule for establishing first name mapping information according to a parameter name of the parameter information, the parameter name comprises a Chinese name and an English name, the Chinese name is used for identifying the meaning of the parameter, the Chinese name can be assigned according to a parameter value of the parameter and displayed for a user, the English name is identification information when the parameter value is processed in a program, and a program code calculates and processes the parameter value given by the parameter according to the English name. In order to facilitate the operation of the system program, the traditional technical method stores the chinese name and the english name corresponding to each parameter into the system memory.
In an embodiment, as shown in fig. 3, step S120 includes substeps S121 and S122.
And S121, judging whether the parameter information contains parameters with the same English name.
And S122, if the parameter information contains the parameter with the same English name, acquiring all the parameters with the same English name, and mapping all the Chinese names corresponding to all the parameters with the English name according to the mapping rule to obtain first mapping information.
And acquiring any two parameters in the parameter information, and judging whether the English names of the two parameters are the same. If the English names of two or more parameters are the same, mapping a plurality of Chinese names corresponding to the parameters with the same English name according to a mapping rule to obtain first mapping information, wherein the mapping rule is rule information for establishing the mapping information. All the first mapping information is acquired to obtain first name mapping information, and the obtained first name mapping information comprises at least one piece of first mapping information.
For example, if the english names corresponding to the entry "client phone number" of the interface "AA" and the entry "phone number" of the interface "BB" in table 1 are the same, the "client phone number" and the "phone number" are mapped to the "Cell-phone" to obtain a piece of first mapping information.
S130, parameter information corresponding to the first name mapping information in the interface parameter information table is removed to obtain a residual parameter information table.
And eliminating the parameter information corresponding to the first name mapping information in the interface parameter information table to obtain a residual parameter information table. The interface parameter information table includes parameter information of all interfaces, and parameter information corresponding to the first name mapping information in the interface parameter information table can be removed to obtain a remaining parameter information table, that is, the remaining parameter information table does not include parameter information corresponding to the first name mapping information.
For example, the obtained piece of first mapping information is: and mapping the 'client mobile phone number' and the 'mobile phone number' to the 'Cell-phone', eliminating the first mapping information from the parameter information contained in the table 1, and obtaining a residual parameter information table as shown in the table 2.
Figure BDA0002470031700000061
TABLE 2
S140, mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information.
And mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information. The mapping creation model is a rule for creating second name mapping information according to parameter names of the parameter information, and the second name mapping information is created based on the parameter information in the remaining parameter information table, wherein the mapping creation model includes character length information, a character vector table, a Long Short-Term Memory network (LSTM), and a similarity determination rule. The character vector table is a data table for recording vector information of each character, the long-term and short-term memory network is a neural network for calculating the parameter name characteristic vector to obtain corresponding memory network output information, and the similarity judgment rule is rule information for judging the similarity between two network output information.
In an embodiment, as shown in fig. 4, step S140 includes sub-steps S141, S142, S143, S144, and S145.
S141, the Chinese name of each parameter in the parameter information is standardized according to the character length information to obtain a corresponding standard name.
And standardizing the Chinese name of each parameter in the parameter information according to the character length information to obtain a corresponding standard name. The number of characters included in the Chinese names of the parameters is not equal, and in order to facilitate the subsequent long-term and short-term memory network to process the Chinese names, the Chinese names of the parameters need to be processed according to the character length information so as to obtain the standard names with the same number of characters. The long-short term memory network includes a plurality of cells, and the character length information is set to the number of cells in the long-short term memory network. Specifically, if the number of characters included in the Chinese name of the parameter exceeds the character length information N, intercepting the first N characters in the Chinese name 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, filling up missing characters in the Chinese name by using null characters (represented by □) to obtain the parameter name containing N characters; if the number of characters included 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, obtaining each parameter name feature vector corresponding to the parameter name according to the character vector table.
And acquiring each parameter name feature vector corresponding to the parameter name according to the character vector table. Specifically, the character vector table includes a 1 × M-dimensional vector corresponding to each character, and the 1 × M-dimensional vector can be used to quantize the features of the character. According to the standard name, a 1 xM-dimensional vector corresponding to each character in the standard name can be obtained from a character vector information table, and the 1 xM-dimensional vectors corresponding to the N characters contained in the standard name are combined to obtain an N xM vector, namely the obtained parameter name feature vector.
For example, if M is 10, part of the information included in the character vector table is shown in table 3.
Character(s) Vector of dimension 1 × M
Passenger(s) {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 (W.E.) {0.6,0.2,0.8,0.9,0.7,0.3,0.1,0.4,0.6,0.8}
Machine for working {0.2,0.9,0.7,0.3,0.6,0.2,0.6,0,0.5,0.2}
Number (C) {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}
TABLE 3
A certain segment of text is the 'customer mobile phone number', and a 5 × 10-dimensional feature vector corresponding to the text information can be correspondingly obtained:
Figure BDA0002470031700000081
s143, inputting the parameter name feature vectors into the long-short term memory network to calculate the memory network output information of each parameter name feature vector.
The step of calculating the memory network output information of a certain parameter name feature vector is divided into five steps, ① calculates the forgetting gate output information, f (t) ═ sigma (Wf × h (t _1) + Uf × X (t) + bf), wherein f (t) is the forgetting gate parameter value, 0 ≦ f (t) ≦ 1, and sigma is the activation function calculation symbol, and sigma can be expressed as f (x) ═ 1+ e ^(-x))-1Then the calculation result of Wf × h (t _1) + Uf × X (t) + bf is used as x input activation function sigma to calculate f (t), Wf, Uf and bf are all parameter values of the formula in the cell, h (t _1) is the output gate information of the previous cell, X (t) is a parameter name feature vector, namely a vector of 1 × M dimension input into the current cell,if the current cell is the first cell in the long-short term memory network, h (t _1) is zero. ×, input gate information is calculated by a (i) (t) ═ σ (Wi × h (t _1) + Ui × x (t)) + bi, (a) (t) ═ tanh (Wa × 0h (t-1) + Ua × x (t)) + ba), wherein i (t) is an input gate parameter value, 0 ≦ i (t)) + 1, (Wi, Ui, bi, Wa, Ua and ba are all parameter values of the current cell, a (t) is a calculated input gate vector value, a (t) is a 1 853M-dimensional vector, (×) updates cell memory information by a (t): C) (t) ═ C (t _1) × f 1 (t)) + i (34 a), (C) (t) (C is a t) (C (t — 1) for each calculation, C (t) + t) (C (t) is a vector of the input gate vector of the current memory cell), C) (t) is a vector of the memory cell), C) (t) is a vector of the memory cell), C) (t) is a vector of the memory cell), C) (t) (8, C) (t) is a vector of the memory cell), C) (t) is a vector of the memory cell), and C) (t) is a vector of the memory cell), and C) (t) is a vector of the vector.
S144, judging whether the Chinese names are similar according to the similarity judgment rule and the output information of the memory network, and combining the similar Chinese names to obtain a similar Chinese name group.
And judging whether the Chinese names are similar according to the similarity judgment rule and the output information of the memory network, and combining the similar Chinese names to obtain a similar Chinese name group. The similarity judgment rule comprises a similarity calculation formula and a similarity threshold. The similarity calculation formula can calculate the similarity between the two Chinese names based on the two pieces of 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.
In one embodiment, as shown in FIG. 5, step S144 includes sub-steps S1441, S1442, and S1443.
S1441, calculating the similarity between the two Chinese names according to a similarity calculation formula in the similarity judgment rule and the memory network output information corresponding to the Chinese names.
Calculating the similarity between two Chinese names according to a similarity calculation formula in the similarity judgment rule and the memory network output information corresponding to the Chinese names, acquiring two Chinese names corresponding to any two parameters in the residual parameter information table, and calculating the similarity based on the similarity calculation formula and the two memory network output information corresponding to the two Chinese names, wherein the similarity calculation formula can be expressed as P ═ (f ═ specifically1×g1+f2×g2+…+fN×gN)/[(f1 2+f2 2+…+fN 2)1/2×(g1 2+g2 2+…+gN 2)1/2]Wherein F ═ F1,f2…fN) Outputting information for the memory network corresponding to the first Chinese name, G ═ G1,g2……gN) And outputting information for the memory network corresponding to the second Chinese name.
S1442, judging whether the similarity of the two Chinese names is larger than the similarity threshold value, and taking the two Chinese names larger than the similarity threshold value as a similar Chinese name pair.
And judging whether the similarity of the two Chinese names is greater than the similarity threshold value, and taking the two Chinese names greater than the similarity threshold value as a similar Chinese name pair. Specifically, whether two Chinese names are similar Chinese name pairs or not is judged based on a similarity threshold value, and if the similarity between the two Chinese names is greater than the similarity threshold value, the two Chinese names are used as the similar Chinese name pairs; and if the similarity between the two Chinese names is not greater than the similarity threshold, not taking the two Chinese names as the similar Chinese name pair.
S1443, combining the similar Chinese name pairs containing the same Chinese name to obtain a similar Chinese name group.
The similar Chinese name pairs containing the same Chinese name are combined to obtain a similar Chinese name group. If the plurality of similar Chinese name pairs all contain the same Chinese name, the plurality of similar Chinese name pairs can be combined to obtain a similar Chinese name group.
For example, if a certain pair of similar chinese names is "number of times of connection" and "number of times of call", another pair of similar chinese names is "number of times of connection" and "frequency of call", and both pairs of similar chinese names include "number of times of connection", the two pairs of similar chinese names are combined, and then "number of times of connection", "number of times of call", and "frequency of call" are used as a group of similar chinese names.
S145, mapping all Chinese names contained in the similar Chinese name group with English names corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
And mapping all Chinese names contained in the similar Chinese name group with English names corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information. The method comprises the steps of obtaining a plurality of parameters corresponding to a similar Chinese name group, randomly selecting an English name from the English names of the parameters, mapping the Chinese names contained in the similar Chinese name group with the randomly selected English name to obtain second mapping information, and mapping two parameters corresponding to the similar Chinese name pair by adopting the mode to obtain the second mapping information. And acquiring all the second mapping information to obtain second name mapping information, wherein the obtained second name mapping information comprises at least one piece of second mapping information.
For example, a similar chinese name pair includes a Call-out number of the interface "AA" and a Call-out number of the interface "BB", an english name "Call-number" corresponding to one of the two chinese names "Call-out number" is randomly selected, and both the "Call-out number" and the "Call-in number" are mapped to the "Call-number", so that a piece of second mapping information can be obtained.
S150, parameter information corresponding to the second name mapping information in the residual parameter information table is removed to obtain an unmapped parameter information table.
And eliminating the parameter information corresponding to the second name mapping information in the residual parameter information table 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 removed to obtain an unmapped parameter information table, that is, the unmapped parameter information table does not include the parameter information corresponding to the first name mapping information and the second name mapping information.
And S160, storing the first name mapping information, the second name mapping information and the unmapped parameter information table into a preset parameter database.
And storing the first name mapping information, the second name mapping information and the un-mapped parameter information table to a preset parameter database. Specifically, the parameter database may be a database configured in a system memory of the management server, and the first name mapping information, the second name mapping information, and the chinese name and the english name 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, and the Chinese names and the English names stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, so that the storage space occupied by the interface parameters in a system memory can be reduced, the efficiency and the accuracy of data transmission in each interface can be improved by establishing the name mapping information, namely, the efficiency of assigning the parameters of the interfaces in the program to be traversed is improved, and the data transmitted in each interface is the specific values for assigning the parameters in the interfaces. Therefore, when the parameter processing request is processed through the interface in the program to be traversed, the response speed of the system program in processing the parameter processing request can be greatly improved.
S170, if a parameter processing request from the client is received, acquiring a target parameter name corresponding to the parameter processing request from the parameter database.
And if a parameter processing request from the client is received, acquiring a target parameter name corresponding to the parameter processing request from the parameter database. If a parameter processing request is received, a target parameter name corresponding to the parameter processing request can be obtained from a parameter database, the parameter processing request comprises the request parameter name and the parameter value of the request parameter name, the request parameter name is a Chinese name, the target parameter name is an English name, and the program code calculates and processes the parameter value in the parameter processing request according to the target parameter name.
In an embodiment, as shown in fig. 6, step S170 includes sub-steps S171, S172, S173, S174, and S175.
S171, judging whether the unmapped parameter information table contains the request parameter name in the parameter processing request.
And judging whether the unmapped parameter information table contains the request parameter name in the parameter processing request. First, it can judge whether the un-mapped parameter information table contains the request parameter name, and it can judge whether the request parameter name is the same as a certain Chinese name by the Chinese name of the parameter information in the un-mapped information table, so as to obtain the judgment result whether the un-mapped information table contains the request parameter name.
And S172, if the unmapped parameter information table contains the request parameter name, determining the English name of the parameter corresponding to the request parameter name in the unmapped information table as the target parameter name.
And if the unmapped parameter information table contains the request parameter name, determining the English name of the parameter corresponding to the request parameter name in the unmapped information table as the target parameter name. The unmapped information table comprises a plurality of parameter information, each parameter information correspondingly comprises a Chinese name and an English name, and the English name corresponding to the Chinese name can be obtained according to the Chinese name which is the same as the requested parameter name in the unmapped information table and is used as the target parameter name corresponding to the requested parameter name.
S173, if the unmapped parameter information table does not include the requested parameter name, determining whether the first name mapping information or the second name mapping information includes the requested parameter name.
If the un-mapped parameter information table does not contain the request parameter name, judging whether the first name mapping information or the second name mapping information contains the request parameter name. Since the interface parameter information table includes parameter information of all interfaces, if the request parameter name is not included in the unmapped parameter information table, the request parameter name is necessarily included in the first name mapping information or the second name mapping information.
And S174, if the first name mapping information contains the request parameter name, acquiring an English name mapped with the request parameter name according to the first name mapping information, and determining the English name as a target parameter name.
And if the first name mapping information contains the request parameter name, acquiring an English name mapped with the request parameter name according to the first name mapping information and determining the English name as a target parameter name. And acquiring a Chinese name which is the same as the name of the request parameter in the first name mapping information, and acquiring an English name mapped by the Chinese name as a target parameter name.
S175, if the second name mapping information includes the request parameter name, obtaining all english names mapped with the request parameter name according to the second name mapping information, and determining the english names as target parameter names.
And if the second name mapping information contains the request parameter name, acquiring all English names mapped with the request parameter name according to the second name mapping information, and determining the English names as target parameter names. And acquiring a Chinese name which is the same as the name of the request parameter in the second name mapping information, and acquiring an English name mapped by the Chinese name as a target parameter name.
And S180, assigning 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.
And assigning 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. The name of the target parameter corresponds to the target parameter in the management server, the target parameter is assigned according to the parameter value corresponding to the name of the request parameter in the parameter processing request, and the assigned target parameter is input into the corresponding interface, so that the processing result of the parameter processing request can be obtained by obtaining the parameter value of the output parameter of the interface.
In the parameter assignment method based on name mapping provided by the embodiment of the present invention, an interface parameter information table is obtained by traversing a to-be-traversed program input by a user, mapping is established according to a parameter name in the parameter information table to obtain first name mapping information and second name mapping information, the first name mapping information, the second name mapping information and an unmapped parameter information table are stored in a parameter database, a target parameter name corresponding to a parameter processing request is obtained from the parameter database, and an assignment is performed on a corresponding target parameter in the to-be-traversed program according to the target parameter name. By the method, the name mapping information is established according to the parameter name in the parameter information table, so that the Chinese name and the English name stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, the storage space occupied by the parameter information of the interface in a system memory can be reduced, the efficiency and the accuracy of data transmission in each interface can be improved by establishing the name mapping information, and the efficiency of assigning the parameter of the interface is also improved.
The embodiment of the invention also provides a parameter assignment device based on the name mapping, which is used for executing any embodiment of the parameter assignment method based on the name mapping. Specifically, referring to fig. 7, fig. 7 is a schematic block diagram of a parameter assignment device based on name mapping according to an embodiment of the present invention. The name mapping based parameter assigning means may be configured in the management server 10.
As shown in fig. 7, the name mapping-based parameter assignment device 100 includes a program to be traversed traversing unit 110, a first mapping unit 120, a first information removing unit 130, a second mapping unit 140, a second information removing unit 150, an information storage unit 160, a target parameter name obtaining unit 170, and a target parameter assignment unit 180.
The program to be traversed traversing unit 110 is configured to traverse an interface included in the program to be traversed to obtain an interface parameter information table including parameter information if the program to be traversed input by the user of the management server is received.
The first mapping unit 120 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.
In other embodiments of the present invention, the first mapping unit 120 includes a sub-unit: english name judging unit and first name mapping unit.
The English name judging unit is used for judging whether the parameter information contains parameters with the same English name; and the first name mapping unit is used for acquiring all the parameters with the same English name if the parameter information contains the parameters with the same English name, and mapping all the Chinese names corresponding to all the parameters with the English name according to the mapping rule to obtain first mapping information.
A first information removing unit 130, configured to remove 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.
In other embodiments of the present invention, the second mapping unit 140 includes a sub-unit: the device comprises a standard name acquisition unit, a characteristic vector acquisition unit, a memory network output information acquisition unit, a similar Chinese name group acquisition unit and a second name mapping unit.
The standard name acquisition unit is used for standardizing the Chinese name of each parameter in the parameter information according to the character length information to obtain a corresponding standard name; a feature vector obtaining unit, configured to obtain, according to the character vector table, each parameter name feature vector corresponding to the parameter name; the memory network output information acquisition unit is used for inputting the parameter name characteristic vectors into the long-term and short-term memory network so as to calculate and obtain the memory network output information of each parameter name characteristic vector; a similar Chinese name group obtaining unit, configured to judge whether the Chinese names are similar according to the similarity judgment rule and the memory network output information, and combine the similar Chinese names to obtain a similar Chinese name group; and the second name mapping unit is used for mapping all Chinese names contained in the similar Chinese name group with English names corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
In other embodiments of the present invention, the similar chinese name group obtaining unit includes a subunit: the device comprises a similarity acquisition unit, a similar Chinese name pair acquisition unit and a similar Chinese name pair combination unit.
The similarity obtaining unit is used for calculating the similarity between the two Chinese names according to a similarity calculation formula in the similarity judgment rule and the memory network output information corresponding to the Chinese names; a similar Chinese name pair obtaining unit, configured to determine whether a similarity between two Chinese names is greater than the similarity threshold, and use the two Chinese names greater than the similarity threshold as a similar Chinese name pair; and the similar Chinese name pair combination unit is used for combining the similar Chinese name pairs containing the same Chinese name to obtain a similar Chinese name group.
A second information removing unit 150, configured to remove parameter information corresponding to the second name mapping information from the remaining parameter information table to obtain an unmapped parameter information table.
An information storage unit 160, configured to store the first name mapping information, the second name mapping information, and the unmapped parameter information table in a preset parameter database.
A target parameter name obtaining unit 170, 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.
In other embodiments of the present invention, the target parameter name obtaining unit 170 includes sub-units: the device comprises a first judgment unit, a first target parameter name determination unit, a second judgment unit, a second target parameter name determination unit and a third target parameter name determination unit.
A first judging unit, configured to judge whether the unmapped parameter information table includes a request parameter name in the parameter processing request; a first target parameter name determining unit, configured to determine, if the unmapped parameter information table includes the requested parameter name, an english name of a parameter corresponding to the requested parameter name in the unmapped information table as a target parameter name; a second determining unit, configured to determine whether the first name mapping information or the second name mapping information includes the request parameter name if the un-mapped parameter information table does not include the request parameter name; a second target parameter name determining unit, configured to, if the first name mapping information includes the request parameter name, obtain, according to the first name mapping information, an english name mapped with the request parameter name, and determine the english name as a target parameter name; and a third target parameter name determining unit, configured to, if the second name mapping information includes the request parameter name, obtain, according to the second name mapping information, all english names mapped with the request parameter name, and determine that all english names are the target parameter name.
And 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 requested parameter name in the parameter processing request.
The parameter assignment device based on the name mapping provided by the embodiment of the invention applies the parameter assignment method based on the name mapping, traverses a program to be traversed input by a user to obtain an interface parameter information table, establishes mapping according to parameter names in the parameter information table to obtain first name mapping information and second name mapping information, stores the first name mapping information, the second name mapping information and an unmapped parameter information table into a parameter database, obtains a target parameter name corresponding to a parameter processing request from the parameter database, and assigns a corresponding target parameter in the program to be traversed according to the target parameter name. By the method, the name mapping information is established according to the parameter name in the parameter information table, so that the Chinese name and the English name stored in the parameter database are greatly reduced compared with the parameter information in the interface parameter information table, the storage space occupied by the parameter information of the interface in a system memory can be reduced, the efficiency and the accuracy of data transmission in each interface can be improved by establishing the name mapping information, and the efficiency of assigning the parameter of the interface is also improved.
The above-mentioned parameter assigning means based on name mapping may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Referring to fig. 8, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by 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 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a name mapping based parameter assignment method.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be caused to execute a name mapping-based parameter assignment method.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following functions: if a program to be traversed input by a user of the management server is received, traversing an interface contained in the program to be traversed to obtain an interface parameter information table containing parameter information; mapping the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information; parameter information corresponding to the first name mapping information in the interface parameter information table is removed to obtain a residual parameter information table; mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information; parameter information corresponding to the second name mapping information in the residual parameter information table is removed to obtain an unmapped parameter information table; storing the first name mapping information, the second name mapping information and the un-mapped parameter information table to a preset parameter database; if a parameter processing request from the client is received, acquiring a target parameter name corresponding to the parameter processing request from the parameter database; and assigning 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.
In an embodiment, when performing the step of mapping 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 processor 502 performs the following operations: judging whether the parameter information contains parameters with the same English name or not; if the parameter information contains parameters with the same English name, all the parameters with the same English name are obtained, and all the Chinese names corresponding to all the parameters are mapped with the English name according to the mapping rule to obtain first mapping information.
In an embodiment, when the processor 502 performs the step of mapping 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 following operations are performed: standardizing the Chinese name of each parameter in the parameter information according to the character length information to obtain a corresponding standard name; acquiring each parameter name feature vector corresponding to the parameter name according to the character vector table; inputting the parameter name feature vectors into the long-short term memory network to calculate memory network output information of each parameter name feature vector; judging whether the Chinese names are similar according to the similarity judgment rule and the output information of the memory network, and combining the similar Chinese names to obtain a similar Chinese name group; and mapping all Chinese names contained in the similar Chinese name group with English names corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
In one embodiment, the processor 502 performs the following operations when performing the steps of determining whether the chinese names are similar according to the similarity determination rule and the output information of the memory network, and combining the similar chinese names to obtain a similar chinese name group: calculating the similarity between the two Chinese names according to a similarity calculation formula in the similarity judgment rule and the memory network output information corresponding to the Chinese names; judging whether the similarity of the two Chinese names is greater than the similarity threshold value or not, and taking the two Chinese names greater than the similarity threshold value as a similar Chinese name pair; the similar Chinese name pairs containing the same Chinese name are combined to obtain a similar Chinese name group.
In an embodiment, when the processor 502 executes the step of obtaining the target parameter name corresponding to the parameter processing request from the parameter database if the parameter processing request from the client is received, the following operations are executed: judging whether the unmapped parameter information table contains a request parameter name in the parameter processing request or not; if the unmapped parameter information table contains the request parameter name, determining the English name of the parameter corresponding to the request parameter name in the unmapped information table as a target parameter name; if the un-mapped parameter information table does not contain the request parameter name, judging whether the first name mapping information or the second name mapping information contains the request parameter name; if the first name mapping information contains the request parameter name, acquiring an English name mapped with the request parameter name according to the first name mapping information and determining the English name as a target parameter name; and if the second name mapping information contains the request parameter name, acquiring all English names mapped with the request parameter name according to the second name mapping information, and determining the English names as target parameter names.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 8 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 8, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer-readable storage medium stores a computer program, wherein the computer program when executed by a processor implements the steps of: if a program to be traversed input by a user of the management server is received, traversing an interface contained in the program to be traversed to obtain an interface parameter information table containing parameter information; mapping the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information; parameter information corresponding to the first name mapping information in the interface parameter information table is removed to obtain a residual parameter information table; mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information; parameter information corresponding to the second name mapping information in the residual parameter information table is removed to obtain an unmapped parameter information table; storing the first name mapping information, the second name mapping information and the un-mapped parameter information table to a preset parameter database; if a parameter processing request from the client is received, acquiring a target parameter name corresponding to the parameter processing request from the parameter database; and assigning 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.
In an embodiment, the step of mapping the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information including the first mapping information includes: judging whether the parameter information contains parameters with the same English name or not; if the parameter information contains parameters with the same English name, all the parameters with the same English name are obtained, and all the Chinese names corresponding to all the parameters are mapped with the English name according to the mapping rule to obtain first mapping information.
In an embodiment, the step of mapping 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 includes: standardizing the Chinese name of each parameter in the parameter information according to the character length information to obtain a corresponding standard name; acquiring each parameter name feature vector corresponding to the parameter name according to the character vector table; inputting the parameter name feature vectors into the long-short term memory network to calculate memory network output information of each parameter name feature vector; judging whether the Chinese names are similar according to the similarity judgment rule and the output information of the memory network, and combining the similar Chinese names to obtain a similar Chinese name group; and mapping all Chinese names contained in the similar Chinese name group with English names corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
In an embodiment, the step of determining whether the chinese names are similar according to the similarity determination rule and the output information of the memory network, and combining the similar chinese names to obtain a similar chinese name group includes: calculating the similarity between the two Chinese names according to a similarity calculation formula in the similarity judgment rule and the memory network output information corresponding to the Chinese names; judging whether the similarity of the two Chinese names is greater than the similarity threshold value or not, and taking the two Chinese names greater than the similarity threshold value as a similar Chinese name pair; the similar Chinese name pairs containing the same Chinese name are combined to obtain a similar Chinese name group.
In an embodiment, the step of obtaining, if a parameter processing request from the client is received, a target parameter name corresponding to the parameter processing request from the parameter database includes: judging whether the unmapped parameter information table contains a request parameter name in the parameter processing request or not; if the unmapped parameter information table contains the request parameter name, determining the English name of the parameter corresponding to the request parameter name in the unmapped information table as a target parameter name; if the un-mapped parameter information table does not contain the request parameter name, judging whether the first name mapping information or the second name mapping information contains the request parameter name; if the first name mapping information contains the request parameter name, acquiring an English name mapped with the request parameter name according to the first name mapping information and determining the English name as a target parameter name; and if the second name mapping information contains the request parameter name, acquiring all English names mapped with the request parameter name according to the second name mapping information, and determining the English names as target parameter names.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
The computer-readable storage medium is a physical, non-transitory storage medium, and the computer-readable storage medium may be an internal storage unit of the foregoing device, for example, 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, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and other physical storage Media provided on the device.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A parameter assignment method based on name mapping is applied to a management server, the management server is communicated with at least one client, and the method is characterized by comprising the following steps:
if a program to be traversed input by a user of the management server is received, traversing an interface contained in the program to be traversed to obtain an interface parameter information table containing parameter information;
mapping the parameter name in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information;
parameter information corresponding to the first name mapping information in the interface parameter information table is removed to obtain a residual parameter information table;
mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information;
parameter information corresponding to the second name mapping information in the residual parameter information table is removed to obtain an unmapped parameter information table;
storing the first name mapping information, the second name mapping information and the un-mapped parameter information table to a preset parameter database;
if a parameter processing request from the client is received, acquiring a target parameter name corresponding to the parameter processing request from the parameter database;
and assigning 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.
2. The method for assigning parameters based on name mapping according to claim 1, wherein the mapping the parameter names in the parameter information according to a preset mapping rule to obtain first name mapping information including first mapping information comprises:
judging whether the parameter information contains parameters with the same English name or not;
if the parameter information contains parameters with the same English name, all the parameters with the same English name are obtained, and all the Chinese names corresponding to all the parameters are mapped with the English name according to the mapping rule to obtain first mapping information.
3. The method of claim 1, wherein the mapping creation model includes character length information, a character vector table, a long-term and short-term memory network, and a similarity determination rule, and the mapping 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 includes:
standardizing the Chinese name of each parameter in the parameter information according to the character length information to obtain a corresponding standard name;
acquiring each parameter name feature vector corresponding to the parameter name according to the character vector table;
inputting the parameter name feature vectors into the long-short term memory network to calculate memory network output information of each parameter name feature vector;
judging whether the Chinese names are similar according to the similarity judgment rule and the output information of the memory network, and combining the similar Chinese names to obtain a similar Chinese name group;
and mapping all Chinese names contained in the similar Chinese name group with English names corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
4. The name mapping-based parameter assignment method according to claim 3, wherein the similarity determination rule includes a similarity calculation formula and a similarity threshold, and the determining whether the Chinese names are similar according to the similarity determination rule and the output information of the memory network, and combining the similar Chinese names to obtain a similar Chinese name group includes:
calculating the similarity between the two Chinese names according to a similarity calculation formula in the similarity judgment rule and the memory network output information corresponding to the Chinese names;
judging whether the similarity of the two Chinese names is greater than the similarity threshold value or not, and taking the two Chinese names greater than the similarity threshold value as a similar Chinese name pair;
the similar Chinese name pairs containing the same Chinese name are combined to obtain a similar Chinese name group.
5. The name mapping-based parameter assignment method according to claim 1, wherein, if a parameter processing request is received from the client, obtaining a target parameter name corresponding to the parameter processing request from the parameter database, includes:
judging whether the unmapped parameter information table contains a request parameter name in the parameter processing request or not;
if the unmapped parameter information table contains the request parameter name, determining the English name of the parameter corresponding to the request parameter name in the unmapped information table as a target parameter name;
if the un-mapped parameter information table does not contain the request parameter name, judging whether the first name mapping information or the second name mapping information contains the request parameter name;
if the first name mapping information contains the request parameter name, acquiring an English name mapped with the request parameter name according to the first name mapping information and determining the English name as a target parameter name;
and if the second name mapping information contains the request parameter name, acquiring all English names mapped with the request parameter name according to the second name mapping information, and determining the English names as target parameter names.
6. A parameter assignment device based on name mapping is characterized by comprising:
a program to be traversed traversing unit, configured to traverse an interface included in the program to be traversed to obtain an interface parameter information table including parameter information, if the program to be traversed input by the user of the management server is received;
the first mapping unit is used for mapping the parameter names in the parameter information according to a preset mapping rule to obtain first name mapping information containing the first mapping information;
the first information removing unit is used for removing the parameter information corresponding to the first name mapping information in the interface parameter information table to obtain a residual parameter information table;
the second mapping unit is used for mapping the parameter names of the parameter information in the residual parameter information table according to a preset mapping creation model to obtain second name mapping information containing second mapping information;
a second information removing unit, configured to remove parameter information corresponding to the second name mapping information from 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;
a target parameter name obtaining unit, 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;
and the target parameter assignment unit is used for assigning 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.
7. The name mapping-based parameter assignment device according to claim 6, wherein the first mapping unit comprises:
the English name judging unit is used for judging whether the parameter information contains parameters with the same English name;
and the first name mapping unit is used for acquiring all the parameters with the same English name if the parameter information contains the parameters with the same English name, and mapping all the Chinese names corresponding to all the parameters with the English name according to the mapping rule to obtain first mapping information.
8. The name mapping-based parameter assignment device according to claim 6, wherein the second mapping unit comprises:
the standard name acquisition unit is used for standardizing the Chinese name of each parameter in the parameter information according to the character length information to obtain a corresponding standard name;
a feature vector obtaining unit, configured to obtain, according to the character vector table, each parameter name feature vector corresponding to the parameter name;
the memory network output information acquisition unit is used for inputting the parameter name characteristic vectors into the long-term and short-term memory network so as to calculate and obtain the memory network output information of each parameter name characteristic vector;
a similar Chinese name group obtaining unit, configured to judge whether the Chinese names are similar according to the similarity judgment rule and the memory network output information, and combine the similar Chinese names to obtain a similar Chinese name group;
and the second name mapping unit is used for mapping all Chinese names contained in the similar Chinese name group with English names corresponding to any Chinese name in the similar Chinese name group to obtain second name mapping information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the name mapping based parameter assignment method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the name mapping based parameter assignment method according to any one of claims 1 to 5.
CN202010345889.2A 2020-04-27 2020-04-27 Parameter assignment method and device based on name mapping and computer equipment Active CN111694923B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010345889.2A CN111694923B (en) 2020-04-27 2020-04-27 Parameter assignment method and device based on name mapping and computer equipment
PCT/CN2020/122452 WO2021218063A1 (en) 2020-04-27 2020-10-21 Method and apparatus for assigning parameter with value on the basis of name mapping, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010345889.2A CN111694923B (en) 2020-04-27 2020-04-27 Parameter assignment method and device based on name mapping and computer equipment

Publications (2)

Publication Number Publication Date
CN111694923A true CN111694923A (en) 2020-09-22
CN111694923B CN111694923B (en) 2024-09-17

Family

ID=72476641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010345889.2A Active CN111694923B (en) 2020-04-27 2020-04-27 Parameter assignment method and device based on name mapping and computer equipment

Country Status (2)

Country Link
CN (1) CN111694923B (en)
WO (1) WO2021218063A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021218063A1 (en) * 2020-04-27 2021-11-04 平安科技(深圳)有限公司 Method and apparatus for assigning parameter with value on the basis of name mapping, and computer device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114185575B (en) * 2021-12-13 2024-07-26 中国建设银行股份有限公司 Service system upgrading method and device
CN116107561B (en) * 2023-04-14 2023-06-23 湖南云畅网络科技有限公司 Low-code-based action node rapid construction method, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377438A (en) * 2019-07-22 2019-10-25 广州小鹏汽车科技有限公司 The method for routing of striding course communication interface, device and system
CN110457469A (en) * 2019-07-05 2019-11-15 中国平安财产保险股份有限公司 Information classification approach, device based on shot and long term memory network, computer equipment
CN110597782A (en) * 2019-08-13 2019-12-20 上海陆家嘴国际金融资产交易市场股份有限公司 Database dynamic switching method and device, computer equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547670B (en) * 2016-06-28 2020-12-29 阿里巴巴集团控股有限公司 Domain name information query method and device
CN106649488B (en) * 2016-09-30 2020-05-05 广东网金数据服务有限公司 Method and device for calling multi-data-source interactive interface
CN108491199B (en) * 2018-03-06 2021-04-27 福建天泉教育科技有限公司 Method and terminal for automatically generating interface
CN108427613B (en) * 2018-03-12 2021-02-09 平安普惠企业管理有限公司 Abnormal interface positioning method and device, computer equipment and storage medium
CN110263314B (en) * 2019-06-19 2023-07-11 北京明略软件系统有限公司 Form processing method and device, storage medium and electronic device
CN110826004A (en) * 2019-11-05 2020-02-21 杭州安恒信息技术股份有限公司 Front-end request data processing method and related device
CN111694923B (en) * 2020-04-27 2024-09-17 平安科技(深圳)有限公司 Parameter assignment method and device based on name mapping and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457469A (en) * 2019-07-05 2019-11-15 中国平安财产保险股份有限公司 Information classification approach, device based on shot and long term memory network, computer equipment
CN110377438A (en) * 2019-07-22 2019-10-25 广州小鹏汽车科技有限公司 The method for routing of striding course communication interface, device and system
CN110597782A (en) * 2019-08-13 2019-12-20 上海陆家嘴国际金融资产交易市场股份有限公司 Database dynamic switching method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021218063A1 (en) * 2020-04-27 2021-11-04 平安科技(深圳)有限公司 Method and apparatus for assigning parameter with value on the basis of name mapping, and computer device

Also Published As

Publication number Publication date
WO2021218063A1 (en) 2021-11-04
CN111694923B (en) 2024-09-17

Similar Documents

Publication Publication Date Title
CN111694923A (en) Name mapping-based parameter assignment method and device, and computer equipment
CN109063190B (en) Method and device for processing data sequence
WO2014194642A1 (en) Systems and methods for matching users
US20210089887A1 (en) Variance-Based Learning Rate Control For Training Machine-Learning Models
CN110929799A (en) Method, electronic device, and computer-readable medium for detecting abnormal user
CN112801800A (en) Behavior fund analysis system, behavior fund analysis method, computer equipment and storage medium
CN113794899A (en) Cloud desktop image data transmission method, device, equipment and storage medium
CN111949681A (en) Data aggregation processing device and method and storage medium
CN110335061B (en) Transaction mode portrait establishing method, device, medium and electronic equipment
CN111611290A (en) Address quick positioning method and device, computer equipment and storage medium
CN112241319A (en) Method, electronic device and computer program product for balancing load
CN113052246A (en) Method and related device for training classification model and image classification
CN112445873A (en) List display processing method, related device, equipment and medium
CN111260384B (en) Service order processing method, device, electronic equipment and storage medium
CN108898432B (en) Advertisement putting effect evaluation method and device and electronic equipment
CN113094415A (en) Data extraction method and device, computer readable medium and electronic equipment
CN114384541A (en) Point cloud target detection method, terminal device and computer readable storage medium
CN111858542B (en) Data processing method, device, equipment and computer readable storage medium
CN113918345A (en) Capacity calculation method and device for configuration hardware, computer equipment and medium
CN113065597A (en) Clustering method, device, equipment and storage medium
CN112381163A (en) User clustering method, device and equipment
CN113760407A (en) Information processing method, device, equipment and storage medium
CN112000462A (en) Data processing method and device based on shared peripheral resources
CN111448575A (en) System and method for evaluating model performance
CN111260427B (en) Service order processing method, device, electronic equipment and storage medium

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