CN115017871B - Replacement display method and display system for file archive contents - Google Patents

Replacement display method and display system for file archive contents Download PDF

Info

Publication number
CN115017871B
CN115017871B CN202210656463.8A CN202210656463A CN115017871B CN 115017871 B CN115017871 B CN 115017871B CN 202210656463 A CN202210656463 A CN 202210656463A CN 115017871 B CN115017871 B CN 115017871B
Authority
CN
China
Prior art keywords
retrieval
replaced
replacement
document
content
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210656463.8A
Other languages
Chinese (zh)
Other versions
CN115017871A (en
Inventor
金勇华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Meijialin Software Technology Co ltd
Original Assignee
Shanghai Meijialin Software Technology Co ltd
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
Application filed by Shanghai Meijialin Software Technology Co ltd filed Critical Shanghai Meijialin Software Technology Co ltd
Priority to CN202210656463.8A priority Critical patent/CN115017871B/en
Publication of CN115017871A publication Critical patent/CN115017871A/en
Application granted granted Critical
Publication of CN115017871B publication Critical patent/CN115017871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3338Query expansion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention is applicable to the technical field of document editing, and particularly relates to a replacement display method and a display system for file archive contents, wherein the method comprises the following steps: acquiring retrieval condition information input by a user; calling a matched retrieval formula, and retrieving based on the retrieval formula to obtain a retrieval result; extracting corresponding document contents to be replaced based on the retrieval result, and displaying the document contents to be replaced and the replaced document contents side by side; and receiving a user operation instruction, finishing the replacement of the document content to be replaced, and marking the replacement position. According to the method and the device, the retrieval formula is generated according to the replacement input conditions, the text in the designated area is retrieved based on the retrieval formula, the area to be replaced is determined after the retrieval is completed, and the pages before and after the replacement are displayed through comparison, so that accurate replacement is realized, the replacement efficiency can be improved, the replacement accuracy can be ensured, and the problem of text content errors caused by mistaken replacement is solved.

Description

Replacement display method and display system for file archive content
Technical Field
The invention belongs to the technical field of document editing, and particularly relates to a replacement display method and a display system for file archive contents.
Background
With the popularization of computer devices, various file formats have been developed, and generally, files with different formats need to be edited or viewed by using different software, and editing includes operations such as adding file contents and deleting file contents.
In the use process of the current text document, the content is edited through software corresponding to the text archive, and when the content is edited, the content can be manually deleted and added, and also can be replaced in batches according to needs.
However, in the current document replacement process, only the content that completely meets the search condition can be replaced, and therefore, if global replacement is directly performed, the problem of erroneous replacement is likely to occur.
Disclosure of Invention
An embodiment of the present invention is directed to provide a method for displaying contents of a file archive instead, which is used to solve the problems mentioned in the third part of the background art.
The embodiment of the invention is realized in such a way that a method for replacing and displaying the file archive content comprises the following steps:
acquiring retrieval condition information input by a user, wherein the retrieval condition information at least comprises symbol data, keyword data, a keyword sequence and a replacement text;
analyzing the search condition information, calling a search formula matched with the search condition information, and searching based on the search formula to obtain a search result;
extracting corresponding document content to be replaced based on the retrieval result, and displaying the document content to be replaced and the replaced document content side by side;
and receiving a user operation instruction, finishing the replacement of the document content to be replaced, and marking the replacement position.
Preferably, the step of analyzing the search condition information, calling a search formula matched with the search condition information, and performing a search based on the search formula to obtain a search result includes:
analyzing the search condition information and judging the type of the condition contained in the search condition information;
searching according to the combination of the condition types to obtain a search formula with the same condition type;
and filling the retrieval formula according to the specific content contained in the retrieval condition information, and retrieving based on the retrieval formula to obtain a retrieval result.
Preferably, the step of extracting corresponding document content to be replaced based on the retrieval result, and displaying the document content to be replaced and the document content after replacement side by side includes:
extracting document contents to be replaced one by one based on the retrieval result, and sequencing the document contents according to the document sequence;
replacing the document content to be replaced by the replacing text and generating replaced document content represented by the preview graph;
and displaying the document content to be replaced and the replaced document content to the user side by side.
Preferably, the step of receiving a user operation instruction, completing the replacement of the document content to be replaced, and marking the replacement position specifically includes:
receiving a user operation instruction in real time and executing;
replacing the document content to be replaced determined to be replaced in the user operation instruction;
and determining the range covered by the content of the document to be replaced according to the symbolic data, and marking the content in the range.
Preferably, the content of different batches is marked differently.
Preferably, the marking process is implemented by highlighting, and after the process is completed, the position and content of the current replacement are recorded in the background.
Another object of an embodiment of the present invention is to provide a system for displaying contents of a document archive instead, the system including:
the information acquisition module is used for acquiring retrieval condition information input by a user, wherein the retrieval condition information at least comprises symbol data, keyword data, a keyword sequence and a replacement text;
the content retrieval module is used for analyzing the retrieval condition information, calling a retrieval formula matched with the retrieval condition information, and retrieving based on the retrieval formula to obtain a retrieval result;
the replacement checking module is used for extracting corresponding document content to be replaced based on the retrieval result and displaying the document content to be replaced and the replaced document content side by side;
and the replacement marking module is used for receiving the user operation instruction, finishing the replacement of the document content to be replaced and marking the replacement position.
Preferably, the content retrieval module includes:
a data analysis unit for analyzing the search condition information and judging the condition type contained in the search condition information;
the formula calling unit is used for searching according to the combination of the condition types to obtain a search formula with the same condition type;
and the formula filling unit is used for filling the search formula according to the specific content contained in the search condition information, and searching based on the search formula to obtain a search result.
Preferably, the replacement verification module includes:
the content sorting unit is used for extracting the document contents to be replaced one by one based on the retrieval result and sorting the document contents according to the document sequence;
the replacing and previewing unit is used for replacing the document content to be replaced by the replacing text and generating the replaced document content represented by the previewing graph;
and the comparison pushing unit is used for displaying the document content to be replaced and the replaced document content to the user side by side.
Preferably, the replacement mark module includes:
the instruction receiving unit is used for receiving a user operation instruction in real time and executing the user operation instruction;
the content replacement unit is used for replacing the document content to be replaced determined to be replaced in the user operation instruction;
and the content marking unit is used for determining the range covered by the content of the document to be replaced according to the symbolic data and marking the content in the range.
According to the method for replacing and displaying the file archive content, provided by the embodiment of the invention, the retrieval formula is generated according to the replacement input condition, the text of the specified area is retrieved based on the retrieval formula, the area to be replaced is determined after the retrieval is finished, and the pages before and after the replacement are displayed by comparison, so that the accurate replacement is realized, the replacement efficiency can be improved, the replacement accuracy can be ensured, and the problem of error of the text content caused by the wrong replacement is avoided.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for displaying contents of a file archive in an alternative manner according to an embodiment of the present invention;
fig. 2 is a flowchart of a step of analyzing the search condition information, retrieving a search formula matching the search condition information, and performing a search based on the search formula to obtain a search result according to the embodiment of the present invention;
FIG. 3 is a flowchart illustrating a step of extracting corresponding document contents to be replaced based on a retrieval result, and displaying the document contents to be replaced and the document contents after replacement side by side according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps of receiving a user operation command, completing replacement of a document content to be replaced, and marking a replacement position according to an embodiment of the present invention;
FIG. 5 is an architecture diagram of an alternative display system for document archive content according to an embodiment of the present invention;
FIG. 6 is an architecture diagram of a content retrieval module according to an embodiment of the present invention;
FIG. 7 is an architecture diagram of an alternative verification module provided in accordance with an embodiment of the present invention;
fig. 8 is an architecture diagram of a replacement marking module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of the present application.
In the use process of the current text document, the content is edited through software corresponding to the text archive, and when the content is edited, the content can be manually deleted and added, and also can be replaced in batches according to needs. However, in the current document replacement process, only the content that completely meets the search condition can be replaced, so if global replacement is directly performed, the problem of erroneous replacement is likely to occur.
According to the method and the device, a retrieval formula is generated according to the replacement input conditions, the text in the designated area is retrieved based on the retrieval formula, the area to be replaced is determined after the retrieval is finished, and pages before and after replacement are displayed through comparison, so that accurate replacement is realized, the replacement efficiency can be improved, the replacement accuracy can be ensured, and the problem of text content errors caused by mistaken replacement is avoided.
As shown in fig. 1, a flowchart of steps of a method for displaying contents of a file archive instead is provided, where the method includes:
s100, acquiring retrieval condition information input by a user, wherein the retrieval condition information at least comprises symbol data, keyword data, a keyword sequence and a replacement text.
In this step, the search condition information input by the user is obtained, before the replacement is performed, the user inputs the search condition information according to the own replacement requirement, the input is performed according to a certain format, the content at least comprises symbol data, keyword sequence and replacement text, the symbol data refers to various punctuation marks such as commas, periods and the like, the keyword data is the basis for the search, such as characters or character combinations such as characters "and", and the like, the keyword sequence is only the interval relationship between the characters or character combinations in the keyword data, such as two characters are spaced, the replacement text refers to the text for replacement, the content included in the replacement is inserted according to the sequence of the keywords, for example, the retrieval condition information is [ e ], 2, main melody, transfer, 3, craftsman spirit and spread ], the original sentence is 'main melody is propagated and positive energy is transferred', in the retrieval condition information of this time, the pause number represents the interval between different conditions, the comma is symbol data, the position between the number and the symbol data and the keyword data represents the sequence of the keywords, if 2, the interval between the first comma and the keyword 'main melody' is represented, and the last 'craftsman spirit' and 'spread' are the replacement text.
S200, analyzing the search condition information, calling a search formula matched with the search condition information, and searching based on the search formula to obtain a search result.
In this step, the search condition information is analyzed, the number of symbol data, the number of keyword data, and the keyword order in the search condition information are extracted, a required formula is determined according to the number of the symbol data, the number of keyword data is 3, the keyword order is 2 and 3, if the number of the symbol data is 3, the keyword data is 2, and the keyword order is 2 and 3, a search formula with corresponding search conditions is called and filled, three groups of conditions of the search formula are obtained, the first is a symbol condition, the second is a keyword condition, and the third is a third order condition.
S300, extracting corresponding document content to be replaced based on the retrieval result, and displaying the document content to be replaced and the replaced document content side by side.
In the step, corresponding document contents to be replaced are extracted based on the retrieval result, contents to be replaced are listed item by item after retrieval, namely the document contents to be replaced are listed item by item, the lengths of characters of the document contents to be replaced are the same, the number of intervals between the characters to be replaced is the same, a virtual text is established, the virtual text is the same as the document contents to be replaced, the replacement is carried out in the virtual text, and after the replacement is completed, the document contents to be replaced and the document contents after the replacement are displayed side by side.
S400, receiving a user operation instruction, finishing the replacement of the document content to be replaced, and marking the replacement position.
In this step, a user operation instruction is received, preview is performed in a side-by-side display mode before formal replacement, and after confirmation of the user, the corresponding user operation instruction is uploaded, for example, replacement is confirmed or cancelled, or partial positions can be selected for replacement, replacement operation is performed on the positions where replacement is confirmed, and the replacement positions are marked; the marking modes adopted by the contents of different batches are different; the marking processing is realized through highlight display, and after the processing is finished, the position and the content of the replacement are recorded in the background.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of analyzing the search condition information, calling a search formula matching with the search condition information, and performing a search based on the search formula to obtain a search result specifically includes:
s201, the search condition information is analyzed, and the condition type contained in the search condition information is judged.
In this step, the search condition information is analyzed, that is, the number of each type of search condition is determined one by one, specifically, the total number of symbols in the symbol data is counted first, then the total number of keywords in the keyword data is determined, one character combination is regarded as one keyword, and finally the number of keyword sequence data, that is, the number of character intervals is determined.
S202, searching is carried out according to the combination of the condition types, and searching formulas with the same condition types are obtained through searching.
And S203, filling the search formula according to the specific content contained in the search condition information, and searching based on the search formula to obtain a search result.
In this step, after the number of each retrieval condition is determined, the retrieval formula can be determined by retrieval according to the number, and then the specific content of the retrieval condition is input into the retrieval formula, and retrieval is performed by taking the retrieval formula as a basis, and finally a retrieval result is obtained.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of extracting corresponding document content to be replaced based on the search result, and displaying the document content to be replaced and the document content after replacement side by side specifically includes:
s301, extracting the document contents to be replaced one by one based on the retrieval result, and sequencing according to the document sequence.
In the step, the document contents to be replaced are extracted one by one based on the retrieval result, and in the retrieval process, each piece of document contents to be replaced is numbered, and in the retrieval process, the retrieval is also performed according to the document sequence.
S302, replacing the document content to be replaced with the replacement text, and generating the replaced document content represented by the preview graph.
In this step, a virtual text is established, and the document to be replaced is copied to the virtual text, so that after the retrieval is completed, the corresponding document to be replaced is also formed in the virtual text according to the retrieval sequence, the replacement is completed in the virtual text, and the replaced text in the virtual text is captured and represented by a preview.
And S303, displaying the document content to be replaced and the replaced document content to the user side by side.
In this step, the preview is displayed on one side of the document content to be replaced, so that the preview and the document content are displayed side by side for the user to refer to.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of receiving a user operation instruction, completing replacement of the document content to be replaced, and marking a replacement position specifically includes:
s401, receiving a user operation instruction in real time and executing.
S402, replacing the document content to be replaced determined to be replaced in the user operation instruction.
In the step, a user operation instruction is received in real time, whether each document content to be replaced is judged according to the user operation instruction, if ten document contents to be replaced exist in total and are numbered as 1-10, and if 1-5 is replaced by the user operation instruction, 6-10 abandons the replacement.
And S403, determining a range covered by the content of the document to be replaced according to the symbol data, and marking the content in the range.
In this step, when performing replacement, the replacement is performed according to the sequence of the replacement text and the keywords, the keywords in the keyword data and the characters in the replacement text have corresponding relationships, if three keywords, namely a, B, and C, exist in the keyword data, and the replacement text correspondingly has a, B, and C, which have corresponding relationships.
As shown in fig. 5, a system for displaying contents of a file archive instead according to an embodiment of the present invention includes:
the information obtaining module 100 is configured to obtain search condition information input by a user, where the search condition information at least includes symbol data, keyword sequence, and replacement text.
<xnotran> , 100 , , , , , , , , , , , , "", " " , , , , , , 【,, 2, ,,, , 3,,, , 】, ", , ", , , , , , 2, " " , " " "" . </xnotran>
And the content retrieval module 200 is configured to analyze the retrieval condition information, call a retrieval formula matched with the retrieval condition information, and perform retrieval based on the retrieval formula to obtain a retrieval result.
In the system, the content retrieval module 200 parses the retrieval condition information, extracts the symbol data number, the keyword data number, and the keyword order therein, determines the required formula according to the number, if the symbol data number is 3, the keyword data number is 2, and the keyword order is 2 and 3, calls the retrieval formula with the corresponding retrieval condition, fills in to obtain three groups of conditions of the retrieval formula, the first is the symbol condition, the second is the keyword condition, and the third is the order condition, during retrieval, the symbol condition is used for retrieval to obtain the first retrieval result, utilizes the keyword condition for retrieval in the first retrieval result to obtain the second retrieval result, and filters the second retrieval result according to the order condition to obtain the final retrieval result.
And the replacement verification module 300 is configured to extract corresponding document content to be replaced based on the retrieval result, and display the document content to be replaced and the document content after replacement side by side.
In the system, the replacement verification module 300 extracts corresponding document contents to be replaced based on the retrieval result, lists the contents to be replaced one by one after retrieval, namely lists the document contents to be replaced one by one, has the same length of characters of the document contents to be replaced and the same number of character intervals among the characters to be replaced, establishes a virtual text which is the same as the document contents to be replaced, replaces the virtual text, and displays the document contents to be replaced and the document contents after replacement side by side after the replacement is completed.
And the replacement marking module 400 is configured to receive a user operation instruction, complete replacement of the document content to be replaced, and mark a replacement position.
In the system, the replacement marking module 400 receives a user operation instruction, previews in a side-by-side display mode before formal replacement, uploads a corresponding user operation instruction after confirmation by a user, for example, confirms replacement or cancels replacement, or selects a part of positions for replacement, performs replacement operation on the positions confirmed for replacement, and marks the replacement positions; the marking modes adopted by the contents of different batches are different; the marking processing is realized through highlight display, and after the processing is finished, the position and the content of the replacement are recorded in the background.
As shown in fig. 6, as a preferred embodiment of the present invention, the content retrieval module 200 includes:
data analysis section 201 analyzes the search condition information and determines the type of the condition included therein.
In this module, the data analysis unit 201 analyzes the search condition information, that is, determines the number of each type of search condition one by one, specifically, first counts the total number of symbols in the symbol data, then determines the total number of keywords in the keyword data, regards one character combination as one keyword, and finally determines the number of keyword sequence data, that is, the number of character intervals.
And a formula retrieving unit 202, configured to perform a search according to the combination of the condition types, and retrieve a search formula having the same condition type.
And the formula filling unit 203 is configured to fill the search formula according to the specific content included in the search condition information, and perform a search based on the search formula to obtain a search result.
In the module, after the number of each retrieval condition is determined, the retrieval formula can be determined through retrieval according to the number, and then the specific content of the retrieval condition is input into the retrieval formula, retrieval is carried out by taking the retrieval formula as a basis, and a retrieval result is finally obtained.
As shown in fig. 7, as a preferred embodiment of the present invention, the replacement verification module 300 includes:
and a content sorting unit 301, configured to extract document contents to be replaced item by item based on the search result, and sort the document contents according to the document order.
In this module, the content sorting unit 301 extracts document contents to be replaced item by item based on the retrieval result, and in the retrieval process, each time a piece of document content to be replaced is hit, the document content is numbered, and in the retrieval, the document content is retrieved according to the document sequence.
And a replacement preview unit 302, configured to replace the document content to be replaced with the replacement text, and generate a replaced document content represented by the preview graph.
In this module, the replacement preview unit 302 creates a virtual text and copies the document to be replaced into the virtual text, so that after the search is completed, the corresponding document to be replaced is also formed in the virtual text according to the search sequence, and the replacement is completed in the virtual text, so that the replaced text in the virtual text is captured and represented by a preview.
And the comparison pushing unit 303 is configured to display the document content to be replaced and the replaced document content to the user side by side.
In this module, the comparison pushing unit 303 displays the preview on one side of the document content to be replaced, so that the preview and the document content are displayed side by side for the user to refer to, and the user can check at this stage to determine whether there is a position that does not need to be replaced.
As shown in fig. 8, as a preferred embodiment of the present invention, the replacement marking module 400 includes:
and the instruction receiving unit 401 is configured to receive a user operation instruction in real time and execute the user operation instruction.
A content replacing unit 402, configured to replace the to-be-replaced document content determined to be replaced in the user operation instruction.
In the module, a user operation instruction is received in real time, whether each document content to be replaced is judged according to the user operation instruction, if ten document contents to be replaced exist in total and are numbered from 1 to 10, and if 1 to 5 are replaced by appointing in the user operation instruction, 6 to 10 abandon the replacement.
A content marking unit 403, configured to determine, according to the symbol data, a range covered by the content of the document to be replaced, and perform marking processing on the content in the range.
In this module, when the content marking unit 403 performs replacement, the replacement is performed according to the replacement text and the keyword sequence, the keywords in the keyword data and the characters in the replacement text have corresponding relationships, for example, there are three keywords, which are a, B, and C, in the keyword data, and there are a, B, and C in the replacement text, and the three have corresponding relationships.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
All possible combinations of the technical features of the above embodiments may not be described for the sake of brevity, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A method for displaying contents of a document archive instead, the method comprising:
acquiring retrieval condition information input by a user, wherein the retrieval condition information at least comprises symbol data, keyword sequence and a replacement text;
analyzing the search condition information, calling a search formula matched with the search condition information, and searching based on the search formula to obtain a search result;
extracting corresponding document contents to be replaced based on the retrieval result, and displaying the document contents to be replaced and the replaced document contents side by side;
receiving a user operation instruction, finishing the replacement of the document content to be replaced, and marking the replacement position;
the step of analyzing the search condition information, calling a search formula matched with the search condition information, and searching based on the search formula to obtain a search result specifically comprises the following steps:
analyzing the search condition information and judging the type of the condition contained in the search condition information;
searching according to the combination of the condition types to obtain a search formula with the same condition type;
filling the retrieval formula according to the specific content contained in the retrieval condition information, and retrieving based on the retrieval formula to obtain a retrieval result;
before replacement, a user inputs retrieval condition information according to the replacement requirement of the user, the input needs to be input according to a preset format, the content of the retrieval condition information at least comprises symbol data, keyword data, a keyword sequence and a replacement text, the symbol data is punctuation, the keyword data is a basis for retrieval and comprises characters or character combinations, the keyword sequence is an interval relation between the characters or the character combinations in the keyword data, the replacement text is a text for replacement, the content contained in the replacement text is inserted according to the keyword sequence, the retrieval condition information is analyzed during retrieval, the number of the symbol data, the number of the keyword data and the keyword sequence are extracted, the required formula is determined according to the number of the replacement text, the retrieval formula with the corresponding retrieval condition is called and filled, three groups of conditions of the retrieval formula are obtained, the first is the symbol condition, the second is the keyword condition, the third bit sequence condition is obtained, during retrieval, the symbol condition is used for retrieval, the first retrieval result is obtained, the keyword condition is used for retrieval, the second retrieval result is obtained, and the final retrieval result is screened according to the second bit sequence.
2. The method for replacing and displaying the contents of the file archive according to claim 1, wherein the step of extracting the corresponding contents of the document to be replaced based on the search result and displaying the contents of the document to be replaced and the replaced contents of the document side by side specifically comprises:
extracting document contents to be replaced one by one based on the retrieval result, and sequencing the document contents according to the document sequence;
replacing the document content to be replaced by the replacing text and generating replaced document content represented by the preview graph;
and displaying the document content to be replaced and the replaced document content to the user side by side.
3. The method for replacing and displaying the contents of the file archive according to claim 1, wherein the step of receiving the user operation instruction, completing the replacement of the contents of the document to be replaced, and marking the replacement position specifically comprises:
receiving a user operation instruction in real time and executing;
replacing the document content to be replaced determined to be replaced in the user operation instruction;
and determining the range covered by the content of the document to be replaced according to the symbol data, and marking the content in the range.
4. The method of claim 1, wherein different batches of content are marked differently.
5. The method of claim 3, wherein the marking process is performed by highlighting, and after the marking process is completed, the position and content of the replacement are recorded in the background.
6. A system for alternate display of archive contents of documents, said system comprising:
the information acquisition module is used for acquiring retrieval condition information input by a user, wherein the retrieval condition information at least comprises symbol data, keyword data, a keyword sequence and a replacement text;
the content retrieval module is used for analyzing the retrieval condition information, calling a retrieval formula matched with the retrieval condition information, and retrieving based on the retrieval formula to obtain a retrieval result;
the replacing and checking module is used for extracting corresponding document content to be replaced based on the retrieval result and displaying the document content to be replaced and the replaced document content side by side;
the replacing and marking module is used for receiving a user operation instruction, finishing the replacement of the document content to be replaced and marking a replacing position;
the content retrieval module includes:
a data analysis unit for analyzing the search condition information and judging the condition type contained in the search condition information;
the formula calling unit is used for searching according to the combination of the condition types to obtain a search formula with the same condition type;
the formula filling unit is used for filling the search formula according to the specific content contained in the search condition information and searching based on the search formula to obtain a search result;
before replacement, a user inputs retrieval condition information according to the replacement requirement of the user, when the retrieval condition information is input, the retrieval condition information needs to be input according to a preset format, the content of the retrieval condition information at least comprises symbol data, keyword data, a keyword sequence and a replacement text, the symbol data is punctuation, the keyword data is a retrieval basis and comprises characters or character combinations, the keyword sequence is an interval relation among the characters or the character combinations in the keyword data, the replacement text refers to the text for replacement, the content of the replacement text is inserted according to the keyword sequence, the retrieval condition information is analyzed when the retrieval is carried out, the number of the symbol data, the number of the keyword data and the keyword sequence are extracted, the required formula is determined according to the number of the substitution text, the retrieval formula with the corresponding retrieval condition is called and filled, three groups of conditions of the retrieval formula are obtained, the first is the symbol condition, the second is the keyword condition, the third bit sequence condition is obtained, when the retrieval is carried out, the symbol condition is used for retrieval, the first retrieval result is obtained, the keyword condition is used for retrieval in the first retrieval result, the second retrieval result is obtained, the final retrieval result is screened according to the sequence condition, and the final retrieval result is obtained.
7. The system of claim 6, wherein the replacement verification module comprises:
the content sorting unit is used for extracting the document contents to be replaced one by one based on the retrieval result and sorting the document contents according to the document sequence;
the replacing and previewing unit is used for replacing the document content to be replaced by the replacing text and generating the replaced document content represented by the previewing graph;
and the comparison pushing unit is used for displaying the document content to be replaced and the replaced document content to the user side by side.
8. The system of claim 6, wherein the replacement marking module comprises:
the instruction receiving unit is used for receiving a user operation instruction in real time and executing the user operation instruction;
the content replacement unit is used for replacing the document content to be replaced determined to be replaced in the user operation instruction;
and the content marking unit is used for determining the range covered by the content of the document to be replaced according to the symbolic data and marking the content in the range.
CN202210656463.8A 2022-06-10 2022-06-10 Replacement display method and display system for file archive contents Active CN115017871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210656463.8A CN115017871B (en) 2022-06-10 2022-06-10 Replacement display method and display system for file archive contents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210656463.8A CN115017871B (en) 2022-06-10 2022-06-10 Replacement display method and display system for file archive contents

Publications (2)

Publication Number Publication Date
CN115017871A CN115017871A (en) 2022-09-06
CN115017871B true CN115017871B (en) 2023-04-07

Family

ID=83075018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210656463.8A Active CN115017871B (en) 2022-06-10 2022-06-10 Replacement display method and display system for file archive contents

Country Status (1)

Country Link
CN (1) CN115017871B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089620B (en) * 2023-04-07 2023-06-09 日照蓝鸥信息科技有限公司 Electronic archive data management method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818093A (en) * 2021-01-18 2021-05-18 平安国际智慧城市科技股份有限公司 Evidence document retrieval method, system and storage medium based on semantic matching

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08185401A (en) * 1994-12-28 1996-07-16 Fujitsu Ltd Document retrieving device
JP3470782B2 (en) * 1996-01-09 2003-11-25 沖電気工業株式会社 Information retrieval device
DE102017220140A1 (en) * 2016-11-16 2018-05-17 Fanuc Corporation Polling device, polling method and polling program
WO2020209498A1 (en) * 2019-04-08 2020-10-15 권준동 Patent search method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818093A (en) * 2021-01-18 2021-05-18 平安国际智慧城市科技股份有限公司 Evidence document retrieval method, system and storage medium based on semantic matching

Also Published As

Publication number Publication date
CN115017871A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN111506498B (en) Automatic generation method and device of test case, computer equipment and storage medium
CN110457302B (en) Intelligent structured data cleaning method
CN110109820A (en) Regression test case determines method, apparatus, computer equipment and storage medium
CN111475694B (en) Data processing method, device, terminal and storage medium
CN109657137B (en) Public opinion news classification model construction method, device, computer equipment and storage medium
CN110688349B (en) Document sorting method, device, terminal and computer readable storage medium
SG172426A1 (en) Method and system for file type identifying and analyzing
CN115017871B (en) Replacement display method and display system for file archive contents
CN110321408A (en) Searching method, device, computer equipment and the storage medium of knowledge based map
CN110955608B (en) Test data processing method, device, computer equipment and storage medium
CN109446525B (en) Text processing method and device, computer readable storage medium and computer equipment
CN116701182B (en) Coverage rate mark file updating method, coverage rate mark file updating device, coverage rate mark file updating equipment and storage medium
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN110471838A (en) Method of calibration, device, computer equipment and the storage medium of test case
CN111783460A (en) Enterprise abbreviation extraction method and device, computer equipment and storage medium
CN111367446B (en) Business operation method and device, computer equipment and storage medium
CN113434395A (en) Automatic generation method, device, equipment and medium of test case
CN115048435A (en) Intelligent database storage method and system
CN111382570A (en) Text entity recognition method and device, computer equipment and storage medium
CN116226681B (en) Text similarity judging method and device, computer equipment and storage medium
CN115422095A (en) Regression test case recommendation method, device, equipment and medium
CN110135431A (en) The automatic identifying method and system of business license
CN114625856A (en) Government performance management method and system
CN112579944A (en) Page jump processing method and device and electronic equipment
CN112632687A (en) BIM forward design method, system, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant