A coding and display method for integrated management of standard documents and archives

Through preprocessing and information tree construction, combined with hierarchical coding and hash search algorithms, the standard file archive coding model is optimized, the coding uncertainty problem is solved, and efficient and accurate automatic coding and deduplication are achieved, adapting to different standards and systems. .

CN117349243BActive Publication Date: 2024-10-11CHINA NAT INST OF STANDARDIZATION
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311355172.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2024-10-11
Estimated Expiration
2043-10-19

AI Technical Summary

Technical Problem

The standard file encoding method has great uncertainty and cannot effectively solve the problems of large amount of information, diverse types and high information density, resulting in high coding uncertainty.

Method used

Through preprocessing, extracting relevant information about material type, project category and program level, an information tree is constructed, and hierarchical coding algorithm, hash search algorithm and insertion algorithm are used for coding. The coding model is optimized by combining with random forest algorithm to realize standard file archives. Automatic encoding and deduplication.

Benefits of technology

It improves the accuracy and precision of standard file encoding, realizes automatic encoding, saves resources and labor costs, improves work efficiency, and has universal adaptability to different standards and systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349243B_ABST
    Figure CN117349243B_ABST
Patent Text Reader

Abstract

The present invention discloses a coding and display method for integrated management of standard file archives, including obtaining a file archive to be coded, preprocessing the file archive to be coded, extracting relevant information, extracting standard features of the relevant information, obtaining classification data of the file archive to be coded according to the standard features, associating the program level with the classification data to obtain standard classification data, using the standard classification data to construct an information tree, formulating a coding scheme, constructing a standard file archive coding model according to the coding scheme, optimizing the standard file archive coding model according to the coding type, inputting the information tree into the optimized standard file archive coding model, outputting the coding result and displaying it. The method can not only improve the coding accuracy, but also has good interpretability, and can be directly applied to the standard file archive system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of standard document archives, and in particular to a coding and display method for integrated management of standard document archives. Background Art

[0002] The application of coding technology in the field of standard file archives is becoming more and more extensive. It can help the integrated managers of standard file archives to analyze standard file archives in a timely and efficient manner, and realize the coding and display of integrated management of standard file archives. At present, standard file archives have the characteristics of huge amount of information, diverse types, and high information density. There are many uncertain factors in the coding analysis method, which leads to great uncertainty in the coding method of standard file archives. Although some standard file archive coding methods have been invented, they still cannot effectively solve the uncertainty problem of standard file archive coding methods. Summary of the invention

[0003] The purpose of the present invention is to provide a coding and display method for integrated management of standard document archives.

[0004] To achieve the above object, the present invention is implemented according to the following technical solutions:

[0005] The present invention comprises the following steps:

[0006] A obtains a file to be encoded, preprocesses the file to be encoded, and extracts the material type, project category and program level of the preprocessed file to be encoded to obtain relevant information;

[0007] B extracts the standard features of the relevant information, obtains the classification data of the file to be encoded according to the standard features, and associates the program level with the classification data to obtain standard classification data;

[0008] C. construct an information tree using the standard classification data and formulate a coding scheme;

[0009] D. constructing a standard file archive coding model according to the coding scheme, and optimizing the standard file archive coding model according to the coding type; the method for constructing a standard file archive coding model according to the coding scheme includes:

[0010] The standard file archive coding model is constructed using a layered coding algorithm, a hash search algorithm, and an insertion algorithm. The insertion algorithm is used to update and remove duplicates from the standard file archive, where the similarity of the standard file archive content is calculated:

[0011]

[0012] The i-th standard file is d i , the jth standard file is dj , the dimension of the feature vector is h, the number of dimensions of the feature vector h is q, and the weight value of the hth feature item of the i-th standard file archive is ω ih , the weight value of the hth feature item of the jth standard file is ω jh , update and deduplicate the data of the standard file archive by similarity, encode the updated and deduplicated standard file archive by using a layered encoding algorithm according to the encoding scheme, establish an index for the encoded standard file archive by using a hash search algorithm, and use a random forest algorithm to randomly divide the information tree into a training set and a test set in a ratio of 4:1, train the standard file archive encoding model by using the training set, and use the test set to test the results of the trained standard file archive encoding model;

[0013] E inputs the information tree into the optimized standard file archive encoding model, outputs the encoding result and displays it.

[0014] Furthermore, the preprocessing described in step A includes cleaning, screening, text extraction, stop word removal, word segmentation, tagging, deduplication, merging and data conversion.

[0015] Furthermore, the method of extracting the material type, project category and program level of the pre-processed file archive to be encoded to obtain relevant information includes:

[0016] The pre-processed file to be coded is subjected to morpheme analysis to generate morphemes, and the standard content text is compared with the file to be coded. The standard content text is the material type, project category and program level, and the relevance score between the standard content text and the file to be coded is calculated:

[0017]

[0018] The file to be encoded is A, and the i-th morpheme is a i , the total number of texts to be matched is M, and the number of texts in which the current word of the standard content text appears is v(a i ), the adjustment factors are c1, d, the number of matches with the standard content text is |E|, and the average length of all the stable words in the corpus is The search result is E. Repeat the matching until the file archive to be encoded is traversed. The material type, project category and program level category with the highest correlation score is taken as the material type, project category and program level of the file archive to be encoded, and the material type, project category and program level of the file archive to be encoded are output.

[0019] Furthermore, the method for extracting the standard features of the relevant information includes:

[0020] Loop through the relevant information to read the feature terms and related category information, count the word frequency and document frequency of the feature terms, and calculate the degree of deviation of the feature terms relative to the category:

[0021]

[0022] Among them, category c i The number of documents containing feature s is u1(s), and the average number of documents containing feature s in each category is The number of documents containing feature s in the relevant information is u(s). The intra-class feature frequency and intra-class concentration frequency of the feature words in the text category are calculated:

[0023]

[0024]

[0025] The number of relevant information is m, the frequency of the feature within the class is F, and the number of standard words in the jth text category is R jt (a), the number of standard words of feature s in the jth text category is R jt (s), the number of categories of relevant information is n, and the mutual information value of the feature words is calculated:

[0026]

[0027] The probability of a document containing feature s is b(s), and in category c i The probability of a document containing feature s is b(s|c i ), the feature words are arranged in descending order according to the mutual information value, and a predetermined number of feature terms are selected to form a standard feature set.

[0028] Furthermore, the method for obtaining the classification data of the to-be-encoded file archive according to the standard features includes:

[0029] Take sampling with replacement from the file archive to be encoded, construct a sub-dataset, use the sub-dataset to construct a decision tree, input the sub-dataset into the sub-decision tree, and randomly select one-third of the features from the standard features.

[0030] Calculate the importance scores of standard features:

[0031] The ath feature is s a , features a The importance score is gn(s a), the proportion of the ath feature is p(a), the number of features is n, and the operation is repeated until all features are traversed. The standard features are sorted in descending order according to the importance score, and the first three features are used as classification features. According to the classification features, the first-level classification is performed on the coded file archives, and the first-level classification is classified again to obtain the second-level classification.

[0032] Furthermore, the method of constructing an information tree using the standard classification data includes:

[0033] Divide the standard classification data into subsets and calculate the empirical entropy of the standard classification data:

[0034]

[0035] The standard classification data is u, the number of samples of the standard classification data is |u|, the feature of the standard classification data is i, and the number of samples of the i-th category is |b i |, the number of categories of standard classification data is g, and the empirical conditional entropy of standard features for standard classification data is calculated:

[0036]

[0037] The subset of standard classification data is s, and the number of standard classification data in the sth subset is u s , the standard classification data set containing category k in the sth subset is b si , standard classification data set b si The number of |b si |, the number of subsets s is n, the feature is e, and the information gain is calculated:

[0038] q(u,e)=H(u|e)

[0039] Set the threshold of information gain. If all standard classification information in the standard classification data belongs to the same category, the decision tree is a single-node tree. The category is used as the node label and the information tree is returned.

[0040] If the feature set is empty, the decision tree is a single-node tree, and the category with the highest frequency of set loyalty is used as the node label, and the information tree is returned;

[0041] Otherwise, the information gain of the standard features in the feature set for the standard classification data is calculated, and the standard feature with the largest information gain is selected; if the maximum information gain corresponding to the standard feature is less than the threshold, the decision tree is a single-node tree, and the category with the highest frequency in the set is used as the node mark, and the information tree is returned;

[0042] Otherwise, for each possible value of the standard feature corresponding to the maximum information gain, the standard classification data is divided into multiple non-empty sets, the category with the highest frequency in the non-empty set is used as a marker, and child nodes are constructed. The nodes and child nodes form an information tree.

[0043] Furthermore, the method for formulating a coding scheme includes establishing a code dictionary for standard-setting materials, including code items and code category items, wherein secondary codes are associated with program codes, and the code dictionary manages secondary codes and program codes of different standard levels, and the code composition of standard-setting materials is composed of material feature codes, material associations and material personality.

[0044] Furthermore, the method for optimizing the standard file archive encoding model according to the encoding type includes:

[0045] The coding type is set according to the topological order of the links in the network, and the genes corresponding to the output links of the source nodes are ranked first. For any node in the network, the genes corresponding to each input link are ranked before the genes corresponding to all output links. The population is initialized, and the coding type genes are set according to the topological order of the links. The genes are randomly assigned and the fitness function is given. The calculation formula of the fitness function is:

[0046] f(β)=∑ t∈T K t (β)

[0047] The throughput obtained by the hierarchical coding allocation state t represented by the coding type β is K t (β), β is the total throughput obtained by the sink, f(β), the number of sinks is T, the coding types are ranked according to the fitness value, and the selection probability of the coding type is calculated:

[0048]

[0049] The encoding type is i and the number of encoding types is p sz , the probability is θ, the selection probability is accumulated in order to obtain the accumulated probability sequence, the random number is used to select the coding type to enter the next generation, the operation is repeated until a sufficient number of coding types are selected, two coding types are selected as crossover objects, the genes of the source node output link are selected for crossover operation to obtain two new coding types, one is selected from the genes of each link for mutation operation, the fitness value of the newly generated coding type is calculated, the new coding type and the original coding type are merged into a population, the coding types in the population are sorted according to the fitness value, the coding type with the highest fitness is selected as the optimal coding type, the coding type is selected according to the roulette wheel to enter the next generation, and the iteration is stopped when the fitness function value of the optimal coding type remains unchanged.

[0050] Furthermore, the display method includes extracting and displaying a standard full-process material through material association, classifying and displaying it according to the material feature code, designing the displayed material name as a link, clicking to enter the material page, viewing the specific information of the material, and the page containing other related material information.

[0051] The beneficial effects of the present invention are:

[0052] The present invention is a coding and display method for integrated management of standard file archives. Compared with the prior art, the present invention has the following technical effects:

[0053] The present invention can improve the accuracy of standard file archive coding through preprocessing, feature extraction, classification, information tree construction, standard file archive coding model construction and optimization of standard file archive coding model steps, thereby improving the accuracy of standard file archive coding, and making standard file archive coding intelligent, which can greatly save resources and labor costs, improve work efficiency, and can realize automatic coding of standard file archives, and perform feature extraction on file archives to be coded in real time, which is of great significance to standard file archive coding, can adapt to standard file archive coding of different standards and standard file archive coding of different systems, and has a certain universality. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 The present invention is a flowchart of the steps of a coding and display method for integrated management of standard file archives. DETAILED DESCRIPTION

[0055] The present invention is further described below by means of specific embodiments. The illustrative embodiments and descriptions of the present invention are used to explain the present invention but are not intended to limit the present invention.

[0056] The present invention provides a coding and display method for integrated management of standard file archives, comprising the following steps:

[0057] like Figure 1 As shown, in this embodiment, the following steps are included:

[0058] A obtains a file to be encoded, preprocesses the file to be encoded, and extracts the material type, project category and program level of the preprocessed file to be encoded to obtain relevant information;

[0059] In the actual evaluation, 8 groups of files to be encoded were randomly given:

[0060] The first group of smart home control system standardization is in the project establishment stage, March 18, 2023;

[0061] Draft of the second group of smart home control system standards working group, in the drafting stage, May 19, 2003;

[0062] Draft for comments on Group 3 smart home control system standards, in the comment stage, March 25, 2023;

[0063] Minutes of the 4th Group Smart Security System Standard Review Meeting, in the technical review stage, November 21, 2021;

[0064] Compilation of official documents on the formulation of the fifth group of intelligent security system standards, in the project establishment stage, March 7, 2022;

[0065] Draft of the 6th Group of Intelligent Security System Standard Working Group, in the drafting stage, December 10, 2021;

[0066] Summary of the test and verification report of the 7th group of intelligent logistics systems, which is in the test and verification stage, July 19, 2018;

[0067] The 8th group of intelligent logistics system standards was released, which is in the release stage, on September 29, 2018;

[0068] The above 8 groups of files to be coded are taken as the research objects;

[0069] B extracts the standard features of the relevant information, obtains the classification data of the file to be encoded according to the standard features, and associates the program level with the classification data to obtain standard classification data;

[0070] : In the actual evaluation, the characteristics of Group 1 are the formulation of smart home control system standardization, project establishment, and March 18, 2023; the characteristics of Group 2 are the draft of the smart home control system standard working group, organization drafting, and May 19, 2003; the characteristics of Group 3 are the draft of the smart home control system standard for soliciting opinions, solicitation of opinions, and March 25, 2023; the characteristics of Group 4 are the minutes of the smart security system standard review meeting, technical review, and November 21, 2021; the characteristics of Group 5 are the compilation of official documents on the formulation of smart security system standards, project establishment, and March 7, 2022; the characteristics of Group 6 are the draft of the smart security system standard working group, organization drafting, and December 10, 2021; the characteristics of Group 7 are the summary of the test verification report of the smart logistics system, test verification, and July 19, 2018; the characteristics of Group 8 are the announcement of the release of the smart logistics system standard, release, and September 29, 2018. The first-level classification is documents and archives, and the second-level classification is documents and archives. The categories are project proposal, project plan, standard working group draft, standard opinion solicitation draft, standard compilation description, opinion solicitation document, opinion summary table, review meeting minutes, test verification materials, standard release announcement. The procedural levels are proposal, project establishment, drafting, opinion solicitation, technical review, approval, numbering, and release. The first-level classification archives include Group 1, Group 4, Group 5, and Group 7. The first-level classification materials include Group 2, Group 3, Group 6, and Group 8. The second-level classification is that the standard working group draft includes Group 2 and Group 6, the standard opinion solicitation draft is Group 3, and the standard release announcement is Group 8 respectively; the standard compilation description is Group 1, the review meeting minutes of the archives are Group 4, the opinion summary table is Group 5, and the test verification materials are Group 7. The information associated with the standard classification data is Group 1 project establishment, Group 4 technical review, Group 5 project establishment, Group 7 test verification, Group 2 organization drafting, Group 3 opinion solicitation, Group 6 organization drafting, and Group 8 standard release.

[0071] C. construct an information tree using the standard classification data and formulate a coding scheme;

[0072] In the actual evaluation, the code of archive 15 is A, the code of document is B, the codes of secondary classification are project application, project plan, draft of standard working group, draft of standard for soliciting opinions, standard compilation instructions, solicitation of opinions, opinion summary table, review meeting minutes, test verification materials, standard release announcement are D01, D02, D03, D04, D05, D06, D07, D08, D09, D10 respectively, the codes of program level are proposal, project establishment, drafting, solicitation of opinions, technical review, approval, numbering, release are F01, F02, F03, F04, F05, F06, F07, F08 respectively, the categories are smart home code Z01, smart security code Z02, smart logistics code Z03, and the coding scheme is material type + program level + secondary classification + category + time;

[0073] D. constructing a standard file archive coding model according to the coding scheme, and optimizing the standard file archive coding model according to the coding type; the method for constructing a standard file archive coding model according to the coding scheme includes:

[0074] The standard file archive coding model is constructed using a layered coding algorithm, a hash search algorithm, and an insertion algorithm. The insertion algorithm is used to update and remove duplicates from the standard file archive, where the similarity of the standard file archive content is calculated:

[0075]

[0076] The i-th standard file is d i , the jth standard file is d j , the dimension of the feature vector is h, the number of dimensions of the feature vector h is q, and the weight value of the hth feature item of the i-th standard file archive is ω ih , the weight value of the hth feature item of the jth standard file is ω jh , update and deduplicate the data of the standard file archive by similarity, encode the updated and deduplicated standard file archive by using a layered encoding algorithm according to the encoding scheme, establish an index for the encoded standard file archive by using a hash search algorithm, and use a random forest algorithm to randomly divide the information tree into a training set and a test set in a ratio of 4:1, train the standard file archive encoding model by using the training set, and use the test set to test the results of the trained standard file archive encoding model;

[0077] E. inputting the information tree into the optimized standard file archive encoding model, outputting the encoding result and displaying it;

[0078] In the actual evaluation, the codes for Group 1, Group 4, Group 5, and Group 7 are AF02D05Z0120230318, AF05D08Z0220211121, AF02D07Z0220220307, ​​and AF05D09Z0320180719, and the codes for Group 2, Group 3, Group 6, and Group 8 are BF03D03Z0120030519, BF04D04Z0120230325, BF03D03Z0220211210, and BF08D10Z0320180929.

[0079] In this embodiment, the preprocessing described in step A includes cleaning, screening, extracting text, removing stop words, segmenting, tagging, deduplication, merging and data conversion.

[0080] In this embodiment, the method of extracting the material type, project category and program level of the pre-processed file archive to be encoded to obtain relevant information includes:

[0081] The pre-processed file to be coded is subjected to morpheme analysis to generate morphemes, and the standard content text is compared with the file to be coded. The standard content text is the material type, project category and program level, and the relevance score between the standard content text and the file to be coded is calculated:

[0082]

[0083] The file to be encoded is A, and the i-th morpheme is a i , the total number of texts to be matched is M, and the number of texts in which the current word of the standard content text appears is v(a i ), the adjustment factors are c1, d, the number of matches with the standard content text is |E|, and the average length of all the stable words in the corpus is The search result is E. Repeat the matching until the file archive to be encoded is traversed. The material type, project category and program level category with the highest correlation score is taken as the material type, project category and program level of the file archive to be encoded, and the material type, project category and program level of the file archive to be encoded are output.

[0084] In this embodiment, the method for extracting the standard features of the relevant information includes:

[0085] Loop through the relevant information to read the feature terms and related category information, count the word frequency and document frequency of the feature terms, and calculate the degree of deviation of the feature terms relative to the category:

[0086]

[0087] Among them, category c i The number of documents containing feature s is u1(s), and the average number of documents containing feature s in each category is The number of documents containing feature s in the relevant information is u(s). The intra-class feature frequency and intra-class concentration frequency of the feature words in the text category are calculated:

[0088]

[0089]

[0090] The number of relevant information is m, the frequency of the feature within the class is F, and the number of standard words in the jth text category is R jt (a), the number of standard words of feature s in the jth text category is R jt (s), the number of categories of relevant information is n, and the mutual information value of the feature words is calculated:

[0091]

[0092] The probability of a document containing feature s is b(s), and in category c i The probability of a document containing feature s is b(s|c i ), the feature words are arranged in descending order according to the mutual information value, and a predetermined number of feature terms are selected to form a standard feature set.

[0093] In this embodiment, the method for obtaining the classification data of the to-be-encoded file archive according to the standard features includes:

[0094] Take sampling with replacement from the file archive to be encoded, construct a sub-dataset, use the sub-dataset to construct a decision tree, input the sub-dataset into the sub-decision tree, and randomly select one-third of the features from the standard features.

[0095] Calculate the importance scores of standard features:

[0096] The ath feature is s a , features a The importance score is gn(s a ), the proportion of the ath feature is p(a), the number of features is n, and the operation is repeated until all features are traversed. The standard features are sorted in descending order according to the importance score, and the first three features are used as classification features. According to the classification features, the first-level classification is performed on the coded file archives, and the first-level classification is classified again to obtain the second-level classification.

[0097] In this embodiment, the method of constructing an information tree using the standard classification data includes:

[0098] Divide the standard classification data into subsets and calculate the empirical entropy of the standard classification data:

[0099]

[0100] The standard classification data is u, the number of samples of the standard classification data is |u|, the feature of the standard classification data is i, and the number of samples of the i-th category is |b i |, the number of categories of standard classification data is g, and the empirical conditional entropy of standard features for standard classification data is calculated:

[0101]

[0102] The subset of standard classification data is s, and the number of standard classification data in the sth subset is u s , the standard classification data set containing category k in the sth subset is b si , standard classification data set b si The number of |b si |, the number of subsets s is n, the feature is e, and the information gain is calculated:

[0103] q(u,e)=H(u|e)

[0104] Set the threshold of information gain. If all standard classification information in the standard classification data belongs to the same category, the decision tree is a single-node tree. The category is used as the node label and the information tree is returned.

[0105] If the feature set is empty, the decision tree is a single-node tree, and the category with the highest frequency of set loyalty is used as the node label, and the information tree is returned;

[0106] Otherwise, the information gain of the standard features in the feature set for the standard classification data is calculated, and the standard feature with the largest information gain is selected; if the maximum information gain corresponding to the standard feature is less than the threshold, the decision tree is a single-node tree, and the category with the highest frequency in the set is used as the node mark, and the information tree is returned;

[0107] Otherwise, for each possible value of the standard feature corresponding to the maximum information gain, the standard classification data is divided into multiple non-empty sets, the category with the highest frequency in the non-empty set is used as a marker, and a child node is constructed, and the node and child nodes form an information tree;

[0108] In the actual assessment, the two main branches of the information tree are archives and materials. The branches of materials are the draft of the standard working group, the draft of the standard for soliciting opinions, and the announcement of the standard release. The branches of archives are the instructions for the preparation of standards, the minutes of the review meeting, the summary of opinions, and the test verification materials. The branches of materials are the draft of the standard working group including Group 2 and Group 6, the draft of the standard for soliciting opinions of the document is Group 3, and the announcement of the standard release of the document is Group 8 respectively. The instructions for the preparation of the archives are Group 1, the minutes of the review meeting of the archives are Group 4, the summary of opinions of the archives is Group 5, and the test verification materials of the archives are Group 7.

[0109] In this embodiment, the method for formulating a coding scheme includes establishing a code dictionary for standard formulation materials, including code items and code category items, wherein secondary codes are associated with program codes, and the code dictionary manages secondary codes and program codes of different standard levels. The code composition of standard formulation materials is composed of material feature codes, material associations and material personality.

[0110] In this embodiment, the method for optimizing the standard file archive encoding model according to the encoding type includes:

[0111] The coding type is set according to the topological order of the links in the network, and the genes corresponding to the output links of the source nodes are ranked first. For any node in the network, the genes corresponding to each input link are ranked before the genes corresponding to all output links. The population is initialized, and the coding type genes are set according to the topological order of the links. The genes are randomly assigned and the fitness function is given. The calculation formula of the fitness function is:

[0112]

[0113] The throughput obtained by the hierarchical coding allocation state t represented by the coding type β is K t (β), β is the total throughput obtained by the sink, f(β), the number of sinks is T, the coding types are ranked according to the fitness value, and the selection probability of the coding type is calculated:

[0114]

[0115] The encoding type is i and the number of encoding types is p sz , the probability is θ, the selection probability is accumulated in order to obtain the accumulated probability sequence, the random number is used to select the coding type to enter the next generation, the operation is repeated until a sufficient number of coding types are selected, two coding types are selected as crossover objects, the genes of the source node output link are selected for crossover operation to obtain two new coding types, one is selected from the genes of each link for mutation operation, the fitness value of the newly generated coding type is calculated, the new coding type and the original coding type are merged into a population, the coding types in the population are sorted according to the fitness value, the coding type with the highest fitness is selected as the optimal coding type, the coding type is selected according to the roulette wheel to enter the next generation, and the iteration is stopped when the fitness function value of the optimal coding type remains unchanged.

[0116] Furthermore, the display method includes extracting and displaying a standard full-process material through material association, classifying and displaying it according to the material feature code, designing the displayed material name as a link, clicking to enter the material page, viewing the specific information of the material, and the page contains other related material information.

[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A coding and display method for integrated management of standard file archives, characterized in that: The following steps are involved: A obtains a file to be encoded, preprocesses the file to be encoded, and extracts the material type, project category and program level of the preprocessed file to be encoded to obtain relevant information; B extracts the standard features of the relevant information, obtains the classification data of the file to be encoded according to the standard features, and associates the program level with the classification data to obtain standard classification data; C. construct an information tree using the standard classification data and formulate a coding scheme; include: Divide the standard classification data into subsets and calculate the empirical entropy of the standard classification data: The standard classification data is u, the number of samples of the standard classification data is |u|, the feature of the standard classification data is i, and the number of samples of the i-th category is |b i |, the number of categories of standard classification data is g, and the empirical conditional entropy of standard features for standard classification data is calculated: The subset of standard classification data is s, and the number of standard classification data in the sth subset is u s , the standard classification data set containing category k in the sth subset is b si , standard classification data set b si The number of |b si |, the number of subsets s is n, the feature is e, and the information gain is calculated: q(u,e)=H(u|e) Set the threshold of information gain. If all standard classification information in the standard classification data belongs to the same category, the decision tree is a single-node tree. The category is used as the node label and the information tree is returned. If the feature set is empty, the decision tree is a single-node tree, and the category with the highest frequency of set loyalty is used as the node label, and the information tree is returned; Otherwise, the information gain of the standard features in the feature set for the standard classification data is calculated, and the standard feature with the largest information gain is selected; if the maximum information gain corresponding to the standard feature is less than the threshold, the decision tree is a single-node tree, and the category with the highest frequency in the set is used as the node mark, and the information tree is returned; Otherwise, for each possible value of the standard feature corresponding to the maximum information gain, the standard classification data is divided into multiple non-empty sets, the category with the highest frequency in the non-empty set is used as a marker, and a child node is constructed, and the node and child nodes form an information tree; D. constructing a standard file archive coding model according to the coding scheme, and optimizing the standard file archive coding model according to the coding type; the method for constructing a standard file archive coding model according to the coding scheme includes: a. Set the encoding type according to the topological order of the links in the network, put the gene corresponding to the output link of the source node in the first place, and put the gene corresponding to each input link before the gene corresponding to all output links for any node in the network; initialize the population, set the encoding type gene according to the topological order of the link, randomly assign values ​​to the gene, and give the fitness function. The calculation formula of the fitness function is: f(β)=∑ t∈T K t (b) The throughput obtained by the hierarchical coding allocation state t represented by the coding type β is K t (β), β is the total throughput obtained by the sink, f(β), the number of sinks is T, the coding types are ranked according to the fitness value, and the selection probability of the coding type is calculated: The encoding type is i and the number of encoding types is p sz , the probability is θ, the selection probability is accumulated in order to obtain the accumulated probability sequence, the random number is used to select the coding type to enter the next generation, the operation is repeated until a sufficient number of coding types are selected, two coding types are selected as crossover objects, the genes of the source node output link are selected for crossover operation to obtain two new coding types, one is selected from the genes of each link for mutation operation, the fitness value of the newly generated coding type is calculated, the new coding type and the original coding type are merged into a population, the coding types in the population are sorted according to the fitness value, the coding type with the highest fitness is selected as the optimal coding type, the coding type is selected according to the roulette wheel to enter the next generation, and the iteration is stopped when the fitness function value of the optimal coding type remains unchanged; b. The standard file archive coding model is constructed using a layered coding algorithm, a hash search algorithm, and an insertion algorithm. The insertion algorithm is used to update and remove duplicates from the standard file archive, where the similarity of the standard file archive content is calculated: The i-th standard file is d i , the jth standard file is d j , the dimension of the feature vector is h, the number of dimensions of the feature vector h is q, and the weight value of the hth feature item of the i-th standard file archive is ω ih , the weight value of the hth feature item of the jth standard file is ω jh , update and deduplicate the data of the standard file archive by similarity, encode the updated and deduplicated standard file archive by using a layered encoding algorithm according to the encoding scheme, establish an index for the encoded standard file archive by using a hash search algorithm, and use a random forest algorithm to randomly divide the information tree into a training set and a test set in a ratio of 4:1, train the standard file archive encoding model by using the training set, and use the test set to test the results of the trained standard file archive encoding model; E inputs the information tree into the optimized standard file archive encoding model, outputs the encoding result and displays it.

2. A method for encoding and displaying integrated management of standard document archives according to claim 1, characterized in that: The preprocessing described in step A includes cleaning, screening, text extraction, stop word removal, word segmentation, tagging, deduplication, merging and data conversion.

3. The method for encoding and displaying integrated management of standard documents and archives according to claim 1, characterized in that: The method for extracting the material type, project category and program level of the pre-processed file archive to be encoded to obtain relevant information includes: The pre-processed file to be coded is subjected to morpheme analysis to generate morphemes, and the standard content text is compared with the file to be coded. The standard content text is the material type, project category and program level, and the relevance score between the standard content text and the file to be coded is calculated: The file to be encoded is A, and the i-th morpheme is a i , the total number of texts to be matched is M, and the number of texts in which the current word of the standard content text appears is v(a i ), the adjustment factors are c1, d, the number of matches with the standard content text is |E|, and the average length of all the stable words in the corpus is The search result is E. Repeat the matching until the file archive to be encoded is traversed. The material type, project category and program level category with the highest correlation score is taken as the material type, project category and program level of the file archive to be encoded, and the material type, project category and program level of the file archive to be encoded are output.

4. The method for encoding and displaying integrated management of standard documents and archives according to claim 1, characterized in that: The method for extracting the standard features of the relevant information includes: Loop through the relevant information to read the feature terms and related category information, count the word frequency and document frequency of the feature terms, and calculate the degree of deviation of the feature terms relative to the category: Among them, category c i The number of documents containing feature s is u1(s), and the average number of documents containing feature s in each category is The number of documents containing feature s in the relevant information is u(s). The intra-class feature frequency and intra-class concentration frequency of the feature words in the text category are calculated: The number of relevant information is m, the frequency of the feature within the class is F, and the number of standard words in the jth text category is R jt (a), the number of standard words of feature s in the jth text category is R jt (s), the number of categories of relevant information is n, and the mutual information value of the feature words is calculated: The probability of a document containing feature s is b(s), and in category c i The probability of a document containing feature s is b(s|c i ), the feature words are arranged in descending order according to the mutual information value, and a predetermined number of feature terms are selected to form a standard feature set.

5. The method for encoding and displaying integrated management of standard documents and archives according to claim 1, characterized in that: The method for obtaining the classification data of the to-be-encoded file archive according to the standard features comprises: Take sampling with replacement from the file archive to be encoded, construct a sub-dataset, use the sub-dataset to construct a decision tree, input the sub-dataset into the sub-decision tree, randomly select one-third of the features from the standard features, and calculate the importance score of the standard features: The ath feature is s a , features a The importance score is gn(s a ), the proportion of the ath feature is p(a), the number of features is n, and the operation is repeated until all features are traversed. The standard features are sorted in descending order according to the importance score, and the first three features are used as classification features. According to the classification features, the first-level classification is performed on the coded file archives, and the first-level classification is classified again to obtain the second-level classification.

Citation Information

Patent Citations

  • KNN text classifying method for optimizing training sample set

    CN104063472A

  • Consistency inspection method for standard elements

    CN112395854A

  • Customs declaration commodity HS code classification method and device

    CN113343640A

  • Layered structure text classification method and system, electronic equipment and storage medium

    CN114281983A

  • Automatic matching and classifying method and system for digital personnel file titles

    CN115617985A