Data sorting method, device, electronic device and storage medium

By determining the degree of membership and non-membership of data attributes, combined with user roles and login time, and using intuitive fuzzy decision-making and edit distance algorithms, the problem of low efficiency in sorting data tables in the existing technology is solved, and user-customized data is realized Sorting improves search efficiency and accuracy.

CN112732766BActive Publication Date: 2024-08-30NSFOCUS INFORMATION TECHNOLOGY CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011614607.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-08-30
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

Existing data table sorting methods mainly rely on a single feature and cannot effectively provide users with a clear data search experience. Especially when the amount of data is huge and the user has not determined the keywords, it becomes more difficult to find the required data.

Method used

By determining the degree of membership and non-membership of each attribute of each piece of data, and based on the role information and login time of the currently logged-in user, combined with the intuitive fuzzy decision-making method and the edit distance algorithm, the data is sorted to provide users with information based on their usage habits. Data sorting scheme.

Benefits of technology

It realizes data sorting based on user habits and contextual information, improving the efficiency and accuracy of data search. Especially in the absence of keywords, it enhances the reliability and accuracy of data sorting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112732766B
    Figure CN112732766B
Patent Text Reader

Abstract

The present invention discloses a data sorting method, device, electronic device and storage medium, the method comprising: when receiving a data sorting request, for each piece of data in the system, determining the membership and non-membership of each attribute of the data; determining the first target role information and target login time information of the user currently logged into the system, and determining the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information; sorting each piece of data according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method. The embodiment of the present invention can determine the data sorting results corresponding to different users at different login times, thereby providing a data sorting scheme based on user usage habits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data sorting method, device, electronic device and storage medium. Background Art

[0002] Computers have become ubiquitous in our daily lives, entertainment, and work. Each system in a computer contains a variety of data, which becomes huge as time goes by. The important data that users really need to know is usually presented in the form of data tables. Data tables provide an important data visualization technique. They can provide data in a very concise format and can be made accessible to a wide audience through the right design decisions.

[0003] At present, most data table sorting methods are based on a single feature such as data creation time and name. When the amount of data is huge, sorting based on a single feature can no longer clearly and concisely provide users with the data they want in a timely manner, and the process of users searching for data becomes very long. When the amount of data is large and users are not sure of the keywords they need to search for data, it is very difficult to find the data they need. Therefore, a data sorting solution based on user usage habits is urgently needed. Summary of the invention

[0004] Embodiments of the present invention provide a data sorting method, device, electronic device and storage medium, which are used to provide a data sorting solution based on user usage habits.

[0005] An embodiment of the present invention provides a data sorting method, the method comprising:

[0006] When a data sorting request is received, for each piece of data in the system, the membership and non-membership of each attribute of the data are determined;

[0007] Determine first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information;

[0008] Each piece of data is sorted according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method.

[0009] Furthermore, each attribute of the data includes at least one of the following:

[0010] Data creation time, data storage time, number of times data references other data, weight value of data references other data, data completion completeness, data name similarity, data creation role information, data edit times, data last edit time, data view times and data last view time.

[0011] Further, determining the degree of membership and non-membership of each attribute of the data includes:

[0012] If the data attribute is the data creation time, the creation time of the data is obtained, and the membership of the data is determined according to the correspondence between the creation time of the data and each preset creation time period and the membership;

[0013] If the data attribute is the data saving time, the creation time of the data is obtained, the saving time of the data is determined according to the creation time of the data and the current time, and the membership of the data is determined according to the corresponding relationship between the saving time of the data and each preset saving time period and the membership;

[0014] If the data attribute is the number of times the data references other data, the number of times the data references other data is obtained, and the membership of the data is determined according to the correspondence between the number of times the data references other data and each preset range of times and the membership;

[0015] If the data attribute is the weight value of other data referenced by the data, the weight value of other data of the data is determined according to the preset weight value corresponding to each data, and the membership of the data is determined according to the weight value of other data referenced by the data and the corresponding relationship between each preset weight value range and membership;

[0016] If the data attribute is data completion completeness, the completion completeness of the data is determined according to the completion status of the data, and the completion completeness of the data is used as the membership of the data;

[0017] If the data attribute is data name similarity, determine the name similarity between the data and other data, and take the highest name similarity as the membership of the data;

[0018] If the data attribute is role information for creating data, obtain the first target role information of the user currently logging into the system and the second target role information for creating the data, and determine the membership of the data according to the first target role information and the second target role information; wherein, if the first target role information and the second target role information are the same, it is determined that the membership of the data is the highest; if the first target role information and the second target role information are different, the higher the level of the second target role information, the higher the membership of the data;

[0019] If the data attribute is the number of times the data is edited, determining the number of times the data is edited, and determining the degree of membership of the data according to the corresponding relationship between the number of times the data is edited and each preset range of the number of times of editing and the degree of membership;

[0020] If the data attribute is the most recent editing time of the data, the most recent editing time of the data is obtained, and the membership of the data is determined according to the corresponding relationship between the most recent editing time of the data and each preset editing time period and the membership;

[0021] If the data attribute is the number of data views, the number of data views is obtained, and the degree of membership of the data is determined according to the corresponding relationship between the number of data views and each preset range of the number of views and the degree of membership;

[0022] If the data attribute is the most recent viewing time of the data, the most recent viewing time of the data is obtained, and the membership of the data is determined according to the correspondence between the most recent viewing time of the data and each preset viewing time period and the membership;

[0023] For each data attribute, the difference between 1 and the membership degree of the data is taken as the non-membership degree of the data.

[0024] Furthermore, after receiving the data sorting request, before determining the membership and non-membership of each attribute of each data in the system, the method further includes:

[0025] Determine whether the data sorting request carries a keyword, and if not, proceed to the subsequent steps.

[0026] Furthermore, if the data sorting request carries a keyword, the method further includes:

[0027] According to the edit distance algorithm, the similarity between each piece of data in the system and the keyword is determined, target data with a similarity greater than a preset similarity threshold is selected, and the target data is sorted according to the similarity.

[0028] Furthermore, the method further comprises:

[0029] Determine whether there is target data with the same similarity. If so, determine the membership and non-membership of each attribute of each target data with the same similarity; and perform subsequent sorting steps according to the membership and non-membership of each attribute of each target data.

[0030] On the other hand, an embodiment of the present invention provides a data sorting device, the device comprising:

[0031] A first determination module is used to determine the membership and non-membership of each attribute of each data in the system when receiving a data sorting request;

[0032] A second determination module is used to determine the first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information;

[0033] The first sorting module is used to sort each piece of data according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method.

[0034] Furthermore, the device also includes:

[0035] The judgment module is used to judge whether the data sorting request carries a keyword, and if not, trigger the first determination module.

[0036] Furthermore, the device also includes:

[0037] The second sorting module is used to determine the similarity between each data in the system and the keyword according to the edit distance algorithm, select target data with similarity greater than a preset similarity threshold, and sort the target data according to the similarity.

[0038] Furthermore, the judgment module is also used to judge whether there is target data with the same similarity. If so, the first determination module is triggered for each target data with the same similarity.

[0039] In another aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0040] Memory, used to store computer programs;

[0041] The processor is used to implement any of the method steps described above when executing the program stored in the memory.

[0042] On the other hand, an embodiment of the present invention 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 method steps described in any one of the above are implemented.

[0043] An embodiment of the present invention provides a data sorting method, device, electronic device and storage medium. The method includes: when a data sorting request is received, for each data in the system, determining the membership and non-membership of each attribute of the data; determining the first target role information and target login time information of the user currently logged into the system, and determining the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information; sorting each data according to the membership and non-membership of each attribute of each data, the target attribute sorting and the intuitive fuzzy decision method.

[0044] The above technical solution has the following advantages or beneficial effects:

[0045] Because in the embodiment of the present invention, after receiving the data sorting request, the membership and non-membership of each attribute of each data in the system can be determined, and the target attribute sorting is determined according to the first target role information and target login time information of the user currently logging into the system, and each data is sorted according to the membership and non-membership of each attribute of each data, the target attribute sorting and the intuitive fuzzy decision method. In this way, the data sorting results corresponding to different users at different login times can be determined, thereby providing a data sorting solution based on user usage habits. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A schematic diagram of a data sorting process provided in Example 1 of the present invention;

[0048] Figure 2 A schematic diagram of time period division provided in Example 2 of the present invention;

[0049] Figure 3 A structural diagram of a data sorting system provided in Example 3 of the present invention;

[0050] Figure 4 A schematic diagram of user role division provided in Example 3 of the present invention;

[0051] Figure 5 A schematic diagram of the structure of a data sorting device provided in Embodiment 4 of the present invention;

[0052] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Example 5 of the present invention. DETAILED DESCRIPTION

[0053] The present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than 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.

[0054] Embodiment 1:

[0055] Figure 1 The data sorting process provided in the embodiment of the present invention includes the following steps:

[0056] S101: When a data sorting request is received, for each piece of data in the system, the membership and non-membership of each attribute of the data are determined.

[0057] S102: Determine the first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information.

[0058] S103: Sort each piece of data according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting, and the intuitive fuzzy decision method.

[0059] The data sorting method provided by the embodiment of the present invention is applied to an electronic device, which may be a PC, a tablet computer, or other device.

[0060] After receiving the data sorting request, the electronic device obtains the membership and non-membership of each attribute of each data in the system, wherein each attribute of the data includes at least one of the following: data creation time, data storage time, number of times the data references other data, weight value of data references other data, data filling completeness, data name similarity, creation data role information, number of data edits, data last edit time, number of data views and data last view time. In addition, the electronic device can determine the first target role information of the user currently logged into the system based on the user name currently logged into the system, and the target role information includes administrator, operator and super administrator, etc. Among them, the role information corresponding to each user name can be saved in the electronic device, and when the user logs into the system, the first target role information of the user currently logged into the system can be determined based on the user name currently logged into the system. In addition, when the user logs into the system, the electronic device can identify the target login time information of the user logging into the system.

[0061] The electronic device pre-stores the correspondence between each login time period and the attribute ranking for each role information, so that the target attribute ranking can be determined according to the first target role information and the target login time information of the user currently logging into the system, and the correspondence between each login time period and the attribute ranking pre-stored for each role information. After the electronic device determines the membership and non-membership of each attribute of each data and the target attribute ranking, it completes the ranking of each data according to the intuitive fuzzy decision method.

[0062] Because in the embodiment of the present invention, after receiving the data sorting request, the membership and non-membership of each attribute of each data in the system can be determined, and the target attribute sorting is determined according to the first target role information and target login time information of the user currently logging into the system, and each data is sorted according to the membership and non-membership of each attribute of each data, the target attribute sorting and the intuitive fuzzy decision method. In this way, the data sorting results corresponding to different users at different login times can be determined, thereby providing a data sorting solution based on user usage habits.

[0063] Embodiment 2:

[0064] On the basis of the above embodiment, in the embodiment of the present invention, determining the degree of membership and non-membership of each attribute of the data includes:

[0065] If the data attribute is the data creation time, the creation time of the data is obtained, and the membership of the data is determined according to the correspondence between the creation time of the data and each preset creation time period and the membership;

[0066] If the data attribute is the data saving time, the creation time of the data is obtained, the saving time of the data is determined according to the creation time of the data and the current time, and the membership of the data is determined according to the corresponding relationship between the saving time of the data and each preset saving time period and the membership;

[0067] If the data attribute is the number of times the data references other data, the number of times the data references other data is obtained, and the membership of the data is determined according to the correspondence between the number of times the data references other data and each preset range of times and the membership;

[0068] If the data attribute is the weight value of other data referenced by the data, the weight value of other data of the data is determined according to the preset weight value corresponding to each data, and the membership of the data is determined according to the weight value of other data referenced by the data and the corresponding relationship between each preset weight value range and membership;

[0069] If the data attribute is data completion completeness, the completion completeness of the data is determined according to the completion status of the data, and the completion completeness of the data is used as the membership of the data;

[0070] If the data attribute is data name similarity, determine the name similarity between the data and other data, and take the highest name similarity as the membership of the data;

[0071] If the data attribute is role information for creating data, obtain the first target role information of the user currently logging into the system and the second target role information for creating the data, and determine the membership of the data according to the first target role information and the second target role information; wherein, if the first target role information and the second target role information are the same, it is determined that the membership of the data is the highest; if the first target role information and the second target role information are different, the higher the level of the second target role information, the higher the membership of the data;

[0072] If the data attribute is the number of times the data is edited, determining the number of times the data is edited, and determining the degree of membership of the data according to the corresponding relationship between the number of times the data is edited and each preset range of the number of times of editing and the degree of membership;

[0073] If the data attribute is the most recent editing time of the data, the most recent editing time of the data is obtained, and the membership of the data is determined according to the corresponding relationship between the most recent editing time of the data and each preset editing time period and the membership;

[0074] If the data attribute is the number of data views, the number of data views is obtained, and the degree of membership of the data is determined according to the corresponding relationship between the number of data views and each preset range of the number of views and the degree of membership;

[0075] If the data attribute is the most recent viewing time of the data, the most recent viewing time of the data is obtained, and the membership of the data is determined according to the correspondence between the most recent viewing time of the data and each preset viewing time period and the membership;

[0076] For each data attribute, the difference between 1 and the membership degree of the data is taken as the non-membership degree of the data.

[0077] The following is an example:

[0078] Data creation time: in hours. If the system is an internal company system, Figure 2As shown in the figure, the 24 hours of a day are divided into 12 equal parts, and each part represents a time period. According to the working hours of employees in the company, the general situation of new data created by users is between time period 5 and time period 10. Calculate the proportion T1 of all data in the system that is newly created between 8:00 am and 8:00 pm. Since it is extremely unlikely for employees to create new data between time period 1 and time period 3, the proportion of newly created data during this period is T2, and the remaining proportion between time period 4, time period 11, and time period 12 is T3, where T1 + T2 + T3 = 1; T1 > T3 > T2. The above T1, T2, and T3 are the membership degrees of the data.

[0079] Data storage time: Measured in days. Each time the sorting table is updated, subtract the creation time from the current time to obtain a result of the number of days x. Set the probability of using data when the number of days x ≤ 20 to be D1, set the probability of using data when the number of days x ≥ 100 to be D2, and set the general description of using data when the number of days is between 20 < x < 100 to be D3, where D1 + D2 + D3 = 1; D1 > D3 > D2; The above D1, D2, and D3 are the membership degrees of the data.

[0080] Number of times a data引用 other data: Obtain the number of times y that a data引用 other data. If the total number of other data that this data can引用 is X, set different intervals according to the system situation. Then, when the引用 number is 80% * X ≤ y, the usage probability is Q1. When the引用 number is y ≤ 10% * X, the usage probability is Q2. When the引用 number is 10% * X < y < 80% * X, the usage probability is Q3, where Q1 + Q2 + Q3 = 1; Q1 > Q3 > Q2; The above Q1, Q2, and Q3 are the membership degrees of the data.

[0081] Weight value of引用 other data: Obtain the引用 of other data, and set a weight value for each other data in the system. If the total weight value of other data that this data can引用 is Y, and the weight value of this data引用 other data is c, set different intervals according to the system situation. Then, when the引用 weight value is 80% * Y ≤ c, the usage probability is C1. When the引用 weight value is c ≤ 10% * Y, the usage probability is C2. When the引用 weight value is 10% * Y < c < 80% * Y, the usage probability is C3, where C1 + C2 + C3 = 1; C1 > C3 > C2); The above C1, C2, and C3 are the membership degrees of the data.

[0082] Degree of data filling completeness: Calculate the degree of data filling completeness F1 according to the filling situation of the data; F1 is the membership degree of the data.

[0083] Data name similarity: The similarity percentage between the current data name and other data names is obtained using the edit distance algorithm (Levenshtein Distance), and finally the highest percentage N1 is taken from these percentages; N1 is the membership degree of the data. Among them, the similarity percentage between the current data name and other data names can be the similarity percentage between the current data name and the data names on other unquoted pages.

[0084] Create data role information: In the system, the roles of system users are mainly divided into super administrator, administrator, and operator. Obtain the role CR of the currently logged-in user, and obtain the role DR of the user who created this data. If CR = DR, then the usage probability R1 of this data is 1; when CD ≠ DR, if DR is a super administrator, the usage probability of this data is R1, if DR is an administrator, the usage probability of this data is R2, if DR is an operator, the usage probability of this data is R3; 1 > R1 > R2 > R3; the above R1, R2, and R3 are the membership degrees of the data.

[0085] Data edit times: Obtain the edit times n of this data. Set different intervals according to the system situation. Then when 5 ≤ n, the usage probability is E1. When n ≤ 1, the usage probability is E2. When the number of references is 1 < y < 5, the usage probability is E3; 1 > E1 > E3 > E2; the above E1, E2, and E3 are the membership degrees of the data.

[0086] Most recent edit time: In days, each time the sorting table is updated, subtract the most recent edit time from the current time (when the edit times is 0, it is the creation time) to obtain a result of the number of days m. Set the usage data probability to DT1 when m ≤ 20, set the usage data probability to DT2 when m ≥ 100, and set the usage data overview to DT3 when 20 < m < 100, where DT1 + DT2 + DT3 = 1; DT1 > DT3 > DT2; the above DT1, DT2, and DT3 are the membership degrees of the data.

[0087] Data view times: Obtain the number of times i that the detailed content of this data is viewed. Set different intervals according to the system situation. Then when 5 ≤ i, the usage probability is CD1. When i ≤ 1, the usage probability is CD2. When the number of references is 1 < i < 5, the usage probability is CD3; 1 > CD1 > CD3 > CD2; the above CD1, CD2, and CD3 are the membership degrees of the data.

[0088] Data recent view time: in days. Each time the sorting table is updated, subtract the time of the most recent detailed content view from the current time (when the number of times of the most recent detailed content view is 0, it is the creation time) to obtain a result of the number of days j. Set the probability of using the data with j ≤ 20 days as CDT1, set the probability of using the data with j ≥ 100 days as CDT2, and set the overview of using the data with 20 < j < 100 days as CDT3, where CDT1 + CDT2 + CDT3 = 1; CDT1 > CDT3 > CDT2; the above CDT1, CDT2, and CDT3 are the membership degrees of the data.

[0089] For each data attribute, take the difference between 1 and the membership degree of the data as the non - membership degree of the data.

[0090] The membership degrees and non - membership degrees of each attribute of the data are shown in the following table:

[0091]

[0092] Embodiment 3:

[0093] Based on the above embodiments, in the embodiment of the present invention, before receiving a data sorting request and determining the membership degree and non - membership degree of each attribute of each data in the system, the method further includes:

[0094] Judge whether the data sorting request carries a keyword. If not, proceed to the subsequent steps.

[0095] In the embodiment of the present invention, after an electronic device receives a data sorting request and before determining the membership degree and non - membership degree of each attribute of each data in the system, first judge whether the data sorting request carries a keyword. If it is judged that no keyword is carried, then proceed to the subsequent steps of determining the membership degree and non - membership degree of each attribute of each data in the system and the subsequent sorting process.

[0096] If the data sorting request carries a keyword, the method further includes:

[0097] According to the edit distance algorithm, determine the similarity between each data in the system and the keyword, select the target data with a similarity greater than a preset similarity threshold, and sort according to the similarity of the target data.

[0098] In an embodiment of the present invention, if a data sorting request carries a keyword, the electronic device determines the similarity between each piece of data in the system and the keyword according to an edit distance algorithm. The electronic device stores a preset similarity threshold, then selects target data with a similarity greater than the preset similarity threshold, and sorts the target data according to the similarity. Generally speaking, the target data is sorted in descending order of similarity.

[0099] In order to further make the data sorting more accurate, in an embodiment of the present invention, the method further includes:

[0100] Determine whether there is target data with the same similarity. If so, determine the membership and non-membership of each attribute of each target data with the same similarity; and perform subsequent sorting steps according to the membership and non-membership of each attribute of each target data.

[0101] After the electronic device determines the similarity between each data in the system and the keyword according to the edit distance algorithm, it determines whether there is target data with the same similarity. If so, for each target data with the same similarity, it determines the membership and non-membership of each attribute of the target data; and then performs the subsequent sorting steps according to the membership and non-membership of each attribute of each target data.

[0102] That is to say, the data sorting method provided by the embodiment of the present invention includes a data sorting method without keywords and a data sorting method with keywords. Specifically, the sorting method without keywords is to sort each data according to the membership and non-membership of each attribute of each data, the target attribute sorting and the intuitive fuzzy decision method. The sorting method with keywords is to determine the similarity between each data in the system and the keyword based on the edit distance algorithm, select the target data whose similarity is greater than the preset similarity threshold, and sort according to the similarity of the target data. Moreover, in the sorting process with keywords, if there are target data with the same similarity, the sorting method without keywords is used to sort the target data with the same similarity, thereby making the data sorting more accurate.

[0103] The purpose of the embodiment of the present invention is to provide a sorting method for matching user needs in a large number of data tables, which can effectively improve the reliability and accuracy of data sorting in the absence of keywords.

[0104] To achieve the above objectives, the technical solution adopted by the embodiment of the present invention is:

[0105] (1) Context information collection module, to obtain user context information:

[0106] The context information collection module records user context information, including user role information and login time information. User roles are mainly divided into super administrator, administrator and operator. The obtained information is temporarily stored in step (4). Data features and sorting methods are determined based on these two types of context information.

[0107] (2) The operation module selects the user's specific operation behavior in the system and responds differently based on the operation:

[0108] The operation module includes four operation behaviors: creating new data, editing data, viewing data, and searching and sorting data. Among them, searching and sorting data is divided into searching and sorting with keywords and searching and sorting without keywords. When the user enters keywords to search for data, the behavior is searching and sorting with keywords. When the user directly enters the data table page without searching for keywords, it is searching and sorting without keywords.

[0109] (3) The feature extraction module extracts feature values ​​from the data table and user operation behavior:

[0110] (3a) extracting characteristic attributes from the newly created data behaviors and newly created data obtained in (2);

[0111] (3b) re-extracting feature attributes from the editing data behavior and edited data obtained in (2) according to the modified new data, the number of edits and the most recent edit time;

[0112] (3c) re-extracting feature attributes from the data detail viewing behavior obtained in (2) according to the number of times the data detail was viewed and the time when the data detail was most recently viewed;

[0113] (4) Data is stored in the database:

[0114] The characteristic attributes obtained according to (3) are stored in the database XX1.db, and the corresponding conventional filled data are stored in the database XX2.db;

[0115] (5) The sorting module sorts the data table according to user needs:

[0116] The context information of the user logging into the system this time and the user's search behavior with or without keywords are input into the sorting module to obtain the sorting result.

[0117] As described above, the automatic sorting method for matching user needs under a large number of data tables in an embodiment of the present invention has the following advantages: 1) an automatic sorting method model is designed based on user needs in the case of a large amount of data, so that users can quickly and accurately find the required content in the case of a large amount of data; 2) a feature extraction method is designed for a large amount of data, which removes a large number of redundant features, making the matching speed faster and improving the response capability after the operation behavior.

[0118] The following is a detailed description of the embodiments of the present invention with reference to the accompanying drawings:

[0119] Figure 3 The data sorting system structure diagram provided for the embodiment of the present invention includes a user's PC device and a server.

[0120] The user's PC device includes: context information collection module and operation module.

[0121] Context information collection module: collects the context information of user login, including user role information and login time information;

[0122] Operation module: includes operations for users to create new data, edit data, view data, and search and sort data. Search and sort data is divided into search with keywords and search without keywords.

[0123] The server includes: a database, a feature extraction module, and a sorting module.

[0124] Database: stores three data modes: regular new data content, feature data corresponding to each piece of data, and user's historical context information;

[0125] Feature extraction module: It mainly extracts corresponding features from the data generated by the three operations of creating, editing and viewing detailed data by users, and stores these three features in the database;

[0126] Sorting module: Determine whether there are keywords based on the user's operation of searching and sorting data, and then match the context information of the current user's login with the data in the database to obtain the sorting result.

[0127] The context information collection module is as follows:

[0128] After the user successfully logs in to the system, the current user role information and login time are obtained. Figure 4 As shown in the figure, the current user roles are mainly divided into super administrator, administrator and operator; Figure 2 As shown, 24 hours a day is divided into 12 equal parts, with two hours as one interval, to obtain the interval value of the current user login time. The obtained context information is temporarily stored in the database, and after the context information collection is completed, the user operation module is entered.

[0129] Step 2: Operation module, as follows:

[0130] The operation module is mainly divided into four operation behaviors: creating new data operation, editing data operation, viewing data operation and searching and sorting data operation.

[0131] New data operation: when creating new data, the user fills in the data according to the requirements. After the creation is successful, the data is stored in the database and enters the feature extraction module;

[0132] Edit data operation: users modify the original data based on the existing data. After successful editing, the data is stored in the database and enters the feature extraction module.

[0133] View data operation: based on the existing data, the user clicks to view the detailed information of the data, closes the window, and enters the feature extraction module;

[0134] Search and sort data operations are mainly divided into keyword search and non-keyword search. When the user does not know the keyword, he initiates a non-keyword sort request to enter the sorting module; when the user knows the keyword, he searches for the keyword, obtains the keyword search results, and passes the search results to the sorting module for sorting.

[0135] Step 3: Feature extraction module, as follows:

[0136] From step 2, we know that feature extraction is mainly extracted from the three operation behaviors of users: adding data, editing data and viewing data. After screening, 11 feature attributes are mainly obtained, including: data creation time, data saving time, number of times data references other data, weight value of data references other data, data filling completeness, data name similarity, data creation role information, data editing times, data last editing time, data viewing times and data last viewing time.

[0137] Step 4: Sorting module, as follows:

[0138] In the sorting module, the intuitionistic fuzzy number sorting in the intuitionistic fuzzy multi-attribute decision-making problem is mainly used. Each data in the database can be sorted as a decision method. According to step 3, it can be obtained that each data has 11 attributes. The membership and non-membership within the attribute, as well as the priority relationship between the attributes are determined according to different situations, and an intuitionistic fuzzy decision matrix is ​​established for the collected decision information; then, the closeness of the corresponding attribute of the data is calculated based on the membership and non-membership; finally, the intuitive fuzzy priority weighted average operator (IFPWA) is used to calculate the weight vector of its associated attributes, and then the aggregation result of the data is calculated, and the final aggregation result is sorted.

[0139] When there is no keyword search and sorting, the user's role and login time are obtained from the context module. First, the login time is Figure 2Find the corresponding time period T in step 3. If time period T is between time period 5 and time period 10, the target attribute sorting among the 11 attributes in step 3 is, for example, attribute 6> attribute 7> attribute 1> attribute 9> attribute 4> attribute 3> attribute 11> attribute 8> attribute 10> attribute 2> attribute 5; if time period T is not between time period 5 and time period 10, the target attribute sorting among the 11 attributes in step 3 is, for example, attribute 6> attribute 7> attribute 9> attribute 4> attribute 3> attribute 11> attribute 8> attribute 10> attribute 2> attribute 1> attribute 5; sort each piece of data according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method. It should be noted that the above target attribute sorting is only an example, and the specific attribute sorting can be determined according to different user application scenarios.

[0140] When there is keyword search and sorting, the edit distance algorithm is used to obtain the data set according to the filled keywords. First, the keyword similarity in the data set is sorted from high to low, and then the data sets with the same similarity are sorted according to the non-keyword search and sorting method.

[0141] In summary, the embodiment of the present invention provides a small amount of representative data features after the user logs in, ensures the accuracy of the data sequence displayed according to the actual needs of the user, and avoids the user's long process of searching for target data in a large amount of data.

[0142] Embodiment 4:

[0143] Figure 5 A schematic diagram of the structure of a data sorting device provided in an embodiment of the present invention includes:

[0144] A first determination module 51 is used to determine the membership and non-membership of each attribute of each data in the system when receiving a data sorting request;

[0145] The second determination module 52 is used to determine the first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information;

[0146] The first sorting module 53 is used to sort each piece of data according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method.

[0147] The device also includes:

[0148] The judging module 54 is used to judge whether the data sorting request carries a keyword, and if not, trigger the first determining module 51 .

[0149] The device also includes:

[0150] The second sorting module 55 is used to determine the similarity between each data in the system and the keyword according to the edit distance algorithm, select target data with a similarity greater than a preset similarity threshold, and sort the target data according to the similarity.

[0151] The judging module 54 is further configured to judge whether there is target data with the same similarity, and if so, trigger the first determining module for each target data with the same similarity.

[0152] Embodiment 5:

[0153] Based on the above embodiments, an electronic device is also provided in an embodiment of the present invention, such as Figure 6 As shown, it includes: a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304;

[0154] The memory 303 stores a computer program. When the program is executed by the processor 301, the processor 301 performs the following steps:

[0155] When a data sorting request is received, for each piece of data in the system, the membership and non-membership of each attribute of the data are determined;

[0156] Determine first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information;

[0157] Each piece of data is sorted according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method.

[0158] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present invention. Since the principle of solving the problem by the above electronic device is similar to that of the data sorting method, the implementation of the above electronic device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0159] The electronic device provided in the embodiment of the present invention may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), a network side device, etc.

[0160] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0161] The communication interface 302 is used for communication between the electronic device and other devices.

[0162] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0163] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0164] In the embodiment of the present invention, when the processor executes the program stored in the memory, it is realized that after receiving a data sorting request, the membership and non-membership of each attribute of each data in the system can be determined, and the target attribute sorting is determined according to the first target role information and target login time information of the user currently logged in to the system, and each data is sorted according to the membership and non-membership of each attribute of each data, the target attribute sorting and the intuitive fuzzy decision method. In this way, the data sorting results corresponding to different users at different login times can be determined, thereby providing a data sorting solution based on user usage habits.

[0165] Embodiment 6:

[0166] On the basis of the above embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, wherein the computer readable storage medium stores a computer program executable by an electronic device, and when the program is run on the electronic device, the electronic device implements the following steps when executing:

[0167] When a data sorting request is received, for each piece of data in the system, the membership and non-membership of each attribute of the data are determined;

[0168] Determine first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information;

[0169] Each piece of data is sorted according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method.

[0170] Based on the same inventive concept, a computer-readable storage medium is also provided in an embodiment of the present invention. Since the principle of solving the problem when the processor executes the computer program stored on the above-mentioned computer-readable storage medium is similar to the data sorting method, the implementation of the processor when executing the computer program stored on the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.

[0171] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.

[0172] A computer program is stored in a computer-readable storage medium provided in an embodiment of the present invention. When the computer program is executed by a processor, after receiving a data sorting request, the membership and non-membership of each attribute of each data in the system can be determined, and the target attribute sorting can be determined according to the first target role information and target login time information of the user currently logged into the system, and each data can be sorted according to the membership and non-membership of each attribute of each data, the target attribute sorting and the intuitive fuzzy decision method. In this way, the data sorting results corresponding to different users at different login times can be determined, thereby providing a data sorting solution based on user usage habits.

[0173] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0176] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0177] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A data sorting method, characterized in that: The method comprises: When a data sorting request is received, for each piece of data in the system, the membership and non-membership of each attribute of the data are determined; If the data attribute is any one of data creation time, data saving time, number of times data references other data, weight value of data references other data, number of times data is edited, time of last data edit, number of times data is viewed, and time of last data view, the degree of membership of the attribute of the data is determined according to the corresponding relationship between the data of the attribute and the degree of membership; If the data attribute is data completion completeness, the completion completeness of the data is determined according to the completion status of the data, and the completion completeness of the data is used as the membership of the data; If the data attribute is data name similarity, determine the name similarity between the data and other data, and take the highest name similarity as the membership of the data; If the data attribute is role information for creating data, obtain the first target role information of the user currently logging into the system and the second target role information for creating the data, and determine the membership of the data according to the first target role information and the second target role information; wherein, if the first target role information and the second target role information are the same, it is determined that the membership of the data is the highest; if the first target role information and the second target role information are different, the higher the level of the second target role information, the higher the membership of the data; For each data attribute, the difference between 1 and the membership degree of the data is taken as the non-membership degree of the data; Determine first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information; Each piece of data is sorted according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method.

2. The method according to claim 1, characterized in that Determining the membership and non-membership of each attribute of the data includes: If the data attribute is the data creation time, the creation time of the data is obtained, and the membership of the data is determined according to the correspondence between the creation time of the data and each preset creation time period and the membership; If the data attribute is the data saving time, the creation time of the data is obtained, the saving time of the data is determined according to the creation time of the data and the current time, and the membership of the data is determined according to the corresponding relationship between the saving time of the data and each preset saving time period and the membership; If the data attribute is the number of times the data references other data, the number of times the data references other data is obtained, and the membership of the data is determined according to the correspondence between the number of times the data references other data and each preset range of times and the membership; If the data attribute is the weight value of other data referenced by the data, the weight value of other data of the data is determined according to the preset weight value corresponding to each data, and the membership of the data is determined according to the weight value of other data referenced by the data and the corresponding relationship between each preset weight value range and membership; If the data attribute is the number of times the data is edited, determining the number of times the data is edited, and determining the degree of membership of the data according to the corresponding relationship between the number of times the data is edited and each preset range of the number of times of editing and the degree of membership; If the data attribute is the most recent editing time of the data, the most recent editing time of the data is obtained, and the membership of the data is determined according to the corresponding relationship between the most recent editing time of the data and each preset editing time period and the membership; If the data attribute is the number of data views, the number of data views is obtained, and the degree of membership of the data is determined according to the corresponding relationship between the number of data views and each preset range of the number of views and the degree of membership; If the data attribute is the most recent viewing time of the data, the most recent viewing time of the data is obtained, and the membership of the data is determined according to the corresponding relationship between the most recent viewing time of the data and each preset viewing time period and the membership.

3. The method according to claim 1, characterized in that After receiving the data sorting request, before determining the membership and non-membership of each attribute of each data in the system, the method further includes: Determine whether the data sorting request carries a keyword, and if not, proceed to the subsequent steps.

4. The method according to claim 3, characterized in that If the data sorting request carries a keyword, the method further includes: According to the edit distance algorithm, the similarity between each piece of data in the system and the keyword is determined, target data with a similarity greater than a preset similarity threshold is selected, and the target data is sorted according to the similarity.

5. The method according to claim 4, characterized in that The method further comprises: Determine whether there is target data with the same similarity. If so, determine the membership and non-membership of each attribute of each target data with the same similarity; and perform subsequent sorting steps according to the membership and non-membership of each attribute of each target data.

6. A data sorting device, characterized in that: The device comprises: A first determination module is used to determine the membership and non-membership of each attribute of each data in the system when receiving a data sorting request; If the data attribute is any one of data creation time, data saving time, number of times data references other data, weight value of data references other data, number of times data is edited, time of last data edit, number of times data is viewed, and time of last data view, the degree of membership of the attribute of the data is determined according to the corresponding relationship between the data of the attribute and the degree of membership; If the data attribute is data completion completeness, the completion completeness of the data is determined according to the completion status of the data, and the completion completeness of the data is used as the membership of the data; If the data attribute is data name similarity, determine the name similarity between the data and other data, and take the highest name similarity as the membership of the data; If the data attribute is role information for creating data, obtain the first target role information of the user currently logging into the system and the second target role information for creating the data, and determine the membership of the data according to the first target role information and the second target role information; wherein, if the first target role information and the second target role information are the same, it is determined that the membership of the data is the highest; if the first target role information and the second target role information are different, the higher the level of the second target role information, the higher the membership of the data; For each data attribute, the difference between 1 and the membership degree of the data is taken as the non-membership degree of the data; A second determination module is used to determine the first target role information and target login time information of the user currently logging into the system, and determine the target attribute sorting according to the correspondence between each login time period and the attribute sorting pre-saved for each role information; The first sorting module is used to sort each piece of data according to the membership and non-membership of each attribute of each piece of data, the target attribute sorting and the intuitive fuzzy decision method.

7. The device according to claim 6, characterized in that The device also includes: The judgment module is used to judge whether the data sorting request carries a keyword, and if not, trigger the first determination module.

8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.

9. 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 method steps described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Sequencing method and device of search results

    CN102591876A

  • Network selection method based on intuitionistic fuzzy set multi-attribute decision-making

    CN104812027A