CN113779952B - Text processing method and device and electronic equipment - Google Patents

Text processing method and device and electronic equipment Download PDF

Info

Publication number
CN113779952B
CN113779952B CN202111147430.2A CN202111147430A CN113779952B CN 113779952 B CN113779952 B CN 113779952B CN 202111147430 A CN202111147430 A CN 202111147430A CN 113779952 B CN113779952 B CN 113779952B
Authority
CN
China
Prior art keywords
format
contract template
filling
template
area
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
CN202111147430.2A
Other languages
Chinese (zh)
Other versions
CN113779952A (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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202111147430.2A priority Critical patent/CN113779952B/en
Publication of CN113779952A publication Critical patent/CN113779952A/en
Application granted granted Critical
Publication of CN113779952B publication Critical patent/CN113779952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The text processing method, the text processing device and the electronic equipment disclosed by the embodiment of the disclosure show the first contract template copy in the second format, wherein the first contract template copy in the second format can be obtained by analyzing the first contract template copy in the first format, after the first filling operation for the first contract template copy in the second format is detected, a first filling area and first filling content corresponding to the first filling operation can be determined, and the first filling content can be added into the first filling area in the first contract template copy in the first format. In this way, the filling content can be added into the first contract template copy in the first format, so that contract style distortion caused by directly storing the filling content and the first contract template copy in the second format can be avoided.

Description

Text processing method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a text processing method, a text processing device and electronic equipment.
Background
Along with the development of scientific technology, a user can make a contract template on the terminal equipment, and after the contract template is made, part of positions of the contract template can be filled in according to actual conditions. So that one contract template can then be applied to multiple scenarios. For example, in different application scenarios, the amount of the contract template is different in filling-out content, or the first party and the second party are different, so that when the areas needing to be filled out according to actual conditions are filled out, a contract can be characterized to be made.
Disclosure of Invention
This disclosure is provided in part to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a text processing method, a text processing device and electronic equipment, which can avoid the phenomenon that the filling content is stored in a contract pattern distortion state in the contract filling process, and can facilitate filling personnel to fill in the contract by displaying the context of a filling area.
In a first aspect, an embodiment of the present disclosure provides a text processing method, including: displaying a first contract template copy in a second format, wherein the first contract template copy is generated according to a first contract template, the first contract template copy is identical to the first contract template in content, and the first contract template comprises at least one filling area; the first contract template of the second format is obtained based on analysis of the first contract template of the first format, the first format is a format adopted by editing the first contract template, and the second format is a format adopted by filling in a copy of the first contract template; in response to detecting a first filling operation for a first contract template copy in a second format being presented, determining a first filling area and a first filling content corresponding to the first filling operation, and adding the first filling content to the first filling area in the first contract template copy in the first format.
In a second aspect, an embodiment of the present disclosure provides a text processing apparatus, including: the display unit is used for displaying a first contract template copy in a second format, wherein the first contract template copy is generated according to a first contract template, the first contract template copy is identical to the first contract template in content, and the first contract template comprises at least one filling area; the first contract template of the second format is obtained based on analysis of the first contract template of the first format, the first format is a format adopted by editing the first contract template, and the second format is a format adopted by filling in a copy of the first contract template; and the determining unit is used for responding to the detection of the first filling operation of the first contract template copy of the second format, determining a first filling area and first filling content corresponding to the first filling operation and adding the first filling content into the first filling area in the first contract template copy of the first format.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the text processing method as described in the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the steps of the text processing method as described in the first aspect.
According to the text processing method, the text processing device and the electronic equipment, the first contract template copy in the second format is displayed, the first contract template copy in the second format can be obtained by analyzing the first contract template copy in the first format, after the first filling operation for the first contract template copy in the displayed second format is detected, a first filling area and first filling content corresponding to the first filling operation can be determined, and the first filling content can be added into the first filling area in the first contract template copy in the first format. In this way, the filling content can be added into the first contract template copy in the first format, so that contract style distortion caused by directly storing the filling content and the first contract template copy in the second format can be avoided.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of one embodiment of a text processing method according to the present disclosure;
FIG. 2A is a display schematic of a display interface according to one embodiment of a text processing method of the present disclosure;
FIGS. 2B-2C are display diagrams of a display interface according to yet another embodiment of a text processing method of the present disclosure;
FIG. 3A is a schematic architecture diagram of a SaaS platform of a Spring Cloud micro-service architecture according to yet another embodiment of the text processing method of the present disclosure;
FIG. 3B is a partial core table relationship diagram in a database according to yet another embodiment of the text processing method of the present disclosure;
FIG. 4 is a schematic diagram of the structure of one embodiment of a text processing device according to the present disclosure;
FIG. 5 is an exemplary system architecture in which a text processing method of one embodiment of the present disclosure may be applied;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Referring to fig. 1, a flow of one embodiment of a text processing method according to the present disclosure is shown. The text processing method can be applied to a terminal device or a server. The text processing method as shown in fig. 1 includes the steps of:
step 101, a first contract template copy in a second format is presented.
Here, the first contract template copy may be generated according to a first contract template, the first contract template copy may be identical to the content of the first contract template, and the first contract template may include at least one filling area.
Here, the first contract template in the second format is obtained based on the first contract template parsing in the first format.
Here, the first format is a format adopted for editing the first contract template, and the second format is a format adopted for filling out the copy of the first contract template.
As an example, after receiving the first contract template copy in the first format, the first contract template in the first format may be parsed into the first contract template in the second format, and when a contract needs to be created using the first contract template, a copy may be created for the first contract template in the second format, and the first contract template copy in the second format may be obtained and presented.
As an example, the first contract template in the first format and the first contract template in the second format each include at least one fill-in area. Here, it should be understood that: the first contract template in the first format and the first contract template in the second format are only different in format, i.e., the first contract template in the first format and the first contract template in the second format are identical in content.
By way of example, a contract template copy may be understood as being obtained from creating an instance of a contract template such that the contents of the contract template may not be altered during the generation of the contract while the contract is being generated using the contract template copy.
As an example, the first contract template is identical to the first contract template copy; thus, the content of the second format first contract template copy is the same as the first contract template content in the first format.
As an example, a first contract template copy in a second format may be used to indicate that a fill-in area is to be filled in.
As an example, most of the content in the contract template has been pre-filled out (e.g., obligations that the a b should fulfill, some fixed industry regulations, etc.), but some of the content of the contract template may require the user to fill in according to the actual situation, e.g., deadlines, times, amounts, special provisions, etc. When a complete contract needs to be generated by using the contract template, an instance can be created for the contract template, so that a contract template copy can be obtained, and because the contract template copy is the same as the contract template in content, a complete contract can be obtained after a user fills in a filling area in the contract template copy.
As an example, since the filling of the copies of the contract templates is typically an online filling, a first copy of the contract templates in a second format may be created, which may be understood as a text format presented online; so that the user can observe and fill out. In other words, in filling out the contract template copies, the format of the contract template copies when exposed can then be understood as the second format of the contract template.
As an example, the first format may be understood as a text format employed when editing the first contract template. For example, the user edits the first contract template (e.g., add some definitions, delete some definitions, add fill-in areas, etc.) in docx format as the edit format of the contract; after the user has completed editing, the first contract template may then be uploaded to the filling system. At this time, the system may parse the first contract template into a first contract template in a second format, and when the first contract template needs to be filled, an instance may be created for the first contract template in the second format first, a copy of the first contract template in the second format may be obtained, and then the filling system may display the copy of the first contract template in the second format.
In response to detecting the first filling operation for the first contract template copy in the second format, step 102, a first filling area and a first filling content corresponding to the first filling operation are determined, and the first filling content is added to the first filling area in the first contract template copy in the first format.
As an example, the first filling operation may be understood as a text input operation for a certain filling area. The specific filling area can be understood as a first filling area, and the input text content can be understood as a first filling content.
As an example, a first contract template copy in a first format is obtained for a first contract template creation instance in the first format.
As an example, when a contract needs to be generated using a first contract template, an instance may also be created for the first contract template in the first format, a copy of the first contract template in the first format may be obtained, and the filled-in content may be saved within the first contract template copy.
As an example, the content of the first contract template copy in the first format is the same as the content of the first contract template copy in the second format. Thus, the first filling area may also be included in the second format first contract template copy, and after receiving the first filling content, the first filling content may be added to the first filling area in the first format first contract template copy.
As an example, since the first format may be understood as a format adopted when editing the first contract template, adding the first filling content to the first contract template copy of the first format may enable the user to fill in according to the first contract template copy of the second format, but the filling content may be stored in the first contract template copy of the first format, so that a style distortion phenomenon occurring in the process of filling in the contract template by the user may be avoided.
As an example, when the user completes filling out, a contract in the first format may also be generated, that is, when the contract is generated by using the first contract template copy, the generated contract does not have pattern distortion.
As an example, the first contract template copy in the first format is the format that the user adopted when editing the first contract template, and the second format is the format that the user line filled in the first contract template copy. Therefore, the second format is usually different from the first format, and if only the filling content is stored in the first contract template copy in the second format, the format is different from the format adopted when the first contract template is edited, so that the format of the contract generated by finally using the first contract template copy in the second format is different from the format adopted when the contract template is edited, and thus, the contract style distortion may occur. That is, adding the filling content to the first contract template copy in the first format may be such that a contract generated using the first contract template copy in the first format does not exhibit style distortion.
It can be seen that in this application, a first contract template copy in a second format may be presented, and the first contract template copy in the second format may be obtained by parsing the first contract template copy in the first format, and after a first filling operation for the first contract template copy in the second format presented is detected, a first filling area and a first filling content corresponding to the first filling operation may be determined, and the first filling content may be added to the first filling area in the first contract template copy in the first format. In this way, the filling content can be added into the first contract template copy in the first format, so that contract style distortion caused by directly storing the filling content and the first contract template copy in the second format can be avoided.
Moreover, when the filled contract is printed, the first contract template copy in the first format can be directly printed, so that the format of the text in printing is the same as the format of the text in editing the template, and the format of the printed contract is the same as the format adopted in editing the contract template.
In some embodiments, a contract template identifier can be displayed on a display interface, and when a contract needs to be generated by using a specific certain contract template, a triggering operation can be performed on the contract template identifier corresponding to the contract template; thereafter, the presentation interface may present a second format copy of the contract template for the user to make contract fills (i.e., for the user to enter fill content).
In some embodiments, the first fill-out region and associated content corresponding to the first fill-out region may be presented in a second format.
Here, the associated content corresponding to the first filling area is used to indicate content filling for the first filling area.
As an example, the associated content of the first filling-in area may be understood as content that assists the user in filling in the first filling-in area. For example, the associated content of the first filling-in area may be understood as a partial content before the first filling-in area and a partial content after the first filling-in area.
As an example, since the first filling operation is detected and corresponds to the first filling area, the first filling area may be displayed. And the associated content of the first filling area is displayed, so that the user can conveniently input the first filling content filled in the first filling area. Thus, the user can fill in conveniently, and the filling efficiency of the user can be improved.
In some embodiments, the associated content corresponding to the first fill area may be determined by: the associated content of the first fill-in area is determined based on the location of the first fill-in area in the first contract template copy.
As an example, text is typically made up of paragraphs, and when the first fill-out area is in the middle portion of a paragraph, then all of the contents of that paragraph can be determined to be associated content. When the first filling area is at the end of the paragraph, the paragraph content and the paragraph content following the paragraph can be determined as the associated content, and correspondingly, when the first filling area is at the beginning of the paragraph, the paragraph content and the paragraph content preceding the paragraph can be determined as the associated content.
Of course, there are many ways to determine the associated content of the first filling area according to the position of the first filling area in the first contract template copy, so for simplicity of the description, no detailed description is needed here, and only reasonable setting is needed according to the actual situation.
In some embodiments, the associated content corresponding to the first fill area may be determined by: determining a first number of characters before the first fill-in area and a second number of characters after the first fill-in area based on a position of the first fill-in area in the first contract template copy; and the associated content of the first filling area can be obtained according to the determined characters.
As an example, the first number and the second number may be set according to actual situations, and specific numerical values of the first number and the second number are not limited herein. Only needs to be reasonably set according to actual conditions.
That is, by displaying both the partial content before the first filling area and the partial content after the first filling area, filling of the first filling area can be facilitated.
In some embodiments, the first fill-in content may be presented within the first fill-in area.
By way of example, by displaying the first filling content in the first filling area, it is possible to facilitate the user to observe the content that has been completed, that is, to facilitate the user to better browse the contract content, and to improve the filling efficiency of the user.
For ease of understanding, a schematic diagram of presenting a copy of a first contract template in a second format at the presentation interface may be shown in fig. 2A, and the filling area 201 in fig. 2A may be understood as a first filling area, which may present corresponding content after the user inputs the content (in the figure, 'xxx' may be understood as the content input by the user).
In some embodiments, the presentation interface may include a first presentation area in which the first contract template copy in the second format is presented and a second presentation area in which the content editing area corresponding to the fill-in area is presented.
Here, the content editing area may be used to receive input filling content.
As an example, one filling area may correspond to one content editing area.
As an example, the display interface is divided into a first display area and a second display area, and the content editing area corresponding to the filling area is displayed in the second display area, so that a user can know how much content needs to be filled in before filling in.
As an example, when a trigger operation is performed for a certain content editing area, it may be characterized that content needs to be input in the content editing area, and at this time, a filling area corresponding to the content editing area and associated content corresponding to the filling area may be displayed in a first display area.
As an example, when a trigger operation is performed for a certain content editing area, a filling area corresponding to the content editing area may be displayed in a first display area, and associated content corresponding to the filling area may be displayed. In this way, the user can conveniently fill in the content editing area; and after the content is filled, the user can check whether the content which is filled in each filling area is accurate or not.
In some embodiments, the filling content received by the content editing area may be presented in both the content editing area and the corresponding filling area.
As an example, the filling content is displayed in both the content editing area and the corresponding filling area, so that the user can observe the whole filled contract content conveniently, and the filling of the user is assisted, so that the filling efficiency in the contract filling process can be improved.
For ease of understanding, fig. 2B-2C may also be schematic diagrams showing the interface showing the copy of the first contract template in the second format, in fig. 2B, area 202 may be understood as a first showing area, the second contract template in the second format is shown in area 202, area 203 may be understood as a second showing area, and areas 2031, 2032, 2033 in area 203 may be understood as content editing areas, where the user may perform content filling for any content editing area. Continuing with the description of fig. 2C, when the filling content needs to be input in the content editing area 204, the first display area may display the content filling area 204 corresponding to the content editing area 2032, and when the user inputs the content in the content editing area 2032, the corresponding content will also be displayed in the content filling area 204, and as shown in fig. 2C, both the content editing area 2032 and the content filling area 204 display the content 'aaa' input by the user. It should be noted that, the 'aaa' here is merely a content representing the random input of the user, the user may input the corresponding content in the content editing area according to the actual requirement, and the specific user may input what kind of content in each content editing area, which is not limited herein, and only needs to be reasonably set according to the actual situation.
In some embodiments, the template content of the first contract template replica is the same as the template content of the first contract template, and the first contract template may be generated by: acquiring an initial contract template in a first format; and in response to receiving the content editing operation, updating the content of the initial contract template according to the instruction of the content editing operation to obtain a first contract template.
By way of example, an initial contract template may be understood as a generic template of a contract, within which rules may be included that are generic to all types of templates, or some generic fixed format, etc. However, the user needs to update the initial contract template according to actual needs in order to adapt to various scenes, for example, when the scene is an real estate scene, some real estate field related regulations may need to be added to the initial contract template, and when the scene is a renting house scene, some house renting related regulations may need to be added to the initial contract template. That is, the user may update the content of the initial contract template according to the actual scene requirement, so as to obtain the first contract template for a certain scene.
As an example, after the initial contract template is acquired, the initial contract template may be updated according to a content editing operation input by a user, so that a first contract template for a certain application scenario may be obtained. In this way, the first contract template can be generated according to actual requirements, and the first contract template can be more suitable for a specific scene.
In some embodiments, in response to receiving a first contract template in a first format, the at least one fill-in area in the first contract template is determined from an area in the first contract template where the predefined character is located.
As an example, the predefined characters may include spaces, brackets, underlining, and the like.
As an example, after updating the initial contract template, the user may reset some filling areas or may delete some filling areas that are original. And because the area where the predefined character is located is the filling area, the filling area can be increased and deleted by the user. By the method, the generation mode of the first contract template is simplified, and therefore the generation efficiency of the first contract template can be further improved.
That is, by determining the area where the predefined character is located as the filling area of the first contract template, it is possible to facilitate the editor to accelerate the efficiency of creating the first contract template when editing the first contract template, and at the same time, since only a specific system needs to be input to create and complete one filling area, the difficulty of creating the first contract template is correspondingly reduced (that is, a large number of operations are not required to be performed as in the related art to complete the setting of one filling area).
In some embodiments, converting the format of the first contract template from a first format to a second format, and exposing the converted first contract template in the second format; in response to receiving a definition instruction for a filling area presented in a second format, a definition rule indicated by the definition instruction is stored in correspondence with the filling area.
Here, the definition rule includes at least any one of the following: the content that the filling area can input, the character type that the filling area can input, the number of characters that the filling area can input.
As an example, since the contract template of the first format is a format that is convenient for the user to edit, when the first contract template of the first format is received, the first contract template of the first format may be converted into the first contract template of the second format so that the user editing the first contract template observes the edited first contract template. The presentation style of the first contract template presented at this time can be understood as follows: and when the first contract template is required to be utilized to generate a contract, displaying the display style of the first contract template displayed on the display interface. Therefore, the user editing the first contract template can conveniently review whether the contents are correctly displayed after the format conversion of the first contract template, and the accuracy of the filling process can be ensured.
As an example, after the first contract template is presented in the second format, a filling rule for filling areas may be input, thereby defining what each filling area may fill. For example, some filling areas can only fill in numbers, some filling areas can only fill in letters, some filling areas can only be selected among predefined options, etc. Thus, the user can be effectively prevented from filling in errors in the filling-in area.
In some embodiments, in response to detecting a first update instruction for a first contract template, a rendering control corresponding to a first format is launched and the first contract template in the first format is exposed; changing the template content of the first contract template according to the received editing operation instruction to obtain a second contract template in the first format; a second contract template in the first format is saved.
As an example, some of the provisions in the first contract template may change over time, i.e., some of the provisions in the first contract template may have been revoked, and thus, in order to ensure the accuracy of the contract generated using the contract template, the first contract template may be updated in time. After the first contract template is updated, a second contract template may be obtained and the first contract template that has failed may be deleted, so that only valid contract templates are retained, and the amount of retention may be reduced. By this way of updating the already created template, the efficiency of generating a new contract template (second contract template) can be improved compared to creating a new one again with the initial contract template.
That is, when some of the specifications in the first contract template need to be changed in an appropriate amount according to the actual situation, or some of the specifications need to be newly added, or the like. At this time, a first update instruction can be executed on the first contract template, and the first contract template in the first format can be displayed, so that the first contract template is directly updated to obtain a new contract template, and therefore the creation efficiency of the contract template is improved without creating a new contract template by using the initial template.
As an example, a second contract template after the first contract template is updated at this time, the filling-in area may be redetermined, the definition rule may be input for each or a part of the filling-in area, and the like. In this way, a new contract template can be obtained conveniently.
In some embodiments, in response to determining that the newly added fill-in area is included in the template content of the second contract template, the second contract template in the second format may be presented, and the hint information may be presented at the newly added fill-in area.
Here, the hint information is used to instruct content definition of the newly added filling area.
As an example, after the filling area is newly added in the template content of the second contract template, prompt information is displayed, and the user may be prompted to perform content definition on the newly added filling area. By the method, the situation that the user forgets to limit the content of the newly added filling area can be avoided, so that the quality of the newly created second contract template can be ensured, meanwhile, the prompt information is actively displayed and only indicates to limit the content of the newly added filling area, so that the user can limit the content of the newly added filling area in time when updating the first contract template to obtain the second contract template, and the efficiency of limiting the content of the filling area can be improved.
In some implementations, in response to receiving a second update instruction for the first contract template, a rendering control corresponding to the first format is launched and a first contract template copy of the first format is presented; changing the template content of the first contract template copy according to the received editing operation instruction to obtain a third contract template in the first format; a third contract template in the first format is saved.
As an example, some scenarios may be very similar to the scenarios of the first contract template, so that only minor modifications may be required to complete a new contract template based on the first contract template. Therefore, at this time, the second updating instruction can be executed on the first contract template, so that the copy of the first contract template can be displayed, and the copy of the first contract template can be changed to generate a third contract template. That is, the first contract template and the third contract template may be included in the filling system at this time.
It should be noted that, the first update instruction and the second update instruction are different, when the first contract template is displayed, the display interface may display the first update control and the second update control, when the trigger operation for the first update control is detected, the user may be represented to input the first update instruction, and when the trigger operation for the second update control is detected, the user may be represented to input the second update instruction. Of course, in the specific embodiment, how to input the first update instruction and the second update instruction specifically may be set according to the actual situation, and the specific input modes of the first update instruction and the second update instruction are not limited herein, and only need to be reasonably set according to the actual situation.
In order to further understand the ideas provided in this application, a further specific description of the implementation of the present invention is made below in terms of the SaaS platform of the Spring Cloud micro-service system. As shown in fig. 3A, fig. 3A is a schematic architecture diagram of a SaaS platform of the Spring Cloud micro service system, where the SaaS platform may include a presentation layer, a service layer, and a data layer. The presentation layer may be used to present the contract template in the first format and the contract template in the second format. And the service layer may be used to perform document online editing, document parsing (conversion between the first format and the second format, creation of a contract template copy for a contract template, etc.), placeholder parsing (determining filling areas), template services (executing content definition instructions, binding definition rules with filling areas, etc.). And the data layer can be used for associating various data.
Reference may be made to the partial core table relationship diagram of the database shown in fig. 3B to facilitate an understanding of the association of various data in the data layer. As shown in fig. 3, the data layer may include four MySQL database core tables, which are a template table, a template_custom field value table, and a file_info; and two MongoDB database core tables, namely a WordDocument (Word document table) and a DraftDocument (Draft document table).
As an example, the template table stores templates and their placeholder information, an id field, i.e., a unique identification id of the template, a placeholder_regex field stores a regular expression for parsing the agreed placeholders in the template text, a placeholders field stores system placeholders in the template text, a relation of the system placeholders and their binding fields is stored in JSON format, and a file_id field stores a unique identification id of the template file, associated with an id field of the file_info table.
As an example, the template_custom_field table stores form field information of a template, an id field, that is, a unique identification id of a template form field, and a template_id field is associated with an id field of the template table, and a field_type field stores a type of the template form field.
As an example, the template_customer_field_value table stores form field value information of the template, an id field is a unique identification id of a template form field value, the template_id field is associated with an id field of the template table, the field_id field is associated with an id field of the template_customer_field table, and a business_id field is a value filled in the template form field, which is a main key of a contract generated using the template.
As an example, the file_info table stores template file information, an id field, i.e., a unique identification id of a file, and a file_key field stores a key of the file, associated with a file key in the object storage service.
As an example, the WordDocument table stores JSON format data of the template docx file, the file_key field is associated with the file_key of the file_info, the content stores ooxml.json data of the JSON format after the template docx file is parsed by the Apache POI frame, the ooxml is Office Open XML, an electronic file specification compressed by the ZIP format based on XML, and docx is a file suffix name based on the specification.
As an example, the draft document table stores JSON format data of a template docx file, a file_key field is associated with a file_key of file_info, and content stores JSON format data that is transferred from ooxml.json data to draft.json, which can be supported and rendered by a draft.json component, which is a rich text editor of Facebook open source.
Further referring to fig. 3B, when a template needs to be made, editing of a template text can be selected to be completed locally, the template text can be saved into a docx format file and then uploaded to a system, or a blank template text can be directly created through the system, and then the document online editing service (rendering control in a first format is started) provided by the system is used, so that editing of the template text can be completed continuously in the template text editing view. When the template text is edited, when a filling area needs to be added in the template text, only a predefined placeholder in the template text is needed. The system can store the docx format file of the template text in the object storage service; recording the file information in a file_info table, wherein a file_key field points to a file unique identification key of an object storage service; the template information is recorded in the template table, and the file_id field points to the id field of the file_info.
Further, after the template text editing view completes the template text editing, the template text editing view can be switched to the template field binding view, and the trigger system analyzes the template text. The system can read the template information from the template table, read the template file information from the file_info table through the template.file_id field, read the docx format file stream of the template file from the object storage service through the file_info.file_key field, and analyze the file stream by using an Apache POI document analysis framework to convert the file stream into formatted data which can be operated by a program. The system can use the template.placeholder_regex field to perform full text regular matching on the template text, analyze the contracted placeholders in the template text, and replace the contracted placeholders with the system placeholders by using plain text replacement. The system placeholders contain unique identification ids, and all the system placeholders and expansion information thereof are stored in a template. The contracted placeholders in the template text are all replaced with system placeholders at this time. The system can write the template text at the moment into a file stream through an Apache POI document analysis framework, store the file stream into an object storage service and cover the original template file; meanwhile, the system can also convert the template text at the moment into the ooxml.json data in the JSON format, and store the ooxml.json data in a WordDocument table of the MongoDB database, wherein the WordDocument.file_key field is consistent with the file_info.file_key field. And then, the system converts the ooxml.json data in the JSON format into draft.json data in the JSON format, and stores the draft.file_key field and the file_info.file_key field in a draft document table of the MongoDB database.
Further, after the system has completed parsing the template text, it can switch to the template field binding view. The system can read the template information from the template table, read the template file information from the file_info table through the template.file_id field, and read the draft.json data of the draft document table from the mongdb database through the file_info.file_key field. And the draft. Json data can be rendered through the draft. Js component, the template text is restored in the template field binding view, and the filling areas can be rendered in the template text according to the system placeholders in the template text, while the filling areas can be provided with the capability of binding fields (i.e. corresponding content defining instructions can be input for the filling areas). Before the content definition is performed for the filling area in the template text, a form field can be newly created for the template, and the newly created template form field is stored in the template_custom_field table, wherein the field_type field stores the type of the field. After the template form field is newly built, the filling area in the template text can be associated with the template form field, and the system stores the mapping relation between the system placeholders corresponding to the filling area and the template form field in the placeholders field of the template form. At this time, template field binding is completed, and template online manufacturing flow is completed.
Further, if an edit update to an existing template is required at this time, a switch may be made to the template text edit view. The system reads the template information from the template table, reads the template file information from the file_info table through the template.file_id field, reads the docx format file stream of the template file from the object storage service through the file_info.file_key field, and provides an editing function through the document online editing service. If the old filling area needs to be deleted, the system placeholder needs to be entirely deleted; if a new fill-in area needs to be inserted, a predefined placeholder is inserted (underlined, brackets, etc.); if other contents of the template text need to be edited, the template text is edited. The edited file will be saved in the object store service with the overlay. After completing the editing and updating of the template, the template can be switched to a template field binding view, and the system can be triggered to analyze the template text. The system analyzes a new filling area through the increment of the template. Placeholder_regex field, if the original filling area is not deleted, the original information is kept unchanged, and the information of the filling area (the content definition rule of the newly added filling area, the placeholder information of the filling area and the like) is updated into the template. Placeholders field. Meanwhile, the system re-analyzes the ooxml.json data and the draft.json data according to the updated template text, and the data are covered and stored in a MongoDB database. After that, the updated draft. Json data can be rendered through the draft. Js component, and then content definition can be performed again on all filling areas in the template text in the template field binding view, and the mapping relation between the new system placeholders and the template form fields is updated to the placeholders fields of the template table. At this point the template is re-edited and updated. It should be noted that if the template in the draft state is edited, the editing operation is performed on the original template; if the edited template is released, the system will make a deep copy of the original template to obtain a new template, and the editing operation is performed on the new template.
Further, after the template creation is completed, the contracted text may be generated using the template. And can select the applicable template to initially combine with the draft according to the business scene, and enter the contract editing view. The system reads the template information from the template table, reads the template file information from the file_info table through the template.file_id field, and reads the draft.json data of the draft document table from the mongdb database through the file_info.file_key field. And the draft. Json data can be rendered through the draft. Js component, the template text is restored in the contract editing view, and filling areas are rendered in the template text according to the system placeholders in the template text, so that the capability of filling contents in the filling areas is provided for filling staff. And restrict the filling staff to fill in these filling areas only and not edit other contents of the template text. Meanwhile, the system obtains the type of the template field through the field_type field in the template_custom_field table, and obtains the association relation between the system placeholders and the template field through the placeholders field in the template table, so that the field content (such as text, numbers or date) which can be filled in by a filling area in the template text is restrained. After filling in the filling area in the template text, the filled content is stored in a template_customer_field_value table by the system, wherein a template_id field is the template id, a field_id field is the template form field id, a business_id field is the contract main key, and a value field is the filled content. After the filling area is filled in the template text, the online contract editing flow is completed.
Further, after submitting the final contract generated by the contract draft, at this time, the system may read the template information from the template table, obtain the association relationship between the system placeholders and the template fields through the placeholders field, and then read the template field information from the template_customer_field table and the template_customer_field_value table, so as to obtain the association relationship between the template fields and the template field values, thereby obtaining the template field values filled in by each system placeholder. The system can read the template file information from the file_info table through the template file_id field, then read the docx format file stream of the template file from the object storage service through the file_info field, and analyze the file stream by using an Apache POI document analysis framework to convert the file stream into formatted data which can be operated by a program. The system may parse out the system placeholders in the template text and replace them with plain text to replace them with the corresponding template field values. The system placeholders in the template text are all replaced with corresponding template field values at this time. The system writes the template text at the moment into a file stream through an Apache POI document analysis framework, and stores the file stream into an object storage service, wherein the obtained file is the template text after filling of a filling area is completed, namely a contract text. Since only the docx format file of the template text originally stored in the object storage service is subjected to plain text substitution twice, the obtained contract text is undistorted relative to the template text, and the undistorted contract text generation flow is completed.
With further reference to fig. 4, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of a text processing apparatus, where the embodiment of the apparatus corresponds to the embodiment of the text processing method shown in fig. 1, and the apparatus is particularly applicable to various electronic devices.
As shown in fig. 4, the text processing apparatus of the present embodiment includes: a display unit 401, configured to display a first contract template copy in a second format, where the first contract template copy is generated according to a first contract template, the first contract template copy is the same as the first contract template in content, and the first contract template includes at least one filling area; the first contract template of the second format is obtained based on analysis of the first contract template of the first format, the first format is a format adopted by editing the first contract template, and the second format is a format adopted by filling in a copy of the first contract template;
a determining unit 402, configured to determine, in response to detecting a first filling operation for a first contract template copy in a second format that is presented, a first filling area and a first filling content corresponding to the first filling operation, and add the first filling content to a first filling area in the first contract template copy in the first format.
In some embodiments, the display unit 401 is specifically further configured to: and displaying the first filling area and the associated content corresponding to the first filling area in a second format, wherein the associated content corresponding to the first filling area is used for indicating the content filling of the first filling area.
In some embodiments, the display unit 401 is specifically further configured to: determining a first number of characters before the first fill-in area and a second number of characters after the first fill-in area based on a position of the first fill-in area in the first contract template copy; and obtaining the associated content of the first filling area according to the determined characters.
In some embodiments, the display unit 401 is specifically further configured to: in response to receiving a first contract template in a first format, determining the at least one fill-in area in the first contract template according to an area in which a predefined character is located in the first contract template.
In some embodiments, the display unit 401 is specifically further configured to: converting the format of the first contract template from the first format to the second format, and displaying the converted first contract template in the second format; in response to receiving a definition instruction for a filling area presented in a second format, storing a definition rule indicated by the definition instruction in correspondence with the filling area; wherein the defining rule at least comprises any one of the following: the content that the filling area can input, the character type that the filling area can input, the number of characters that the filling area can input.
In some embodiments, the apparatus further includes an updating unit 403, configured to, in response to receiving a first update instruction for the first contract template, initiate a rendering control corresponding to the first format, and expose the first contract template in the first format; according to the received instruction of the editing operation, the template content of the first contract template is changed, and a second contract template in a first format is obtained; a second contract template in the first format is saved.
In some embodiments, the updating unit 403 is specifically further configured to: and in response to determining that the template content of the second contract template comprises the newly added filling area, displaying the second contract template in the second format, and displaying prompt information at the newly added filling area, wherein the prompt information is used for indicating the content definition of the newly added filling area.
In some embodiments, the updating unit 403 is specifically further configured to: responsive to receiving a second update instruction for the first contract template, starting a rendering control corresponding to the first format, and displaying a first contract template copy of the first format; according to the received instruction of the editing operation, the template content of the first contract template copy is changed, and a third contract template in a first format is obtained; a third contract template in the first format is saved.
In some embodiments, the display unit 402 is specifically further configured to: and displaying the first filling content in a first filling area in a second format.
In some embodiments, the presentation interface includes a first presentation area in which a first copy of the contract template in a second format is presented and a second presentation area in which a content editing area corresponding to the fill-in area is presented; the content editing area is used for receiving input filling content.
In some embodiments, the filling received by the content editing area is presented in both the content editing area and the corresponding filling area.
Referring to fig. 5, fig. 5 illustrates an exemplary system architecture in which a text processing method of an embodiment of the present disclosure may be applied.
As shown in fig. 5, the system architecture may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 may be used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The terminal devices 501, 502, 503 may interact with the server 505 via the network 504 to receive or send messages or the like. Various client applications, such as a web browser application, a search class application, a news information class application, may be installed on the terminal devices 501, 502, 503. The client application in the terminal device 501, 502, 503 may receive the instruction of the user and perform the corresponding function according to the instruction of the user, for example, adding the corresponding information in the information according to the instruction of the user.
The terminal devices 501, 502, 503 may be hardware or software. When the terminal devices 501, 502, 503 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, smart desklamps, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture experts compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture experts compression standard audio layer 4) players, laptop and desktop computers, and the like. When the terminal devices 501, 502, 503 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 505 may be a server that provides various services, for example, receives information acquisition requests sent by the terminal devices 501, 502, 503, and acquires presentation information corresponding to the information acquisition requests in various ways according to the information acquisition requests. And related data showing the information is sent to the terminal devices 501, 502, 503.
It should be noted that, the text processing method provided by the embodiment of the present disclosure may be executed by the terminal device, and accordingly, the text processing apparatus may be disposed in the terminal devices 501, 502, 503. Further, the information processing method provided by the embodiment of the present disclosure may also be executed by the server 505, and accordingly, the information processing apparatus may be provided in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 6, a schematic diagram of a configuration of an electronic device (e.g., a terminal device or server in fig. 5) suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM602, and the RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: displaying a first contract template copy in a second format, wherein the first contract template copy is generated according to a first contract template, the first contract template copy is identical to the first contract template in content, and the first contract template comprises at least one filling area; the first contract template of the second format is obtained based on analysis of the first contract template of the first format, the first format is a format adopted by editing the first contract template, and the second format is a format adopted by filling in a copy of the first contract template; in response to detecting a first filling operation for a first contract template copy in a second format being presented, determining a first filling area and a first filling content corresponding to the first filling operation, and adding the first filling content to the first filling area in the first contract template copy in the first format.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit is not limited to the unit itself in some cases, and for example, the presentation unit 401 may also be described as "a unit for presenting text information".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (13)

1. A text processing method, comprising:
displaying a first contract template copy in a second format, wherein the first contract template copy is generated according to a first contract template, the first contract template copy is identical to the first contract template in content, and the first contract template comprises at least one filling area; the first contract template of the second format is obtained based on analysis of the first contract template of the first format, the first format is a format adopted by editing the first contract template, and the second format is a format adopted by filling in a copy of the first contract template;
in response to detecting a first filling operation for a first contract template copy in a second format that is presented, determining a first filling area and a first filling content corresponding to the first filling operation, and adding the first filling content to the first filling area in the first contract template copy in the first format;
Wherein the exposing the first contract template copy in the second format includes:
and displaying the first filling area and the associated content corresponding to the first filling area in a second format, wherein the associated content corresponding to the first filling area is used for indicating the content filling of the first filling area.
2. The method of claim 1, wherein the associated content corresponding to the first fill area is determined by:
determining a first number of characters before the first fill-in area and a second number of characters after the first fill-in area based on a position of the first fill-in area in the first contract template copy;
and obtaining the associated content of the first filling area according to the determined characters.
3. The method of claim 1, wherein prior to the exposing the first contract template copy in the second format, the method further comprises:
in response to receiving a first contract template in a first format, determining the at least one fill-in area in the first contract template according to an area in which a predefined character is located in the first contract template.
4. A method according to claim 3, characterized in that the method further comprises:
Converting the format of the first contract template from the first format to the second format, and displaying the converted first contract template in the second format;
in response to receiving a definition instruction for a filling area presented in a second format, storing a definition rule indicated by the definition instruction in correspondence with the filling area;
wherein the defining rule at least comprises any one of the following: the content that the filling area can input, the character type that the filling area can input, the number of characters that the filling area can input.
5. The method according to claim 1, wherein the method further comprises:
in response to receiving a first update instruction for a first contract template, starting a rendering control corresponding to a first format, and displaying the first contract template in the first format;
according to the received instruction of the editing operation, the template content of the first contract template is changed, and a second contract template in a first format is obtained;
a second contract template in the first format is saved.
6. The method according to claim 5, characterized in that the method comprises;
and in response to determining that the template content of the second contract template comprises the newly added filling area, displaying the second contract template in the second format, and displaying prompt information at the newly added filling area, wherein the prompt information is used for indicating the content definition of the newly added filling area.
7. The method according to claim 1, wherein the method further comprises:
responsive to receiving a second update instruction for the first contract template, starting a rendering control corresponding to the first format, and displaying a first contract template copy of the first format;
according to the received instruction of the editing operation, changing the template content of the first contract template copy to obtain a third contract template in a first format;
a third contract template in the first format is saved.
8. The method according to claim 1, wherein the method further comprises:
and displaying the first filling content in a first filling area in a second format.
9. The method of claim 1, wherein the presentation interface comprises a first presentation area in which the first contract template copy in the second format is presented and a second presentation area in which the content editing area corresponding to the fill-in area is presented;
the content editing area is used for receiving input filling content.
10. The method of claim 9, wherein the filling received by the content editing area is presented in both the content editing area and the corresponding filling area.
11. A text processing apparatus, comprising:
the display unit is used for displaying a first contract template copy in a second format, wherein the first contract template copy is generated according to a first contract template, the first contract template copy is identical to the first contract template in content, and the first contract template comprises at least one filling area; the first contract template of the second format is obtained based on analysis of the first contract template of the first format, the first format is a format adopted by editing the first contract template, and the second format is a format adopted by filling in a copy of the first contract template;
a determining unit, configured to determine a first filling area and a first filling content corresponding to a first filling operation in response to detecting the first filling operation for the first contract template copy in the second format, and add the first filling content to the first filling area in the first contract template copy in the first format;
the display unit is specifically configured to display a first filling area and associated content corresponding to the first filling area in a second format, where the associated content corresponding to the first filling area is used to indicate content filling for the first filling area.
12. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-10.
13. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-10.
CN202111147430.2A 2021-09-28 2021-09-28 Text processing method and device and electronic equipment Active CN113779952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111147430.2A CN113779952B (en) 2021-09-28 2021-09-28 Text processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111147430.2A CN113779952B (en) 2021-09-28 2021-09-28 Text processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113779952A CN113779952A (en) 2021-12-10
CN113779952B true CN113779952B (en) 2024-03-01

Family

ID=78854485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111147430.2A Active CN113779952B (en) 2021-09-28 2021-09-28 Text processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113779952B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945212A (en) * 2011-09-11 2013-02-27 微软公司 Pooled partition layout and representation
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
CN107203574A (en) * 2016-03-18 2017-09-26 伊姆西公司 Data management and the polymerization of data analysis
CN109240625A (en) * 2018-08-09 2019-01-18 深圳市口袋网络科技有限公司 A kind of document structure tree method, apparatus and computer storage medium suitable for printing
CN111259644A (en) * 2018-11-30 2020-06-09 阿里巴巴集团控股有限公司 Rich text processing method, editor, equipment and storage medium
CN112765516A (en) * 2020-12-28 2021-05-07 微民保险代理有限公司 Page content display method and device, storage medium and electronic device
CN113407748A (en) * 2021-05-11 2021-09-17 银雁科技服务集团股份有限公司 Important blank certificate management method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140164906A1 (en) * 2012-12-10 2014-06-12 Parlant Technology, Inc. System and method for displaying content on mobile devices
US10838767B2 (en) * 2016-09-12 2020-11-17 International Business Machines Corporation Distributed computing utilizing a recovery site

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945212A (en) * 2011-09-11 2013-02-27 微软公司 Pooled partition layout and representation
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
CN107203574A (en) * 2016-03-18 2017-09-26 伊姆西公司 Data management and the polymerization of data analysis
CN109240625A (en) * 2018-08-09 2019-01-18 深圳市口袋网络科技有限公司 A kind of document structure tree method, apparatus and computer storage medium suitable for printing
CN111259644A (en) * 2018-11-30 2020-06-09 阿里巴巴集团控股有限公司 Rich text processing method, editor, equipment and storage medium
CN112765516A (en) * 2020-12-28 2021-05-07 微民保险代理有限公司 Page content display method and device, storage medium and electronic device
CN113407748A (en) * 2021-05-11 2021-09-17 银雁科技服务集团股份有限公司 Important blank certificate management method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Task decomposition, dynamic role assignment, and low-bandwidth communication for real-time strategic teamwork;Stone Peter 等;《Artificial Intelligence》;第110卷(第2期);241-273 *
Workflow-and agent-based cognitive flow management for distributed team cooperation;Zhuge Hai;《Information & Management》;第40卷(第5期);419-429 *
基于PDM的图文档管理系统的研究与开发;巩佳佳;《中国优秀硕士学位论文全文数据库信息科技辑》(第08期);I138-159 *
基于移动终端的白板交互应用软件的设计与实现;马标;《中国优秀硕士学位论文全文数据库信息科技辑》(第06期);I138-513 *

Also Published As

Publication number Publication date
CN113779952A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN111274760B (en) Rich text data processing method and device, electronic equipment and computer storage medium
CN110780874B (en) Method and device for generating information
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
CN110554874A (en) Method and device for reusing webpage components of SaaS platform
CN109815448B (en) Slide generation method and device
CN110263279B (en) Page generation method and device, electronic equipment and computer readable storage medium
CN112487331A (en) Page generation method and device, storage medium and electronic equipment
CN113031946A (en) Method and device for rendering page component
JP2023520446A (en) Video special effect configuration file generation method, video rendering method and apparatus
CN111258998A (en) Data verification method, device, medium and electronic equipment
CN110618811B (en) Information presentation method and device
CN116860286A (en) Page dynamic update method, device, electronic equipment and computer readable medium
CN113779952B (en) Text processing method and device and electronic equipment
CN111124541A (en) Configuration file generation method, device, equipment and medium
CN112328841B (en) Document processing method and device, electronic equipment and storage medium
CN115017149A (en) Data processing method and device, electronic equipment and storage medium
CN114626332A (en) Content display method and device and electronic equipment
CN110780898B (en) Page data upgrading method and device and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111753238A (en) Data mapping method and device and electronic equipment
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN111008178A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN116561015B (en) Map application testing method, electronic device and computer readable medium
CN116956846B (en) Information processing method, apparatus, electronic device 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