Data intelligent screening method, device, equipment and medium
By sorting and matching the target data items in the data information, the problem of low data information screening efficiency in the prior art is solved, and efficient data information screening is achieved.
Patent Information
- Application Number
- CN202110734633.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-06-30
AI Technical Summary
The prior art is relatively low in the process of data information screening, and the corresponding data information cannot be screened out in a certain proportion, resulting in low screening efficiency.
By receiving data information, the target data items matching the preset character type are filtered out, and their data values are sorted, and the filtering conditions entered by the user are matched with the sorting results to perform data filtering.
This greatly improves the efficiency of data information screening and shortens the processing time between user input filtering conditions and obtaining target data.
Smart Images

Figure CN113449160B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data query technology, and belongs to an application scenario of intelligent screening of structured data information in a smart city, and in particular to a data intelligent screening method, device, equipment and medium. Background Art
[0002] With the development of information technology, data information recorded in paper documents has gradually been replaced by electronic records. Based on the electronic record form, it is more convenient to process the corresponding data information and obtain the corresponding processing results. In the process of processing data information, it is usually necessary to screen the data information and perform specific processing such as statistics and analysis on the screened data information. In the process of screening data information, traditional technical methods usually judge whether each data information meets the corresponding conditions in turn and screen out the data information that meets the conditions. However, this technical method has a low degree of intelligence and cannot be applied in some application scenarios. For example, it is impossible to screen out the corresponding data information from the data information according to a certain proportion, resulting in low efficiency in screening data information. Therefore, there is a problem of low efficiency in screening data information in the existing technical methods. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for intelligent data screening, aiming to solve the problem of low screening efficiency in screening data information in the prior art methods.
[0004] In a first aspect, an embodiment of the present invention provides a method for intelligent data screening, which includes:
[0005] If the stored data information is received, a data item matching a preset character type is selected from the data information as a target data item;
[0006] Sorting the data values contained in each of the target data items according to a preset sorting rule to obtain a data value sorting result for each of the target data items;
[0007] If a filter condition input by a user is received, determining whether the filter condition matches a target data item in the data information;
[0008] If the screening condition matches the target data item in the data information, the data information is screened according to the screening condition and the data value sorting result of the matched target data item to obtain the corresponding target data information.
[0009] In a second aspect, an embodiment of the present invention provides a data intelligent screening device, which includes:
[0010] a target data item acquisition unit, for, upon receiving the stored data information, filtering out data items matching a preset character type from the data information as target data items;
[0011] A data value sorting result obtaining unit, used to sort the data values contained in each of the target data items according to a preset sorting rule, to obtain a data value sorting result of each of the target data items;
[0012] A screening condition determination unit, configured to determine whether the screening condition matches the target data item in the data information upon receiving the screening condition input by the user;
[0013] The target data information acquisition unit is used to filter the data information according to the filtering condition and the data value sorting result of the matching target data item to obtain the corresponding target data information if the filtering condition matches the target data item in the data information.
[0014] 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 in the memory and executable on the processor, wherein the processor implements the data intelligent screening method described in the first aspect when executing the computer program.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the data intelligent screening method described in the first aspect above.
[0016] The embodiments of the present invention provide a method, device, equipment and medium for intelligent data screening. Target data items matching the preset character type are screened out from the stored data information, and the data values contained in each target data item are sorted respectively to obtain the data value sorting result of each target data item, and it is determined whether the screening condition input by the user matches the target data item. If the screening condition matches the target data item, the data information is screened according to the screening condition and the data value sorting result of the matching target data item to obtain the corresponding target data information. Through the above method, the data values of the target data items can be sorted before the data information is screened, and the data information can be screened based on the data value sorting result of the target data item and the screening condition input by the user, thereby shortening the processing time between the user inputting the screening condition and obtaining the target data, and greatly improving the efficiency of screening the data information. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0018] Figure 1 A schematic diagram of a flow chart of a data intelligent screening method provided by an embodiment of the present invention;
[0019] Figure 2 A schematic diagram of a sub-process of a data intelligent screening method provided by an embodiment of the present invention;
[0020] Figure 3 A schematic diagram of another sub-process of the data intelligent screening method provided by an embodiment of the present invention;
[0021] Figure 4 A schematic diagram of another sub-process of the data intelligent screening method provided by an embodiment of the present invention;
[0022] Figure 5 A schematic diagram of another sub-process of the data intelligent screening method provided by an embodiment of the present invention;
[0023] Figure 6 A schematic diagram of another sub-process of the data intelligent screening method provided by an embodiment of the present invention;
[0024] Figure 7 A schematic diagram of another sub-process of the data intelligent screening method provided by an embodiment of the present invention;
[0025] Figure 8 A schematic block diagram of a data intelligent screening device provided by an embodiment of the present invention;
[0026] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0029] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0030] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0031] See also Figure 1 , Figure 1 It is a flowchart of the data intelligent screening method provided by the embodiment of the present invention; the data intelligent screening method is applied to the user terminal or the management server, and the data intelligent screening method is executed by the application software installed in the user terminal or the management server. The user terminal is a terminal device that can receive the screening conditions input by the user to perform intelligent screening on the data information, such as a desktop computer, a laptop computer, a tablet computer or a mobile phone; the management server is a server end that can receive the screening conditions sent by the user through the terminal device to perform intelligent screening on the data information, such as a server built by an enterprise or a government department. Figure 1 As shown, the method includes steps S110 to S140. Figure 1 As shown, the method includes steps S110 to S140.
[0032] S110: If the stored data information is received, a data item matching a preset character type is selected from the data information as a target data item.
[0033] If the stored data information is received, the data items matching the preset character type are screened out from the data information as target data items. The user terminal or the management server may receive the data information input by the user, or the data information sent by other terminals, and store the received data information. The stored data information may be structured data information, which may be composed of multiple data items, and the structured data information may contain at least one data item, each of which may contain a data value corresponding to each data item. For example, the stored data information may be a data table, an image pixel value, a numerical matrix, etc. After the data information is stored, the target data items matching the preset character type may be screened out from the data items contained in the data information. The target data items are data items in the data information that can be sorted and screened.
[0034] In one embodiment, if Figure 2 As shown, step S110 includes sub-steps S111 and S112.
[0035] S111. Determine the character type corresponding to each data item according to the data value of each data item in the data information.
[0036] The character type of each data item can be determined based on the data value corresponding to each data item. Specifically, multiple data values can be randomly obtained from the data values contained in each data item, and the character types of the obtained data values can be determined one by one. The character types of multiple data values contained in a data item can be combined to determine the character type of the data item.
[0037] For example, multiple data values randomly obtained from the data values contained in the data item "pixel value" are "363636", "607B8B", and "FFEFD5". The character type of the first data value is numbers, the character type of the second data value is numbers and letters, and the character type of the third data value is numbers and letters. By combining the character types of the above three data values, it is found that the character type of the data item "pixel value" is numbers and letters.
[0038] S112: Determine whether the character type of each data item matches the preset character type, and acquire the data item matching the preset character type as the target data item according to the determination result.
[0039] It can be determined whether the character type of each data item matches a preset character type, and based on the determination result, the data item matching the preset character type is obtained as the target data item. Specifically, the preset character type can be numbers, letters, or numbers and letters.
[0040] For example, if the preset character type is a number, it is possible to determine in turn whether the character type of each data item is a number type, and filter out data items whose character type is a number type from the data items included in the data information as target data items.
[0041] S120. Sort the data values included in each of the target data items according to a preset sorting rule to obtain a data value sorting result for each of the target data items.
[0042] According to the preset sorting rules, the data values contained in each of the target data items are sorted respectively to obtain the data value sorting results of each of the target data items. Each target data item corresponds to multiple data values, and the number of data values contained in each target data item is equal to the number of data in the data information. Then, the data values of the screened target data items can be sorted to obtain the data value sorting results corresponding to each target data item. Among them, the sorting rules include the frequency calculation formula, the sorting algorithm and the anchor ratio.
[0043] In one embodiment, if Figure 3 As shown, step S120 includes sub-steps S121, S122, S123 and S124.
[0044] S121. Calculate the number of data included in the data information according to the number calculation formula to obtain the corresponding number of cycles.
[0045] The sorting rule includes a times calculation formula, and the corresponding number of cycles can be determined based on the times calculation formula and the number of data contained in the data information. The number contained in the data information is equal to the number of data values contained in each target data item. Specifically, the times calculation formula can be expressed by formula (1):
[0046] S = [log2(r)] + 1 (1);
[0047] Wherein, S is the calculated number of cycles, r is the number of data contained in the data information, and [a] indicates rounding the value of a.
[0048] For example, if the number of data contained in a certain data information is 13, then r=13, and the number of cycles S=4 can be correspondingly calculated according to the above number calculation formula.
[0049] S122. Perform multiple sorting processes corresponding to the number of cycles on the data values included in each of the target data items according to the sorting algorithm to obtain data value sorting information of each of the target data items.
[0050] The data value contained in each target data item is obtained, and the data value contained in each target data item is sorted multiple times by a sorting algorithm according to the number of cycles. The number of cycles is the number of times the sorting algorithm is executed in the process of sorting the data value contained in a target data item. After multiple sorting processes, the corresponding data value sorting information can be obtained. After the data values contained in each target data item are sorted respectively, the data value sorting information corresponding to each target data item can be obtained. The sorting algorithm can be a bidirectional bubble algorithm.
[0051] In one embodiment, if Figure 4 As shown, step S122 includes sub-steps S1221, S1222, S1223, S1224, S1225 and S1226. S1221-S1226 are the specific process of sorting the data values contained in a target data item using the bidirectional bubble algorithm.
[0052] S1221, arrange the data values contained in the target data item as the initial queue; S1222, compare the sizes of two adjacent data values in the initial queue in turn and place the larger data value at the end of the queue according to each comparison result to obtain a forward sorting queue; S1223, compare the sizes of two adjacent data values in the forward sorting queue in turn and place the smaller data value at the head of the queue according to each comparison result to obtain a reverse sorting queue; S1224, determine whether the number of executions is not less than the number of cycles; S1225, if the number of executions is less than the number of cycles, use the reverse sorting queue as the initial queue and return to execute the step of comparing the sizes of two adjacent data values in the initial queue in turn and placing the larger data value at the end of the queue according to each comparison result to obtain a forward sorting queue, that is, return to execute step S1222; S1226, if the number of executions is not less than the number of cycles, use the reverse sorting queue currently obtained as the data value sorting information of the target data item. Compared with the ordinary bubble sorting algorithm, the bidirectional bubble algorithm used in this embodiment can greatly improve the efficiency of sorting processing.
[0053] S123. Obtain corresponding anchor value information from the data value sorting information of each target data item according to the anchor ratio.
[0054] The sorting rules are also configured with an anchor ratio, and the corresponding anchor value information can be obtained from each piece of data value sorting information according to the anchor ratio. Then, the data value sorting information of each target data item can correspond to an anchor value information, and the anchor value information can be used to reflect the macroscopic sorting of the data value sorting information. Specifically, one anchor value information can contain multiple anchor values, and each anchor value is a data value corresponding to an anchor position of the data value sorting information. The corresponding anchor point position in each piece of data sorting information can be determined according to the anchor ratio, and the corresponding multiple anchor values in each piece of data sorting information can be obtained based on the anchor position to obtain the anchor value information.
[0055] For example, if the anchor point ratio is 1 / 5, the data values contained in a data value sorting information can be divided into five equal parts to obtain five anchor intervals. The position corresponding to two adjacent data values in two adjacent anchor intervals is an anchor position. Then, after dividing into five equal parts, 4 anchor positions can be determined. The two data values before and after the anchor position in the data value sorting information are obtained and averaged. The calculated average value is used as the anchor value corresponding to each anchor position. Then, the anchor value information of the data value sorting information contains 4 anchor values.
[0056] S124. Add the anchor value information of each target data item to the corresponding data value sorting information to obtain the data value sorting result of each target data item.
[0057] According to the anchor position of each anchor value in a piece of anchor value information, each anchor value is added to the data value sorting result corresponding to the anchor value information, and the data value sorting information with the added anchor value information is used as the corresponding data value sorting result. Then, each piece of data value sorting information can obtain a corresponding data value sorting result after adding the anchor value information.
[0058] S130: If a filtering condition input by the user is received, determine whether the filtering condition matches the target data item in the data information.
[0059] If the filtering condition input by the user is received, it is determined whether the filtering condition matches the target data item in the data information. The user can enter the filtering condition, which includes a filtering item and corresponding filtering information. The filtering item is the specific item information to be filtered in the data information. It is then determined whether the filtering item in the filtering condition matches any target data item. If the filtering item matches any target data item, it is determined that the filtering condition matches the target data item; otherwise, it is determined that the filtering condition does not match the target data item.
[0060] If the screening condition does not match the target data item, the screening condition is used to determine whether each piece of data in the data information meets the screening condition in turn, so as to screen out the data that meets the screening condition from the data information as the target data information and provide feedback. If the screening condition does not match the target data item, the target data information can only be screened out from the data information using a common screening method, that is, to determine whether the data value contained in each piece of data meets the screening condition in turn, and to obtain all the data that meets the screening condition as the corresponding target data information according to the judgment result of each piece of data.
[0061] S140: If the screening condition matches the target data item in the data information, the data information is screened according to the screening condition and the data value sorting result of the matching target data item to obtain corresponding target data information.
[0062] If the screening condition matches the target data item in the data information, the data information is screened according to the screening condition and the data value sorting result of the matching target data item, and the corresponding target data information is obtained and fed back. The process of sorting the data values in the data information can be performed at any time before the data information is screened. Then, the data screening is performed on the basis of the data value sorting result obtained after the data value of the target data item is sorted, which can greatly improve the efficiency of the data information screening process. The above method can greatly shorten the interval time between the user inputting the screening condition and obtaining the target data information, that is, greatly shorten the waiting time for the user to obtain the target data information. If there is only one target data item that matches the screening condition, the data value sorting result of the target data item can be screened according to the screening condition to obtain the target data value in the data value sorting result, and the corresponding data can be obtained from the data information according to the target data value as the target data information. After obtaining the target data information, corresponding feedback can be given, and the user can obtain the target data information corresponding to the screening condition.
[0063] In one embodiment, if Figure 5 As shown, step S140 includes sub-steps S141, S142, S143 and S144.
[0064] S141. Determine whether the screening information of the screening condition is a screening threshold.
[0065] The filtering conditions include filtering information. You can first determine whether the filtering information is a filtering threshold. If the filtering information is a filtering threshold, it indicates that the threshold filtering method needs to be used to filter the data value sorting results of the target data item; if the filtering information is not a threshold filtering method, it indicates that the proportion filtering method needs to be used to filter the data value sorting results of the target data item.
[0066] S142: If the filtering information of the filtering condition is a filtering threshold, data value filtering is performed on the data value sorting results of the matching target data items according to the filtering threshold to obtain corresponding target data values.
[0067] If the filtering information is a filtering threshold, the data value sorting result of the target data item can be filtered according to the filtering threshold, and the filtered data value is the target data value corresponding to the data value sorting result. The filtering threshold includes a corresponding symbol, and the symbol indicates the filtering direction corresponding to the data value filtering. The symbol can be ">", "<", "≥", "≤", etc.
[0068] For example, a certain screening threshold value may be expressed as ">45", where the symbol is ">", and the screening direction of the screening threshold value is "greater than", which means obtaining data values greater than 45.
[0069] In one embodiment, if Figure 6 As shown, step S142 includes sub-steps S1421, S1422 and S1423.
[0070] S1421. Determine the anchor interval corresponding to the screening threshold according to the anchor value information of the data value sorting result.
[0071] The screening threshold and the anchor value contained in the anchor value information can be compared in turn to determine the anchor interval where the screening threshold is located. Specifically, the screening threshold and the anchor value contained in the anchor value information are compared in size in turn, and two adjacent anchor values correspond to an anchor interval. Then, according to the size comparison result, the numerical interval corresponding to the two anchor values can be determined as an anchor interval corresponding to the screening threshold. If the screening threshold is equal to a certain anchor value during the size comparison process, the anchor position of the anchor value is directly determined as the screening position. Since the number of anchor values contained in the anchor value information is much smaller than the total amount of data in the data information, the anchor interval corresponding to the screening threshold can be quickly determined based on the anchor value information.
[0072] S1422. Determine the filtering position of the filtering threshold in the data value sorting result for the data values included in the anchor interval.
[0073] The screening threshold and the data values included in the anchor interval may be compared in sequence to determine the screening position of the screening threshold in the data value sorting result. Specifically, the screening threshold and the data values included in the anchor interval may be compared in sequence to finally determine the screening position of the screening threshold in the data value sorting result.
[0074] S1423. Obtain a corresponding data value from the data value sorting result as the target data value according to the screening position and the sign of the screening threshold.
[0075] According to the symbols of the filter position and the filter threshold, the corresponding data value is obtained from the data value sorting result to obtain the corresponding target data value. For example, if the symbol of the filter threshold is ">", the corresponding data value in the data value sorting result is obtained from the filter position sequence downward as the target data value, and the obtained data value does not include the data value equal to the filter threshold; if the symbol of the filter threshold is "≤", the corresponding data value in the data value sorting result is obtained from the filter position sequence upward as the target data value, and the obtained data value includes the data value equal to the filter threshold.
[0076] S143: If the screening information of the screening condition is not threshold screening, proportional interception is performed from the data value sorting results of the matching target data items according to the screening ratio contained in the screening information to obtain the corresponding target data value.
[0077] If the filtering information is not a filtering threshold, the data value sorting result of the target data item can be proportionally intercepted according to the filtering ratio contained in the filtering information, and the intercepted data value is the target data value corresponding to the data value sorting result. The filtering information includes the filtering ratio and the filtering direction. The filtering ratio is the specific ratio value of the data value obtained from the data value sorting result, and the filtering direction is the direction information corresponding to the data value filtering. The filtering direction can be represented by "+" or "-".
[0078] For example, the filtering information is "+0.3", which means that the data value with a high ranking and a filtering ratio of 0.3 is obtained as the corresponding target data value.
[0079] In one embodiment, if Figure 7 As shown, step S143 includes sub-steps S1431 and S1432.
[0080] S1431. Determine a corresponding cutoff position according to the screening ratio and the number of data values included in the data value sorting result; S1432. Obtain a corresponding data value from the data value sorting result as the target data value according to the cutoff position and the screening direction of the screening condition.
[0081] The number of data values required to be acquired can be calculated based on the screening ratio and the number of data values contained in the data value sorting result, and the interception position corresponding to the screening ratio can be determined based on the number of data values. Based on the determined interception position and screening direction, multiple data values corresponding to the acquisition number are intercepted from the interception position in the data value sorting result according to the screening direction as the target data values.
[0082] S144. Acquire data corresponding to the target data value from the data information as the target data information.
[0083] Since the target data value obtained by filtering from the data value sorting results is only the data value corresponding to one target data item, that is, the target data value does not include all data values corresponding to one data item, the data corresponding to the target data value can be obtained from the data information as the target data information based on the data corresponding to the target data value, and the target data then includes all data values of the data corresponding to the target data value.
[0084] The technical method in this application can be applied to scenarios such as smart government affairs / smart urban management / smart communities / smart security / smart logistics / smart medical care / smart education / smart environmental protection / smart transportation that involve intelligent screening of structured data information, thereby promoting the construction of smart cities.
[0085] In the data intelligent screening method provided by the embodiment of the present invention, the target data items matching the preset character type are screened out from the stored data information, and the data values contained in each target data item are sorted respectively to obtain the data value sorting result of each target data item, and it is determined whether the screening condition input by the user matches the target data item. If the screening condition matches the target data item, the data information is screened according to the screening condition and the data value sorting result of the matching target data item to obtain the corresponding target data information. Through the above method, the data values of the target data items can be sorted before the data information is screened, and the data information can be screened based on the data value sorting result of the target data item and the screening condition input by the user, thereby shortening the processing time between the user inputting the screening condition and obtaining the target data, and greatly improving the efficiency of screening the data information.
[0086] The embodiment of the present invention further provides a data intelligent screening device, which is used to execute any embodiment of the aforementioned data intelligent screening method. Figure 8 , Figure 8 A schematic block diagram of a data intelligent screening device provided in an embodiment of the present invention.
[0087] like Figure 8 As shown, the data intelligent screening device 100 includes a target data item acquisition unit 110, a data value sorting result acquisition unit 120, a screening condition judgment unit 130 and a target data information acquisition unit 140.
[0088] The target data item acquisition unit 110 is used to filter out data items matching a preset character type from the data information as target data items upon receiving the stored data information.
[0089] In one embodiment, the target data item acquisition unit 110 includes sub-units: a character type determination unit, used to determine the character type corresponding to each data item according to the data value of each data item in the data information; a character type judgment unit, used to judge whether the character type of each data item matches the preset character type, so as to obtain the data item matching the preset character type as the target data item according to the judgment result.
[0090] The data value sorting result obtaining unit 120 is used to sort the data values included in each of the target data items according to a preset sorting rule to obtain a data value sorting result of each of the target data items.
[0091] In one embodiment, the data value sorting result acquisition unit 120 includes sub-units: a loop number calculation unit, which is used to calculate the number of data contained in the data information according to the number calculation formula to obtain the corresponding loop number; a data value sorting information acquisition unit, which is used to perform multiple sorting processes corresponding to the loop number on the data values contained in each of the target data items according to the sorting algorithm to obtain data value sorting information of each target data item; an anchor value information acquisition unit, which is used to obtain corresponding anchor value information from the data value sorting information of each target data item according to the anchor ratio; and an anchor value information adding unit, which is used to add the anchor value information of each target data item to the corresponding data value sorting information to obtain the data value sorting result of each target data item.
[0092] In one embodiment, the data value sorting information acquisition unit includes subunits: an initial queue acquisition unit, which is used to arrange the data values contained in the target data item as an initial queue; a forward sorting processing unit, which is used to compare the sizes of two adjacent data values in the initial queue in turn and place the larger data value at the end of the queue according to each comparison result to obtain a forward sorting queue; a reverse sorting processing unit, which is used to compare the sizes of two adjacent data values in the forward sorting queue in turn and place the smaller data value at the head of the queue according to each comparison result to obtain a reverse sorting queue; an execution number judgment unit, which is used to judge whether the execution number is not less than the number of loops; a return execution unit, which is used to use the reverse sorting queue as the initial queue and return to execute the step of comparing the sizes of two adjacent data values in the initial queue in turn and placing the larger data value at the end of the queue according to each comparison result to obtain a forward sorting queue if the execution number is less than the number of loops; a sorting information acquisition unit, which is used to use the currently obtained reverse sorting queue as the data value sorting information of the target data item if the execution number is not less than the number of loops.
[0093] The screening condition determination unit 130 is configured to determine, upon receiving a screening condition input by a user, whether the screening condition matches a target data item in the data information.
[0094] The target data information acquisition unit 140 is used to filter the data information according to the filtering condition and the data value sorting result of the matching target data item to obtain the corresponding target data information if the filtering condition matches the target data item in the data information.
[0095] In one embodiment, the target data information acquisition unit 140 includes subunits: a screening information judgment unit, which is used to judge whether the screening information of the screening condition is a screening threshold; a data value screening unit, which is used to perform data value screening on the data value sorting results of the matching target data items according to the screening threshold if the screening information of the screening condition is a screening threshold, so as to obtain the corresponding target data value; a data value interception unit, which is used to perform proportional interception from the data value sorting results of the matching target data items according to the screening ratio contained in the screening information, so as to obtain the corresponding target data value if the screening information of the screening condition is not a threshold screening; and a data acquisition unit, which is used to obtain data corresponding to the target data value from the data information as the target data information.
[0096] In one embodiment, the data value screening unit includes subunits: an anchor point interval determination unit, which is used to determine the anchor interval corresponding to the screening threshold according to the anchor value information of the data value sorting result; a screening position determination unit, which is used to determine the screening position of the screening threshold in the data value sorting result for the data value included in the anchor interval; and a screening processing unit, which is used to obtain the corresponding data value from the data value sorting result as the target data value according to the screening position and the sign of the screening threshold.
[0097] In one embodiment, the data value interception unit includes sub-units: an interception position determination unit, which is used to determine the corresponding interception position according to the screening ratio and the number of data values contained in the data value sorting result; and an interception processing unit, which is used to obtain the corresponding data value from the data value sorting result as the target data value according to the interception position and the screening direction of the screening condition.
[0098] The data intelligent screening device provided in the embodiment of the present invention applies the above-mentioned data intelligent screening method to screen out target data items that match the preset character type from the stored data information, and sort the data values contained in each target data item respectively to obtain the data value sorting result of each target data item, and judge whether the screening condition input by the user matches the target data item. If the screening condition matches the target data item, the data information is screened according to the screening condition and the data value sorting result of the matching target data item to obtain the corresponding target data information. Through the above-mentioned method, the data values of the target data items can be sorted before the data information is screened, and the data information can be screened based on the data value sorting result of the target data item and the screening condition input by the user, thereby shortening the processing time between the user inputting the screening condition and obtaining the target data, and greatly improving the efficiency of screening the data information.
[0099] The above-mentioned data intelligent screening device can be implemented in the form of a computer program, which can be used in Fig. 9 Runs on the computer device shown.
[0100] See also Fig. 9 , Fig. 9 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a user terminal or a management server for executing a data intelligent screening method to perform intelligent screening on structured data information.
[0101] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0102] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute the data intelligent screening method, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0103] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0104] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the data intelligent screening method.
[0105] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Fig. 9The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0106] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned data intelligent screening method.
[0107] Those skilled in the art will understand that Fig. 9 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Fig. 9 The embodiments shown are consistent and will not be described again here.
[0108] 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 (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0109] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein the computer program implements the above-mentioned data intelligent screening method when executed by a processor.
[0110] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0111] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0113] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.
[0115] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A data intelligent screening method, characterized in that: include: If the stored data information is received, a data item matching a preset character type is selected from the data information as a target data item; Sorting the data values contained in each of the target data items according to a preset sorting rule to obtain a data value sorting result for each of the target data items; If a filter condition input by a user is received, determining whether the filter condition matches a target data item in the data information; If the screening condition matches the target data item in the data information, the data information is screened according to the screening condition and the data value sorting result of the matching target data item to obtain the corresponding target data information; The sorting rules include a frequency calculation formula, a sorting algorithm and an anchoring ratio. The data values contained in each of the target data items are sorted according to the preset sorting rules to obtain a data value sorting result for each of the target data items, including: Calculating the number of data contained in the data information according to the number calculation formula to obtain the corresponding number of cycles; the number calculation formula is S=[log2(r)]+1, S is the calculated number of cycles, r is the number of data contained in the data information, and [a] indicates rounding the value of a; According to the sorting algorithm, a plurality of sorting processes corresponding to the number of cycles are performed on the data values included in each of the target data items to obtain data value sorting information of each of the target data items; Obtaining corresponding anchor value information from the data value sorting information of each target data item according to the anchor ratio; Adding the anchor value information of each target data item to the corresponding data value sorting information to obtain the data value sorting result of each target data item; The sorting algorithm is a bidirectional bubble algorithm, and the data values contained in each of the target data items are respectively sorted for a plurality of times corresponding to the number of cycles according to the sorting algorithm to obtain data value sorting information of each of the target data items, including: Arranging the data values contained in the target data items as an initial queue; Comparing the sizes of two adjacent data values in the initial queue in sequence and placing the larger data value at the end of the queue according to each comparison result, thereby obtaining a forward sorting queue; Comparing the sizes of two adjacent data values in the forward sorting queue in sequence and placing the smaller data value at the head of the queue according to each comparison result, thereby obtaining a reverse sorting queue; Determine whether the number of executions is not less than the number of loops; If the number of executions is less than the number of loops, the reverse sorting queue is used as the initial queue and the process returns to the step of sequentially comparing the sizes of two adjacent data values in the initial queue and placing the larger data value at the end of the queue according to each comparison result to obtain a forward sorting queue; If the number of executions is not less than the number of loops, the currently obtained reverse sorting queue is used as the data value sorting information of the target data item; The data information is screened according to the screening condition and the data value sorting result of the matching target data item to obtain the corresponding target data information, including: Determining whether the screening information of the screening condition is a screening threshold; If the filtering information of the filtering condition is a filtering threshold, the data value sorting result of the matching target data item is filtered according to the filtering threshold to obtain the corresponding target data value; wherein the filtering threshold includes a corresponding symbol, and the symbol indicates the filtering direction corresponding to the data value filtering, and the symbols include ">", "<", "≥", and "≤"; If the screening information of the screening condition is not threshold screening, a corresponding target data value is obtained by proportionally intercepting the data value sorting result of the matching target data item according to the screening ratio contained in the screening information; wherein the screening information includes a screening ratio and a screening direction, the screening ratio is a specific ratio value of the data value obtained from the data value sorting result, the screening direction is the direction information corresponding to the data value screening, and the screening direction is represented by "+" or "-"; Data corresponding to the target data value is acquired from the data information as the target data information.
2. The data intelligent screening method according to claim 1, characterized in that: The step of selecting a data item matching a preset character type from the data information as a target data item includes: Determine the character type corresponding to each data item according to the data value of each data item in the data information; It is determined whether the character type of each data item matches the preset character type, so as to obtain the data item matching the preset character type as the target data item according to the determination result.
3. The data intelligent screening method according to claim 1, characterized in that: The step of performing data value screening on the data value sorting results of the target data items that match the target data items according to the screening threshold to obtain the corresponding target data values includes: Determine the anchor interval corresponding to the screening threshold according to the anchor value information of the data value sorting result; Determine the screening position of the screening threshold in the data value sorting result for the data values included in the anchor interval; A corresponding data value is obtained from the data value sorting result according to the screening position and the sign of the screening threshold value as the target data value.
4. The data intelligent screening method according to claim 1, characterized in that: The method of performing proportional interception from the data value sorting results of the matching target data items according to the screening ratio included in the screening information to obtain the corresponding target data value includes: Determine a corresponding interception position according to the screening ratio and the number of data values included in the data value sorting result; According to the interception position and the filtering direction of the filtering condition, a corresponding data value is obtained from the data value sorting result as the target data value.
5. A data intelligent screening device, characterized in that: The device is used to execute the data intelligent screening method according to any one of claims 1 to 4, and the device comprises: a target data item acquisition unit, for, upon receiving the stored data information, filtering out data items matching a preset character type from the data information as target data items; A data value sorting result obtaining unit, used to sort the data values contained in each of the target data items according to a preset sorting rule, to obtain a data value sorting result of each of the target data items; A screening condition determination unit, configured to determine whether the screening condition matches the target data item in the data information upon receiving the screening condition input by the user; The target data information acquisition unit is used to filter the data information according to the filtering condition and the data value sorting result of the matching target data item to obtain the corresponding target data information if the filtering condition matches the target data item in the data information.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the data intelligent screening method as described in any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data intelligent screening method according to any one of claims 1 to 4 is implemented.
