Electronic archiving data storage method and system
By calculating and correcting the weight of each character in the paper in the Huffman compression algorithm, the problem of poor keyword protection in the existing technology is solved, the compression rate is improved, and the risk of data corruption is reduced.
Patent Information
- Application Number
- CN202410904316.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The existing Huffman compression algorithm cannot effectively protect keywords when compressing papers, resulting in low compression rates and easy damage or loss of key data.
By determining the initial weight of each character in the Huffman tree in the paper to be compressed, calculating its parameters based on the distribution characteristics of non-key high-frequency words and key high-frequency words, and making corrections based on papers in different fields to ensure that key high-frequency words are Words are weighted higher, improving compression and protecting critical data.
The compression rate is improved to ensure that key high-frequency words are better protected during the compression process, reducing the risk of data loss or damage.
Smart Images

Figure CN118445264B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to an electronic archiving data storage method and system. Background Art
[0002] Electronic archiving refers to the process of collecting, organizing, cataloging, and storing electronic files in an electronic archive management system in accordance with standardized procedures and requirements to form electronic archives. Text data often takes up a large amount of storage space during the electronic archiving process. Compression of text data can reduce the storage requirements of text data, thereby saving hard disk or server space, reducing data volume, and speeding up data transmission.
[0003] Commonly used compression algorithms include the Huffman compression algorithm. When using the Huffman compression algorithm to compress paper text data, only the frequency of character occurrence is counted, so that the more frequently occurring characters have higher weights and the corresponding codes are shorter, thereby achieving text compression. However, there will be some keywords in the paper. When compressing the paper, it is necessary to give the keywords a higher weight to give them a higher compression rate, ensuring that they are better protected during the compression process and reducing the risk of critical data loss or damage. Summary of the invention
[0004] The present invention provides an electronic archiving data storage method and system to solve the existing problems.
[0005] An electronic archiving data storage method and system of the present invention adopts the following technical solutions:
[0006] An embodiment of the present invention provides a method for storing electronic archiving data, the method comprising the following steps:
[0007] Determine the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree when using the Huffman compression algorithm;
[0008] Obtain key high-frequency words and non-key high-frequency words in the paper to be compressed, determine the non-key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the non-key high-frequency words, determine the initial key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the key high-frequency words and in combination with the non-key high-frequency word parameters of each character in the paper to be compressed, analyze papers in different fields, correct the initial key high-frequency word parameters of each character in the paper to be compressed, and obtain the final key high-frequency word parameters of each character in the paper to be compressed;
[0009] According to the final parameters of the key high-frequency words of each character in the paper to be compressed and the initial weight of the corresponding node of each character in the constructed Huffman tree, the final weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree is determined, the encoding of each character in the paper to be compressed is obtained, and the paper to be compressed is compressed and stored.
[0010] Furthermore, the specific method of determining the non-critical high-frequency word parameters of each character in the paper to be compressed includes:
[0011] For each recognized character, sort them from left to right and from top to bottom, and use the serial number of each character as the position of each character;
[0012] According to the characters in the paper to be compressed Number of occurrences, characters No. The position and character of the occurrence No. The position and character of the occurrence The position of the first and last occurrence, and the character The average value of the difference between the previous and next position of each occurrence, and calculate the characters in the paper Non-critical high-frequency word parameters.
[0013] Furthermore, the calculation of the characters in the paper to be compressed The specific calculation method of non-critical high-frequency word parameters is:
[0014]
[0015] In the formula, Indicates the characters in the paper to be compressed Non-critical high-frequency word parameters; Indicates the characters in the paper to be compressed The maximum value of the occurrence position; Indicates the characters in the paper to be compressed The minimum value of the occurrence position; Indicates the characters in the paper to be compressed Number of occurrences; Indicates the characters in the paper to be compressed No. The position of the next occurrence; Indicates the characters in the paper to be compressed No. The position of the next occurrence; Indicates the characters in the paper to be compressed The average of the differences between the previous and next positions of each position; represents the normalization function; Represents an exponential function with a constant as base.
[0016] Furthermore, the specific calculation method of the initial parameters of the key high-frequency words of each character in the paper to be compressed is:
[0017]
[0018] In the formula, Indicates the characters in the paper to be compressed Initial parameters of key high-frequency words; Indicates the characters in the paper to be compressed Non-critical high-frequency word parameters; Indicates the characters in the paper to be compressed Number of appearances in paper titles and figures; Indicates the total number of characters in the title and figures of the paper to be compressed; Indicates the characters in the paper to be compressed Number of occurrences; Indicates the total number of characters in the paper to be compressed; represents an exponential function with a natural constant as base; Represents the normalization function.
[0019] Furthermore, the analysis is combined with papers in different fields, the initial parameters of key high-frequency words of each character in the paper to be compressed are corrected, and the final parameters of key high-frequency words of each character in the paper to be compressed are obtained, including the specific method of:
[0020] Select several papers in other fields as comparative papers, and count the characters in each comparative paper. The initial parameters of the key high-frequency words are based on the characters in each comparison paper. The initial parameters of the key high-frequency words and the characters in the paper to be compressed The initial parameters of the key high-frequency words are used to obtain the characters in the paper to be compressed. The final parameters of the key high-frequency words.
[0021] Furthermore, the specific calculation method of the final weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree is:
[0022] According to the characters in the paper to be compressed The final parameters and characters of the key high frequency words The initial weight of the corresponding node in the constructed Huffman tree determines the characters in the paper to be compressed The final weight of the corresponding node in the constructed Huffman tree, the characters in the paper to be compressed The final parameters and characters of the key high frequency words The initial weights of the corresponding nodes in the constructed Huffman tree are in direct proportion.
[0023] Furthermore, the specific method of obtaining the encoding of each character in the paper to be compressed includes:
[0024] Determine the final weight of the node corresponding to each character in the paper to be compressed, construct a Huffman tree, mark each branch of the Huffman tree, mark the left branch of each node as 0, and the right branch as 1, and connect the labels on the path from the root to each node along the Huffman tree to obtain the encoding of the node corresponding to each character in the paper to be compressed in the Huffman tree.
[0025] Furthermore, the specific method of obtaining the key high-frequency words and non-key high-frequency words in the paper to be compressed includes:
[0026] Obtain the frequency of occurrence of each character in the paper to be compressed, record the characters whose frequency of occurrence is greater than a preset first threshold as high-frequency characters, record the characters that constitute the paper keywords among the high-frequency characters as key high-frequency characters, and record the characters that serve as sentence components among the high-frequency characters as non-key high-frequency characters.
[0027] Furthermore, the specific method of determining the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree when using the Huffman compression algorithm includes:
[0028] Get the paper to be compressed, use the optical character recognition algorithm to extract all the characters in the paper to be compressed, then use the hash table algorithm to count the number of times each character appears in the paper to be compressed, and use the number of times each character appears in the paper to be compressed as the initial weight of the node corresponding to each character when constructing the Huffman tree.
[0029] An electronic archiving data storage system comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any step of the electronic archiving data storage method is implemented.
[0030] The beneficial effects of the technical solution of the present invention are as follows: determining the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree when using the Huffman compression algorithm, determining the non-key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the non-key high-frequency words in the paper to be compressed, determining the key high-frequency word initial parameters of each character in the paper to be compressed according to the non-key high-frequency word parameters of each character in the paper to be compressed and in combination with the distribution characteristics of the key high-frequency words, analyzing papers in different fields, correcting the key high-frequency word initial parameters of each character in the paper to be compressed, obtaining the key high-frequency word final parameters of each character in the paper to be compressed, determining the final weight of the corresponding node of each character in the paper to be compressed in the Huffman tree according to the key high-frequency word final parameters of each character in the paper to be compressed and the initial weight of each character in the constructed Huffman tree, making the final weight of the corresponding node of each character in the Huffman tree more accurate, making the weight of the key high-frequency words higher, thereby having a higher compression rate, and ensuring that the key high-frequency words are better protected during the compression process. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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.
[0032] Figure 1 The present invention is a flowchart of the steps of an electronic archiving data storage method. DETAILED DESCRIPTION
[0033] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the electronic archiving data storage method and system proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0034] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0035] The following describes in detail a specific scheme of an electronic archiving data storage method and system provided by the present invention with reference to the accompanying drawings.
[0036] See also Figure 1, which shows a flowchart of a method for electronic archiving data storage provided by an embodiment of the present invention, the method comprising the following steps:
[0037] Step S001: Determine the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree when using the Huffman compression algorithm.
[0038] Specifically, in order to implement the electronic archiving data storage method proposed in this embodiment, it is first necessary to determine the initial weight of the corresponding node of each character in the compressed paper in the constructed Huffman tree when the paper is compressed using the Huffman compression algorithm. The specific process is:
[0039] Get the paper to be compressed, use the optical character recognition algorithm to extract all the characters in the paper to be compressed, then use the hash table algorithm to count the number of times each character appears in the paper to be compressed, and use the number of times each character appears in the paper to be compressed as the initial weight of the node corresponding to each character when constructing the Huffman tree.
[0040] It should be noted that each paper must be compressed into a compressed document, so a Huffman tree needs to be constructed for each paper. Each character in the paper corresponds to a node in the Huffman tree. The number of character types appearing in the paper is the number of nodes in the constructed Huffman tree, and the number of times each character appears in the paper is the weight of the corresponding node.
[0041] It should be noted that the optical character recognition algorithm and the hash table algorithm are existing technologies and will not be described in detail here.
[0042] At this point, the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree is obtained through the above method.
[0043] Step S002: Obtain key high-frequency words and non-key high-frequency words in the paper to be compressed, determine the non-key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the non-key high-frequency words, determine the initial key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the key high-frequency words and in combination with the non-key high-frequency word parameters of each character in the paper to be compressed, analyze in combination with papers in different fields, correct the initial key high-frequency word parameters of each character in the paper to be compressed, and obtain the final key high-frequency word parameters of each character in the paper to be compressed.
[0044] It should be noted that when compressing a paper, a higher weight should be given to key high-frequency words to make it have a higher compression rate. Therefore, it is necessary to first obtain the key high-frequency words and non-key high-frequency words in the paper to be compressed, analyze the distribution characteristics of the key high-frequency words and non-key high-frequency words, determine the non-key high-frequency word parameters and key high-frequency word initial parameters of each character, and then correct the key high-frequency word initial parameters of each character, and further obtain the key high-frequency word final parameters of each character, so as to correct the initial weight of the node in the Huffman tree corresponding to each character in the paper to be compressed.
[0045] Specifically, step (2.1) obtains key high-frequency words and non-key high-frequency words in the paper to be compressed.
[0046] The occurrence frequency of each character in the paper to be compressed is obtained, and characters whose occurrence frequency is greater than a preset first threshold are recorded as high-frequency characters. The high-frequency characters include not only characters that constitute the paper keywords, but also some characters that serve as sentence components. In the paper, the keywords appear at a high frequency, so the characters that constitute the paper keywords among the high-frequency characters are recorded as key high-frequency characters, and the characters that serve as sentence components among the high-frequency characters are recorded as non-key high-frequency characters.
[0047] Step (2.2), according to the distribution characteristics of the non-key high-frequency words in the paper to be compressed, determine the non-key high-frequency word parameters of each character in the paper to be compressed.
[0048] It should be noted that, because non-key high-frequency characters are usually components of sentences, they are widely distributed in the paper and are usually distributed relatively evenly, so it is necessary to determine the position where each character appears.
[0049] First, for each recognized character, sort them from left to right and from top to bottom, and use the serial number of each character as its position for subsequent calculations.
[0050] Then, according to the characters in the paper to be compressed Number of occurrences, characters No. The position and character of the occurrence No. +1 occurrence of position, character The position of the first and last occurrence, and the character The average value of the difference between the previous and next position of each occurrence, and calculate the characters in the paper The non-critical high-frequency word parameters are calculated as follows:
[0051]
[0052] In the formula, Indicates the characters in the paper to be compressed Non-critical high-frequency word parameters; Indicates the characters in the paper to be compressed The maximum value of the occurrence position, that is, the character The location of the last occurrence; Indicates the characters in the paper to be compressed The minimum value of the occurrence position, that is, the character The location of the first occurrence; Indicates the characters in the paper to be compressed Number of occurrences; Indicates the characters in the paper to be compressed No. The position of the next occurrence; Indicates the characters in the paper to be compressed No. The position of the next occurrence; Indicates the characters in the paper to be compressed The average of the differences between the previous and next positions of each position; represents the normalization function; Represents an exponential function with a constant as base.
[0053] It should be noted that in the paper to be compressed, the wider the range of non-key high-frequency words appears, the more characters The farther the first and last occurrences are, the more The greater the difference between the maximum and minimum values of the occurrence position, the The larger the value, the more characters The larger the non-key high-frequency word parameter is, the more evenly distributed the non-key high-frequency words are. The variance at each position and its adjacent positions is small, that is, The value is small, the character The smaller the non-critical high-frequency word parameter is, the corresponding The larger the value of .
[0054] Step (2.3) determines the initial key high-frequency word parameters of each character in the paper to be compressed based on the distribution characteristics of the key high-frequency words and in combination with the non-key high-frequency word parameters of each character in the paper to be compressed.
[0055] It should be noted that key high-frequency words appear more frequently in papers, and also appear more frequently in paper titles and charts. The frequency of characters being key high-frequency words is inversely proportional to the frequency of characters being non-key high-frequency words. The initial key high-frequency word parameters of each character in the paper can be determined based on these characteristics.
[0056] Specifically, according to the characters in the paper to be compressed Non-critical high-frequency word parameters, characters in the paper to be compressed The number of times it appears in the paper title and figures, the total number of characters in the paper title and figures to be compressed, and the number of characters in the paper to be compressed. The number of occurrences, the total number of characters in the paper to be compressed, and the number of characters in the paper to be compressed The initial parameters of the key high-frequency words are calculated as follows:
[0057]
[0058] In the formula, Indicates the characters in the paper to be compressed Initial parameters of key high-frequency words; Indicates the characters in the paper to be compressed Non-critical high-frequency word parameters; Indicates the characters in the paper to be compressed Number of appearances in paper titles and figures; Indicates the total number of characters in the title and figures of the paper to be compressed; Indicates the characters in the paper to be compressed Number of occurrences; Indicates the total number of characters in the paper to be compressed; represents an exponential function with a natural constant as base; Represents the normalization function.
[0059] It should be noted that the characters in the paper The initial parameters and characters of the key high-frequency words The initial parameters of non-critical high-frequency words are inversely proportional, that is, The smaller the value, the corresponding The larger the value of is, the more frequently the key high-frequency words appear in the paper titles and figures, i.e. The larger the value, the more characters The larger the initial parameter of the key high-frequency word, the The higher the frequency of occurrence in the paper, the The larger the value, the more characters The larger the initial parameters of the key high-frequency words.
[0060] Step (2.4) combines the papers in different fields for analysis, corrects the initial parameters of the key high-frequency words of each character in the paper to be compressed, and obtains the final parameters of the key high-frequency words of each character in the paper to be compressed.
[0061] It should be noted that for papers, keywords have high field professionalism and specificity. In papers randomly selected from different fields, the repetition rate of keywords will be extremely low, and the repetition rate of the initial parameters of key high-frequency words corresponding to the characters that constitute the keywords will also be extremely low, while the non-key high-frequency words that constitute the sentence components will have a higher repetition rate. Therefore, the initial parameters of key high-frequency words for each character in the compressed paper can be corrected based on this feature.
[0062] Specifically, select several papers in other fields as comparative papers, and calculate the number of characters in each comparative paper. The initial parameters of the key high-frequency words are based on the characters in each comparison paper. The initial parameters of the key high-frequency words and the characters in the paper to be compressed The initial parameters of the key high-frequency words are used to compress the characters in the paper. The initial parameters of the key high-frequency words are corrected, and the characters in the paper to be compressed after correction are The initial parameters of the key high-frequency words are recorded as characters The final parameters of the key high-frequency words, the characters in the paper to be compressed The specific calculation method of the final parameters of the key high-frequency words is:
[0063]
[0064] In the formula, Indicates the characters in the paper to be compressed Final parameters of key high frequency words; represents the number of comparison papers, Indicates the characters in the paper to be compressed Initial parameters of key high-frequency words; Indicated in Characters in the comparison paper Initial parameters of key high-frequency words; Indicates taking the absolute value.
[0065] It should be noted that Indicates the characters in the paper to be compressed The initial parameters of the key high-frequency words and the characters in the comparative paper The difference between the initial parameters of the key high-frequency words is that the keywords in the paper have high field expertise and specificity, so the characters The larger the initial parameters of the key high-frequency words in the field of the paper to be compressed, the smaller the initial parameters of the key high-frequency words in the comparison paper. The larger the value, the more characters in the paper to be compressed. The higher the key high-frequency words, the larger the final parameters.
[0066] At this point, the final key high-frequency word parameters of each character in the paper to be compressed are obtained through the above method.
[0067] Step S003: According to the final parameters of the key high-frequency words of each character in the paper to be compressed and the initial weight of the corresponding node of each character in the constructed Huffman tree, determine the final weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree, obtain the encoding of each character in the paper to be compressed, and compress and store the paper to be compressed.
[0068] It should be noted that when using the Huffman tree to compress the paper, the code corresponding to the node with high weight is the shortest. However, since there are some non-critical high-frequency words with high weight, the code will also be shorter when compressed. Therefore, it is necessary to correct the initial weight of each character in the compressed paper to increase the weight of the critical high-frequency words, so that the critical high-frequency words have a higher compression rate and ensure that they are better protected during the compression process.
[0069] Specifically, according to the characters in the paper to be compressed The final parameters and characters of the key high frequency words The initial weight of the corresponding node in the constructed Huffman tree determines the characters in the paper to be compressed The final weight of the corresponding node in the constructed Huffman tree, the characters in the paper to be compressed The specific calculation method of the final weight of the corresponding node in the constructed Huffman tree is:
[0070]
[0071] In the formula, Indicates the characters in the paper to be compressed The final weight of the corresponding node in the constructed Huffman tree; Indicates the characters in the paper to be compressed Final parameters of key high frequency words; Indicates the characters in the paper to be compressed The initial weight of the corresponding node in the constructed Huffman tree, that is, the character in the paper to be compressed Number of occurrences.
[0072] It should be noted that the characters in the paper to be compressed The larger the final parameter of the key high-frequency word, the more characters in the paper to be compressed. The higher the initial weight of the corresponding node in the constructed Huffman tree, the more characters in the paper to be compressed. The higher the final weight of the corresponding node in the constructed Huffman tree, that is, and The larger the value of The value of is also larger.
[0073] Determine the final weight of the node corresponding to each character in the paper to be compressed, construct a Huffman tree, mark each branch of the Huffman tree, mark the left branch of each node as 0, and the right branch as 1, and connect the labels on the path from the root to each node along the Huffman tree to obtain the encoding of the corresponding node of each character in the paper to be compressed in the Huffman tree, so as to compress the paper to be compressed.
[0074] So far, the encoding of each character in the paper to be compressed is obtained through the above method.
[0075] Through the above steps, electronic archiving data storage is completed.
[0076] An embodiment of the present invention further provides an electronic archiving data storage system, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in steps S001 to S003 when executing the computer program.
[0077] This embodiment determines the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree when using the Huffman compression algorithm, determines the non-key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the non-key high-frequency words in the paper to be compressed, determines the key high-frequency word initial parameters of each character in the paper to be compressed according to the non-key high-frequency word parameters of each character in the paper to be compressed and in combination with the distribution characteristics of the key high-frequency words, analyzes papers in different fields, corrects the key high-frequency word initial parameters of each character in the paper to be compressed, obtains the key high-frequency word final parameters of each character in the paper to be compressed, determines the final weight of the corresponding node of each character in the paper to be compressed in the Huffman tree according to the key high-frequency word final parameters of each character in the paper to be compressed and the initial weight of each character in the constructed Huffman tree, makes the final weight of the corresponding node of each character in the Huffman tree more accurate, makes the weight of the key high-frequency words higher, thereby has a higher compression rate, and ensures that the key high-frequency words are better protected during the compression process.
[0078] It should be noted that the The model is only used to represent negative correlation and constrain the output of the model to be in In the specific implementation, it can be replaced by other models with the same purpose. This embodiment is only based on The model is described as an example without any specific limitation. is the input to the model.
[0079] 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 principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for storing electronic archival data, characterized in that: The method comprises the following steps: Determine the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree when using the Huffman compression algorithm; Obtain key high-frequency words and non-key high-frequency words in the paper to be compressed, determine the non-key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the non-key high-frequency words, determine the initial key high-frequency word parameters of each character in the paper to be compressed according to the distribution characteristics of the key high-frequency words and in combination with the non-key high-frequency word parameters of each character in the paper to be compressed, analyze papers in different fields, correct the initial key high-frequency word parameters of each character in the paper to be compressed, and obtain the final key high-frequency word parameters of each character in the paper to be compressed; According to the final parameters of the key high-frequency words of each character in the paper to be compressed and the initial weight of the corresponding node of each character in the constructed Huffman tree, the final weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree is determined, the encoding of each character in the paper to be compressed is obtained, and the paper to be compressed is compressed and stored.
2. The electronic archiving data storage method according to claim 1, characterized in that: The specific method of determining the non-critical high-frequency word parameters of each character in the paper to be compressed includes: For each recognized character, sort them from left to right and from top to bottom, and use the serial number of each character as the position of each character; According to the characters in the paper to be compressed Number of occurrences, characters No. The position and character of the occurrence No. The position and character of the first occurrence The position of the first and last occurrence, and the character The average value of the difference between the previous and next position of each occurrence, and calculate the characters in the paper Non-critical high-frequency word parameters.
3. The electronic archiving data storage method according to claim 2, characterized in that: The calculation is to compress the characters in the paper The specific calculation method of non-critical high-frequency word parameters is: In the formula, Indicates the characters in the paper to be compressed Non-critical high-frequency word parameters; Indicates the characters in the paper to be compressed The maximum value of the occurrence position; Indicates the characters in the paper to be compressed The minimum value of the occurrence position; Indicates the characters in the paper to be compressed Number of occurrences; Indicates the characters in the paper to be compressed No. The position of the next occurrence; Indicates the characters in the paper to be compressed No. The position of the next occurrence; Indicates the characters in the paper to be compressed The average of the differences between the previous and next positions of each position; represents the normalization function; Represents an exponential function with a constant as base.
4. The electronic archiving data storage method according to claim 1, characterized in that: The specific calculation method of the initial parameters of the key high-frequency words of each character in the paper to be compressed is: In the formula, Indicates the characters in the paper to be compressed Initial parameters of key high-frequency words; Indicates the characters in the paper to be compressed Non-critical high-frequency word parameters; Indicates the characters in the paper to be compressed Number of appearances in paper titles and figures; Indicates the total number of characters in the title and figures of the paper to be compressed; Indicates the characters in the paper to be compressed Number of occurrences; Indicates the total number of characters in the paper to be compressed; represents an exponential function with a natural constant as base; Represents the normalization function.
5. The electronic archiving data storage method according to claim 1, characterized in that: The method of analyzing papers in different fields, correcting the initial parameters of key high-frequency words of each character in the paper to be compressed, and obtaining the final parameters of key high-frequency words of each character in the paper to be compressed includes: Select several papers in other fields as comparative papers, and count the characters in each comparative paper. The initial parameters of the key high-frequency words are based on the characters in each comparison paper. The initial parameters of the key high-frequency words and the characters in the paper to be compressed The initial parameters of the key high-frequency words are used to obtain the characters in the paper to be compressed. The final parameters of the key high-frequency words.
6. The electronic archiving data storage method according to claim 1, characterized in that: The specific calculation method of the final weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree is: According to the characters in the paper to be compressed The final parameters and characters of the key high frequency words The initial weight of the corresponding node in the constructed Huffman tree determines the characters in the paper to be compressed The final weight of the corresponding node in the constructed Huffman tree, the characters in the paper to be compressed The final parameters and characters of the key high frequency words The initial weights of the corresponding nodes in the constructed Huffman tree are in direct proportion.
7. The electronic archiving data storage method according to claim 1, characterized in that: The specific method of obtaining the encoding of each character in the paper to be compressed is as follows: Determine the final weight of the node corresponding to each character in the paper to be compressed, construct a Huffman tree, mark each branch of the Huffman tree, mark the left branch of each node as 0, and the right branch as 1, and connect the labels on the path from the root to each node along the Huffman tree to obtain the encoding of the node corresponding to each character in the paper to be compressed in the Huffman tree.
8. The electronic archiving data storage method according to claim 1, characterized in that: The specific method of obtaining the key high-frequency words and non-key high-frequency words in the paper to be compressed includes: Obtain the frequency of occurrence of each character in the paper to be compressed, record the characters whose frequency of occurrence is greater than a preset first threshold as high-frequency characters, record the characters that constitute the paper keywords among the high-frequency characters as key high-frequency characters, and record the characters that serve as sentence components among the high-frequency characters as non-key high-frequency characters.
9. The electronic archiving data storage method according to claim 1, characterized in that: The specific method of determining the initial weight of the corresponding node of each character in the paper to be compressed in the constructed Huffman tree when using the Huffman compression algorithm includes: Get the paper to be compressed, use the optical character recognition algorithm to extract all the characters in the paper to be compressed, then use the hash table algorithm to count the number of times each character appears in the paper to be compressed, and use the number of times each character appears in the paper to be compressed as the initial weight of the node corresponding to each character when constructing the Huffman tree.
10. An electronic archiving data storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
