The processing method, device, electronic equipment and storage medium of the article

CN116258140BActive Publication Date: 2026-11-03MOBVOI INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211716650.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2026-11-03
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

Existing writing systems use full-text error correction when saving articles, which increases server load, increases error correction interface overhead, and makes it difficult to correct repeated errors of the same sentences, thus failing to achieve uninterrupted writing.

Method used

A combination of full and incremental saving mechanisms is adopted, along with multi-level caching, to select the storage method based on the text attributes and match the corresponding error correction method, thereby reducing the frequency and time of error correction interface calls.

Benefits of technology

It reduces the computational cost and time of the error correction interface, improves the user experience, enhances error correction efficiency and accuracy, and reduces server load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116258140B_ABST
    Figure CN116258140B_ABST
Patent Text Reader

Abstract

The disclosure provides a processing method of an article, which can include: storing an inserted script according to a storage mode corresponding to a script attribute of the inserted script, to obtain a target article containing the inserted script, wherein the script attribute includes an original article and an optimized paragraph, and the storage mode includes full-quantity saving and incremental saving; performing multi-level cache judgment on each decomposed sentence in the target article, to obtain a multi-level cache state of the decomposed sentence; and matching an error correction mode corresponding to the multi-level cache state for the decomposed sentence, and obtaining error correction information of the decomposed sentence by using the error correction mode. The disclosure also provides an article processing device, an electronic device and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, and in particular to a method, apparatus, electronic device, and storage medium for processing articles. Background Technology

[0002] Artificial intelligence (AI) is a science that can simulate, extend, and expand human thought. Devices equipped with AI can correct and optimize human ideas. Currently, AI has permeated various industries, such as AI-based writing systems in the field of writing. These systems can polish and correct errors in input articles, extending and optimizing upon human limitations in writing skills, knowledge, and penmanship, thereby improving the readability and accuracy of the articles.

[0003] However, current writing systems typically only offer a full-text save option, and each save invariably includes full-text error correction. Yet, authors rarely write articles continuously without interruption. In other words, every writing break involves full-text saving and error correction operations and calculations. This caching and processing mechanism undoubtedly increases the server load on the writing system, as well as the overhead and time consumption of remotely calling the error correction interface. Furthermore, repeated error correction of the same sentences increases the difficulty of identifying error nodes. Summary of the Invention

[0004] To address at least one of the aforementioned technical problems, this disclosure provides a method, apparatus, electronic device, and storage medium for processing articles.

[0005] One aspect of this disclosure provides a method for processing an article, which may include: selecting a storage method corresponding to the text attributes of the inserted text to store the inserted text, thereby obtaining a target article containing the inserted text, wherein the text attributes include the original article and optimized paragraphs, and the storage method includes full saving and incremental saving; performing multi-level caching judgment on each decomposed sentence in the target article to obtain the multi-level caching state of the decomposed sentences; and matching the decomposed sentences with an error correction method corresponding to the multi-level caching state, and using the error correction method to obtain the error correction information of the decomposed sentences.

[0006] In some implementations, the step of selecting a storage method corresponding to the text attributes of the inserted text to store the inserted text in order to obtain a target article containing the inserted text includes: in response to the recognition result that the text attributes of the inserted text are the original article, saving the inserted text in full; or in response to the recognition result that the text attributes of the inserted text are the optimized paragraph, saving the inserted text incrementally.

[0007] In some implementations, the incremental saving of the inserted text in response to the recognition result that the text attribute of the inserted text is an optimized paragraph includes: writing the optimized paragraph and its paragraph number into a paragraph list; and inserting the optimized paragraph into the corresponding position of the original article according to the paragraph number by the paragraph index to generate a target article containing the inserted text.

[0008] In some implementations, the step of performing multi-level caching judgment on each decomposed statement in the target article to obtain the multi-level caching status of the decomposed statements includes: performing a primary caching judgment on each decomposed statement in the target article to determine the user caching status of the decomposed statement in the writing account of the target article; and, in response to the judgment result that the user caching status is cached, using the user caching status as the multi-level caching status of the decomposed statement.

[0009] In some implementations, the step of performing multi-level caching judgment on each decomposed statement in the target article to obtain the multi-level caching status of the decomposed statements includes: performing a primary caching judgment on each decomposed statement in the target article to determine the user caching status of the decomposed statement in the writing account of the target article; and, in response to the judgment result that the user caching status is no caching, performing a secondary caching judgment on the decomposed statement to determine the global caching status of the decomposed statement in the writing system, and using the global caching status as the multi-level caching status of the decomposed statement.

[0010] In some implementations, matching the decomposed statement with an error correction method corresponding to the multi-level cache state and obtaining the error correction information of the decomposed statement using the error correction method includes: when the multi-level cache state is the user cache state, extracting the error correction information of the decomposed statement from the writing account.

[0011] In some implementations, matching the decomposed statement with an error correction method corresponding to the multi-level cache state and obtaining the error correction information of the decomposed statement using the error correction method includes: when the multi-level cache state is the global cache state, determining the identification result of the global cache state; in response to the identification result that the global cache state is cached, retrieving the error correction information of the decomposed statement in the writing system and caching the decomposed statement and the error correction information to the writing account; or, in response to the identification result that the global cache state is uncached, calling the error correction interface to correct the decomposed statement to obtain error correction information, and caching the decomposed statement and the error correction information to the writing system and the writing account.

[0012] In some implementations, before storing the inserted text according to the text attributes and selecting a storage method corresponding to the text attributes to obtain a target article containing the inserted text, the method further includes: segmenting the inserted text to obtain multiple paragraphs; and segmenting each paragraph into sentences to obtain multiple decomposed sentences.

[0013] In some implementations, after matching the error correction method corresponding to the multi-level cache state for the decomposed statement and obtaining the error correction information of the decomposed statement using the error correction method, the method further includes: selecting a corresponding word-cutting mechanism according to the error correction method, and using the word-cutting mechanism to adjust the decomposed statement into the target statement to obtain the target article.

[0014] Another aspect of this disclosure provides an article processing apparatus, which may include: a target article acquisition module, a multi-level cache status acquisition module, and an error correction information acquisition module. The target article acquisition module is used to select a storage method corresponding to the text attributes of the inserted text and store the inserted text to obtain a target article containing the inserted text, wherein the text attributes include the original article and optimized paragraphs, and the storage method includes full saving and incremental saving; the multi-level cache status acquisition module is used to perform multi-level cache judgment on each decomposed statement in the target article to obtain the multi-level cache status of the decomposed statements; and the error correction information acquisition module is used to match an error correction method corresponding to the multi-level cache status for the decomposed statements and obtain error correction information of the decomposed statements using the error correction method.

[0015] Another aspect of this disclosure provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the article processing method as described in any of the above embodiments.

[0016] Another aspect of this disclosure provides a readable storage medium storing a computer program adapted for loading by a processor to perform an article processing method as described in any of the above embodiments. Attached Figure Description

[0017] The accompanying drawings illustrate exemplary embodiments of the present disclosure and, together with the description thereof, serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0018] Figure 1 This is a flowchart illustrating an article processing method according to an exemplary embodiment of this disclosure;

[0019] Figure 2 This is a schematic diagram of a saving process according to an exemplary embodiment of the present disclosure;

[0020] Figure 3 This is a schematic diagram of an error correction process according to an exemplary embodiment of this disclosure; and

[0021] Figure 4 This is a block diagram of an article processing apparatus according to an exemplary embodiment of the present disclosure.

[0022] Explanation of reference numerals in the attached figures

[0023] Processing device for 1000 articles

[0024] 1002 Target Article Acquisition Module

[0025] 1004 Multi-level Cache Status Acquisition Module

[0026] 1006 Error Correction Information Acquisition Module

[0027] 1100 bus

[0028] 1200 processor

[0029] 1300 memory

[0030] 1400 Other Circuits Detailed Implementation

[0031] The present disclosure will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the disclosure. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present disclosure are shown in the accompanying drawings.

[0032] It should be noted that, where there is no conflict, the embodiments and features described in this disclosure can be combined with each other. The technical solutions of this disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0033] Unless otherwise stated, the exemplary implementations / embodiments shown are to be understood as providing exemplary features of various details that provide ways in which the technical concepts of this disclosure can be implemented in practice. Therefore, unless otherwise stated, the features of various implementations / embodiments may be additionally combined, separated, interchanged and / or rearranged without departing from the technical concepts of this disclosure.

[0034] The terminology used herein is for the purpose of describing particular embodiments and is not restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms “a” and “the” are intended to include the plural forms as well. Furthermore, when the terms “comprising” and / or “including” and variations thereof are used in this specification, it indicates the presence of the stated features, integrals, steps, operations, parts, components, and / or groups thereof, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, parts, components, and / or groups thereof. It should also be noted that, as used herein, the terms “substantially,” “about,” and other similar terms are used as approximate terms rather than as terms of degree, thus explaining the inherent biases in measurements, calculated values, and / or provided values ​​that would be recognized by one of ordinary skill in the art.

[0035] Figure 1 This is a flowchart of an article processing method according to an exemplary embodiment of this disclosure. The following will be combined with… Figure 1 The article processing method S100 is explained in detail.

[0036] Step S102: Based on the text attributes of the inserted text, select the storage method corresponding to the text attributes to store the inserted text, so as to obtain the target article containing the inserted text.

[0037] The inserted text can be text written within the writing system or text copied and pasted from other platforms. There are no restrictions on the content or number of characters in the inserted text.

[0038] The text attribute is used to characterize how the inserted text was created. The text attribute can include the original article and the optimized paragraph. Specifically, when the inserted text is created for the first time as a new article, its text attribute is the original article; when the inserted text is created through optimization operations such as adding, modifying (replacing) paragraphs, or deleting paragraphs based on the original article, its text attribute is the optimized paragraph.

[0039] The storage methods are designed to adapt to different text attributes, including full saving and incremental saving. Full saving caches all characters in the currently written article; that is, it saves only the characters present on the current writing page. Since the writing platform polishes and corrects errors each time it caches content, full saving is designed for caching the initial creation of new articles. Incremental saving only saves the changed parts (such as added, modified, and deleted paragraphs), while the remaining parts are not repeatedly stored.

[0040] For inserted text with different textual attributes, a suitable storage method needs to be matched. For example, for inserted text with the textual attribute of original article, the matching storage method is full saving; for inserted text with the textual attribute of optimized paragraph, the matching storage method is incremental saving. By combining storage methods, the computational and time costs of error correction are reduced, and the user experience is improved.

[0041] The target article is the cached result of the inserted text. For inserted text with the text attribute of original article, the target article is the inserted text itself; for inserted text with the text attribute of optimized paragraph, the target article is the updated result of the original content using the inserted text.

[0042] The writing system is a platform for AI-powered error correction technology, used to refine and correct inserted text using artificial intelligence. Error correction includes at least the correction of spelling errors, phrases, and sentences, as well as factual inaccuracies. Using the writing system, the target article can be made more readable, accurate, and aesthetically pleasing.

[0043] Specifically, step S102 is implemented as follows: in response to the recognition result that the text attribute of the inserted text is the original article, the inserted text is fully saved; or in response to the recognition result that the text attribute of the inserted text is the optimized paragraph, the inserted text is incrementally saved.

[0044] When the inserted text has the attribute of "optimized paragraph," incremental saving of the inserted text can include: writing the optimized paragraph and its paragraph number to the paragraph list; and inserting the optimized paragraph into the corresponding position in the original article according to the paragraph number using the paragraph index, to generate a target article containing the inserted text.

[0045] The paragraph numbers indicate the logical sequence between paragraphs. Optimized paragraphs are written to a paragraph list along with their corresponding paragraph numbers and inserted text. Each paragraph in the list corresponds one-to-one with the text (including all paragraphs from the original article and the inserted text), facilitating the arrangement of paragraphs by the paragraph index. The paragraph index is used to arrange the text content of each paragraph in an orderly manner based on its paragraph number, thereby supplementing the original article with the inserted text and improving the efficiency and accuracy of incremental saving.

[0046] When the text attribute of the inserted text is the original article, the incremental saving of the inserted text may include: filling the paragraph list with the text content of each paragraph of the inserted text and the paragraph number of each paragraph.

[0047] Of course, after obtaining the target article, it will be stored in the database. There are two ways to store it: one is a first-level cache, which saves it to the article database of the writing system; the other is a second-level cache, which saves it to the article database of the writing account for later retrieval. The second-level cache is a wrapper around the first-level cache.

[0048] The article repository can use a MongoDB database, which is a database based on distributed file storage.

[0049] Step S104: Perform multi-level caching judgment on each decomposed statement in the target article to obtain the multi-level caching status of the decomposed statements.

[0050] In this context, a decomposed sentence is a sentence in the target article that has been segmented according to punctuation or other rules; all the decomposed sentences constitute the target article. To ensure the accuracy of error correction in the target article, the granularity of error correction needs to be precise down to the decomposed sentences.

[0051] Multi-level caching judgment refers to judging the caching status of decomposed statements at each level. In this disclosure, multi-level caching includes at least primary caching judgment and secondary caching judgment; primary caching judgment is used to determine the user caching status of the decomposed statement in the writing account, and secondary caching judgment is used to determine the global caching status of the decomposed statement in the writing system. Obtaining the multi-level caching status of the decomposed statement facilitates the subsequent determination of the matching error correction method.

[0052] When the initial cache check indicates that the user's cache status is cached, it proves that the decomposed statement was previously written by the current authoring account and has corresponding error correction information and word count results. Based on this, the error correction information and word count results can often be used directly, eliminating the need for a second-level cache check and repeated error correction and word count, thus improving the efficiency of error correction for the target article.

[0053] In response to the aforementioned situation, the specific process of step S104 can be as follows: perform a preliminary cache judgment on each decomposed statement in the target article to determine the user cache status of the decomposed statement in the writing account of the target article; and in response to the judgment result that the user cache status is cached, use the user cache status as the multi-level cache status of the decomposed statement.

[0054] If the initial cache check indicates that the user's cache status is "no cache," it means that the decomposed statement has not been written in the current writing account, and there is no corresponding correction information or word count result. Therefore, a second-level cache check is needed to determine if other accounts in the writing system have written the same decomposed statement. If so, their correction information can be used directly; otherwise, the correction interface is called to obtain the correction information. This minimizes the computational cost of the correction interface and shortens the correction time.

[0055] In response to the aforementioned situation, the specific process of step S104 can be as follows: perform a preliminary cache judgment on each decomposed statement in the target article to determine the user cache status of the decomposed statement in the writing account of the target article; and in response to the judgment result that the user cache status is cached, use the user cache status as the multi-level cache status of the decomposed statement.

[0056] In response to the aforementioned situation, step S104 may further be performed as follows: a primary cache judgment is made on each decomposed statement in the target article to determine the user cache status of the decomposed statement in the writing account of the target article; and in response to the judgment result that the user cache status is no cache, a secondary cache judgment is made on the decomposed statement to determine the global cache status of the decomposed statement in the writing system, and the global cache status is used as the multi-level cache status of the decomposed statement.

[0057] Step S106: Match the error correction method corresponding to the multi-level cache state for the decomposed statement, and use the error correction method to obtain the error correction information of the decomposed statement.

[0058] The error correction method mainly manifests in the mechanism for obtaining error correction information, including regenerating error correction information using the error correction interface, and directly retrieving historical error correction information from the writing account or writing system. Different multi-level cache states determine the error correction method for decomposed statements, so as to ensure the accuracy of error correction to the maximum extent while avoiding multiple calls to the error correction interface.

[0059] Specifically, step S106 can be implemented as follows: when the multi-level cache state is the user cache state, extract the error correction information of the decomposed statement in the writing account.

[0060] The implementation of step S106 can also be as follows: when the multi-level cache state is the global cache state, determine the recognition result of the global cache state; in response to the recognition result that the global cache state is cached, retrieve the error correction information of the decomposed statement in the writing system, and cache the decomposed statement and the error correction information to the writing account; or, in response to the recognition result that the global cache state is uncached, call the error correction interface to correct the decomposed statement to obtain the error correction information, and cache the decomposed statement and the error correction information to the writing system and the writing account.

[0061] In some implementations, before step S102, the method further includes: segmenting the inserted text to obtain multiple paragraphs; and then segmenting each paragraph into sentences to obtain multiple decomposed sentences.

[0062] When performing segmentation, the segment number of each segment is obtained sequentially.

[0063] Of course, the inserted text can be the original article or an optimized paragraph.

[0064] In some implementations, after step S106, the method further includes: selecting a corresponding word-cutting mechanism according to the error correction method, and using the word-cutting mechanism to adjust the decomposed sentences into target sentences to obtain the target article.

[0065] The purpose of word deduction is to match multiple candidate words or sentences for error nodes based on error correction information. The word deduction mechanism includes at least two schemes: word deduction and no word deduction.

[0066] When the error correction method is to extract the error correction information of the decomposed sentences from the writing account, then the word deduction mechanism will not deduct words, because for the same decomposed sentences, the target sentences that the user has approved in the past can be used directly, and there is no need to select them repeatedly.

[0067] When the error correction method involves retrieving error correction information from the decomposed sentences in the writing system or calling the error correction interface to correct the decomposed sentences, it is necessary to use the word-deduction mechanism to deduct words from the decomposed sentences based on the error correction information from other accounts or the newly generated error correction information from the error correction interface, and then fill the corresponding decomposed sentences with candidate words or candidate sentences approved by the user to generate the target sentences.

[0068] This disclosure proposes a method for processing articles. By introducing multi-level caching, it avoids multiple calls to the error correction interface, saving users' time and cost in editing text and extending their right to correct errors. Furthermore, it proposes a combined mechanism of full and incremental saving, saving only changed inserted text, improving the efficiency and fault tolerance of the error correction interface, and reducing the overhead and time consumption of calling the error correction interface.

[0069] Figure 4 This is a block diagram of an article processing apparatus according to an exemplary embodiment of this disclosure. Figure 4As shown, another aspect of this disclosure provides an article processing apparatus 1000, which may include: a target article acquisition module 1002, a multi-level cache status acquisition module 1004, and an error correction information acquisition module 1006. The target article acquisition module 1002 is used to select a storage method corresponding to the text attributes of the inserted text and store the inserted text to obtain a target article containing the inserted text, wherein the text attributes include the original article and optimized paragraphs, and the storage method includes full saving and incremental saving; the multi-level cache status acquisition module 1004 is used to perform multi-level cache judgment on each decomposed sentence in the target article to obtain the multi-level cache status of the decomposed sentences; and the error correction information acquisition module 1006 is used to match an error correction method corresponding to the multi-level cache status for the decomposed sentences and obtain the error correction information of the decomposed sentences using the error correction method.

[0070] The various modules in the article processing device 1000 are designed to implement the various steps of the article processing method. Their principles and implementation methods are the same as those of the article processing method, and will not be described in detail here.

[0071] The device 1000 may include corresponding units that perform one or more steps in the flowchart described above. Therefore, each or more steps in the flowchart can be performed by a corresponding unit, and the device 1000 may include one or more of these units. A unit may be one or more hardware modules specifically configured to perform a corresponding step, or implemented by a processor configured to perform a corresponding step, or stored in a computer-readable storage medium for implementation by a processor, or implemented through some combination thereof.

[0072] This hardware architecture can be implemented using a bus architecture. The bus architecture can include any number of interconnect buses and bridges, depending on the specific application of the hardware and bus design constraints. Bus 1100 will connect various circuits, including one or more processors 1200, memory 1300, and / or hardware modules. Bus 1100 can also connect various other circuits 1400, such as peripherals, voltage regulators, power management circuits, external antennas, etc.

[0073] Bus 1100 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, this diagram uses only one connection line, but it does not imply that there is only one bus or one type of bus.

[0074] Any process or method description in the flowcharts or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain. The processor performs the various methods and processes described above. For example, the method embodiments of this disclosure may be implemented as software programs tangibly contained in a machine-readable medium, such as memory. In some embodiments, part or all of the software program may be loaded and / or installed via memory and / or a communication interface. When the software program is loaded into memory and executed by the processor, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the processor may be configured to perform one of the methods described above by any other suitable means (e.g., by means of firmware).

[0075] This disclosure proposes an article processing device that, by introducing multi-level caching, avoids multiple calls to the error correction interface, saving users' typing time and costs, and extending their right to correct errors. Furthermore, it proposes a combined mechanism of full and incremental saving, saving only changed inserted text, improving the efficiency and fault tolerance of the error correction interface, and reducing the overhead and time consumption of calling the error correction interface.

[0076] The logic and / or steps represented in the flowchart or otherwise described herein may be specifically implemented in any readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).

[0077] For the purposes of this specification, a "readable storage medium" can be any means capable of containing, storing, communicating, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable read-only memory (CDROM). Furthermore, a readable storage medium can even be paper or other suitable media on which a program can be printed, since a program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in memory.

[0078] It should be understood that various parts of this disclosure can be implemented in hardware, software, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0079] Those skilled in the art will understand that all or part of the steps of the methods described above can be implemented by a program instructing related hardware, and the program can be stored in a readable storage medium. When executed, the program includes one or a combination of the steps of the method implementation.

[0080] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a single processing module, or each unit can exist physically separately, or two or more units can be integrated into a single module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a readable storage medium. The storage medium can be a read-only memory, a disk, or an optical disk, etc.

[0081] In the description of this specification, the references to terms such as "one embodiment / mode," "some embodiments / modes," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment / mode or example is included in at least one embodiment / mode or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment / mode or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments / modes or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments / modes or examples described in this specification, as well as the features of different embodiments / modes or examples.

[0082] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0083] Those skilled in the art should understand that the above embodiments are merely for illustrating the present disclosure and are not intended to limit the scope of the disclosure. Those skilled in the art can make other changes or modifications based on the above disclosure, and these changes or modifications still fall within the scope of the present disclosure.

Claims

1. A method for processing articles, characterized in that, include: Based on the text attributes of the inserted text, a storage method corresponding to the text attributes is selected to store the inserted text, so as to obtain a target article containing the inserted text. The text attributes include the original article and optimized paragraphs, and the storage method includes full saving and incremental saving. Perform multi-level cache judgment on each decomposed sentence in the target article to obtain the multi-level cache status of the decomposed sentence; as well as Match the decomposed statement with the error correction method corresponding to the multi-level cache state, and use the error correction method to obtain the error correction information of the decomposed statement; The step of performing multi-level caching judgment on each decomposed statement in the target article to obtain the multi-level caching status of the decomposed statements includes: A preliminary cache determination is performed on each decomposed statement in the target article to determine the user cache status of the decomposed statement in the author account of the target article; In response to the determination that the user cache status is cached, the user cache status is used as the multi-level cache status of the decomposed statement; In response to the determination that the user cache status is no cache, a second-level cache determination is performed on the decomposed statement to determine the global cache status of the decomposed statement in the writing system, and the global cache status is used as the multi-level cache status of the decomposed statement.

2. The article processing method according to claim 1, characterized in that, The step of selecting a storage method corresponding to the text attributes of the inserted text and storing the inserted text to obtain a target article containing the inserted text includes: In response to the recognition result that the text attribute of the inserted text is the original article, the inserted text is fully saved; or In response to the recognition result that the text attribute of the inserted text is an optimized paragraph, the inserted text is incrementally saved.

3. The article processing method according to claim 2, characterized in that, The step of incrementally saving the inserted text in response to the recognition result of the optimized paragraph attribute of the inserted text includes: Write the optimized paragraph and its paragraph number into the paragraph list; and The optimized paragraphs are inserted into the corresponding positions of the original article according to the paragraph index and the paragraph numbers to generate a target article containing the inserted text.

4. The article processing method according to claim 1, characterized in that, The step of matching the decomposed statement with the error correction method corresponding to the multi-level cache state, and obtaining the error correction information of the decomposed statement using the error correction method, includes: When the multi-level cache state is the user cache state, the error correction information of the decomposed statement is extracted from the writing account.

5. The article processing method according to claim 1, characterized in that, The step of matching the decomposed statement with the error correction method corresponding to the multi-level cache state, and obtaining the error correction information of the decomposed statement using the error correction method, includes: When the multi-level cache state is the global cache state, determine the identification result of the global cache state; In response to the recognition result that the global cache status is cached, the error correction information of the decomposed statement is retrieved in the writing system, and the decomposed statement and the error correction information are cached in the writing account; or, in response to the recognition result that the global cache status is uncached, the error correction interface is called to correct the decomposed statement to obtain error correction information, and the decomposed statement and the error correction information are cached in the writing system and the writing account.

6. An apparatus for processing articles, characterized in that, include: The target article acquisition module is used to select a storage method corresponding to the text attributes of the inserted text and store the inserted text to obtain a target article containing the inserted text. The text attributes include the original article and optimized paragraphs, and the storage method includes full saving and incremental saving. The multi-level cache status acquisition module is used to perform multi-level cache judgment on each decomposed sentence in the target article in order to obtain the multi-level cache status of the decomposed sentence. as well as The error correction information acquisition module is used to match the decomposed statement with the error correction method corresponding to the multi-level cache state, and to acquire the error correction information of the decomposed statement using the error correction method; The step of performing multi-level caching judgment on each decomposed statement in the target article to obtain the multi-level caching status of the decomposed statements includes: A preliminary cache determination is performed on each decomposed statement in the target article to determine the user cache status of the decomposed statement in the author account of the target article; In response to the determination that the user cache status is cached, the user cache status is used as the multi-level cache status of the decomposed statement; In response to the determination that the user cache status is no cache, a second-level cache determination is performed on the decomposed statement to determine the global cache status of the decomposed statement in the writing system, and the global cache status is used as the multi-level cache status of the decomposed statement.

7. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the article processing method as described in any one of claims 1 to 5.

8. A readable storage medium, characterized in that, The readable storage medium stores a computer program adapted for loading by a processor to perform the article processing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Document data storage method and device

    CN113220822A

  • Speech recognition error correction method and device, electronic equipment and storage medium

    CN114360549A