CN110852041A - Field processing method and related equipment - Google Patents

Field processing method and related equipment Download PDF

Info

Publication number
CN110852041A
CN110852041A CN201910971539.4A CN201910971539A CN110852041A CN 110852041 A CN110852041 A CN 110852041A CN 201910971539 A CN201910971539 A CN 201910971539A CN 110852041 A CN110852041 A CN 110852041A
Authority
CN
China
Prior art keywords
field
english
field name
candidate
name
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.)
Pending
Application number
CN201910971539.4A
Other languages
Chinese (zh)
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.)
Chongqing Financial Assets Exchange LLC
Original Assignee
Chongqing Financial Assets Exchange LLC
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 Chongqing Financial Assets Exchange LLC filed Critical Chongqing Financial Assets Exchange LLC
Priority to CN201910971539.4A priority Critical patent/CN110852041A/en
Publication of CN110852041A publication Critical patent/CN110852041A/en
Pending legal-status Critical Current

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/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries

Abstract

The embodiment of the application discloses a field processing method and related equipment, wherein the method is applied to the technical field of data processing and comprises the following steps: receiving a creation request aiming at a field to be created, wherein the creation request comprises a Chinese character field name corresponding to the field to be created; and acquiring matched English field names matched with the Chinese field names from the pre-created field set, determining at least one candidate English field name from the matched English field names according to a preset screening rule, and creating the field to be created based on the at least one candidate English field name. In this way, the creating efficiency of the field can be improved, and the normalization of the created field can be enhanced.

Description

Field processing method and related equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a field processing method and a related device.
Background
During the project development process, many fields need to be created. At present, when a developer names (i.e. creates a field), a Chinese field name is usually translated into an English field name through translation software, and then the field is created based on the English field name, and the following points exist in the field naming mode: a. different people may use different translation software to translate the same Chinese field name into different English field names, which is not beneficial to unified coding specification; b. the English field name translated by the translation software is not necessarily the most suitable English field name, for example, the Chinese field name is 'application', if the Chinese field name is translated into 'application' by the translation software, but actually the 'app' is more concise and suitable as the English field name; c. if the fields are particularly numerous, the translation effort may be large. It can be seen that the existing field naming mode has the defects of non-standard naming and low naming efficiency.
Disclosure of Invention
The embodiment of the application provides a field processing method and related equipment, which can improve the field creation efficiency and enhance the standardization of the created field.
In a first aspect, an embodiment of the present application provides a field processing method, where the method includes:
receiving a creation request aiming at a field to be created, wherein the creation request comprises a Chinese character field name corresponding to the field to be created;
acquiring matched English field names matched with the Chinese field names from a pre-created field set, wherein the pre-created field set comprises at least one Chinese field name and English field names corresponding to each Chinese field name in the at least one Chinese field name;
determining at least one candidate English field name from the matched English field names according to a preset screening rule;
and creating the field to be created based on the at least one candidate English field name.
In one embodiment, the number of the matching english field names is n, where n is an integer greater than 0, and the specific implementation manner of determining at least one candidate english field name from the matching english field names according to a preset filtering rule is as follows:
acquiring historical use times of each matched English field name in the n matched English field names according to a preset screening rule;
if the fact that the historical use times of any one of the n matched English field names meets a preset data volume condition is detected, determining the matched English field name of which the historical use times is larger than or equal to a first preset time threshold value in the n matched English field names as a first matched English field name, wherein the number of the first matched English field names is at least one;
sorting the at least one first matching English field name according to the historical usage times;
and determining at least one candidate English field name from the at least one first matching English field name based on the ranking of each first matching English field name in the at least one first matching English field name and the historical times.
In an embodiment, the specific implementation manner of sorting at least one first matching english field name according to the historical usage times is as follows:
acquiring grade information of a creating user corresponding to each first matching English field name in the at least one first matching English field name;
and sorting the first matching English field names based on the level information of the creating user corresponding to the first matching English field names and the historical using times.
In one embodiment, after obtaining the historical usage times of each matching english field name in the n matching english field names according to a preset filtering rule, the method further includes:
and if the historical use times of each matching English field name in the n matching English field names are not detected to meet the preset data volume condition, determining the n matching English field names as candidate English field names.
In an embodiment, the specific implementation manner of determining at least one candidate english field name from the matching english field names according to a preset filtering rule is as follows:
acquiring the historical use times of each matched English field name according to a preset screening rule;
and determining the matched English field names with the historical use times larger than or equal to a second preset time threshold value from the matched English field names as candidate English field names.
In one embodiment, if the matching english field name is not successfully obtained from the pre-created field set, determining a candidate chinese field name matching the chinese field name from the field set; acquiring a candidate English field name corresponding to the candidate Chinese field name from at least one English field name included in the field set; and outputting the candidate English field name corresponding to the candidate Chinese field name, so that a user can create the field to be created based on the candidate English field name corresponding to the candidate Chinese field name.
In one embodiment, a field to be created by a user based on the candidate english field name corresponding to the candidate chinese field name may also be received; and checking the field to be created according to the candidate English field name, and outputting a checking result.
In a second aspect, an embodiment of the present application provides a field processing apparatus, which includes a module for executing the method of the first aspect.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports the terminal device to execute the method described above, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method described above in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of the first aspect.
In the embodiment of the application, the terminal device receives a creation request aiming at a field to be created, wherein the creation request comprises a Chinese text field name corresponding to the field to be created. Further, the terminal acquires matched English field names matched with the Chinese field names from the pre-created field set, determines at least one candidate English field name from the matched English field names according to a preset screening rule, and creates the field to be created based on the at least one candidate English field name. In this way, the creating efficiency of the field can be improved, and the normalization of the created field can be enhanced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, 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 field processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another field processing method provided in an embodiment of the present application;
fig. 3 is a schematic block diagram of a field processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic block diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but 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.
At present, when a developer creates a field, the following ways are also generally included: firstly, a developer exerts the field automatically based on own naming habits to create the field; second, in the case of many fields, if a product provides dozens of excel templates, each template has dozens of fields, and a database table needs to be built according to each template, meaningless and nonrepeating database english field names are automatically generated (P1, P2, P3 …) generally through tool classes. It can be seen that, in the first creation mode, based on the personal naming habits of the developers, different people can name the same chinese field name as different english field names according to their preferences, which is not favorable for the naming specification of the field and difficult for the subsequent maintenance. In the second creation mode, a field in each template corresponds to a naming mode, the field naming is not standard, and the name can not be known, so that the subsequent maintenance is difficult.
In order to solve the above problem, an embodiment of the present application provides a field processing method, which may obtain matching english field names matching the chinese field names from a pre-created field set based on a creation request carrying the chinese field names corresponding to fields to be created, determine at least one candidate english field name from the matching english field names according to a preset screening rule, and create fields to be created based on the at least one candidate english field name. By adopting the mode, on one hand, the creation of the field to be created can be automatically realized, on the other hand, at least one candidate English field name can be determined from the matched English field names according to the preset screening rule, and the field is created based on the at least one candidate English field name, so that the normalization of the created field is enhanced.
Referring to fig. 1, fig. 1 is a flowchart illustrating a field processing method provided in an embodiment of the present application, where the field processing method is applied to a terminal device and can be executed by the terminal device, and as shown in the figure, the field processing method may include:
s101: receiving a creation request aiming at a field to be created, wherein the creation request comprises a Chinese text field name corresponding to the field to be created.
In one embodiment, the terminal device may provide a field creation page, and when a user wants to create a field to be created, the user may input a name of a chinese field corresponding to the field to be created in the field creation page, and submit a creation request for the field to be created, where the creation request includes the name of the chinese field corresponding to the field to be created.
In another embodiment, in the system development process, when the terminal device detects a specified trigger operation of a user, a field creation box can pop up on the current display interface, and the user can input a Chinese field name of a field to be created in the field creation box and submit a creation request for the field to be created. The specified trigger operation may include a touch operation for touching a specified button, for example, clicking a "field creation" button, or long-pressing on a development interface, or clicking a right mouse button on the development interface, and so on. The embodiment of the present application is not particularly limited to this.
S102: and acquiring matched English field names matched with the Chinese field names corresponding to the fields to be created from a pre-created field set, wherein the pre-created field set comprises at least one Chinese field name and English field names corresponding to the Chinese field names in the at least one Chinese field name.
In one embodiment, a plurality of history fields may be collected in advance, and the history fields include Chinese field names and English field names corresponding to the Chinese field names. For example, for an enterprise, all of the created history fields, e.g., database fields, for the entire company may be collected in advance. Further, data cleaning can be carried out on a plurality of collected history fields, a field set is formed by the history fields after the data cleaning, and the field set is stored.
In the process of cleaning the historical fields, the English field names in a preset format, such as single letter plus number format, can be cleaned, and the English field names obviously have no meaning.
It can be seen that the Chinese field names and English field names in the pre-created field set have a corresponding relationship. In one embodiment, when the terminal device receives a creation request for a field to be created, at least one english field name corresponding to a chinese field name, that is, at least one matching english field name matching the chinese field name, may be queried from a field set based on the chinese field name in the creation request.
S103: and determining at least one candidate English field name from the matched English field names according to a preset screening rule.
In one embodiment, the number of matching english field names is n, where n is an integer greater than 0, the terminal device may obtain, according to a preset filtering rule, the historical usage times of each matching english field name in the n matching english field names, and if it is detected that the historical usage times of any matching english field name in the n matching english field names satisfy a preset data amount condition, determine, as a first matching english field name, a matching english field name whose historical usage times is greater than or equal to a first preset time threshold value in the n matching english field names, where the number of the first matching english field names is at least one. Further, the terminal device may sort the at least one first matching english field name according to the historical usage times, and determine at least one candidate english field name from the at least one first matching english field name based on the sort and the historical times of each first matching english field name in the at least one first matching english field name.
Or, in another embodiment, if it is detected that the historical usage times of each matching english field name in the n matching english field names do not satisfy the preset data amount condition, all the n matching english field names are determined as candidate english field names. By adopting the mode, the problem that the error exists in at least one candidate English field name determined from the matched English field name subsequently due to unreliable data when the data volume of the matched English field name matched with the Chinese field name is small can be prevented.
In one embodiment, the preset data amount condition may be that the historical usage number of the matched english field name is greater than or equal to a data amount threshold. The size of the data volume threshold is determined according to the number of developers of the enterprise. Assuming that there are p enterprise developers, the data volume threshold may be set to p/2,. For this situation, when the terminal sets that the historical usage number of any matching english field name is detected to be greater than or equal to p/2, it may be determined that the any matching english field name satisfies the preset data amount condition. The data amount threshold may be adjusted according to a variation of an actual demand, where p/2 is only an example, and may also be other numerical values, which is not specifically limited in this embodiment of the application.
For example, the threshold of the data amount may be 50, and assuming that the number n of matching english field names is 2, the matching english field names include name1 and name2, and the corresponding historical usage times are 51 and 49 respectively. For this situation, when the terminal device detects that the historical usage number corresponding to the matching english field name1 is greater than the number threshold, it may be determined that the matching english field name1 satisfies the preset data size condition.
For another example, if the historical usage frequency of the matching english field name1 is reduced from 51 to 42, and the terminal device detects that the historical usage frequency corresponding to each of the matching english field name1 and the matching english field name2 is smaller than the number threshold value under the condition that other conditions are not changed, it may be determined that neither the matching english field name1 nor the matching english field name2 satisfies the preset number condition. Further, both the matching english field name1 and the matching english field name2 may be determined as candidate english field names.
In one embodiment, after the terminal device determines a matching english field name with a history use number greater than or equal to a first preset number threshold among the n matching english field names as a first matching english field name, the terminal device may sort the first matching english field names according to a descending order of the history use number.
Or, in another embodiment, the level information of the creating user corresponding to each first matching english field name in the at least one first matching english field name may be obtained, and the first matching english field names may be sorted based on the level information of the creating user corresponding to each first matching english field name and the historical usage times.
In a specific implementation, each first matching english field name may correspond to level information of a creating user, and a corresponding weighting coefficient may be configured for each level in advance, for example, the first level (i.e., the highest level) is configured with the largest weighting coefficient k1The second level (i.e., the second highest level) is provided with the second largest weighting coefficient k2By analogy, the nth level (i.e. the next highest level) is configured nextLarge weighting factor kn.. For such a situation, after the terminal device obtains the level information of the creating user corresponding to each first matching english field name, it may determine a weighting coefficient matching with the level information, further perform weighting processing on the historical usage times of each first matching english field name and the weighting coefficient corresponding to each first matching english field name, and sort each first matching english field name according to the descending order of the weighting processing result.
For example, the first matching english field name includes name1 and name2, which correspond to 51 and 49 of historical usage times respectively, the level information of the creating user corresponding to name1 indicates that the level of the creating user is the second level, the level information of the creating user corresponding to name2 indicates that the level of the creating user is the first level, wherein the weighting coefficient configured at the second level is k2The weighting coefficient of the first level configuration is k1. In this case, the historical usage frequency of each first matching english field name and the corresponding weighting coefficient may be weighted, and the weighting results are: 51 x k2And 49 × k1
Further, after the at least one first matching english field name is sorted, a first matching english field name whose historical usage number is greater than or equal to a first preset number threshold may be selected from the at least one first matching english field name. Assuming that m first matching English field names with the historical use times larger than or equal to a first preset time threshold value exist, the historical use times corresponding to the m first matching English field names are as follows in sequence from large to small: m is1、m2、m3…mm. Further, according to the ranking, the history times of the second ranking are divided by the history times of the first ranking, and the result is recorded as: m is2/m1=p12And dividing the history times of the third sorting by the history times of the second sorting into: m is3/m2=p23And repeating the steps until the history times in the mth sorting divided by the history times in the m-1 sorting are recorded as mm/mm-1=pm-1m. If from p above12、p12…pm-1mTo determine any j (j is small)An integer of m or more) satisfies pj-1j>o1,pjj+1<o1Then the first matching english field name corresponding to all history times before j (including j) may be determined as the candidate english field name. The first preset time threshold is a positive integer, and can be set according to the scale of enterprise developers (such as the number of developers), and is smaller than the total number of developers. The o is1The specific value of (b) is determined by the developer based on experimental data, and may be, for example, 0.9.
Illustratively, assume that the preset number threshold is o0The number of the first matching English field names is n, and the historical use times of each first matching English field name are sorted from large to small as follows: m is1、m2、m3…mmIf there is a history of using times more than a first preset time threshold o0M1, m2 and m3 are calculated according to the preset calculation rule, and then: m is2/m1=p12And m3/m2=p23If p is12>o1,p23<o1Then the first matching english field names whose history use times are m1 and m2 may be determined as candidate english field names.
For example, assume o0Is 10, o10.9, if in the field set, the number of matching english field names corresponding to one chinese field name is 200, wherein the matching english field names (i.e. the first matching english field names) with the historical usage times greater than 10 are used 99 times, 98 times, 92 times, and 20 times, respectively. In this case, the usage times are sorted from large to small based on the history as follows: 99 times, 98 times, 92 times and 20 times, and respectively calculating 98/99 to be 0.99; 92/98 ═ 0.94; 20/92 ═ 0.22; since 0.99 and 0.94 are greater than 0.9, and 0.22 is less than 0.9, the first matching english field names corresponding to 99 times, 98 times, and 92 times can be determined as the candidate english field names corresponding to the chinese field name.
In one embodiment, the historical usage times of each matching english field name may be obtained according to a preset filtering rule, and the matching english field name with the historical usage times greater than or equal to a second preset time threshold value may be determined as the candidate english field name from each matching english field name. Wherein the second preset time threshold is much larger than the first preset time threshold. The second preset number threshold and the first preset number threshold are both related to the number of developers in an enterprise, for example, assuming that the number of developers in an enterprise is 200, the first preset number threshold may be, for example, 10, and this threshold is set to screen out a first matching english field name from n matching english field names, so as to reduce the calculation amount for subsequently determining candidate english field names. The second predetermined number threshold may be, for example, 100, which is much larger than the first predetermined number threshold. By adopting the mode, the matched English field names with enough historical use times can be directly determined as candidate English field names in each matched English field name without complex calculation.
S104: and creating the field to be created based on the at least one candidate English field name.
In one embodiment, after the terminal device determines at least one candidate english field name, the terminal device may output the at least one candidate english field name, so that the user can view the at least one candidate english field name conveniently. Further, a target English field name can be determined from at least one candidate English field name based on the selection operation of the user for the candidate English field name, and a subsequent user can create a field to be created based on the target English field name, so that the creation of the field to be created is realized.
In one embodiment, when a candidate english field name is selected as the target english field name, the candidate english field name may be recorded, and the number of times of selection of the candidate english field name is accumulated once every time the candidate english field name is selected. For this situation, after any candidate english field name is determined as the target english field name, the historical selection times of the any candidate english field name may be obtained, and if the historical selection times is greater than or equal to the preset selection time threshold, the any candidate english field name is added to the candidate english field name set corresponding to the chinese field name in the creation request. In the system development process, when a developer creates a field and inputs a Chinese field name of the field to be created, the candidate English field name matched with the Chinese field name can be directly determined from the candidate English field name set corresponding to the Chinese field name without executing the step S102 and the step S103 again, and the processing efficiency is improved.
In one embodiment, each time the step S103 is executed to determine at least one candidate english field name from the matching english field names according to the preset filtering rule, each time the candidate english field name is determined from the matching english field names, the filtering times are recorded, and the filtering times are accumulated once for each execution. For this case, when it is detected that the number of screening times is greater than or equal to the preset screening time threshold (for example, 10 times), the number of the candidate english field names is still more than one, the chinese field name corresponding to the field to be created and the at least one candidate english field name may be sent to the target object, so as to process the at least one candidate english field name with the target object, and return a unique candidate english field name, so as to ensure that the field naming rules are uniform. The target object may be preset by a developer, and this is not specifically limited in this embodiment of the application.
In the embodiment of the application, the terminal device may receive a creation request for a field to be created, where the creation request includes a Chinese text field name corresponding to the field to be created. Further, the terminal acquires matched English field names matched with the Chinese field names from the pre-created field set, determines at least one candidate English field name from the matched English field names according to a preset screening rule, and creates the field to be created based on the at least one candidate English field name. In this way, the creating efficiency of the field can be improved, and the normalization of the created field can be enhanced.
Referring to fig. 2, fig. 2 is a flowchart illustrating another field processing method provided in an embodiment of the present application, where the method is applied to a terminal device and can be executed by the terminal device, and as shown in the figure, the field processing method may include:
s201: receiving a creation request aiming at a field to be created, wherein the creation request comprises a Chinese text field name corresponding to the field to be created. For a specific implementation of step S201, reference may be made to the related description of step S201 in the foregoing embodiment, and details are not described here again.
S202: and if the matched English field name matched with the Chinese field name corresponding to the field to be created is not successfully acquired from the pre-created field set, determining the candidate Chinese field name matched with the Chinese field name from the field set.
S203: and obtaining a candidate English field name corresponding to the candidate Chinese field name from at least one English field name included in the field set.
S204: and outputting the candidate English field name corresponding to the candidate Chinese field name so that the user can create the field to be created based on the candidate English field name corresponding to the candidate Chinese field name.
As a feasible implementation manner, when a user wants to create a field, if the terminal device does not acquire a matching english field name matching a chinese field name corresponding to the field to be created in a pre-created field set, the user needs to define an initial english field name and create the field by himself. For this situation, the terminal device may detect a chinese field name (i.e., a candidate chinese field name) similar to the chinese field name of the field to be created from the field set, obtain a candidate english field name corresponding to the candidate chinese field name from the field set, and display the candidate english field name for reference by the developer, to assist the user in defining the initial english field name, that is, assist the developer in creating the field to be created.
In one embodiment, a field to be created by a user based on a candidate english field name corresponding to a candidate chinese field name may be received, the field to be created may be verified according to the candidate english field name, and a verification result may be output to assist the user in adjusting the field to be created. By adopting the mode, the field to be created can be checked based on the candidate English field name meeting the specification, whether the field to be created by the user meets the specification or not is determined, and the user is assisted to adjust the field to be created.
In this embodiment, the terminal device may receive a creation request for a field to be created, where the creation request includes a chinese field name corresponding to the field to be created, and further, if a matching english field name matching the chinese field name corresponding to the field to be created is not successfully obtained from a pre-created field set, a candidate chinese field name matching the chinese field name is determined from the field set, a candidate english field name corresponding to the candidate chinese field name is obtained from at least one english field name included in the field set, and an english candidate field name corresponding to the candidate chinese field name is output, so that a user can create the field to be created based on the candidate english field name corresponding to the candidate chinese field name. By adopting the mode, when the matched English field name matched with the Chinese field name corresponding to the field to be created is not successfully acquired from the pre-created field set, the user can be assisted to create the field.
The embodiment of the application also provides a field processing device. The apparatus includes a module configured to execute the method described in fig. 1 or fig. 2, and is configured to a terminal device. Specifically, refer to fig. 3, which is a schematic block diagram of a field processing apparatus provided in an embodiment of the present application. The field processing device of the embodiment comprises:
the detection module 30 is configured to receive a creation request for a field to be created, where the creation request includes a name of a Chinese text segment corresponding to the field to be created;
the processing module 31 is configured to obtain, from a pre-created field set, matching english field names that match chinese field names corresponding to the fields to be created, where the pre-created field set includes at least one chinese field name and an english field name corresponding to each chinese field name in the at least one chinese field name;
the processing module 31 is further configured to determine at least one candidate english field name from the matching english field names according to a preset screening rule, and create the field to be created based on the at least one candidate english field name.
In an embodiment, the number of the matching english field names is n, where n is an integer greater than 0, the processing module 31 is specifically configured to obtain the historical usage times of each matching english field name in the n matching english field names according to a preset screening rule, and if it is detected that the historical usage times of any matching english field name in the n matching english field names meets a preset data amount condition, determine, as a first matching english field name, the matching english field name whose historical usage times is greater than or equal to a first preset time threshold in the n matching english field names, where the number of the first matching english field names is at least one; sorting the at least one first matching English field name according to the historical usage times; and determining at least one candidate English field name from the at least one first matching English field name based on the ranking of each first matching English field name in the at least one first matching English field name and the historical times.
In an embodiment, the processing module 31 is further configured to obtain level information of a creating user corresponding to each first matching english field name in the at least one first matching english field name; and sorting the first matching English field names based on the level information of the creating user corresponding to the first matching English field names and the historical using times.
In an embodiment, the processing module 31 is further configured to determine, if it is detected that the historical usage times of each of the n matching english field names do not satisfy the preset data amount condition, all of the n matching english field names are determined as candidate english field names.
In an embodiment, the processing module 31 is further specifically configured to obtain the historical usage times of each of the matching english field names according to a preset filtering rule, and determine, from each of the matching english field names, a matching english field name whose historical usage times is greater than or equal to a second preset time threshold as a candidate english field name.
In one embodiment, the processing module 31 is further configured to determine a candidate chinese field name matching the chinese field name from the field set if the matching english field name is not successfully obtained from the pre-created field set; acquiring a candidate English field name corresponding to the candidate Chinese field name from at least one English field name included in the field set; and outputting the candidate English field name corresponding to the candidate Chinese field name, so that a user can create the field to be created based on the candidate English field name corresponding to the candidate Chinese field name.
In an embodiment, the processing module 31 is further configured to receive a field to be created, created by the user based on the candidate english field name corresponding to the candidate chinese field name, check the field to be created according to the candidate english field name, and output a check result through the detecting module 30.
It should be noted that the functions of the functional modules of the field processing apparatus described in the embodiment of the present application may be specifically implemented according to the method in the embodiment of the method described in fig. 1 or fig. 2, and a specific implementation process thereof may refer to the description related to the embodiment of the method in fig. 1 or fig. 2, which is not described herein again.
Referring to fig. 4, fig. 4 is a schematic block diagram of a terminal device provided in an embodiment of the present application, and as shown in fig. 4, the terminal device includes a processor 401, a memory 402, an input device 403, and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 shows an example of the connection by the bus in the embodiment of the present application. Wherein the memory 402 is adapted to store a computer program comprising program instructions and the processor 401 is adapted to execute the program instructions stored by the memory 402. Wherein the processor 401 is configured to call the program instruction to perform: receiving a creation request for a field to be created through an input device 403, where the creation request includes a Chinese text field name corresponding to the field to be created; acquiring matched English field names matched with the Chinese field names corresponding to the fields to be created from a pre-created field set, wherein the pre-created field set comprises at least one Chinese field name and English field names corresponding to the Chinese field names in the at least one Chinese field name; determining at least one candidate English field name from the matched English field names according to a preset screening rule; and creating the field to be created based on the at least one candidate English field name.
In an embodiment, the number of the matching english field names is n, where n is an integer greater than 0, and the processor 401 is specifically configured to obtain the historical usage times of each matching english field name in the n matching english field names according to a preset screening rule, and if it is detected that the historical usage times of any matching english field name in the n matching english field names meets a preset data amount condition, determine, as a first matching english field name, the matching english field name whose historical usage times is greater than or equal to a first preset time threshold in the n matching english field names, where the number of the first matching english field names is at least one; sorting the at least one first matching English field name according to the historical usage times; and determining at least one candidate English field name from the at least one first matching English field name based on the ranking of each first matching English field name in the at least one first matching English field name and the historical times.
In an embodiment, the processor 401 is further configured to obtain level information of a creating user corresponding to each first matching english field name in the at least one first matching english field name; and sorting the first matching English field names based on the level information of the creating user corresponding to the first matching English field names and the historical using times.
In an embodiment, the processor 401 is further configured to determine, if it is detected that the historical usage times of each of the n matching english field names do not satisfy the preset data amount condition, all of the n matching english field names as candidate english field names.
In an embodiment, the processor 401 is further specifically configured to obtain the historical usage times of each of the matching english field names according to a preset filtering rule, and determine, from each of the matching english field names, a matching english field name whose historical usage time is greater than or equal to a second preset time threshold as a candidate english field name.
In one embodiment, the processor 401 is further configured to determine a candidate chinese field name matching the chinese field name from the field set if the matching english field name is not successfully obtained from the pre-created field set; acquiring a candidate English field name corresponding to the candidate Chinese field name from at least one English field name included in the field set; outputting the candidate English field name corresponding to the candidate Chinese field name through an output device 404, so that a user can create the field to be created based on the candidate English field name corresponding to the candidate Chinese field name.
In an embodiment, the processor 401 is further configured to receive a field to be created, created by the user based on the candidate english field name corresponding to the candidate chinese field name, check the field to be created according to the candidate english field name, and output a check result through the output device 404.
It should be understood that, in the embodiment of the present Application, the Processor 401 may be a Central Processing Unit (CPU), and the Processor 401 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. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 403 may include a touch pad (for detecting an input creation request, etc.), a fingerprint sensor (for collecting fingerprint information of a user and direction information of a fingerprint), a microphone, etc., and the output device 404 may include a display (LCD, etc.), a speaker, etc.
The memory 402 may include both read-only memory and random access memory, and provides instructions and data to the processor 401. A portion of the memory 402 may also include non-volatile random access memory. For example, the memory 402 may also store device type information.
In a specific implementation, the processor 401, the memory 402, the input device 403, and the output device 404 described in this embodiment of the present application may execute the implementation described in the method embodiment described in fig. 1 or fig. 2 provided in this embodiment of the present application, and may also execute the implementation of the field processing apparatus described in this embodiment of the present application, which is not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program comprising program instructions that when executed by a processor implement: receiving a creation request aiming at a field to be created, wherein the creation request comprises a Chinese character field name corresponding to the field to be created; acquiring matched English field names matched with the Chinese field names corresponding to the fields to be created from a pre-created field set, wherein the pre-created field set comprises at least one Chinese field name and English field names corresponding to the Chinese field names in the at least one Chinese field name; determining at least one candidate English field name from the matched English field names according to a preset screening rule; and creating the field to be created based on the at least one candidate English field name.
The computer-readable storage medium may be an internal storage unit of the terminal device according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal device. The computer readable storage medium may also be an external storage device of the terminal 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 the like provided on the terminal device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of field processing, the method comprising:
receiving a creation request aiming at a field to be created, wherein the creation request comprises a Chinese character field name corresponding to the field to be created;
acquiring matched English field names matched with the Chinese field names corresponding to the fields to be created from a pre-created field set, wherein the pre-created field set comprises at least one Chinese field name and English field names corresponding to the Chinese field names in the at least one Chinese field name;
determining at least one candidate English field name from the matched English field names according to a preset screening rule;
and creating the field to be created based on the at least one candidate English field name.
2. The method according to claim 2, wherein the number of the matching english field names is n, where n is an integer greater than 0, and the determining at least one candidate english field name from the matching english field names according to a preset filtering rule comprises:
acquiring historical use times of each matched English field name in the n matched English field names according to a preset screening rule;
if the fact that the historical use times of any one of the n matched English field names meets a preset data volume condition is detected, determining the matched English field name of which the historical use times is larger than or equal to a first preset time threshold value in the n matched English field names as a first matched English field name, wherein the number of the first matched English field names is at least one;
sorting the at least one first matching English field name according to the historical usage times;
and determining at least one candidate English field name from the at least one first matching English field name based on the ranking of each first matching English field name in the at least one first matching English field name and the historical times.
3. The method of claim 2, wherein said sorting said at least one first matching english field name according to said historical usage number comprises:
acquiring grade information of a creating user corresponding to each first matching English field name in the at least one first matching English field name;
and sorting the first matching English field names based on the level information of the creating user corresponding to the first matching English field names and the historical using times.
4. The method according to claim 2, wherein after obtaining the historical usage times of each of the n matching english field names according to a preset filtering rule, the method further comprises:
and if the historical use times of each matching English field name in the n matching English field names are not detected to meet the preset data volume condition, determining the n matching English field names as candidate English field names.
5. The method according to claim 1, wherein the determining at least one candidate english field name from the matching english field names according to a preset filtering rule comprises:
acquiring the historical use times of each matched English field name according to a preset screening rule;
and determining the matched English field names with the historical use times larger than or equal to a second preset time threshold value from the matched English field names as candidate English field names.
6. The method of claim 1, further comprising:
if the matched English field name is not successfully acquired from the pre-created field set, determining a candidate Chinese field name matched with the Chinese field name from the field set;
acquiring a candidate English field name corresponding to the candidate Chinese field name from at least one English field name included in the field set;
and outputting the candidate English field name corresponding to the candidate Chinese field name, so that a user can create the field to be created based on the candidate English field name corresponding to the candidate Chinese field name.
7. The method of claim 6, further comprising:
receiving a field to be created by the user based on the candidate English field name corresponding to the candidate Chinese field name;
and checking the field to be created according to the candidate English field name, and outputting a checking result.
8. A field processing apparatus, the apparatus comprising:
the device comprises a detection module, a processing module and a display module, wherein the detection module is used for receiving a creation request aiming at a field to be created, and the creation request comprises a Chinese character field name corresponding to the field to be created;
the processing module is used for acquiring matched English field names matched with the Chinese field names from a pre-created field set, wherein the pre-created field set comprises at least one Chinese field name and English field names corresponding to the Chinese field names in the at least one Chinese field name;
the processing module is further configured to determine at least one candidate english field name from the matching english field names according to a preset screening rule, and create the field to be created based on the at least one candidate english field name.
9. A terminal device, characterized in that it comprises a processor and a memory, said processor and said memory being interconnected, wherein said memory is adapted to store a computer program comprising program instructions, said processor being configured to invoke said program instructions to perform the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1-7.
CN201910971539.4A 2019-10-12 2019-10-12 Field processing method and related equipment Pending CN110852041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910971539.4A CN110852041A (en) 2019-10-12 2019-10-12 Field processing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910971539.4A CN110852041A (en) 2019-10-12 2019-10-12 Field processing method and related equipment

Publications (1)

Publication Number Publication Date
CN110852041A true CN110852041A (en) 2020-02-28

Family

ID=69596318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910971539.4A Pending CN110852041A (en) 2019-10-12 2019-10-12 Field processing method and related equipment

Country Status (1)

Country Link
CN (1) CN110852041A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736774A (en) * 2020-06-17 2020-10-02 北京三快在线科技有限公司 Redundant data processing method and device, server and storage medium
CN113742450A (en) * 2021-08-30 2021-12-03 中信百信银行股份有限公司 User data grade label falling method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101676898A (en) * 2008-09-17 2010-03-24 中国科学院自动化研究所 Method and device for translating Chinese organization name into English with the aid of network knowledge
CN101995958A (en) * 2009-08-28 2011-03-30 王雅弟 Dynamic coding input method
CN103092838A (en) * 2011-10-28 2013-05-08 腾讯科技(深圳)有限公司 Method and device for obtaining English words
CN107783950A (en) * 2017-04-11 2018-03-09 平安医疗健康管理股份有限公司 Package insert processing method and processing device
CN108629046A (en) * 2018-05-14 2018-10-09 平安科技(深圳)有限公司 A kind of fields match method and terminal device
CN109032375A (en) * 2018-06-29 2018-12-18 北京百度网讯科技有限公司 Candidate text sort method, device, equipment and storage medium
CN109710952A (en) * 2018-12-27 2019-05-03 北京百度网讯科技有限公司 Translation history search method, device, equipment and medium based on artificial intelligence
CN109902090A (en) * 2019-02-19 2019-06-18 北京明略软件系统有限公司 Field name acquisition methods and device
CN110276060A (en) * 2019-06-24 2019-09-24 北京明略软件系统有限公司 The method and device of data processing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101676898A (en) * 2008-09-17 2010-03-24 中国科学院自动化研究所 Method and device for translating Chinese organization name into English with the aid of network knowledge
CN101995958A (en) * 2009-08-28 2011-03-30 王雅弟 Dynamic coding input method
CN103092838A (en) * 2011-10-28 2013-05-08 腾讯科技(深圳)有限公司 Method and device for obtaining English words
CN107783950A (en) * 2017-04-11 2018-03-09 平安医疗健康管理股份有限公司 Package insert processing method and processing device
CN108629046A (en) * 2018-05-14 2018-10-09 平安科技(深圳)有限公司 A kind of fields match method and terminal device
CN109032375A (en) * 2018-06-29 2018-12-18 北京百度网讯科技有限公司 Candidate text sort method, device, equipment and storage medium
CN109710952A (en) * 2018-12-27 2019-05-03 北京百度网讯科技有限公司 Translation history search method, device, equipment and medium based on artificial intelligence
CN109902090A (en) * 2019-02-19 2019-06-18 北京明略软件系统有限公司 Field name acquisition methods and device
CN110276060A (en) * 2019-06-24 2019-09-24 北京明略软件系统有限公司 The method and device of data processing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736774A (en) * 2020-06-17 2020-10-02 北京三快在线科技有限公司 Redundant data processing method and device, server and storage medium
CN111736774B (en) * 2020-06-17 2024-02-23 北京三快在线科技有限公司 Redundant data processing method and device, server and storage medium
CN113742450A (en) * 2021-08-30 2021-12-03 中信百信银行股份有限公司 User data grade label falling method and device, electronic equipment and storage medium
CN113742450B (en) * 2021-08-30 2023-05-30 中信百信银行股份有限公司 Method, device, electronic equipment and storage medium for user data grade falling label

Similar Documents

Publication Publication Date Title
US10282420B2 (en) Evaluation element recognition method, evaluation element recognition apparatus, and evaluation element recognition system
CN109388675A (en) Data analysing method, device, computer equipment and storage medium
CN108536595B (en) Intelligent matching method and device for test cases, computer equipment and storage medium
CN108959247B (en) Data processing method, server and computer readable medium
WO2019028990A1 (en) Code element naming method, device, electronic equipment and medium
CN112199588A (en) Public opinion text screening method and device
US11727701B2 (en) Techniques to determine document recognition errors
CN111767713A (en) Keyword extraction method and device, electronic equipment and storage medium
CN110852041A (en) Field processing method and related equipment
CN110362295A (en) Code generating method, device, computer installation and storage medium
CN112612887A (en) Log processing method, device, equipment and storage medium
CN110263121B (en) Table data processing method, apparatus, electronic apparatus and computer readable storage medium
CN113360300B (en) Interface call link generation method, device, equipment and readable storage medium
CN115358914B (en) Data processing method and device for visual detection, computer equipment and medium
CN108304310B (en) Log analysis method and computing device
CN109033161B (en) Data processing method, server and computer readable medium
CN110634018A (en) Feature depiction method, recognition method and related device for lost user
CN116168403A (en) Medical data classification model training method, classification method, device and related medium
CN112882707B (en) Rendering method and device, storage medium and electronic equipment
CN109284354B (en) Script searching method and device, computer equipment and storage medium
CN113946566A (en) Web system fingerprint database construction method and device and electronic equipment
CN111651555A (en) Service processing method, system and computer readable storage medium
JP6008886B2 (en) Information processing apparatus and method
CN110866106A (en) Text recommendation method and related equipment
CN117112734B (en) Semantic-based intellectual property text representation and classification method and terminal equipment

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200228

WD01 Invention patent application deemed withdrawn after publication