WO2023091765A1 - Computerized systems and methods of data compression - Google Patents

Computerized systems and methods of data compression Download PDF

Info

Publication number
WO2023091765A1
WO2023091765A1 PCT/US2022/050617 US2022050617W WO2023091765A1 WO 2023091765 A1 WO2023091765 A1 WO 2023091765A1 US 2022050617 W US2022050617 W US 2022050617W WO 2023091765 A1 WO2023091765 A1 WO 2023091765A1
Authority
WO
WIPO (PCT)
Prior art keywords
symbol
document
pair
dictionary
symbols
Prior art date
Application number
PCT/US2022/050617
Other languages
French (fr)
Inventor
Takashi Suzuki
Original Assignee
Takashi Suzuki
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US17/532,947 external-priority patent/US12050557B2/en
Application filed by Takashi Suzuki filed Critical Takashi Suzuki
Publication of WO2023091765A1 publication Critical patent/WO2023091765A1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/60General implementation details not specific to a particular type of compression
    • H03M7/6064Selection of Compressor
    • H03M7/607Selection between different types of compressors
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/40Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
    • H03M7/4031Fixed length to variable length coding
    • H03M7/4037Prefix coding
    • H03M7/4043Adaptive prefix coding
    • H03M7/4056Coding table selection

Definitions

  • the field of the present invention relates to data compression, such as by lossless compression of text and other information that can be represented by symbols.
  • Previous text compression techniques are usable on only one file or document at a time. Such techniques do not scale easily to enormous data sets, i.e., “Big Data,” or where data is spread across many different containers. Also, previous techniques do not track the number of times a particular symbol or string of symbols appear in the uncompressed text. The number of times a particular symbol or string appears in is valuable information that is useful for improving space savings, reducing processing time, and conducting contextual analysis.
  • An example embodiment compresses symbolic information that is organized into a plurality of documents.
  • Each of the uncompressed documents has a plurality of symbols.
  • a document can be a string of symbols of any length (e.g., a sentence, paragraph, or text file).
  • a symbol can be any code that constitutes or carries information (e.g., a letter, number, nonalphanumeric character, syllable, or word).
  • the example embodiment operates on an input document by identifying at least one of two adjacent (also referred to as sequential) symbols, two non-adjacent (also referred to as non-sequential) symbols, or both adjacent symbols and non-adjacent symbols in the document as a symbol pair.
  • the example embodiment stores each unique symbol pair in a compression dictionary.
  • the compression dictionary associates each stored symbol pair with a respective replacement symbol.
  • the example embodiment also maintains a count of the number of times each unique symbol pair appeared in the input document.
  • the example embodiment produces a compressed output document by replacing symbol pairs with their associated replacement symbols if the count for the symbol pair exceeds a threshold.
  • Some embodiments are programmed to repeat the compression process by using the output document as an input document for an additional pass. Certain embodiments recursively perform additional passes until no further replacements can be made (i.e. , in the final pass, the output document is identical to the input document). Symbol pairs identified in recursive passes can include replacement symbols from a previous pass.
  • Some embodiments are programmed to be applied to multiple documents.
  • the compression ratio improves as the size of the uncompressed data increases. The larger the data set, the more likely it is that the count associated with any given symbol pair will exceed the threshold, which results in more replacements and higher compression.
  • Compression is optimized, in some of these embodiments, when the process recurs on all the documents until no further replacements are possible.
  • Some embodiments increase space savings and decrease the lookup time needed to access the compression dictionary by using, as a replacement symbol, the address of the replaced symbol pair in the compression dictionary.
  • Some embodiments sort the entries in the compression dictionary based on the count of the number of times a symbol pair appeared. The sorting is done to place the most frequently appearing symbol pairs in more accessible memory locations than less frequently appearing symbol pair. Sorting decreases lookup times during the replacement phase.
  • Some embodiments use patterns of replacement symbols and the count of the number of times certain symbol pairs appeared to analyze content.
  • a computerized method of compressing symbolic information organized into a plurality of documents has a plurality of symbols.
  • a computer With a first document of the plurality of documents as an input document, a computer automatically identifies a plurality of symbol pairs. Each symbol pair consists of two sequential or non-sequential symbols in the input document; at least one symbol pair consists of two non-sequential symbols in the input document.
  • the computer counts the number of appearances of each unique symbol pair.
  • the computer produces a compressed document that includes a corresponding replacement symbol at each position associated with one of the plurality of symbol pairs from the input document.
  • At least one replacement symbol corresponds to a symbol pair consisting of two non-sequential symbols, and for each such pair the compressed document includes corresponding indicia indicating a distance between locations of the non-sequential symbols of the pair in the input document.
  • the plurality of symbol pairs includes only those pairs of non-sequential symbols for which the distance between locations of the non-sequential symbols of the pair in the input document is less than a numeric distance cap.
  • the system may generate a symbol dictionary based on a first uncompressed document of a plurality of documents, each document having a plurality of symbols.
  • the system may perform a first data compression on the first uncompressed document by at least one of the adjacent pair dictionary method or the non-adjacent pair dictionary method to generate a compressed output document.
  • the system may append a new uncompressed document of the plurality of documents to the compressed output document to generate an appended compressed document.
  • the system may update the symbol dictionary based on the appended compressed document to generate an updated symbol dictionary [0013]
  • the system may perform with the updated symbol dictionary, a second data compression on the appended compressed document by at least one of the adjacent pair dictionary method or the non-adjacent pair dictionary method.
  • the system may perform a word analysis of the appended compressed document based on the symbol dictionary to determine whether any new words are present.
  • the system may add a new word to the symbol dictionary based on determining the presence of new words in the appended compressed document.
  • the system may update a frequency count of the symbol dictionary in response to adding the new words.
  • the system may update a frequency count of the symbol dictionary in response to determining the absence of new words.
  • the system may sort the symbol dictionary by order of frequency in response to updating the frequency count.
  • performing the first data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential symbols in the first uncompressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing the compressed output document by causing the compressed output document to include, at each position associated with one of the plurality of symbol pairs from the input document, a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold
  • performing the first data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential or nonsequential symbols in the input document, one or more symbol pairs consisting of two nonsequential symbols in the first uncompressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing a compressed document by causing the compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, including one or more symbol pairs consisting of two nonsequential symbols, (i) a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold, and (ii) for at least those symbol pairs consisting of two non-sequential symbols, indicia indicating a distance between locations of the nonsequential symbols of the pair in the input document.
  • performing the second data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential symbols in the appended compressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing a combined compressed document by causing the combined compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold.
  • performing the second data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential or nonsequential symbols in the appended compressed document, one or more symbol pairs consisting of two non-sequential symbols in the appended compressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing a combined compressed document by causing the combined compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, including one or more symbol pairs consisting of two non-sequential symbols, (i) a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold, and (ii) for at least those symbol pairs consisting of two non-sequential symbols, indicia indicating a distance between locations of the non-sequential symbols of the pair in the input document.
  • FIG. 1 is a visual representation of an example of a symbol dictionary generated by and employed in compression methods disclosed herein.
  • FIG. 2 is a visual representation of an example of a compression dictionary generated by and employed in compression methods disclosed herein.
  • FIG. 3 is a visual representation of replacement of symbol pairs according to compression methods disclosed herein.
  • FIG. 4 is a flow diagram showing operation of compression methods disclosed herein.
  • FIG. 5 is a visual representation of a text standardization process applied by an embodiment.
  • FIG. 6 is a visual representation of a compression dictionary used the embodiment of FIG. 5.
  • FIG. 7 is a visual representation operation of the embodiment of FIG. 6.
  • FIG. 8 is a flowchart that shows the operation of the embodiment of FIG. 6.
  • FIG. 9 is a chart showing results achieved by an experimental embodiment.
  • FIG. 10 is a flow chart of an alternate embodiment of an aspect of this disclosure.
  • Embodiments of the data compression and analysis technique can be programmed in computer code as a set of computer instructions. When running on a computer, the computer instructions control a computer processor and cause it to perform the functions described herein.
  • the computer instructions e.g., computer software
  • the computer instructions can be stored in any computer memory accessible to the computer or encoded in computer hardware. Some embodiments are instantiated in special purpose computers or dedicated computer appliances. The documents on which the embodiments operate can be stored in the same or a different computer memory accessible to the computer system.
  • An example embodiment analyzes uncompressed text to identify adjacent pairs of symbols.
  • the example embodiment replaces occurrences of a pair of symbols that appears more than a predefined number of times with an associated replacement symbol.
  • Symbols can be alphanumeric characters, discrete groups of alphanumeric characters such as syllables or words, or any code that constitutes and carries information.
  • the original symbols in the uncompressed text are replaced with standard symbols during a preliminary phase.
  • FIG. 1 is a representation of how an example embodiment standardizes uncompressed text. In certain circumstances, such as when there is alarge variation in the lengths ofthe original symbols, standardization improves performance during subsequent operations.
  • FIG. 5 identifies and counts all occurrences of unique original symbols and stores each unique original symbol.
  • Each original symbol is stored in a standardization memory in association with a standard symbol.
  • standardization memory 140 associates an original symbol (in column 160) with its respective standard symbol (in column 150) and a count of how many times each original symbol appears in the uncompressed text (in column 170).
  • some embodiments are programmed to interpret certain non-alphanumeric characters (e.g., a space) as denoting a break between two symbols.
  • the example embodiment interprets a space as a break between symbols yet retains the space in the standardized document.
  • document 111 is shown with spaces separating the standard symbols.
  • other embodiments drop spaces and certain other non-alphanumeric characters entirely because the location of such characters can be restored or discerned from context.
  • a space between symbols can be inferred and reproduced based on the rules of the algorithm used to identify the original symbols.
  • the presence of certain non-alphanumeric characters can be inferred based on the grammatical rules of the language in which the text is written.
  • Some embodiments interpret certain non-alphanumeric characters as part of a symbol.
  • the example embodiment of FIG. 5 identified text 105 as a symbol even though it contains an apostrophe.
  • Other embodiments identify non-alphanumeric characters as symbols in their own right.
  • Some embodiments ignore capitalization while processing symbols. Such embodiments provide space savings by storing only a uniform-case version (e.g., lowercase version) of all original symbols. Such embodiments can restore the original text, including restoring capitalization, using grammatical and contextual rules regarding sentence structure and proper nouns.
  • a uniform-case version e.g., lowercase version
  • Some embodiments interpret select symbols as signaling the end of a document.
  • the example embodiment of FIG. 5 identifies the period at 107 as the separator between document 101 and document 102.
  • Alternative embodiments separate text into documents based on carriage returns, paragraphs, cells, fields, records, rows, columns, pages, headings, tags from a markup language, information in a table of contents, or section or chapter markings. Any human-understandable or computer-readable markers or containers can be used to divide the text into documents. Other embodiments operate on documents that are separate computer files.
  • the example embodiment operates on multiple documents concurrently. Thus, during the standardization process, the example embodiment identifies and counts all occurrences of unique uncompressed symbols in all documents before replacing any of the original symbols in the documents.
  • Standardization memory 140 can be created during the standardization of input documents or can be pre-existing.
  • FIG. 5 presents standardization memory 140 in arow-and-column format, but other datastorage structures canbeused.
  • the example embodiment sorts the entries in standardization memory 140 according to the counts stored in column 170.
  • the example embodiment sorts the entries before standard symbols are assigned and stored in column 150. Sorting standardization memory 140 improves space savings because the example embodiment can assign shorter standard symbols to the symbols that appear most frequently. Sorting also allows frequently used standard symbols to be stored in highly accessible memory locations, which improves lookup times. After sorting, some embodiments may delete the counts to save space.
  • FIG. 5 shows the counts stored in column 170 of standardization memory 140. Alternative embodiments store the counts generated during standardization separately from the standardization memory.
  • a standard symbol can be an address indicating the location of the original symbol in standardization memory 140. Use of an address rather than an arbitrary symbol reduces the requisite memory space because there is no need to store extraneous symbols. Use of addresses as standard symbols also improves processing times during replacement and decompression because the example embodimentneed only perform a single memory lookup rather than performing the multiple lookups that are required to translate between standard symbol and replacement symbol. When restoring the text to its original form, each standard symbol directs the example embodiment to the exact memory location of the original symbol. [0043] Use of addresses as standard symbols, when applied after sorting, further improves lookup times because it ensures that more frequently occurring symbols are stored in more accessible memory locations than less frequently occurring symbols.
  • FIG. 6 is arepresentation of compression dictionary 200 that is used by the example embodiment to store associations between a unique symbol pair and its replacement symbol.
  • Standardization memory 140 in FIG. 5 is shown stored separately from compression dictionary 200 in FIG. 6.
  • Alternative embodiments can store the standardization memory as part of the compression dictionary.
  • Compression dictionary 200 is shown structured in rows and columns. Alternative embodiments use other data structures such as relational databases, document-oriented databases, graph databases, key -value stores, object databases, or hierarchical trees to maintain the compression dictionary (and standardization memory if used). Some embodiments use an existing compression dictionary. Other embodiments create the compression dictionary during operation.
  • FIG. 7 is arepresentation of document 111 as it is operated on by the embodiment of FIG. 6.
  • the example embodiment is programmed to repeat recursively until compression is complete, e.g, until no more pairs of symbols meet the threshold for replacement.
  • the example embodiment operates on document 111 to create output document 351.
  • Numerals 321, 331, and 341 refer to intermediate results before passes of the process carried out by the recursive embodiment; they are called “documents” here for ease of reference but can be deleted or overwritten during the next pass.
  • Documents 112-114 are likewise processed in the same batch as document 111 to produce respective documents 352-354.
  • Documents 322-324, 332-334, and 342-344 represent intermediate results between passes.
  • the example embodiment identifies and counts the occurrence of each unique symbol pair (“the cataloging phase”) and replaces symbol pairs with a count exceeding the replacement threshold (“replacement phase”).
  • the example embodiment performs the cataloging phase on all documents before turning to the replacement phase.
  • Alternative embodiments identify and replace symbol pairs in one operation by processing the text of each document in sequential order.
  • a pass through a document involves comparing each sequential symbol pair to entries of the compression dictionary. If the comparison results in amatch, the compared symbol pair's count is incremented, and if the replacement threshold is met, the symbol pair is replaced with a replacement symbol. Ifthe comparison does not produce amatch, the symbol pair is identified as unique and added to the compression dictionary. Because such alternative embodiments do not use replacement symbols until a symbol pair's count exceeds the threshold for replacement, such embodiments schedule replacement of earlier instances of a symbol pair once the symbol pair's count exceeds the replacement threshold.
  • the example embodiment identifies symbol pairs in an input document by pairing each symbol with the next adj acent symbol in the document until the last symbol in the document is reached. All symbols, except first and last symbol, in the input document are therefore included in two symbol pairs: One symbol pair formed from pairing the symbol with the preceding symbol, and one symbol pair formed from pairing the symbol with the following symbol.
  • the example embodiment when processing document 111, the example embodiment recognizes symbols 311 and 312 as afirst pair and symbols 312 and 313 as asecond pair. The example embodiment continues pairing symbols until it pairs symbol 318 and 319. The first symbol (symbol 311) and the last symbol (symbol 319) are each only paired with one other symbol (z. e. , symbol 312 and symbol 318, respectively). All other symbols in the document are included in two symbol pairs.
  • Alternative embodiments do not compare every possible pairing of adj acent characters . Rather such embodiments skip symbol pairs having a symbol from the previously compared pair. For example, such embodiments, if operating on document 111, would recognize the pair of symbols 311 and 312, skip over the pair formed by symbols 312 and 313, and recognize the pair of symbols 313 and 314 as the next pair.
  • the example embodiment counts the number of times each unique symbol pair appeared in the documents.
  • the example embodiment identifies and counts the unique symbol pairs by inserting every symbol pair into an array and performing a “pivot table” operation on the array to identify and count the number of occurrences of each unique symbol pair.
  • each pass the example embodiment generates a pass-related section in the compression dictionary.
  • columns 210 and 211 of compression dictionary 200 are the result of the cataloging phase of the first pass.
  • Column 210 stores each unique symbol pair from the text processed in the cataloging phase of the first pass.
  • Column 211 stores the count associated with each symbol.
  • FIG. 6 presents the count as being stored as a field in compression dictionary 200.
  • a symbol pair's associated count could be stored as an attribute or metadata of the symbol pair, rather than as an entry in the compression dictionary.
  • Alternative embodiments store counts associated with each pair separately from the compression dictionary. The example embodiment does not store a count for symbol pairs that appear only once (see entry 216 in compression dictionary 200). Thepresenceofasymbolpair is sufficient to indicate it has appeared only once.
  • the example embodiment is programmed to sort the entries of compression dictionary 200 based on the counts of each symbol pair in a manner similar to that described above in connection with standardization of the symbols. In other words, after all symbol pairs are identified from documents 111- 114, the example embodiment sorts entries of compression dictionary 200 (FIG. 6) before assigning replacement symbols or making any replacements to produce document 321 (FIG. 7). For the reasons similar to those described above in connection with sorting the standardization memory, the example embodiment achieves space savings andperformance benefits by sorting compression dictionary 200.
  • a replacement symbol can be an address in the compression dictionary where the symbol pair associated with the replacement symbol is stored.
  • replacement symbols are formed from a combination of the row identifier (see column 201) and a column identifier. The column identifier indicates the pass during which the symbol pair was identified (P1,P2,P3 in FIG. 6).
  • Use of address-based replacement symbols provides similar benefits to those described in connection with standardization for similar reasons.
  • Alternative embodiments assign unique replacement symbols that are unrelated to the address of the symbol pair.
  • Insomecases,thereplacementsymbol canbejusttheportionofthe address associated with the row identifier.
  • the replacement symbols from the first pass of the example embodiment are only the row identifier of its respective symbol pair's address.
  • the example embodiment decompresses a document, it is programmed to associate replacement symbols without apass identifier as beingfromthefirstpass.
  • replacement symbols from the firstpass are inserted into output documents and stored in the compression dictionary (if paired with another symbol in a sequential pass) without a pass identifier.
  • an embodiment can omit the pass identifier of replacement symbols that are most frequently paired with another symbol.
  • symbol pairs can be formed by pairing areplacement symbol from any of Passes 1 , ... , N, ... , X- 1 with another symbol.
  • Pass X replacement symbols frompassN are most frequently paired with other symbols.
  • the embodiment omits the pass identifier from Pass N replacement symbols and simply stores an indication that Pass N is the most frequent pairingforPassX.
  • the example embodiment of FIG. 6 only uses replacement symbols if their associated count exceeds a predetermined threshold. Every symbol pair in the document that corresponds to an entry in compression dictionary could be replaced (e.g., athreshold equal to one). However, a higher threshold allows for improved performance. Ifalarge number of symbol pairs appear only once or only a few times, their replacement will not improve, or significantly improve, compression of the documents and will increase the storage requirements of the compression dictionary. A higher threshold can reduce processing time by eliminating the need to replace infrequently used symbol pairs.
  • the example embodiment improves space savings further by only retaining compression dictionary entries for symbol pairs that have a count exceeding the threshold. Because the example embodiment is programmed to perform the cataloging phase on all documents before beginning the replacement phase, symbol pairs that do not exceed the threshold will not be replaced. Thus, storing below-threshold symbol pairs increases the size of the compression dictionary without providing any without benefit. To avoid that inefficiency, the example embodiment truncates (i.e., deletes portions of the compression dictionary having entries with counts less than the threshold. For example, if the threshold for the first pass is four, the example embodiment would not retain portion 260 of FIG. 6.
  • Alternative embodiments retain portions of the compression dictionary with entries that have a count less than the threshold even though they will not be used with the current set of documents. If new documents are added to the set of documents, the counts for below- threshold symbol pairs could increase to the point where they meet the replacement threshold.
  • Some alternative embodiments store below- threshold portions of the compression dictionary in a separate archive rather than the compression dictionary. The archive can be accessed when new documents are added.
  • the replacement symbols can be associated with a symbol pair when the symbol pair is first identified or meets the replacement threshold.
  • the example embodiment assigns replacement symbols after both sorting and truncation so that the most frequently used replacement symbols will have the shortest length and can be placed in the most accessible memory locations.
  • areplacement symbol is the address of its associated symbol pair
  • each replacement symbol is associated withits symbol pair by virtue of the symbol pair's position in the sort order.
  • Alternative embodiments can assign replacement symbols any time before the replacement phase begins. Such alternative embodiments can sort the compression dictionary based on the counts or maintain the entries in their original order. After sorting, some embodiments delete the counts to save additional space.
  • the example embodiment creates a compressed output document by replacing symbol pairs in an input document with replacement symbols from compression dictionary 200.
  • Alternative embodiments create anew output document distinct from the input document by inserting either the original symbols or replacement symbols in place of a pair of the original symbols. Such alternative embodiments later delete the input document.
  • the example embodiment creates output document 321 (see FIG. 7) by overwriting symbol pairs in input document 111 with replacement symbols where appropriate.
  • the compression dictionary for the example embodiment only contains entries for symbol pairs that exceed the replacement threshold because entries with counts not exceeding the threshold were not retained. Thus, the example embodiment is programmed to replace the first symbol pair that matches an entry in the compression dictionary.
  • the example embodiment When processing document 111, the example embodiment identifies the pair ofsymbols 311 and312(FIG. 7) and compares it to the entries of compression dictionary 200 (FIG. 6). The pair of symbols 311 and 312 are found in compression dictionary 200 (see entry 212). Because a match is found, the pair of symbols 311 and 312 is replaced with replacement symbol 325 in output document 321.
  • the dictionary also contains the pair of symbols 312 and 313 (see 214), and the count exceeds the threshold for replacement (see 215). However, the pair of symbols 312 and 313 is not considered for replacement, because the example embodiment already replaced symbol 312.
  • Embodiments that do not truncate the compression dictionary must compare symbol pairs in a document to the compression dictionary and also check the count before replacement.
  • Alternative embodiments analyze multiple possible replacements to determine which would maximize the number of total replacements or maximize the space savings.
  • Other embodiments determine which pairs to replace based on minimizing the length of the replacement pairs or the lookup time required to decompress the document.
  • Still further alternative embodiments attempt to replace the first pair of symbols and if no replacement is possible, skip over the pair that could be formed by combining the second symbol of the first pair with the next sequential symbol.
  • the example embodiment When the example embodiment cannot replace a symbol pair, it continues to consider the next symbol pair. For example, when the pair of symbols 315 and 316 are compared to the entries in the compression dictionary, no match is found. The example embodiment, therefore, moves to the next symbol pair (the pair of symbols 316 and 317).
  • Embodiments that create anew output document rather than overwriting the symbols of the input document insert into the output document the first symbol of asy mbol pair that cannot be replaced. If that last symbol of a symbol pair is the last symbol in a document, and the symbol pair does not match any of the entries in the compression dictionary, both symbols of the symbol pair must be inserted into the output document.
  • the example embodiment is programmed to perform recursive passes until no further replacements are possible.
  • the example embodiment begins a second pass by applying cataloging and replacement phases to document 321 to produce document 331.
  • symbol “R3P2” in document 331 refers to row 3 of the second pass.
  • Symbol pairs identified in asecond or subsequent pass can be two replacement symbols. See replacement symbol 335, which refers to the sequence of replacement symbol R4 (see 325) followed by replacement symbol R3 (see 326 in the first pass in document 321).
  • symbol pairs identified in a later pass can be a combination of a replacement symbol and an uncompressed symbol.
  • Sequential passes by the example embodiment result in additional columns 220 and 230 (FIG. 6) that store symbols pairs from each respective pass.
  • each pass in which unique symbol pairs are discovered results in additional columns being added to compression dictionary 200 to store the newly identified symbol pairs and their respective counts (see columns 221 and231).
  • FIG. 6 presents symbols discovered in later passes inseparate columns to illustrate the recursivenature ofthe embodiment.
  • the example embodiment only makes replacements from the column or section of compression dictionary 200 created during the instant pass. Storing replacement symbols in pass-specific sections reduces lookup times because the embodiment does not need to search through entries having replacement symbols that will not be used in the current pass.
  • Alternative embodiments store symbol pairs identified indifferentpasses in a common column or memory area. Such embodiments can increase space savings because they use less complex replacement symbols. For example, an embodiment that stores all identified symbol pairs in the same column of the compression dictionary could use a replacement symbols that consists entirely of a row identifier. In any embodiment, close attention to the choice of symbology for the replacement symbol is capable of producing increased compression.
  • a third pass performed on document 331 produces document 341, and a fourth pass performed on document 341 to produce document 351. If the output of fourth pass (document 351) is the same as the output of the third pass (document 341), and assuming this remains true for all other documents that are being compressed concurrently with document 111, then the example embodiment stores the last output version of each document and the compression process terminates.
  • the example presented in FIG. 7 only shows four passes oftheprocess applied to the example text. However, any number of passes can be performed. In some embodiments, the number of passes can be a fixed number. In other embodiments, a maximum number of passes can be set, but the process is programmed to terminate if no further replacements are made before the cap.
  • each additional pass will consume additional processing resources.
  • certain embodiments are programmed to terminatetheprocessifthesize reduction resulting from agiven pass falls below acertain limit (e.g., if agiven pass produces less than ahalf ofa percent size reduction).
  • Other embodiments terminate the process based on a different factor, such as the number of new symbol pairs found being less than afixed amount or the count of the most frequently occurring symbol pair falling below a certain level.
  • an embodiment can be constructed to terminate the process if the count of the most frequently occurring symbol pair in apass falls below apredetermined percentage of the count of the most frequently occurring symbol in the first pass.
  • some embodiments are programmed to replace any identified symbol pairs found in the pass that triggered the termination condition.
  • Other embodiments terminate the process immediately upon recognizing the termination condition, without replacing symbol pairs found in that last pass.
  • Still further embodiments terminate mid- pass if an insufficient number of symbol pairs are found after processing enough text to determine that the resultant space savings would fall below a predetermined amount. Any symbol pairs that are not replaced would not need to be stored in the compression dictionary or assigned areplacement symbol.
  • Compression dictionary 200 can grow to have any number of columns depending on thenumber of passes performed on a plurality of documents. Thus, FIG. 6 only shows a portion of compression dictionary 200 relevant to documents 310-350.
  • the example embodiment performs sort and truncation operations at the end of each cataloging phase. However, thresholds applied during successive passes can differ from the threshold of the first pass. The example embodiment uses lower replacement thresholds for additional passes. [0077] Some embodiments determine ideal values for the replacement thresholds of each pass by compressing a subset of the documents in a series of trials with different pass thresholds values in each trial until the best compression is achieved.
  • FIG. 8 isaflowchartshowingtheoperationoftheexampleembodiment.
  • Cataloging phase 400for any pass begins with identifying all unique symbols (401).
  • the example embodiment counts the number of occurrences of each unique symbol (402).
  • the example embodiment populates the compression dictionary with the unique symbols (403). Populating the compression dictionary can include reordering the unique symbol pairs based on their counts, omitting symbol pairs with counts that do not exceed the threshold, and associating replacement symbols with each unique symbol pair.
  • the example embodiment completes cataloging phase 400 on all documents before moving to replacement phase 450.
  • replacement phase 450 the example embodiment searches the input documents for symbol pairs that match entries in the compression dictionary (451).
  • the example embodiment replaces symbol pairs with an associated replacement symbol (452).
  • the example embodiment enforces the threshold at 403 by populating the compression dictionary with only symbol pairs that exceed the threshold; however other embodiments that retain symbol pairs with counts that do not exceed the threshold enforce the threshold by only replacing symbols pairs with counts exceeding the threshold.
  • the example embodiment operates recursively by returning to cataloging phase 400 to begin a subsequent pass on the output of the previous pass. As part of the recursion process, the example embodiment adjusts the replacement threshold (not shown) according to the settings for the subsequent pass. If no replacements are possible during a pass, the example embodiment stores the compressed output documents and terminates (499). When required, the example embodiment restores the compressed documents by reversing the replacement phase of each pass .
  • the example embodiment handles new documents by decompressing all compressed documents, deleting the compression dictionary, and with the new documents as part of the plurality of documents, re-applying the process (i.e., 400-499) to the uncompressed documents. Compression of new documents can be scheduled for times when resource demand is expected to be low or by an offline system so that users do not experience noticeable delays when accessing compressed documents.
  • Alternative embodiments handle new documents by recursively applying cataloging and replacing passes to new documents without uncompressing any documents.
  • compression is improved if the compression dictionary is not truncated because symbol pairs identified in new documents could cause the count a particular replacement symbol that did not previously meet the replacement threshold to exceed the threshold and used in the new document.
  • the process can produce improved compression ratios because any given field of knowledge has common terms and phrases that are often repeated in texts dedicated to the field.
  • the process encounters a learning curve in which the achievable compression ratio is decreased.
  • the system can “learn” the terms of art from the new field, and the compression ratio improves.
  • FIG. 9 summarizes experimental results of one embodiment.
  • the experimental embodiment was programmed to identify each word in the input documents as a symbol.
  • the experimental embodiment applied standardization to input documents, and both sorted and truncated the sections of the compression dictionary relating to aparticular pass after the cataloging phase of that pass.
  • the documents us edin the experiment were abstracts from 15,000 randomly selected US patents (a little over one million words). Before the experimental embodiment was applied to the documents, all non-alphanumeric characters were removed, and all uppercase characters were converted to lowercase characters.
  • Table 1 details the size of each group and the achieved compression ratio.
  • the data in Table 1 is plotted in FIG. 5 with the number of characters plotted on the x-axis (in log scale) and the compression ratio plotted on they-axis.
  • Thedashed lineinFIG. 5 represents atrend line based on apower regression ofthe data in Table 1.
  • Compression ratio for the experimental results is expressed as a percentage and indicates the size of the compressed data as a percentage of the uncompressed data.
  • compression ratio in percent equals the number of compressed characters divided by the number of uncompressed characters multiplied by 100.
  • the number of compressed characters includes the number of compressed characters in the output documents plus the number of characters in the compression dictionary.
  • the experimental embodiment was able to improve upon the compression ratio achievable by Byte-Pair Encoding, which is at best 60% when applied to English language texts. ShibataY. etal. (2000) Speeding Up Pattern Matching by Text Compression. In Bongiovanni G., Petreschi R., Gambosi G. (eds) Algorithms and Complexity. CIAC 2000. Lecture Notes in Computer Science, vol. 1767. Springer, Berlin, Heidelberg. Ultimately, the experimental embodiment achieved a compression ratio of 56.09% when applied to the full sample of approximately one million words.
  • the process can beapplied to analyze any datathat can be codified.
  • characteristic of the human face can be codified into a set of measurements (size of each eye, the separation between the eyes, eye color, the length of the brow, etc.). Those measurements could be coded or classified, formatted, and assembled into adocument, using a consistent order.
  • the compression process can be applied to a set of documents, where each document contains a plurality of measurements of a particular person's facial structure. After the documents are compressed, a system could perform facial recognition by comparing the replacement symbols in the compressed documents. Because higher-order replacement symbols represent long chains of symbols, the fact that two documents both have one or more of the same higher-order replacement symbols indicates ahigh likelihood that the faces, represented by the measurement in the documents, are from the same person.
  • a match between two documents can be determined based on the total number of matching higher-order replacement symbols exceeding athreshold.
  • Alternative embodiments of the facial recognition system can select the closest match or matches and value indicating the degree of confidence in each match.
  • Such a facial recognition system could be used, for example, to control access to a secure location.
  • the secure location can be aphysical place (e.g., abuilding) or adevice (e.g., a computer system, database, or secured portion thereon.
  • An alternative use could be to determine the identity of an unknown person. Another alternative use is merely distinguishing whether or not certain measurements represent a human face or not.
  • an example embodiment would firstusethe compression process, as described herein, to compress a set of documents, each representing one of a group of known and authorized persons, and to produce a compression dictionary. Later, when requesting access to the secure entity, an unknown person initiates a process by which measurements are taken of his or her face. The unknown person's face could be measured by anon-invasive method (e.g., calculating the required values from an image captured by one or more cameras). The required values are then arranged into anew document that is compressed using the same compression dictionary.
  • anon-invasive method e.g., calculating the required values from an image captured by one or more cameras.
  • the system compares the replacement symbols in the compressed version of the new document to those contained in the previously compressed documents and outputs the results (e.g., just that a match exists and access should be granted or more specifically the believed identity of the unknown person).
  • the system can have the unknown person purport to identify himself or herself by other means, such as through voice announcement or a card swipe, and check the document containing information derived from the captured image of the unknown person's face against only the document containing pre-stored information about the person that the unknown person claimed to be.
  • the system can compare the document containing the captured image of the person's face against all documents containing pre-stored information about all authorized persons.
  • Use of exact measurements can produce ahigh degree of certainty in any match that is found but is also likely to result in false negatives. Slight variances in the measurement conditions or equipment calibrations over time could result in misidentification.
  • the symbology uses approximate measurements or values representing ranges in which the measurements fall.
  • the symbology of the ranges can include numerical values of the range, an average value for the range, or an arbitrary symbol that represents the range.
  • Each facial recognition document needs to have a sufficient number of measurements to avoid misidentification.
  • Another use of the facial recognition process is to investigate and improve facial recognition systems based on the process discussed herein, because by analyzing a sufficiently large set of documents representing known faces, the system can be used to determine how many measurements are required and the optimal order or groupings of measurements necessary to produce sufficient points of comparison.
  • Embodiments with extended functionality could utilize the process to learn more about the content of text by noticing certain replacement symbols associated with a particular noun or verb. For example, such a system could tag or remember certain replacement symbols that contain words of interest in the symbol pair denoted by the replacement symbol. Symbol pairs that include words such as “love” or “like,” for example, can result in the associated replacement symbol being tagged in a way indicating that the symbol pair expresses a positive emotion. Symbol pairs that include words such as “hate” or “despise,” by contrast, can result in the associated replacement symbol being tagged in a way indicating that the symbol pair expresses a negative emotion. For another example, symbol pairs containing nouns could be classified according to an area of interest, e.g., pets, family members, or products.
  • an area of interest e.g., pets, family members, or products.
  • the process can infer a feeling expressed by the author about a particular entity or concept. For example, if a tagged replacement symbol indicating positive emotion is found in proximity to a tagged replacement system indicating pets, or just in proximity to a specific word like “dogs,” then the system can infer that the author likes pets, or likes dogs. Tracking specific descriptive words can provide a more granular understanding of the concepts expressed by a particular author (e.g., a love of small dogs as opposed to love of dogs generally without regard to size).
  • replacement symbols assigned during later passes can inherit attributes assigned to earlier-assigned replacement symbols that make up the symbol pair associated with the later-assigned replacement symbol. For example, if a P2 replacement symbol is tagged as being a “positive emotion” indicator, and a different P2 replacement symbol is tagged as being a “pets” indicator, then in Pass 3, a P3 replacement symbol that includes both P2 replacement symbols can be tagged as indicating “loves pets.” In this manner, repeated occurrences of higher-order replacement symbols among different authors can indicate a common interest. If works of two different authors contain that same P3 replacement symbol, they may share a common love of pets.
  • An implementation of one example embodiment is used in connection with an email archive.
  • Analysis of emails drafted by a particular author or a working group is used to identify the author's or the group's preferences, such as products, restaurants, cities, etc. that the author likes.
  • An author that frequently combines words expressing positive feelings with words referencing a particular type of animal might be identified as potentially owning such an animal.
  • the example embodiment then provides the associations determined from such analysis to a system for making recommendations of products or advertising to the user.
  • this embodiment generally describes systems and methods for compressing information that is organized into one or more documents.
  • Each uncompressed document has a plurality of symbols.
  • a document can contain or consist of a string of symbols of any length (e.g., a sentence, a paragraph, a text file, or a library of other documents).
  • the disclosure can be applied to multiple documents considered individually as well.
  • the compression ratio is expected to improve as the size of the uncompressed data increases, which can be achieved by using multiple or longer documents. The larger the data set, the more replacements produced by the disclosed systems and the higher the compression achieved.
  • a symbol can be any code that constitutes or carries information (e.g., a letter, number, non-alphanumeric character, syllable, or word). Symbols can constitute or represent alphanumeric characters, discrete groups of alphanumeric characters such as syllables or words, or numeric information of various types. If representative, a symbol can consist of any code that carries information, encoded in any way. For example, an ASCII code is a numeric representation of a letter of the alphabet or a special character. Various encoding schemes are possible. Other coded symbols can represent words for example.
  • general text compression techniques are typically usable on one file or document at a time. Such techniques do not scale easily to enormous data sets, i.e., “Big Data,” or where data is spread across many different containers. Disclosed computerized data compression and data analysis systems may have advantages in improving compression for Big Data.
  • compression techniques generally do not track the number of times a particular symbol or string of symbols appears in uncompressed text. That is valuable information, useful for saving space, reducing processing time, or conducting contextual analysis.
  • Disclosed computerized data compression and data analysis systems may have advantages resulting from retaining such information.
  • General text compression techniques also typically rely on compressing symbols or strings of symbols that are adjacent to one another.
  • Disclosed computerized data compression and data analysis systems may have advantages resulting from ability to compress or analyze based on either or both adjacent and non-adjacent symbols.
  • the disclosure here contemplates implementing data compression and data analysis systems with a computer.
  • Disclosed techniques can be programmed in computer code as a set of computer instructions. Even if programmed on a general-purpose computer, such a computer should be considered non-generic and special-purpose once adapted because of the presence of specific programmed computer instructions, which control at least one computer processor and cause it to perform the functions described herein.
  • Alternative instantiations can be accomplished equivalently with dedicated special-purpose computers or dedicated computer appliances, rather than program-adapted general-purpose computing machines.
  • the specially programmed or structured computer comprises an improved computing machine that accomplishes functions not possible with computers not so constructed or adapted.
  • Computer instructions e.g., computer software, if used in lieu of hardware- wired machines
  • Computer instructions can be stored in any computer memory accessible to the computer or encoded in computer hardware.
  • the documents on which the embodiments operate can be stored in the same or a different computer memory accessible to the computer.
  • references to “a computer” or “computer” should be understood to allow for implementation on either a single computer or on multiple computers, such as a system of interconnected devices, or a set of devices using distributed processing techniques.
  • Each computer device also, may utilize one or more processors.
  • An illustrative central method includes the following steps.
  • Step 1 Make a pass through the document 101 (see FIG. 1), replacing the words in the document 101 with associated symbols (denoted SI, S2, S3, . . . , Sn, . . . ), while creating a symbol dictionary (e.g., table 140 of FIG. 1) correlating symbols with words that respective symbols symbolize.
  • a symbol dictionary e.g., table 140 of FIG. 1
  • the document 111 containing the symbols may be considered an input document to the method discussed. It may be desired to store the symbolic version (input document 111) in a separate memory location while retaining the original document 101.
  • the symbol dictionary contains a series of entries, each having a symbol (e.g., column 150 of the table 140), the word associated with that symbol (e.g., column 160 of the table 140), and a count of the number of times that word appears in the document (e.g., column 170 of the table 140).
  • Step 2 Optionally, sort the dictionary by order of frequency.
  • Step 3 In a cataloging phase 10 (e.g., see FIG. 4), make passes through the input document 111 (and input documents 112, 113, 114, . . . , if present), creating a table of unique pairs of symbols, adjacent or not.
  • a cataloging phase 10 e.g., see FIG. 4
  • a numeric cap can be imposed to limit the number of locations, so that the process will consider only locations separated by less than the cap. For example, if the cap is ten words (and the document has more than ten words), then the process will continue through the symbols in the first and tenth locations, rather than through the symbols in the first and last locations. [00120] After completing all (or the limited number) of pairs that include the first appearing symbol, continue with the symbols paired with the symbol in the second location. Start with the symbols in the second and third locations, then those in the second and fourth, and continue through the second and last (or through the second and eleventh, if the cap is ten, for example).
  • the table 200 may be considered a compression dictionary, which associates unique stored symbol pairs with respective replacement symbols, keeping a count of the number of times the different symbol pairs appear in the input document 111 (or multiple input documents 111, 112, 113, . . . ).
  • Step 4 Sort the table 200 (compression dictionary) based on the frequency of appearance of a symbol pair. Sorting has the advantage of placing more frequently appearing symbol pairs in more accessible memory locations than less frequently appearing symbol pairs. This potentially facilitates decreased lookup times during a replacement phase 20 discussed below.
  • Step 5 Optionally, truncate the table 200 using a threshold. For example, entries can be removed from the table where the counters indicate that particular pairs of symbols have occurred only in one location each. For another example, the table can be truncated to remove entries reflecting symbol pairs that have occurred only once or twice. A higher threshold can be used as well. This step, if done, can reduce further the calculation overhead, perhaps at the cost of only some loss with respect to the degree of compression.
  • Step 6 In a replacement phase 20 (e.g., see FIG. 4), make further passes through the input document 111, using the table 200 of symbol pairs to replace symbol pairs with replacement symbols. Each replacement symbol indicates one of the corresponding symbol pairs. Store with the replacement symbol data specifying the distance between the locations at which the two members of a symbol pair are found (e.g., a number of intervening symbols, in which case adjacent symbols can be assigned a distance of zero; other distance schemes can be employed).
  • the distance between two locations can be specified by a number indicating the count of places (e.g., number of words or symbols) between the two locations, the difference between two location numbers, or any other method. If the two symbols in a pair happen to be in adjacent locations, the distance may be considered “0” in a system specifying the number of words between locations. A number may be dropped entirely for adjacent locations in some embodiments. Absolute locations of the second symbol of a pair can be used instead of the relative addressing described in this paragraph if desired.
  • the symbol pair “S5 SI” appears twice, and is replaced by “R2;l” in the first instance (indicating one symbol or symbol location between them) and is replaced by “R2;3” in the second instance (indicating three symbols or symbol locations between them).
  • the symbol pair “S2 S79” is replaced by “R3;4” and “S75 S4” by “R4;2”. Further replacement can be made based on other symbol pairs from the table 200 that appear in the document 111.
  • the compression dictionary may contain instances in which two different symbol pairs have one symbol in common. For example, the most frequently occurring symbol pair may symbolize Wordl in combination with Word2 while a less frequently occurring symbol pair may symbolize Word3 in combination with Word2. For illustration, the top pair may symbolize the words “is . . . a” while the other pair symbolizes “are . . . a.” In such instances, the number of replacements in a later pass through the document may result in fewer replacements than the frequency recorded in the compression dictionary, because some instances of the common word have been “used up” during the prior pass and thus are not available to be combined with the non-identical member of the lower-ranking symbol pair.
  • Step 7 In a compression phase 30 (e.g., see FIG. 4), produce a compressed output document by shifting the remaining symbols (replacement and unreplaced original symbols) so that they are in sequence, i.e., removing intervening empty memory locations.
  • output document 321 is shown before such compression; it will become shorter than document 111 when the spaces are removed.
  • step 7 can be done during step 6, either as each deletion is made, after each “pass” for each symbol pair, or in some other pattern (such as after a specified number of deletions or passes). If shifting can be done quickly, this may avoid the need to check empty memory locations.
  • the number 3 for the first pair must be changed to the number 2, to indicate that there are now only two memory locations between the locations of the first and the second symbols of that pair (i.e., the second member of that first pair is found after what is now location 12).
  • an immediate-shifting embodiment checks the data (subject to the cap on maximum distance if present) in previous locations to determine which have numbers referring to locations after the memory location being deleted.
  • the document compresses.
  • the compressed table 321 (with blanks removed; see FIG. 3) can be considered as an output document.
  • the output document can be written in a different memory location while keeping the input document as well.
  • the input document containing the symbols
  • the original document containing the actual words
  • Step 8 Optionally, repeat the compression process by using the output document as an input document for another cycle, and further optionally repeat such cycles recursively.
  • a symbol at a given location does not represent a single word but rather a word pair, separated by a stated distance. If such symbols occur in several locations in the input document, it indicates that a word pair is commonly used with a given separation.
  • a document may contain repeated uses of a given phrase, or a given form.
  • Such a recursive process can operate for a fixed number of cycles. Or the process can perform cycles recursively until no further possible replacements are detected, which would result in the highest possible compression. Or the process can repeat for a maximum number of cycle unless, before the maximum is reached, no further possible replacements are detected.
  • the replacement symbols can be the address of the replaced symbol pair in the compression dictionary.
  • the replacement symbol can be just the row identifier in a spreadsheet.
  • the replacement symbol can be just the portion of the address associated with a row identifier in a spreadsheet, where columns represent sequential cycles and it can be assumed from context that the column refers to the previous cycle. Such embodiments thereby can achieve increased space savings and decreased lookup time needed to access the compression dictionary.
  • a system can use patterns of replacement symbols and associated counts to analyze content or investigate texts. Especially if recursive cycles are used, the presence of higher-order replacement symbols can be used to deduce a relationship between different documents, suggesting two texts are related in some fashion. Metadata, such as the number of times certain pairs appear, generated during compression of documents can be used to analyze documents and find similarities therebetween.
  • Process 1000 may comprise a combination of the processes described above with regards to embodiments 1 and 2.
  • An advantage of this Embodiment 3 is that it decreases the processing time.
  • Process 1000 includes new data addition subprocess 1002 (dashed box). Embodiments one and two may be limited in that adding additional documents for compression to a previously compressed document tends to necessitate recalculation and recompression of the entire data set. Subprocess 1002 may enable addition of new data by updating the symbol dictionaries associated with the compressed documents generated by the system. In this regard, process 1000 tends to save system resources by decreasing processing time and memory usage. For example, by performing only the steps of subprocess 1002 to add new documents to existing compressed documents the system may avoid recompression of existing documents and process only those additional documents thereby improve total process time and save processing resources. Processing time improvements and system use overhead may be further improved by omitting the optional steps of subprocess 1002.
  • the system may select one or more first uncompressed documents to be compressed via the above described methods (step 1004).
  • the system may generate a symbol dictionary based on the selected first uncompressed documents (step 1006).
  • the system may generate a symbol dictionary (e.g., table 140 of FIG. 1 and FIG. 5) correlating symbols with words that respective symbols symbolize.
  • the symbol dictionary can be viewed as a standardization memory, allowing encoding or decoding of any or all of the multiple documents.
  • the system may sort the symbol dictionary by order of frequency (step 1008).
  • the system may perform pair replacement on the first uncompressed documents by address or symbol to generate a first compressed document (step 1010).
  • the system may apply either or both of the compression processes described above with regard to the embodiments one and two.
  • the system may generate a compression dictionary (step 1012).
  • the system may generate table 200 of FIG. 2 which may be considered the compression dictionary, which associates unique stored symbol pairs with respective replacement symbols, keeping a count of the number of times the different symbol pairs appear in the input document 111 (or multiple input documents 111, 112, 113, . . . ).
  • the system may generate a compression dictionary 200 which can grow to have any number of columns depending on the number of passes performed on a plurality of documents.
  • the system may sort the symbol pairs of the compression dictionary by order of frequency (step 1014).
  • the system may truncate compression dictionary based on a user- determined frequency threshold (step 1016). For example, as discussed above, if the number of replacements of a particular symbol pair fall below the threshold (or possibly a different threshold, or perhaps to zero) then that symbol pair may be truncated as well, to avoid further evaluation and storage of null entries or entries considered of limited value.
  • the system may generate a first compressed output document and end or, may repeat the compression process by using the first compressed output document as an input document for another cycle, and further optionally repeat such cycles recursively to generate a recursively compressed output document (step 1018). In various embodiments, the system may repeat the cycles based on a loop count.
  • the in response to generating the first compressed output document or the recursively compressed output document system may execute subprocess 1002 to add a new uncompressed document to the compressed output document of step 1010.
  • the system may select one or more new uncompressed documents to be added to an existing compressed file (step 1020).
  • the system may append the new uncompressed document to the end of the a compressed document (i.e., the first compressed output document or the recursively compressed output document) to generate an appended compressed document (step 1022).
  • the system may perform a word analysis of the appended compressed document based on the symbol dictionary and determine whether any new words are present (step 1024). Where no new words are present, the system may optionally update the frequency counts of the symbol dictionary (step 1026).
  • Step 1028 may include optionally updating the frequency counts of the symbol dictionary in response to adding the new words (step 1032).
  • the system may optionally perform a second sorting of the symbol dictionary by order of frequency (step 1030).
  • subprocess 1002 generates an updated symbol dictionary based on the appended compressed document.
  • the system may then return to step 1010 using the updated symbol dictionary and with the appended compressed document as the input document.
  • the system may apply the compression process to the entire appended compressed document to generate a combined compressed document. Otherwise, the system may apply the compression process only to the appended portion of the appended compressed document. It will be appreciated that in the ‘for only (B)’ path processing speeds tend to be maximized by performing compression steps only on the new documents. In this regard, the previously compressed ‘(A)’ sections are not processed by the system and processing time is reduced.
  • the systems and methods herein can be applied (as noted above) to analyze various sorts of data that can be symbolized other than by words, which can lead to still further applications.
  • One example is facial recognition based on numeric (or other) coding of different facial dimensions or characteristics, which can be used, for example, to control access to a secure location, such as a physical place (e.g., a building) or a device (e.g., a computer system, database, or secured portion thereof).
  • the system can be used not only for recognizing faces but also (or instead) for distinguishing whether or not certain measurements represent a human face or for the purpose of improving facial recognition systems.
  • the systems and methods herein can also be used to infer preferences or interests (such as for advertising) or to determine commonalities of interest.
  • the systems and methods herein can apply to various applications, for example, compression of archives such as email, news, or other library archives.
  • the process is well suited to such applications becausethe large number of the symbols involved is likely to produce a significant number of repeated strings, facilitating ahigh level of compression.
  • Additions to the archive can be scheduled to occur during off-peak hours and can be structured in large batches as to best balance the required processing time against the space savings achieved by compression of the added documents.
  • the systems and methods disclosed herein may be implemented using a “programmed computerized machine,” can be implemented as or with general or special purpose computers or servers or other programmable hardware devices programmed through software, or as hardware or equipment “programmed” through hard wiring, or a combination of the two.
  • a “computer” or “server” can comprise a single machine or can comprise multiple interacting machines (located at a single location or at multiple remote locations).
  • Computer programs or other software code can be implemented in tangible, nontransient, temporary or permanent storage or replaceable media, such as by including programming in microcode, machine code, network-based or web-based or distributed software modules that operate together, RAM, ROM, CD-ROM, CD-ft CD-R/W, DVD- ROM, DVD.+-.R, DVD .+-.R/W, hard drives, thumb drives, flash memory, optical media, magnetic media, semiconductor media, or any future computer-readable storage alternatives.
  • Electronic indicia of a dataset can be read from, received from, or stored on any of the tangible, non-transitory computer-readable media mentioned herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Document Processing Apparatus (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

A computerized system and method of compressing symbolic information organized into a plurality of documents, each document having a plurality of symbols, the system and method including: (i) automatically identifying a plurality of sequential (also referred to as adjacent) and/or non-sequential symbol (also referred to as non-adjacent) pairs in an input document; (ii) counting the number of appearances of each unique symbol pair; and (iii) producing a compressed document that includes a replacement symbol at each position associated with one of the plurality of symbol pairs, at least one of which corresponds to a non-sequential symbol pair. For each non-sequential pair the compressed document includes corresponding indicia indicating a distance between locations of the non-sequential symbols of the pair in the input document.

Description

COMPUTERIZED SYSTEMS AND METHODS OF DATA COMPRESSION
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority U.S. Application Ser. No. 17/532,947 filed on November 22, 2021 and entitled Computerized Systems and Methods Of Data Compression which is incorporated herein in its entirety. U.S. Application Ser. No. 17/532,947 is a continuation-in-part of, claims priority to, and incorporates by reference the following: (1) U.S. Application Ser. No. 16/951,954 filed on November 18, 2020 and entitled Computerized Data Compression and Analysis Using Potentially Non- Adjacent Pairs, which claimed priority to U.S. Provisional Application No. 62/939,448, filed on November 22, 2019, and (2) U.S. Application Ser. No. 16/428,675 filed on May 31, 2019 and entitled Computerized Methods of Data Compression and Analysis, which is a continuation of U.S. Application Ser. No. 15/600,495 filed on May 19, 2017 and entitled Computerized Methods of Data Compression and Analysis, which is now U.S. Patent No. 10, 387,377.
BACKGROUND
[0002] The field of the present invention relates to data compression, such as by lossless compression of text and other information that can be represented by symbols.
[0003] Previous text compression techniques are usable on only one file or document at a time. Such techniques do not scale easily to enormous data sets, i.e., “Big Data,” or where data is spread across many different containers. Also, previous techniques do not track the number of times a particular symbol or string of symbols appear in the uncompressed text. The number of times a particular symbol or string appears in is valuable information that is useful for improving space savings, reducing processing time, and conducting contextual analysis.
SUMMARY
[0004] An example embodiment compresses symbolic information that is organized into a plurality of documents. Each of the uncompressed documents has a plurality of symbols. A document can be a string of symbols of any length (e.g., a sentence, paragraph, or text file). A symbol can be any code that constitutes or carries information (e.g., a letter, number, nonalphanumeric character, syllable, or word).
[0005] The example embodiment operates on an input document by identifying at least one of two adjacent (also referred to as sequential) symbols, two non-adjacent (also referred to as non-sequential) symbols, or both adjacent symbols and non-adjacent symbols in the document as a symbol pair. The example embodiment stores each unique symbol pair in a compression dictionary. The compression dictionary associates each stored symbol pair with a respective replacement symbol. The example embodiment also maintains a count of the number of times each unique symbol pair appeared in the input document. The example embodiment produces a compressed output document by replacing symbol pairs with their associated replacement symbols if the count for the symbol pair exceeds a threshold.
[0006] Some embodiments are programmed to repeat the compression process by using the output document as an input document for an additional pass. Certain embodiments recursively perform additional passes until no further replacements can be made (i.e. , in the final pass, the output document is identical to the input document). Symbol pairs identified in recursive passes can include replacement symbols from a previous pass.
[0007] Some embodiments are programmed to be applied to multiple documents. In fact, the compression ratio improves as the size of the uncompressed data increases. The larger the data set, the more likely it is that the count associated with any given symbol pair will exceed the threshold, which results in more replacements and higher compression.
Compression is optimized, in some of these embodiments, when the process recurs on all the documents until no further replacements are possible.
[0008] Some embodiments increase space savings and decrease the lookup time needed to access the compression dictionary by using, as a replacement symbol, the address of the replaced symbol pair in the compression dictionary.
[0009] Some embodiments sort the entries in the compression dictionary based on the count of the number of times a symbol pair appeared. The sorting is done to place the most frequently appearing symbol pairs in more accessible memory locations than less frequently appearing symbol pair. Sorting decreases lookup times during the replacement phase.
[0010] Some embodiments use patterns of replacement symbols and the count of the number of times certain symbol pairs appeared to analyze content.
[0011] In another embodiment, a computerized method of compressing symbolic information organized into a plurality of documents is disclosed. Each document has a plurality of symbols. With a first document of the plurality of documents as an input document, a computer automatically identifies a plurality of symbol pairs. Each symbol pair consists of two sequential or non-sequential symbols in the input document; at least one symbol pair consists of two non-sequential symbols in the input document. The computer counts the number of appearances of each unique symbol pair. The computer produces a compressed document that includes a corresponding replacement symbol at each position associated with one of the plurality of symbol pairs from the input document. At least one replacement symbol corresponds to a symbol pair consisting of two non-sequential symbols, and for each such pair the compressed document includes corresponding indicia indicating a distance between locations of the non-sequential symbols of the pair in the input document. In some instances the plurality of symbol pairs includes only those pairs of non-sequential symbols for which the distance between locations of the non-sequential symbols of the pair in the input document is less than a numeric distance cap.
[0012] In a third embodiment, the system may generate a symbol dictionary based on a first uncompressed document of a plurality of documents, each document having a plurality of symbols. The system may perform a first data compression on the first uncompressed document by at least one of the adjacent pair dictionary method or the non-adjacent pair dictionary method to generate a compressed output document. The system may append a new uncompressed document of the plurality of documents to the compressed output document to generate an appended compressed document. The system may update the symbol dictionary based on the appended compressed document to generate an updated symbol dictionary [0013] In some embodiments, the system may perform with the updated symbol dictionary, a second data compression on the appended compressed document by at least one of the adjacent pair dictionary method or the non-adjacent pair dictionary method. In some embodiments, the system may perform a word analysis of the appended compressed document based on the symbol dictionary to determine whether any new words are present. In some embodiments, the system may add a new word to the symbol dictionary based on determining the presence of new words in the appended compressed document. The system may update a frequency count of the symbol dictionary in response to adding the new words. In some embodiments, the system may update a frequency count of the symbol dictionary in response to determining the absence of new words. In some embodiments, the system may sort the symbol dictionary by order of frequency in response to updating the frequency count. [0014] In some embodiments, performing the first data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential symbols in the first uncompressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing the compressed output document by causing the compressed output document to include, at each position associated with one of the plurality of symbol pairs from the input document, a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold
[0015] In some embodiments performing the first data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential or nonsequential symbols in the input document, one or more symbol pairs consisting of two nonsequential symbols in the first uncompressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing a compressed document by causing the compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, including one or more symbol pairs consisting of two nonsequential symbols, (i) a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold, and (ii) for at least those symbol pairs consisting of two non-sequential symbols, indicia indicating a distance between locations of the nonsequential symbols of the pair in the input document.
[0016] In some embodiments performing the second data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential symbols in the appended compressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing a combined compressed document by causing the combined compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold.
[0017] In some embodiments performing the second data compression comprises (a) identifying a plurality of symbol pairs, each symbol pair consisting of two sequential or nonsequential symbols in the appended compressed document, one or more symbol pairs consisting of two non-sequential symbols in the appended compressed document (b) for each unique symbol pair of the plurality of symbol pairs, updating a count identifying the number of appearances of the unique symbol pair and (c) producing a combined compressed document by causing the combined compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, including one or more symbol pairs consisting of two non-sequential symbols, (i) a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold, and (ii) for at least those symbol pairs consisting of two non-sequential symbols, indicia indicating a distance between locations of the non-sequential symbols of the pair in the input document. [0018] In some embodiments the second data compression is only performed on an appended portion of the appended compressed document.
BRIEF DESCRIPTION OF THE DRAWINGS
[0019] FIG. 1 is a visual representation of an example of a symbol dictionary generated by and employed in compression methods disclosed herein.
[0020] FIG. 2 is a visual representation of an example of a compression dictionary generated by and employed in compression methods disclosed herein.
[0021] FIG. 3 is a visual representation of replacement of symbol pairs according to compression methods disclosed herein.
[0022] FIG. 4 is a flow diagram showing operation of compression methods disclosed herein.
[0023] FIG. 5 is a visual representation of a text standardization process applied by an embodiment.
[0024] FIG. 6 is a visual representation of a compression dictionary used the embodiment of FIG. 5.
[0025] FIG. 7 is a visual representation operation of the embodiment of FIG. 6.
[0026] FIG. 8 is a flowchart that shows the operation of the embodiment of FIG. 6.
[0027] FIG. 9 is a chart showing results achieved by an experimental embodiment.
[0028] FIG. 10 is a flow chart of an alternate embodiment of an aspect of this disclosure.
[0029] The embodiments depicted are shown only schematically; all features may not be shown in full detail or in proper proportion; for clarity certain features or structures may be exaggerated or diminished relative to others or omitted entirely. The embodiments shown are only examples and should not be construed as limiting the scope of the present disclosure or appended claims.
DETAILED DESCRIPTION
Embodiment One
[0030] Embodiments of the data compression and analysis technique can be programmed in computer code as a set of computer instructions. When running on a computer, the computer instructions control a computer processor and cause it to perform the functions described herein. The computer instructions (e.g., computer software) can be stored in any computer memory accessible to the computer or encoded in computer hardware. Some embodiments are instantiated in special purpose computers or dedicated computer appliances. The documents on which the embodiments operate can be stored in the same or a different computer memory accessible to the computer system.
[0031] An example embodiment analyzes uncompressed text to identify adjacent pairs of symbols. The example embodiment replaces occurrences of a pair of symbols that appears more than a predefined number of times with an associated replacement symbol. Symbols can be alphanumeric characters, discrete groups of alphanumeric characters such as syllables or words, or any code that constitutes and carries information.
[0032] In some embodiments, the original symbols in the uncompressed text are replaced with standard symbols during a preliminary phase. FIG. 1 is a representation of how an example embodiment standardizes uncompressed text. In certain circumstances, such as when there is alarge variation in the lengths ofthe original symbols, standardization improves performance during subsequent operations.
[0033] The example embodiment of FIG. 5 identifies and counts all occurrences of unique original symbols and stores each unique original symbol. Each original symbol is stored in a standardization memory in association with a standard symbol. In FIG. 5, standardization memory 140 associates an original symbol (in column 160) with its respective standard symbol (in column 150) and a count of how many times each original symbol appears in the uncompressed text (in column 170).
[0034] To identify unique original symbols, some embodiments are programmed to interpret certain non-alphanumeric characters (e.g., a space) as denoting a break between two symbols. The example embodiment interprets a space as a break between symbols yet retains the space in the standardized document. For example, document 111 is shown with spaces separating the standard symbols. However, other embodiments drop spaces and certain other non-alphanumeric characters entirely because the location of such characters can be restored or discerned from context. For example, a space between symbols can be inferred and reproduced based on the rules of the algorithm used to identify the original symbols. Likewise, the presence of certain non-alphanumeric characters can be inferred based on the grammatical rules of the language in which the text is written. [0035] Some embodiments interpret certain non-alphanumeric characters as part of a symbol. The example embodiment of FIG. 5 identified text 105 as a symbol even though it contains an apostrophe. Other embodiments identify non-alphanumeric characters as symbols in their own right.
[0036] Some embodiments ignore capitalization while processing symbols. Such embodiments provide space savings by storing only a uniform-case version (e.g., lowercase version) of all original symbols. Such embodiments can restore the original text, including restoring capitalization, using grammatical and contextual rules regarding sentence structure and proper nouns.
[0037] Some embodiments interpret select symbols as signaling the end of a document. The example embodiment of FIG. 5 identifies the period at 107 as the separator between document 101 and document 102. Alternative embodiments separate text into documents based on carriage returns, paragraphs, cells, fields, records, rows, columns, pages, headings, tags from a markup language, information in a table of contents, or section or chapter markings. Any human-understandable or computer-readable markers or containers can be used to divide the text into documents. Other embodiments operate on documents that are separate computer files.
[0038] The example embodiment operates on multiple documents concurrently. Thus, during the standardization process, the example embodiment identifies and counts all occurrences of unique uncompressed symbols in all documents before replacing any of the original symbols in the documents.
[0039] The example embodiment replaces the original symbols of document 101 with standard symbols stored in standardization memory 140 to produce standardized document 111. Standardization memory 140 can be created during the standardization of input documents or can be pre-existing. FIG. 5 presents standardization memory 140 in arow-and-column format, but other datastorage structures canbeused.
[0040] The example embodiment sorts the entries in standardization memory 140 according to the counts stored in column 170. The example embodiment sorts the entries before standard symbols are assigned and stored in column 150. Sorting standardization memory 140 improves space savings because the example embodiment can assign shorter standard symbols to the symbols that appear most frequently. Sorting also allows frequently used standard symbols to be stored in highly accessible memory locations, which improves lookup times. After sorting, some embodiments may delete the counts to save space. [0041] FIG. 5 shows the counts stored in column 170 of standardization memory 140. Alternative embodiments store the counts generated during standardization separately from the standardization memory.
[0042] A standard symbol can be an address indicating the location of the original symbol in standardization memory 140. Use of an address rather than an arbitrary symbol reduces the requisite memory space because there is no need to store extraneous symbols. Use of addresses as standard symbols also improves processing times during replacement and decompression because the example embodimentneed only perform a single memory lookup rather than performing the multiple lookups that are required to translate between standard symbol and replacement symbol. When restoring the text to its original form, each standard symbol directs the example embodiment to the exact memory location of the original symbol. [0043] Use of addresses as standard symbols, when applied after sorting, further improves lookup times because it ensures that more frequently occurring symbols are stored in more accessible memory locations than less frequently occurring symbols.
[0044] FIG. 6 is arepresentation of compression dictionary 200 that is used by the example embodiment to store associations between a unique symbol pair and its replacement symbol. Standardization memory 140 in FIG. 5 is shown stored separately from compression dictionary 200 in FIG. 6. Alternative embodiments can store the standardization memory as part of the compression dictionary.
[0045] Compression dictionary 200 is shown structured in rows and columns. Alternative embodiments use other data structures such as relational databases, document-oriented databases, graph databases, key -value stores, object databases, or hierarchical trees to maintain the compression dictionary (and standardization memory if used). Some embodiments use an existing compression dictionary. Other embodiments create the compression dictionary during operation.
[0046] FIG. 7 is arepresentation of document 111 as it is operated on by the embodiment of FIG. 6. The example embodiment is programmed to repeat recursively until compression is complete, e.g, until no more pairs of symbols meet the threshold for replacement. The example embodiment operates on document 111 to create output document 351. Numerals 321, 331, and 341 refer to intermediate results before passes of the process carried out by the recursive embodiment; they are called “documents” here for ease of reference but can be deleted or overwritten during the next pass. Documents 112-114 are likewise processed in the same batch as document 111 to produce respective documents 352-354. Documents 322-324, 332-334, and 342-344 represent intermediate results between passes.
[0047] During each pass the example embodiment makes through the documents, the example embodiment identifies and counts the occurrence of each unique symbol pair (“the cataloging phase”) and replaces symbol pairs with a count exceeding the replacement threshold (“replacement phase”). The example embodiment performs the cataloging phase on all documents before turning to the replacement phase.
[0048] Alternative embodiments identify and replace symbol pairs in one operation by processing the text of each document in sequential order. In such alternative embodiments, a pass through a document involves comparing each sequential symbol pair to entries of the compression dictionary. If the comparison results in amatch, the compared symbol pair's count is incremented, and if the replacement threshold is met, the symbol pair is replaced with a replacement symbol. Ifthe comparison does not produce amatch, the symbol pair is identified as unique and added to the compression dictionary. Because such alternative embodiments do not use replacement symbols until a symbol pair's count exceeds the threshold for replacement, such embodiments schedule replacement of earlier instances of a symbol pair once the symbol pair's count exceeds the replacement threshold.
[0049] In the identification or cataloging phase of a pass, the example embodiment identifies symbol pairs in an input document by pairing each symbol with the next adj acent symbol in the document until the last symbol in the document is reached. All symbols, except first and last symbol, in the input document are therefore included in two symbol pairs: One symbol pair formed from pairing the symbol with the preceding symbol, and one symbol pair formed from pairing the symbol with the following symbol.
[0050] For example, when processing document 111, the example embodiment recognizes symbols 311 and 312 as afirst pair and symbols 312 and 313 as asecond pair. The example embodiment continues pairing symbols until it pairs symbol 318 and 319. The first symbol (symbol 311) and the last symbol (symbol 319) are each only paired with one other symbol (z. e. , symbol 312 and symbol 318, respectively). All other symbols in the document are included in two symbol pairs.
[0051] Alternative embodiments do not compare every possible pairing of adj acent characters . Rather such embodiments skip symbol pairs having a symbol from the previously compared pair. For example, such embodiments, if operating on document 111, would recognize the pair of symbols 311 and 312, skip over the pair formed by symbols 312 and 313, and recognize the pair of symbols 313 and 314 as the next pair.
[0052] Once all pairings have been made for the symbols in documents 111-114, the example embodiment counts the number of times each unique symbol pair appeared in the documents. The example embodiment identifies and counts the unique symbol pairs by inserting every symbol pair into an array and performing a “pivot table” operation on the array to identify and count the number of occurrences of each unique symbol pair.
[0053] In each pass, the example embodiment generates a pass-related section in the compression dictionary. For example, referring to FIG. 6, columns 210 and 211 of compression dictionary 200 are the result of the cataloging phase of the first pass. Column 210 stores each unique symbol pair from the text processed in the cataloging phase of the first pass. Column 211 stores the count associated with each symbol.
[0054] FIG. 6 presents the count as being stored as a field in compression dictionary 200. A symbol pair's associated count could be stored as an attribute or metadata of the symbol pair, rather than as an entry in the compression dictionary. Alternative embodiments store counts associated with each pair separately from the compression dictionary. The example embodiment does not store a count for symbol pairs that appear only once (see entry 216 in compression dictionary 200). Thepresenceofasymbolpair is sufficient to indicate it has appeared only once.
[0055] The example embodiment is programmed to sort the entries of compression dictionary 200 based on the counts of each symbol pair in a manner similar to that described above in connection with standardization of the symbols. In other words, after all symbol pairs are identified from documents 111- 114, the example embodiment sorts entries of compression dictionary 200 (FIG. 6) before assigning replacement symbols or making any replacements to produce document 321 (FIG. 7). For the reasons similar to those described above in connection with sorting the standardization memory, the example embodiment achieves space savings andperformance benefits by sorting compression dictionary 200.
[0056] A replacement symbol can be an address in the compression dictionary where the symbol pair associated with the replacement symbol is stored. In the embodiment of FIG. 6, replacement symbols are formed from a combination of the row identifier (see column 201) and a column identifier. The column identifier indicates the pass during which the symbol pair was identified (P1,P2,P3 in FIG. 6). Use of address-based replacement symbols provides similar benefits to those described in connection with standardization for similar reasons. Alternative embodiments assign unique replacement symbols that are unrelated to the address of the symbol pair.
[0057] Insomecases,thereplacementsymbol canbejusttheportionofthe address associated with the row identifier. F or example, the replacement symbols from the first pass of the example embodiment are only the row identifier of its respective symbol pair's address. When the example embodiment decompresses a document, it is programmed to associate replacement symbols without apass identifier as beingfromthefirstpass. In example embodiments, replacement symbols from the firstpass are inserted into output documents and stored in the compression dictionary (if paired with another symbol in a sequential pass) without a pass identifier.
[0058] Alternative embodiments achieve further space savings in a similar way. For any given pass after the first pass, an embodiment can omit the pass identifier of replacement symbols that are most frequently paired with another symbol. Forexample, inPass X, symbol pairs can be formed by pairing areplacement symbol from any of Passes 1 , ... , N, ... , X- 1 with another symbol. Suppose that, in Pass X, replacement symbols frompassN are most frequently paired with other symbols. In that case, rather than storing, in the compression dictionary, the full replacement symbol for Pass N replacement symbols, the embodiment omits the pass identifier from Pass N replacement symbols and simply stores an indication that Pass N is the most frequent pairingforPassX. Thus, ifany symbol pair stored in Pass X's section ofthecompression dictionary contains a replacement symbol with no pass identifier, the pass identifier is assumed to be that of Pass N. In this manner, space is saved because Pass N's pass identifier need only be stored once for all of the entries stored in the compression dictionary during PassX.
[0059] The example embodiment of FIG. 6 only uses replacement symbols if their associated count exceeds a predetermined threshold. Every symbol pair in the document that corresponds to an entry in compression dictionary could be replaced (e.g., athreshold equal to one). However, a higher threshold allows for improved performance. Ifalarge number of symbol pairs appear only once or only a few times, their replacement will not improve, or significantly improve, compression of the documents and will increase the storage requirements of the compression dictionary. A higher threshold can reduce processing time by eliminating the need to replace infrequently used symbol pairs.
[0060] The example embodiment improves space savings further by only retaining compression dictionary entries for symbol pairs that have a count exceeding the threshold. Because the example embodiment is programmed to perform the cataloging phase on all documents before beginning the replacement phase, symbol pairs that do not exceed the threshold will not be replaced. Thus, storing below-threshold symbol pairs increases the size of the compression dictionary without providing any without benefit. To avoid that inefficiency, the example embodiment truncates (i.e., deletes portions of the compression dictionary having entries with counts less than the threshold. For example, if the threshold for the first pass is four, the example embodiment would not retain portion 260 of FIG. 6.
[0061] Alternative embodiments retain portions of the compression dictionary with entries that have a count less than the threshold even though they will not be used with the current set of documents. If new documents are added to the set of documents, the counts for below- threshold symbol pairs could increase to the point where they meet the replacement threshold. Some alternative embodiments store below- threshold portions of the compression dictionary in a separate archive rather than the compression dictionary. The archive can be accessed when new documents are added.
[0062] In various embodiments, the replacement symbols can be associated with a symbol pair when the symbol pair is first identified or meets the replacement threshold. The example embodiment assigns replacement symbols after both sorting and truncation so that the most frequently used replacement symbols will have the shortest length and can be placed in the most accessible memory locations. In circumstances where areplacement symbol is the address of its associated symbol pair, each replacement symbol is associated withits symbol pair by virtue of the symbol pair's position in the sort order.
[0063] Alternative embodiments can assign replacement symbols any time before the replacement phase begins. Such alternative embodiments can sort the compression dictionary based on the counts or maintain the entries in their original order. After sorting, some embodiments delete the counts to save additional space.
[0064] During the replacement stage of a pass, the example embodiment creates a compressed output document by replacing symbol pairs in an input document with replacement symbols from compression dictionary 200. Alternative embodiments create anew output document distinct from the input document by inserting either the original symbols or replacement symbols in place of a pair of the original symbols. Such alternative embodiments later delete the input document. The example embodiment creates output document 321 (see FIG. 7) by overwriting symbol pairs in input document 111 with replacement symbols where appropriate. [0065] The compression dictionary for the example embodiment only contains entries for symbol pairs that exceed the replacement threshold because entries with counts not exceeding the threshold were not retained. Thus, the example embodiment is programmed to replace the first symbol pair that matches an entry in the compression dictionary. When processing document 111, the example embodiment identifies the pair ofsymbols 311 and312(FIG. 7) and compares it to the entries of compression dictionary 200 (FIG. 6). The pair of symbols 311 and 312 are found in compression dictionary 200 (see entry 212). Because a match is found, the pair of symbols 311 and 312 is replaced with replacement symbol 325 in output document 321. The dictionary also contains the pair of symbols 312 and 313 (see 214), and the count exceeds the threshold for replacement (see 215). However, the pair of symbols 312 and 313 is not considered for replacement, because the example embodiment already replaced symbol 312.
[0066] Embodiments that do not truncate the compression dictionary must compare symbol pairs in a document to the compression dictionary and also check the count before replacement. Alternative embodiments analyze multiple possible replacements to determine which would maximize the number of total replacements or maximize the space savings. Other embodiments determine which pairs to replace based on minimizing the length of the replacement pairs or the lookup time required to decompress the document. Still further alternative embodiments attempt to replace the first pair of symbols and if no replacement is possible, skip over the pair that could be formed by combining the second symbol of the first pair with the next sequential symbol.
[0067] When the example embodiment cannot replace a symbol pair, it continues to consider the next symbol pair. For example, when the pair of symbols 315 and 316 are compared to the entries in the compression dictionary, no match is found. The example embodiment, therefore, moves to the next symbol pair (the pair of symbols 316 and 317). Embodiments that create anew output document rather than overwriting the symbols of the input document insert into the output document the first symbol of asy mbol pair that cannot be replaced. If that last symbol of a symbol pair is the last symbol in a document, and the symbol pair does not match any of the entries in the compression dictionary, both symbols of the symbol pair must be inserted into the output document.
[0068] As described, the example embodiment is programmed to perform recursive passes until no further replacements are possible. Thus, the example embodiment begins a second pass by applying cataloging and replacement phases to document 321 to produce document 331. In the symbology of FIG. 7, symbol “R3P2” in document 331 refers to row 3 of the second pass. Symbol pairs identified in asecond or subsequent pass can be two replacement symbols. See replacement symbol 335, which refers to the sequence of replacement symbol R4 (see 325) followed by replacement symbol R3 (see 326 in the first pass in document 321). Alternatively, symbol pairs identified in a later pass can be a combination of a replacement symbol and an uncompressed symbol. See replacement symbol 336, which refers to the sequence of uncompressed symbol S300 followed by replacement symbol R3. Compression dictionary 200 of FIG. 6, therefore, lists in row R3 of column 220 (P2) the sequential pair R4 followed by R3. Review of column 210 reveals that the sequence R4 followed by R3, in turn, denotes symbol SI followed by S79 followed by S75 followed by S5. Thus, in this example, after the second pass (P2), the example embodiment has replaced the four-symbol “phrase” Sl- S79-S75-S5 with the single symbol R3P2.
[0069] Sequential passes by the example embodiment result in additional columns 220 and 230 (FIG. 6) that store symbols pairs from each respective pass. In the example embodiment, each pass in which unique symbol pairs are discovered results in additional columns being added to compression dictionary 200 to store the newly identified symbol pairs and their respective counts (see columns 221 and231). FIG. 6 presents symbols discovered in later passes inseparate columns to illustrate the recursivenature ofthe embodiment.
[0070] The example embodiment only makes replacements from the column or section of compression dictionary 200 created during the instant pass. Storing replacement symbols in pass-specific sections reduces lookup times because the embodiment does not need to search through entries having replacement symbols that will not be used in the current pass.
[0071] Alternative embodiments store symbol pairs identified indifferentpasses in a common column or memory area. Such embodiments can increase space savings because they use less complex replacement symbols. For example, an embodiment that stores all identified symbol pairs in the same column of the compression dictionary could use a replacement symbols that consists entirely of a row identifier. In any embodiment, close attention to the choice of symbology for the replacement symbol is capable of producing increased compression.
[0072] As shown in FIG. 7, a third pass performed on document 331 produces document 341, and a fourth pass performed on document 341 to produce document 351. If the output of fourth pass (document 351) is the same as the output of the third pass (document 341), and assuming this remains true for all other documents that are being compressed concurrently with document 111, then the example embodiment stores the last output version of each document and the compression process terminates. The example presented in FIG. 7 only shows four passes oftheprocess applied to the example text. However, any number of passes can be performed. In some embodiments, the number of passes can be a fixed number. In other embodiments, a maximum number of passes can be set, but the process is programmed to terminate if no further replacements are made before the cap.
[0073] As more passes areperformed on aset of documents, thenumber of symbol pairs identified and the count of each identified symbol pair tends to decrease, hence the incremental size reduction provided by each additional pass decreases. However, each additional pass will consume additional processing resources. To balance the size reduction against processing resources, certain embodiments are programmed to terminatetheprocessifthesize reduction resulting from agiven pass falls below acertain limit (e.g., if agiven pass produces less than ahalf ofa percent size reduction). Other embodiments terminate the process based on a different factor, such as the number of new symbol pairs found being less than afixed amount or the count of the most frequently occurring symbol pair falling below a certain level. F or another example, an embodiment can be constructed to terminate the process if the count of the most frequently occurring symbol pair in apass falls below apredetermined percentage of the count of the most frequently occurring symbol in the first pass.
[0074] Once the criterion for terminating the process has been met, some embodiments are programmed to replace any identified symbol pairs found in the pass that triggered the termination condition. Other embodiments terminate the process immediately upon recognizing the termination condition, without replacing symbol pairs found in that last pass. Still further embodiments terminate mid- pass if an insufficient number of symbol pairs are found after processing enough text to determine that the resultant space savings would fall below a predetermined amount. Any symbol pairs that are not replaced would not need to be stored in the compression dictionary or assigned areplacement symbol.
[0075] Compression dictionary 200 can grow to have any number of columns depending on thenumber of passes performed on a plurality of documents. Thus, FIG. 6 only shows a portion of compression dictionary 200 relevant to documents 310-350.
[0076] The example embodiment performs sort and truncation operations at the end of each cataloging phase. However, thresholds applied during successive passes can differ from the threshold of the first pass. The example embodiment uses lower replacement thresholds for additional passes. [0077] Some embodiments determine ideal values for the replacement thresholds of each pass by compressing a subset of the documents in a series of trials with different pass thresholds values in each trial until the best compression is achieved.
[0078] FIG. 8isaflowchartshowingtheoperationoftheexampleembodiment. Cataloging phase 400for any pass begins with identifying all unique symbols (401). Next, the example embodiment counts the number of occurrences of each unique symbol (402). Next, the example embodiment populates the compression dictionary with the unique symbols (403). Populating the compression dictionary can include reordering the unique symbol pairs based on their counts, omitting symbol pairs with counts that do not exceed the threshold, and associating replacement symbols with each unique symbol pair. The example embodiment completes cataloging phase 400 on all documents before moving to replacement phase 450. [0079] During replacement phase 450, the example embodiment searches the input documents for symbol pairs that match entries in the compression dictionary (451). If any replacements are possible, the example embodiment replaces symbol pairs with an associated replacement symbol (452). The example embodiment enforces the threshold at 403 by populating the compression dictionary with only symbol pairs that exceed the threshold; however other embodiments that retain symbol pairs with counts that do not exceed the threshold enforce the threshold by only replacing symbols pairs with counts exceeding the threshold. After replacements are made (452), the example embodiment operates recursively by returning to cataloging phase 400 to begin a subsequent pass on the output of the previous pass. As part of the recursion process, the example embodiment adjusts the replacement threshold (not shown) according to the settings for the subsequent pass. If no replacements are possible during a pass, the example embodiment stores the compressed output documents and terminates (499). When required, the example embodiment restores the compressed documents by reversing the replacement phase of each pass .
[0080] The example embodiment handles new documents by decompressing all compressed documents, deleting the compression dictionary, and with the new documents as part of the plurality of documents, re-applying the process (i.e., 400-499) to the uncompressed documents. Compression of new documents can be scheduled for times when resource demand is expected to be low or by an offline system so that users do not experience noticeable delays when accessing compressed documents.
[0081] Alternative embodiments handle new documents by recursively applying cataloging and replacing passes to new documents without uncompressing any documents. In such embodiments, compression is improved if the compression dictionary is not truncated because symbol pairs identified in new documents could cause the count a particular replacement symbol that did not previously meet the replacement threshold to exceed the threshold and used in the new document.
[0082] Other embodiments recursively apply only the replacement phase to the new documents. For such embodiments, the documents in an original set of documents can act as a training set.
[0083] The process works best with large volumes of data. The more data that is compressed, the more likely it is that long sequences of symbols will be repeated. Thus, higher compression ratios can be achieved as the number of symbols increases. In that way, processes described with reference to the above embodiments are well suited to “big data” applications. In fact, the disclosed embodiments can result in greater data size compared to existing techniques if applied to very small datasets, in part because of overhead associated with the compression dictionary.
[0084] Likewise, if the plurality of documents includes only documents from a particular field of knowledge, the process can produce improved compression ratios because any given field of knowledge has common terms and phrases that are often repeated in texts dedicated to the field. On the other hand, when documents from a new field of knowledge are incorporated into the plurality of documents, the process encounters a learning curve in which the achievable compression ratio is decreased. Eventually, after processing a sufficient number of documents in anew field, the system can “learn” the terms of art from the new field, and the compression ratio improves.
[0085] FIG. 9 summarizes experimental results of one embodiment. The experimental embodiment was programmed to identify each word in the input documents as a symbol. The experimental embodiment applied standardization to input documents, and both sorted and truncated the sections of the compression dictionary relating to aparticular pass after the cataloging phase of that pass. The documents us edin the experiment were abstracts from 15,000 randomly selected US patents (a little over one million words). Before the experimental embodiment was applied to the documents, all non-alphanumeric characters were removed, and all uppercase characters were converted to lowercase characters.
[0086] To test the premise that compression rates improve as data size increases, the experimental embodiment was applied to six different-sized groupings of documents. Table 1 details the size of each group and the achieved compression ratio. The data in Table 1 is plotted in FIG. 5 with the number of characters plotted on the x-axis (in log scale) and the compression ratio plotted on they-axis. Thedashed lineinFIG. 5 represents atrend line based on apower regression ofthe data in Table 1.
Figure imgf000020_0001
[0087] Compression ratio for the experimental results is expressed as a percentage and indicates the size of the compressed data as a percentage of the uncompressed data. In other words, compression ratio (in percent) equals the number of compressed characters divided by the number of uncompressed characters multiplied by 100. The number of compressed characters includes the number of compressed characters in the output documents plus the number of characters in the compression dictionary.
[0088] The experimental embodiment was able to improve upon the compression ratio achievable by Byte-Pair Encoding, which is at best 60% when applied to English language texts. ShibataY. etal. (2000) Speeding Up Pattern Matching by Text Compression. In Bongiovanni G., Petreschi R., Gambosi G. (eds) Algorithms and Complexity. CIAC 2000. Lecture Notes in Computer Science, vol. 1767. Springer, Berlin, Heidelberg. Ultimately, the experimental embodiment achieved a compression ratio of 56.09% when applied to the full sample of approximately one million words.
[0089] The trend line in FIG. 5 suggests that, if the system is applied to a large enough data set, the compression ratio is likely to continue to improve. The trendline crosses below 40% at around a billion characters and below 30% at around a trillion characters. Wikipedia is an example that could provide a sense of the scale at which the compression ratio is likely to be most effective. In 2015, Wikipedia's English-language version was estimated to contain approximately 23 billion characters. InNovember 2009 (the lastmonthin which Wikipedia released statistics on word count across all languages), Wikipedia (all languages) had approximately six billion words and was growing at a rate of one billion words every nine months. Assuming six characters per word, Wikipedia (all languages) therefore had thirty-six billion characters in November 2009. Assuming that such a growth rate has persisted, Wikipedia (all languages) is estimated to have approximately 16 billion words or one trillion characters inMarch2017. Thus, aperson desiringto archive adataset on the scale ofWikipedia could benefit from compression using this process .
[0090] Certain replacement symbols that are generated after many successive passes replace long strings of text. If two compressed documents have such higher-order replacement symbols in common, a relationship between the documents can be deduced. As described above, authors of works in a particular field tend to repeat phrases and terminology unique to the field and works. A particular author can utilize a number of common phrases, concepts, and story characters frequently discussed by that author. In such situations, two works can be identified as related based on such commonalities. The commonalities could be used to group the documents together as a collection, to identify certain documents as derivative of other documents, or to suggest works to a reader based on the reader's interest in a particular field or a particular author. Such embodiments are particularly useful to a user who is unfamiliar with a field or in situations where the actual author is difficult to identify (e.g. , a ghost author or aplagiarist).
[0091] The process can beapplied to analyze any datathat can be codified. For example, characteristic of the human face can be codified into a set of measurements (size of each eye, the separation between the eyes, eye color, the length of the brow, etc.). Those measurements could be coded or classified, formatted, and assembled into adocument, using a consistent order. In such amanner, the compression process can be applied to a set of documents, where each document contains a plurality of measurements of a particular person's facial structure. After the documents are compressed, a system could perform facial recognition by comparing the replacement symbols in the compressed documents. Because higher-order replacement symbols represent long chains of symbols, the fact that two documents both have one or more of the same higher-order replacement symbols indicates ahigh likelihood that the faces, represented by the measurement in the documents, are from the same person.
[0092] A match between two documents can be determined based on the total number of matching higher-order replacement symbols exceeding athreshold. Alternative embodiments of the facial recognition system can select the closest match or matches and value indicating the degree of confidence in each match. [0093] Such a facial recognition system could be used, for example, to control access to a secure location. The secure location can be aphysical place (e.g., abuilding) or adevice (e.g., a computer system, database, or secured portion thereon. An alternative use could be to determine the identity of an unknown person. Another alternative use is merely distinguishing whether or not certain measurements represent a human face or not.
[0094] In the case of controlling access to a secure location, an example embodiment would firstusethe compression process, as described herein, to compress a set of documents, each representing one of a group of known and authorized persons, and to produce a compression dictionary. Later, when requesting access to the secure entity, an unknown person initiates a process by which measurements are taken of his or her face. The unknown person's face could be measured by anon-invasive method (e.g., calculating the required values from an image captured by one or more cameras). The required values are then arranged into anew document that is compressed using the same compression dictionary. The system compares the replacement symbols in the compressed version of the new document to those contained in the previously compressed documents and outputs the results (e.g., just that a match exists and access should be granted or more specifically the believed identity of the unknown person). In some embodiments, the system can have the unknown person purport to identify himself or herself by other means, such as through voice announcement or a card swipe, and check the document containing information derived from the captured image of the unknown person's face against only the document containing pre-stored information about the person that the unknown person claimed to be. In other embodiments, the system can compare the document containing the captured image of the person's face against all documents containing pre-stored information about all authorized persons.
[0095] In the facial recognition system, the symbology of facial measurements in the documents can be exact numerical measurements (e.g., pupillary separation = 64.57 mm or eye color (RGB) = 161, 202, 241). Use of exact measurements can produce ahigh degree of certainty in any match that is found but is also likely to result in false negatives. Slight variances in the measurement conditions or equipment calibrations over time could result in misidentification. Thus, it is advisable that the symbology uses approximate measurements or values representing ranges in which the measurements fall. The symbology of the ranges can include numerical values of the range, an average value for the range, or an arbitrary symbol that represents the range. [0096] Each facial recognition document needs to have a sufficient number of measurements to avoid misidentification. Too few measurements results in arisk of falsely identifying amatch. Another use of the facial recognition process is to investigate and improve facial recognition systems based on the process discussed herein, because by analyzing a sufficiently large set of documents representing known faces, the system can be used to determine how many measurements are required and the optimal order or groupings of measurements necessary to produce sufficient points of comparison.
[0097] Other practical applications of the process use recognized commonalities in compressed documents to analyze the content of the documents. Symbol pairs that are counted and associated with replacement symbols have an underlying meaning. Thus, thoughts, preferences, or other information about the author or subject of a document can be inferred from the symbol pairs. Data collected during the cataloging phase can provide a wealth of information of such information.
[0098] Embodiments with extended functionality could utilize the process to learn more about the content of text by noticing certain replacement symbols associated with a particular noun or verb. For example, such a system could tag or remember certain replacement symbols that contain words of interest in the symbol pair denoted by the replacement symbol. Symbol pairs that include words such as “love” or “like,” for example, can result in the associated replacement symbol being tagged in a way indicating that the symbol pair expresses a positive emotion. Symbol pairs that include words such as “hate” or “despise,” by contrast, can result in the associated replacement symbol being tagged in a way indicating that the symbol pair expresses a negative emotion. For another example, symbol pairs containing nouns could be classified according to an area of interest, e.g., pets, family members, or products.
[0099] Using such tagging, based on the proximity of or sequence in which a pair or a set of tagged replacement symbols occurs in the compressed text, the process can infer a feeling expressed by the author about a particular entity or concept. For example, if a tagged replacement symbol indicating positive emotion is found in proximity to a tagged replacement system indicating pets, or just in proximity to a specific word like “dogs,” then the system can infer that the author likes pets, or likes dogs. Tracking specific descriptive words can provide a more granular understanding of the concepts expressed by a particular author (e.g., a love of small dogs as opposed to love of dogs generally without regard to size). In such embodiments, replacement symbols assigned during later passes can inherit attributes assigned to earlier-assigned replacement symbols that make up the symbol pair associated with the later-assigned replacement symbol. For example, if a P2 replacement symbol is tagged as being a “positive emotion” indicator, and a different P2 replacement symbol is tagged as being a “pets” indicator, then in Pass 3, a P3 replacement symbol that includes both P2 replacement symbols can be tagged as indicating “loves pets.” In this manner, repeated occurrences of higher-order replacement symbols among different authors can indicate a common interest. If works of two different authors contain that same P3 replacement symbol, they may share a common love of pets.
[00100] An implementation of one example embodiment is used in connection with an email archive.
[00101] Analysis of emails drafted by a particular author or a working group is used to identify the author's or the group's preferences, such as products, restaurants, cities, etc. that the author likes. An author that frequently combines words expressing positive feelings with words referencing a particular type of animal might be identified as potentially owning such an animal. The example embodiment then provides the associations determined from such analysis to a system for making recommendations of products or advertising to the user.
Embodiment Two
[00102] Turning to Figures 1-4, this embodiment generally describes systems and methods for compressing information that is organized into one or more documents. Each uncompressed document has a plurality of symbols. A document can contain or consist of a string of symbols of any length (e.g., a sentence, a paragraph, a text file, or a library of other documents). The disclosure can be applied to multiple documents considered individually as well. The compression ratio is expected to improve as the size of the uncompressed data increases, which can be achieved by using multiple or longer documents. The larger the data set, the more replacements produced by the disclosed systems and the higher the compression achieved.
[00103] A symbol can be any code that constitutes or carries information (e.g., a letter, number, non-alphanumeric character, syllable, or word). Symbols can constitute or represent alphanumeric characters, discrete groups of alphanumeric characters such as syllables or words, or numeric information of various types. If representative, a symbol can consist of any code that carries information, encoded in any way. For example, an ASCII code is a numeric representation of a letter of the alphabet or a special character. Various encoding schemes are possible. Other coded symbols can represent words for example. [00104] In particular, general text compression techniques are typically usable on one file or document at a time. Such techniques do not scale easily to enormous data sets, i.e., “Big Data,” or where data is spread across many different containers. Disclosed computerized data compression and data analysis systems may have advantages in improving compression for Big Data.
[00105] Also, compression techniques generally do not track the number of times a particular symbol or string of symbols appears in uncompressed text. That is valuable information, useful for saving space, reducing processing time, or conducting contextual analysis. Disclosed computerized data compression and data analysis systems may have advantages resulting from retaining such information.
[00106] General text compression techniques also typically rely on compressing symbols or strings of symbols that are adjacent to one another. Disclosed computerized data compression and data analysis systems may have advantages resulting from ability to compress or analyze based on either or both adjacent and non-adjacent symbols.
[00107] The disclosure here contemplates implementing data compression and data analysis systems with a computer. Disclosed techniques can be programmed in computer code as a set of computer instructions. Even if programmed on a general-purpose computer, such a computer should be considered non-generic and special-purpose once adapted because of the presence of specific programmed computer instructions, which control at least one computer processor and cause it to perform the functions described herein. Alternative instantiations can be accomplished equivalently with dedicated special-purpose computers or dedicated computer appliances, rather than program-adapted general-purpose computing machines. Either way, the specially programmed or structured computer comprises an improved computing machine that accomplishes functions not possible with computers not so constructed or adapted.
[00108] Computer instructions (e.g., computer software, if used in lieu of hardware- wired machines), can be stored in any computer memory accessible to the computer or encoded in computer hardware. The documents on which the embodiments operate can be stored in the same or a different computer memory accessible to the computer.
[00109] References to “a computer” or “computer” (or simply references to computerprogrammed operations) should be understood to allow for implementation on either a single computer or on multiple computers, such as a system of interconnected devices, or a set of devices using distributed processing techniques. Each computer device, also, may utilize one or more processors.
[00110] An illustrative central method includes the following steps.
[00111] Step 1 : Make a pass through the document 101 (see FIG. 1), replacing the words in the document 101 with associated symbols (denoted SI, S2, S3, . . . , Sn, . . . ), while creating a symbol dictionary (e.g., table 140 of FIG. 1) correlating symbols with words that respective symbols symbolize.
[00112] The document 111 containing the symbols may be considered an input document to the method discussed. It may be desired to store the symbolic version (input document 111) in a separate memory location while retaining the original document 101.
[00113] During the pass, check for duplication, and if found, increment a count of the number of instances of each word.
[00114] When the pass is complete, the symbol dictionary contains a series of entries, each having a symbol (e.g., column 150 of the table 140), the word associated with that symbol (e.g., column 160 of the table 140), and a count of the number of times that word appears in the document (e.g., column 170 of the table 140).
[00115] If multiple corresponding symbolic documents (e.g., 112, 113, 114, . . . ) are so created with the same encoding from multiple original documents (e.g., 102, 103, 104, . . . ), efficiencies can result. The symbol dictionary can be viewed as a standardization memory, allowing encoding or decoding of any or all of the multiple documents.
[00116] Step 2: Optionally, sort the dictionary by order of frequency.
[00117] Step 3: In a cataloging phase 10 (e.g., see FIG. 4), make passes through the input document 111 (and input documents 112, 113, 114, . . . , if present), creating a table of unique pairs of symbols, adjacent or not.
[00118] For example, start with the pair consisting of the symbols in the first and second locations, using the order of appearance in the document 111, then the symbols in the first and third locations, and then continue until reaching the symbols in the first and last locations.
[00119] Optionally, a numeric cap can be imposed to limit the number of locations, so that the process will consider only locations separated by less than the cap. For example, if the cap is ten words (and the document has more than ten words), then the process will continue through the symbols in the first and tenth locations, rather than through the symbols in the first and last locations. [00120] After completing all (or the limited number) of pairs that include the first appearing symbol, continue with the symbols paired with the symbol in the second location. Start with the symbols in the second and third locations, then those in the second and fourth, and continue through the second and last (or through the second and eleventh, if the cap is ten, for example).
[00121] Then continue to repeat the process through the symbols in the penultimate and last locations. At that point, all combinations have been considered (assuming no cap). [00122] Parallel processing computers can usefully assist with the cataloging phase 10 if desired, because the number of combinations expands with the factorial of the number of symbols and can grow large readily, especially with Big Data scenarios. The numeric cap, also, can be imposed to reduce the number of possible combinations to improve speed of this phase. As computers become faster and more powerful, the speed of this phase becomes less of an important consideration.
[00123] As the symbol pair at each location described above is encountered, add it to a table (e.g., table 200 of FIG. 2), if that pair is being encountered for the first time, or increment a counter in the table associated with the symbol pair, if the same pair has been encountered previously at one or more different location pairs, such that the table 200 already contains it.
[00124] The table 200 may be considered a compression dictionary, which associates unique stored symbol pairs with respective replacement symbols, keeping a count of the number of times the different symbol pairs appear in the input document 111 (or multiple input documents 111, 112, 113, . . . ).
[00125] Step 4: Sort the table 200 (compression dictionary) based on the frequency of appearance of a symbol pair. Sorting has the advantage of placing more frequently appearing symbol pairs in more accessible memory locations than less frequently appearing symbol pairs. This potentially facilitates decreased lookup times during a replacement phase 20 discussed below.
[00126] Step 5: Optionally, truncate the table 200 using a threshold. For example, entries can be removed from the table where the counters indicate that particular pairs of symbols have occurred only in one location each. For another example, the table can be truncated to remove entries reflecting symbol pairs that have occurred only once or twice. A higher threshold can be used as well. This step, if done, can reduce further the calculation overhead, perhaps at the cost of only some loss with respect to the degree of compression. [00127] Step 6: In a replacement phase 20 (e.g., see FIG. 4), make further passes through the input document 111, using the table 200 of symbol pairs to replace symbol pairs with replacement symbols. Each replacement symbol indicates one of the corresponding symbol pairs. Store with the replacement symbol data specifying the distance between the locations at which the two members of a symbol pair are found (e.g., a number of intervening symbols, in which case adjacent symbols can be assigned a distance of zero; other distance schemes can be employed).
[00128] For example, starting with the most frequently occurring pair, and beginning at the first location in the document, scan the input document for the first occurrence of the first member of the symbol pair (Locationl). From the location immediately after Locationl, search forward until locating the first occurrence of the second member of the same symbol pair (Location2). If the optional numeric cap discussed above limits the number of locations, the “search forward” process here would stop after that number of locations. When the second member of the same symbol pair is found (Location2), perform three acts: (a) Replace the symbol at Locationl with the replacement symbol indicating the symbol pair (from the compression dictionary), (b) Include data specifying the distance between Locationf and Location2, (c) Delete the symbol at Location2.
[00129] The distance between two locations can be specified by a number indicating the count of places (e.g., number of words or symbols) between the two locations, the difference between two location numbers, or any other method. If the two symbols in a pair happen to be in adjacent locations, the distance may be considered “0” in a system specifying the number of words between locations. A number may be dropped entirely for adjacent locations in some embodiments. Absolute locations of the second symbol of a pair can be used instead of the relative addressing described in this paragraph if desired.
[00130] Next, beginning from the next location after Locationl, search forward until locating the next occurrence of the first member of the same symbol pair (Locations). From the next location after Locations, search forward, again limited by the numeric cap if present, until locating the next occurrence of the second member of the same symbol pair (Location4). Replace the symbol at Locations with the same replacement symbol indicating the symbol pair, include at Locations indicia of the distance between Locations and Location4, and delete the symbol at Location4. Continue until all instances of the most frequently occurring symbol pair have been exhausted. [00131] Repeat the process with the next most frequently occurring pair. This will cause insertion of a different replacement symbol, also found in the compression dictionary, this time signifying the second pair. Repeat the process again for all symbol pairs in the (possibly truncated) compression dictionary.
[00132] In the example of FIG. 3, the symbol pair “S5 SI” appears twice, and is replaced by “R2;l” in the first instance (indicating one symbol or symbol location between them) and is replaced by “R2;3” in the second instance (indicating three symbols or symbol locations between them). Similarly, in that example the symbol pair “S2 S79” is replaced by “R3;4” and “S75 S4” by “R4;2”. Further replacement can be made based on other symbol pairs from the table 200 that appear in the document 111.
[00133] The compression dictionary may contain instances in which two different symbol pairs have one symbol in common. For example, the most frequently occurring symbol pair may symbolize Wordl in combination with Word2 while a less frequently occurring symbol pair may symbolize Word3 in combination with Word2. For illustration, the top pair may symbolize the words “is . . . a” while the other pair symbolizes “are . . . a.” In such instances, the number of replacements in a later pass through the document may result in fewer replacements than the frequency recorded in the compression dictionary, because some instances of the common word have been “used up” during the prior pass and thus are not available to be combined with the non-identical member of the lower-ranking symbol pair. This is not a problem, though, because it is considered advantageous to give higher priority to more frequently occurring symbol pairs. In some instances, if the number of replacements of a particular symbol pair fall below the threshold (or possibly a different threshold, or perhaps to zero) as a result of this effect, then that symbol pair may be truncated as well, to avoid further evaluation and storage of null entries or entries considered of limited value.
[00134] Step 7: In a compression phase 30 (e.g., see FIG. 4), produce a compressed output document by shifting the remaining symbols (replacement and unreplaced original symbols) so that they are in sequence, i.e., removing intervening empty memory locations. In the example of FIG. 7, output document 321 is shown before such compression; it will become shorter than document 111 when the spaces are removed.
[00135] It may be desired to shift after the replacement phase 20 concludes entirely, because unless shifting occurs after the entire replacement phase 20 ends, the measurements stated will not identify the actual number of words between those locations or may contain ambiguities. In FIG. 7 for example, the second instance of “S5 SI” is replaced with “R2;3” (at the location of the second occurrence of “S5”), indicative of the three symbols or symbol locations between them before any shifting has occurred (i.e., before the location of “S79” is removed by shifting due to replacement of “S2” with “R3;4”).
[00136] Alternatively, step 7 can be done during step 6, either as each deletion is made, after each “pass” for each symbol pair, or in some other pattern (such as after a specified number of deletions or passes). If shifting can be done quickly, this may avoid the need to check empty memory locations.
[00137] Suppose shifting occurs after the top-ranked symbol pair is used to make replacements but before the process occurs for the next-ranked symbol pair. If one of the symbols in the top-ranked symbol pair has been deleted from an intermediate location, i.e., between the two symbols of the lower-ranking symbol pair, then the number indicating the distance between the two symbols of a lower-ranking symbol pair will not accurately list the number of words between those locations. In the example of FIG. 7, if the location of “S79” has already been removed, then the second occurrence of “S5 SI” would be replaced by “R2;2” at the location of “S5”, instead of “R2;3 as described above and shown in FIG. 3. Nevertheless, it still may identify a location between adjacent remaining symbols (either symbols identifying unreplaced words or replacement symbols indicating the first member of a word pair).
[00138] If shifting is done before the replacement phase 20 concludes entirely, further, the process must adjust other distance measurements that span the removed memory location. For example, suppose location 10 contains a replacement symbol with the number 3, indicating that there were three memory locations between the locations of the first and the second symbols of that pair. Put another way, the number 3 indicates that the second symbol of the pair was found after location 13. Note that location 15 shifts one location lower with the removal of location 14. Now suppose a later replacement causes deletion of memory location 12 because that is the second member of the later pair. At that time, if shifting is done immediately, location 13 shifts to location 12. Now, the number 3 for the first pair, stated at location 10, must be changed to the number 2, to indicate that there are now only two memory locations between the locations of the first and the second symbols of that pair (i.e., the second member of that first pair is found after what is now location 12). To accomplish such adjustments, upon doing the shifting, such an immediate-shifting embodiment checks the data (subject to the cap on maximum distance if present) in previous locations to determine which have numbers referring to locations after the memory location being deleted.
[00139] As a result of the replacements and shifting, whenever it occurs, the document compresses. When the process finishes steps 6 and 7, whether or not those are combined, the compressed table 321 (with blanks removed; see FIG. 3) can be considered as an output document.
[00140] Again, alternatively, instead of overwriting the series of symbols representing the input document, the output document can be written in a different memory location while keeping the input document as well. However, if the input document (containing the symbols) has been saved separately from the original document (containing the actual words) in the first place, there is likely no need to save the input document, as the original document exists and the input document acts as a working copy anyway.
[00141] Step 8: Optionally, repeat the compression process by using the output document as an input document for another cycle, and further optionally repeat such cycles recursively. [00142] At the inception of the first such additional cycle (second cycle overall), a symbol at a given location does not represent a single word but rather a word pair, separated by a stated distance. If such symbols occur in several locations in the input document, it indicates that a word pair is commonly used with a given separation. A document may contain repeated uses of a given phrase, or a given form. For instance, a variety of sentences may appear beginning with the words, “The <subject> is <object>“ with the subject and object being different in different sentences, but the words “The” and “is” may be frequently paired at a fixed, non-adjacent distance. This may also occur with more substantive words of course, and patterns of more substantive words of course provide more interesting information for analysis. If such a word-pair commonly appears close to a different wordpair, in the first additional cycle, those two symbol pairs will appear in the input document to that cycle frequently in association with one another. The second cycle, if present, thus would cause replacement of the associated “pair of pairs” with a single, second-level replacement symbol, signifying four words (with specified spacings between each pair). A third cycle, if present, operating on second-level replacement symbols, would create third- level replacement symbols signifying eight-word combinations, and so forth.
[00143] Such a recursive process can operate for a fixed number of cycles. Or the process can perform cycles recursively until no further possible replacements are detected, which would result in the highest possible compression. Or the process can repeat for a maximum number of cycle unless, before the maximum is reached, no further possible replacements are detected.
[00144] If truncation is desired, or a cap is used (in both cases as those options are discussed in connection with the first cycle), such numbers applied during successive cycles can differ from the corresponding numbers applied during the first cycle or use the same numbers.
[00145] The replacement symbols can be the address of the replaced symbol pair in the compression dictionary. In some cases, the replacement symbol can be just the row identifier in a spreadsheet. In some cases with recursive cycles, the replacement symbol can be just the portion of the address associated with a row identifier in a spreadsheet, where columns represent sequential cycles and it can be assumed from context that the column refers to the previous cycle. Such embodiments thereby can achieve increased space savings and decreased lookup time needed to access the compression dictionary.
[00146] The patent discusses various uses of, or ways to apply, the compression techniques. Likewise, the modified processes disclosed above can be applied to compression or for any of the various other purposes listed in the patent.
[00147] For example, in some embodiments, a system can use patterns of replacement symbols and associated counts to analyze content or investigate texts. Especially if recursive cycles are used, the presence of higher-order replacement symbols can be used to deduce a relationship between different documents, suggesting two texts are related in some fashion. Metadata, such as the number of times certain pairs appear, generated during compression of documents can be used to analyze documents and find similarities therebetween.
Embodiment 3
[00148] Turning now to FIG. 10, a third embodiment is illustrated as process 1000. Process 1000 may comprise a combination of the processes described above with regards to embodiments 1 and 2. An advantage of this Embodiment 3 is that it decreases the processing time.
[00149] Process 1000 includes new data addition subprocess 1002 (dashed box). Embodiments one and two may be limited in that adding additional documents for compression to a previously compressed document tends to necessitate recalculation and recompression of the entire data set. Subprocess 1002 may enable addition of new data by updating the symbol dictionaries associated with the compressed documents generated by the system. In this regard, process 1000 tends to save system resources by decreasing processing time and memory usage. For example, by performing only the steps of subprocess 1002 to add new documents to existing compressed documents the system may avoid recompression of existing documents and process only those additional documents thereby improve total process time and save processing resources. Processing time improvements and system use overhead may be further improved by omitting the optional steps of subprocess 1002. [00150] The system may select one or more first uncompressed documents to be compressed via the above described methods (step 1004). In response, the system may generate a symbol dictionary based on the selected first uncompressed documents (step 1006). For example, the system may generate a symbol dictionary (e.g., table 140 of FIG. 1 and FIG. 5) correlating symbols with words that respective symbols symbolize. As discussed above, the symbol dictionary can be viewed as a standardization memory, allowing encoding or decoding of any or all of the multiple documents.
[00151] The system may sort the symbol dictionary by order of frequency (step 1008). The system may perform pair replacement on the first uncompressed documents by address or symbol to generate a first compressed document (step 1010). For example, the system may apply either or both of the compression processes described above with regard to the embodiments one and two. In response the system may generate a compression dictionary (step 1012). For example, the system may generate table 200 of FIG. 2 which may be considered the compression dictionary, which associates unique stored symbol pairs with respective replacement symbols, keeping a count of the number of times the different symbol pairs appear in the input document 111 (or multiple input documents 111, 112, 113, . . . ). In another example, with reference to FIG. 6, the system may generate a compression dictionary 200 which can grow to have any number of columns depending on the number of passes performed on a plurality of documents.
[00152] The system may sort the symbol pairs of the compression dictionary by order of frequency (step 1014). The system may truncate compression dictionary based on a user- determined frequency threshold (step 1016). For example, as discussed above, if the number of replacements of a particular symbol pair fall below the threshold (or possibly a different threshold, or perhaps to zero) then that symbol pair may be truncated as well, to avoid further evaluation and storage of null entries or entries considered of limited value. The system may generate a first compressed output document and end or, may repeat the compression process by using the first compressed output document as an input document for another cycle, and further optionally repeat such cycles recursively to generate a recursively compressed output document (step 1018). In various embodiments, the system may repeat the cycles based on a loop count.
[00153] The in response to generating the first compressed output document or the recursively compressed output document system may execute subprocess 1002 to add a new uncompressed document to the compressed output document of step 1010. The system may select one or more new uncompressed documents to be added to an existing compressed file (step 1020). The system may append the new uncompressed document to the end of the a compressed document (i.e., the first compressed output document or the recursively compressed output document) to generate an appended compressed document (step 1022). The system may perform a word analysis of the appended compressed document based on the symbol dictionary and determine whether any new words are present (step 1024). Where no new words are present, the system may optionally update the frequency counts of the symbol dictionary (step 1026). Where new words are present the system may add the new words to the symbol dictionary (step 1028). Step 1028 may include optionally updating the frequency counts of the symbol dictionary in response to adding the new words (step 1032). In response to updating the frequency count of the symbol dictionary, the system may optionally perform a second sorting of the symbol dictionary by order of frequency (step 1030). In this regard, subprocess 1002 generates an updated symbol dictionary based on the appended compressed document.
[00154] The system may then return to step 1010 using the updated symbol dictionary and with the appended compressed document as the input document. In response to performing the second sorting of the symbol dictionary, the system may apply the compression process to the entire appended compressed document to generate a combined compressed document. Otherwise, the system may apply the compression process only to the appended portion of the appended compressed document. It will be appreciated that in the ‘for only (B)’ path processing speeds tend to be maximized by performing compression steps only on the new documents. In this regard, the previously compressed ‘(A)’ sections are not processed by the system and processing time is reduced.
General Information for All Embodiments
[00155] The systems and methods herein can be applied (as noted above) to analyze various sorts of data that can be symbolized other than by words, which can lead to still further applications. One example is facial recognition based on numeric (or other) coding of different facial dimensions or characteristics, which can be used, for example, to control access to a secure location, such as a physical place (e.g., a building) or a device (e.g., a computer system, database, or secured portion thereof). The system can be used not only for recognizing faces but also (or instead) for distinguishing whether or not certain measurements represent a human face or for the purpose of improving facial recognition systems.
[00156] The systems and methods herein can also be used to infer preferences or interests (such as for advertising) or to determine commonalities of interest.
[00157] The systems and methods herein can apply to various applications, for example, compression of archives such as email, news, or other library archives. The process is well suited to such applications becausethe large number of the symbols involved is likely to produce a significant number of repeated strings, facilitating ahigh level of compression. Additions to the archive can be scheduled to occur during off-peak hours and can be structured in large batches as to best balance the required processing time against the space savings achieved by compression of the added documents.
[00158] Applications directed to cloud-based email and messaging systems could also benefit from systems and methods disclosed herein because such systems have many users. Many of the emails are likely to be replies to and messages forwarded from other users. Such messages often include all or portions of the original message, which results in very long strings of duplicated symbols that the process can sometimes replace with as little as a single replacement symbol.
[00159] The systems and methods disclosed herein may be implemented using a “programmed computerized machine,” can be implemented as or with general or special purpose computers or servers or other programmable hardware devices programmed through software, or as hardware or equipment “programmed” through hard wiring, or a combination of the two. A “computer” or “server” can comprise a single machine or can comprise multiple interacting machines (located at a single location or at multiple remote locations). Computer programs or other software code, if used, can be implemented in tangible, nontransient, temporary or permanent storage or replaceable media, such as by including programming in microcode, machine code, network-based or web-based or distributed software modules that operate together, RAM, ROM, CD-ROM, CD-ft CD-R/W, DVD- ROM, DVD.+-.R, DVD .+-.R/W, hard drives, thumb drives, flash memory, optical media, magnetic media, semiconductor media, or any future computer-readable storage alternatives. Electronic indicia of a dataset can be read from, received from, or stored on any of the tangible, non-transitory computer-readable media mentioned herein.
[00160] This specification identifies embodiments of the invention only and is not intended to limit the scope of the claims or legal equivalents thereof. For purposes of the present disclosure and appended claims, any labelling of elements, steps, limitations, or other portions of an embodiment, example, or claim (e.g., first, second, third, etc., (a), (b), (c), etc., or (i), (ii), (iii), etc.) is only for purposes of clarity, and shall not be construed as implying any sort of ordering or precedence of the portions so labelled. If any such ordering or precedence is intended, it will be explicitly recited in the embodiment, example, or claim or, in some instances, it will be implicit or inherent based on the specific content of the embodiment, example, or claim.

Claims

What is claimed is:
1. A computerized method of compressing symbolic information organized into a plurality of documents, each document having a plurality of symbols, the method comprising: generating, by a computer based system, a symbol dictionary based on a first uncompressed document of the plurality of documents; performing, by the computer based system and with the symbol dictionary, a first data compression on the first uncompressed document by at least one of the adjacent pair dictionary method and the non-adjacent pair dictionary method to generate a compressed output document; appending, by the computer based system, a new uncompressed document of the plurality of documents to the compressed output document to generate an appended compressed document; and updating, by the computer based system, the symbol dictionary based on the appended compressed document to generate an updated symbol dictionary.
2. The method of claim 1, further comprising the step of: performing, by the computer based system and with the updated symbol dictionary, a second data compression on the appended compressed document by at least one of the adjacent pair dictionary method and the non-adjacent pair dictionary method.
3. The method of any one of claims 1 or 2, further comprising the step of: performing, by the computer based system, an analysis of the appended compressed document based on the symbol dictionary to determine whether any new words are present.
4. The method of claim 3, further comprising the step of: adding, by the computer based system, a new word to the symbol dictionary based on determining the presence of new words in the appended compressed document; and updating, by the computer based system, a frequency count of the symbol dictionary in response to adding the new words.
5. The method of any one of claims 3 or 4, further comprising the step of: updating, by the computer based system, a frequency count of the symbol dictionary in response to determining the absence of new words.
35
6. The method of any one of claims 4 or 5, further comprising the step of: sorting, by the computer based system, the symbol dictionary by order of frequency in response to updating the frequency count.
7. The method of any one of claims 1-6, wherein performing the first data compression comprises:
(a) identifying, by the computer based system, a plurality of symbol pairs, each symbol pair consisting of two sequential symbols in the first uncompressed document;
(b) for each unique symbol pair of the plurality of symbol pairs, updating, by the computer based system, a count identifying the number of appearances of the unique symbol pair; and
(c) producing, by the computer based system, the compressed output document by causingthe compressed output documentto include, at each position associated with one of the plurality of symbol pairs from the input document, areplacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold.
8. The method of any one of claims 1-7, wherein performing the first data compression comprises:
(a) identifying, by the computer based system, a plurality of symbol pairs, each symbol pair consisting of two sequential or non-sequential symbols in the input document, one or more symbol pairs consisting of two non-sequential symbols in the first uncompressed document;
(b) for each unique symbol pair of the plurality of symbol pairs, updating, by the computer based system, a count identifying the number of appearances of the unique symbol pair; and
(c) producing, by the computer based system, a compressed document by causing the compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, including one or more symbol pairs consisting of two non-sequential symbols, (i) a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold, and (ii) for at least those symbol pairs consisting
36 of two non-sequential symbols, indicia indicating a distance between locations of the nonsequential symbols of the pair in the input document.
9. The method of any one of claims 2-8, wherein performing the second compression comprises:
(a) identifying, by the computer based system, a plurality of symbol pairs, each symbol pair consisting of two sequential symbols in the appended compressed document;
(b) for each unique symbol pair of the plurality of symbol pairs, updating, by the computer based system, a count identifying the number of appearances of the unique symbol pair; and
(c) producing, by the computer based system, a combined compressed document by causing the combined compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold.
10. The method of any one of claims 2-8, wherein performing the second compression comprises:
(a) identifying, by the computer based system, a plurality of symbol pairs, each symbol pair consisting of two sequential or non-sequential symbols in the appended compressed document, one or more symbol pairs consisting of two non-sequential symbols in the appended compressed document;
(b) for each unique symbol pair of the plurality of symbol pairs, updating, by the computer based system, a count identifying the number of appearances of the unique symbol pair; and
(c) producing, by the computer based system, a combined compressed document by causing the combined compressed document to include, at each position associated with one of the plurality of symbol pairs from the input document, including one or more symbol pairs consisting of two non-sequential symbols, (i) a replacement symbol associated by a compression dictionary with the unique symbol pair matching the one of the plurality of symbol pairs, if the count for the unique symbol pair exceeds a threshold, and (ii) for at least those symbol pairs consisting of two non-sequential symbols, indicia indicating a distance between locations of the non-sequential symbols of the pair in the input document.
11. The method of any one of claims 2-10, wherein the second data compression is only performed on an appended portion of the appended compressed document.
12. A system comprising: a processor; and a tangible, non-transitory memory configured to communicate with the processor, the tangible, non-transitory memory having instructions stored thereon that, in response to execution by the processor, cause the processor to perform operations comprising: generating, by the processor, a symbol dictionary based on a first uncompressed document of a plurality of documents, each document having a plurality of symbols; performing, by the processor and with the symbol dictionary, a first data compression on the first uncompressed document by at least one of the adjacent pair dictionary method or the non-adjacent pair dictionary method to generate a compressed output document; appending, by the processor, a new uncompressed document of the plurality of documents to the compressed output document to generate an appended compressed document; and updating, by the processor, the symbol dictionary based on the appended compressed document to generate an updated symbol dictionary.
13. The system of claim 12 that is configured to perform each of the methods of claims 2- 11.
14. An article of manufacture including a non-transitory, tangible computer readable storage medium having instructions stored thereon that, in response to execution by a computer based system, cause the computer based system to perform operations comprising: generating, by the computer based system, a symbol dictionary based on a first uncompressed document of a plurality of documents, each document having a plurality of symbols; performing, by the computer based system and with the symbol dictionary, a first data compression on the first uncompressed document by at least one of the adjacent pair dictionary method or the non-adjacent pair dictionary method to generate a compressed output document; appending, by the computer based system, a new uncompressed document of the plurality of documents to the compressed output document to generate an appended compressed document; and updating, by the computer based system, the symbol dictionary based on the appended compressed document to generate an updated symbol dictionary.
15. The article of manufacture of claim 14 that is configured to perform each of the methods of claims 2-11.
39
PCT/US2022/050617 2021-11-22 2022-11-21 Computerized systems and methods of data compression WO2023091765A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US17/532,947 2021-11-22
US17/532,947 US12050557B2 (en) 2017-05-19 2021-11-22 Computerized systems and methods of data compression

Publications (1)

Publication Number Publication Date
WO2023091765A1 true WO2023091765A1 (en) 2023-05-25

Family

ID=84829740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2022/050617 WO2023091765A1 (en) 2021-11-22 2022-11-21 Computerized systems and methods of data compression

Country Status (1)

Country Link
WO (1) WO2023091765A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120026020A1 (en) * 2010-07-28 2012-02-02 Research In Motion Limited Method and device for compression of binary sequences by grouping multiple symbols
WO2018213783A1 (en) * 2017-05-19 2018-11-22 Takashi Suzuki Computerized methods of data compression and analysis
WO2021102263A1 (en) * 2019-11-22 2021-05-27 Takashi Suzuki Computerized data compression and analysis using potentially non-adjacent pairs

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120026020A1 (en) * 2010-07-28 2012-02-02 Research In Motion Limited Method and device for compression of binary sequences by grouping multiple symbols
WO2018213783A1 (en) * 2017-05-19 2018-11-22 Takashi Suzuki Computerized methods of data compression and analysis
WO2021102263A1 (en) * 2019-11-22 2021-05-27 Takashi Suzuki Computerized data compression and analysis using potentially non-adjacent pairs

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DARIO BENEDETTO ET AL: "Non Sequential Recursive Pair Substitution: Some Rigorous Results", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 28 July 2006 (2006-07-28), XP080245230, DOI: 10.1088/1742-5468/2006/09/P09011 *
LARSSON N J ET AL: "Offline dictionary-based compression", DATA COMPRESSION CONFERENCE, 1999. PROCEEDINGS. DCC '99 SNOWBIRD, UT, USA 29-31 MARCH 1999, LOS ALAMITOS, CA, USA,IEEE COMPUT. SOC, US, 29 March 1999 (1999-03-29), pages 296 - 305, XP010329132, ISBN: 978-0-7695-0096-6 *
SHIBATAY. ET AL.: "Algorithms and Complexity. CIAC 2000", vol. 1767, 2000, LECTURE NOTES IN COMPUTER SCIENCE, article "Speeding Up Pattern Matching by Text Compression"

Similar Documents

Publication Publication Date Title
US11269810B2 (en) Computerized methods of data compression and analysis
CN112101041B (en) Entity relationship extraction method, device, equipment and medium based on semantic similarity
US20080015844A1 (en) System And Method Of Creating And Using Compact Linguistic Data
CN112084381A (en) Event extraction method, system, storage medium and equipment
CN113434636A (en) Semantic-based approximate text search method and device, computer equipment and medium
CN112395395A (en) Text keyword extraction method, device, equipment and storage medium
CN110008473B (en) Medical text named entity identification and labeling method based on iteration method
CN112287069A (en) Information retrieval method and device based on voice semantics and computer equipment
CN108205524B (en) Text data processing method and device
US11520835B2 (en) Learning system, learning method, and program
CN111339166A (en) Word stock-based matching recommendation method, electronic device and storage medium
CN114153978A (en) Model training method, information extraction method, device, equipment and storage medium
US12050557B2 (en) Computerized systems and methods of data compression
US11741121B2 (en) Computerized data compression and analysis using potentially non-adjacent pairs
CN114997167A (en) Resume content extraction method and device
CN110705285A (en) Government affair text subject word bank construction method, device, server and readable storage medium
US6470362B1 (en) Extracting ordered list of words from documents comprising text and code fragments, without interpreting the code fragments
WO2023091765A1 (en) Computerized systems and methods of data compression
EP1631920B1 (en) System and method of creating and using compact linguistic data
CN115203445A (en) Multimedia resource searching method, device, equipment and medium
CN110941704B (en) Text content similarity analysis method
CN112257416A (en) Inspection new word discovery method and system
CN111159366A (en) Question-answer optimization method based on orthogonal theme representation
CN114254631B (en) Natural language analysis method and system based on data stream
CN117972025B (en) Massive text retrieval matching method based on semantic analysis

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22839061

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE