Protocol text difference identification method and device, medium and equipment
By templated and variable processing of protocol text, the target protocol template is used to extract variable contents of historical and current protocol text, the accurate identification of protocol text differences is achieved, and the problem of inability to identify protocol text differences in the existing technology is solved. Improved efficiency and accuracy of differential identification.
Patent Information
- Application Number
- CN202411534844.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-10
AI Technical Summary
The prior art cannot flexibly and accurately determine the differences between the current version protocol and any historical version protocol, especially in the process of updating privacy protocols for Internet applications, and cannot quickly identify the adjustments and differences in historical versions of content paragraphs.
By extracting variable contents of historical and current protocol texts based on the predetermined target protocol template, obtaining the first and second variable texts, and performing differential identification, determining the difference text between the two to realize templated protocol text and variable processing to accurately identify differences in protocol text.
It improves the efficiency and accuracy of protocol text differences recognition, and can flexibly identify differences between different versions of protocols, solving the problem that the current version and historical version differences cannot be accurately determined in the prior art.
Smart Images

Figure CN119294377A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the financial field and the protocol text recognition field, and in particular to a protocol text difference recognition method, device, medium and equipment. Background Art
[0002] With the continuous development of network technology, various Internet applications have emerged. At present, the privacy protocols of various Internet applications need to update the version of the protocol in a timely manner after the business functions and the collection of personal information change, and such protocols generally need to be approved by internal review before they can be put online.
[0003] In the existing protocol review method, the protocol document is reviewed to mark the change points / modification points, so that the reviewer can quickly locate the changed content of this agreement to improve the review efficiency. However, this solution cannot accurately identify the adjustment of the content paragraphs before and after as the same content. In addition, the reviewer cannot view the differences between the current version and other historical versions.
[0004] Therefore, there is an urgent need for a protocol text difference identification method to solve the problem in the prior art that the difference between the current version of the protocol and any historical version of the protocol cannot be flexibly and accurately determined. Summary of the invention
[0005] In view of this, the present invention provides a method, device, medium and equipment for identifying differences in protocol texts, the main purpose of which is to solve the current problem of being unable to flexibly and accurately determine the differences between the current version of the protocol and any historical version of the protocol.
[0006] To solve the above problems, the present application provides a method for identifying differences in protocol texts, including:
[0007] Based on a predetermined target protocol template, performing variable content extraction processing on a historical protocol text of a target application to obtain a first variable text corresponding to the historical protocol text;
[0008] Based on the target protocol template, performing variable content extraction processing on the current protocol text of the target application to obtain a second variable text corresponding to the current protocol text;
[0009] Difference recognition is performed based on the first variable text and the second variable text, and a difference text between the second variable text and the first variable text is determined to obtain a difference recognition result.
[0010] In order to solve the above problems, the present application provides a protocol text difference identification device, comprising:
[0011] A first extraction module, configured to perform variable content extraction processing on a historical protocol text of a target application based on a predetermined target protocol template, to obtain a first variable text corresponding to the historical protocol text;
[0012] A second extraction module, configured to perform variable content extraction processing on the current protocol text of the target application based on the target protocol template, to obtain a second variable text corresponding to the current protocol text;
[0013] The difference recognition module is used to perform difference recognition based on the first variable text and the second variable text, determine the difference text between the second variable text and the first variable text, and obtain a difference recognition result.
[0014] To solve the above problems, the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned protocol text difference identification methods are implemented.
[0015] To solve the above problems, the present application provides a computer device, comprising at least a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program on the memory, the steps of any of the above-mentioned methods for identifying differences in protocol texts are implemented.
[0016] A protocol text difference identification method, device, medium and equipment in the present application can quickly and accurately extract the content of the current protocol text of the current version and the historical protocol text of any version by utilizing the target protocol template, thereby realizing the template and variable processing of the protocol text, so that the solidified content that does not need to be changed in the protocol text can be screened out and the variable text that may be changed can be obtained. Subsequently, by comparing the variable texts, the difference between the current protocol text and the historical protocol text can be quickly and accurately determined, thereby improving the efficiency and accuracy of difference identification, and realizing the difference identification between different versions of protocol texts, solving the problem in the prior art that the difference between the current version of the protocol and any historical version of the protocol cannot be flexibly and accurately determined.
[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0019] Figure 1 This is a flow chart of a method for identifying differences in protocol texts according to an embodiment of the present application;
[0020] Figure 2 This is a structural block diagram of a device for identifying differences in protocol texts according to another embodiment of the present application;
[0021] Figure 3 This is a structural block diagram of a computer device according to an embodiment of the present application;
[0022] Figure 4 This is a structural block diagram of another computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0024] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0025] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0026] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0027] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0028] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0029] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0030] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0031] The embodiment of the present application provides a method for identifying differences in protocol texts, which can be applied to computer devices such as terminals and servers. Taking the application of various application servers in the financial field as an example, the application server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Figure 1 As shown, the method in this embodiment includes the following steps:
[0032] Step S101, based on a predetermined target protocol template, performing variable content extraction processing on a historical protocol text of a target application to obtain a first variable text corresponding to the historical protocol text;
[0033] In this step, the target application may specifically be a financial application, an insurance application, a shopping application, and the like. The protocol text in this embodiment may specifically be a privacy protocol text, that is, a privacy protocol involving user privacy information. In the specific implementation process, a target protocol template may be created in advance based on each sample protocol of the target application, or a target protocol template may be created based on each sample protocol corresponding to different applications. Among them, the sample protocol may be each historical protocol corresponding to the target application. In creating a target protocol template, specifically when creating a target protocol template based on each sample protocol, specifically, first determine the fixed protocol items (protocol items that do not require content modification) and the variable protocol items (protocol items that require content modification) based on each sample protocol template; finally, create a target protocol template based on the variable protocol item, that is, use the field corresponding to the variable protocol item as a variable field, thereby creating a target protocol template based on the variable field.
[0034] After the target protocol template is created, the variable content extraction process can be performed on the historical protocol text according to the variable fields in the target protocol template, so as to obtain the historical protocol items corresponding to each variable field, that is, obtain the first variable text.
[0035] Step S102, based on the target protocol template, performing variable content extraction processing on the current protocol text of the target application to obtain a second variable text corresponding to the current protocol text;
[0036] In the specific implementation process of this step, the historical protocol text can be processed for variable content extraction according to the variable fields in the target protocol template, so as to obtain the current protocol items corresponding to each variable field, that is, obtain the second variable text.
[0037] Step S103: performing difference recognition based on the first variable text and the second variable text, determining a difference text between the second variable text and the first variable text, so as to obtain a difference recognition result.
[0038] In this step, after obtaining the first variable text and the second variable text, the first variable text and the second variable text can be compared to determine the difference between the two, that is, to obtain the difference text.
[0039] The protocol text difference identification method in this embodiment, by utilizing the target protocol template, can quickly and accurately extract the content of the current protocol text of the current version and the historical protocol text of any version, thereby realizing the template and variable processing of the protocol text, so that the solidified content that does not need to be changed in the protocol text can be screened out and the variable text that may be changed can be obtained. Subsequently, by comparing the variable texts, the difference between the current protocol text and the historical protocol text can be quickly and accurately determined, thereby improving the efficiency and accuracy of difference identification, and realizing the difference identification between different versions of protocol texts, solving the problem in the prior art that the difference between the current version of the protocol and any historical version of the protocol cannot be flexibly and accurately determined.
[0040] Based on the above embodiment, another embodiment of the present application provides a method for identifying differences in protocol texts, such as Figure 2 As shown, the following steps are included:
[0041] Step S201, pre-establishing the target protocol template;
[0042] During the specific implementation of this step, several sample protocol texts of the target application can be obtained in advance; based on the affiliation of the various protocols in each sample protocol text and the modification frequency of the protocol content in each protocol, a total modification protocol item of several modifiable protocols and sub-modification protocol items corresponding to each total modification protocol item are determined; based on the first variable field of each of the total modification protocol items and the second variable field of each sub-modification protocol item, the target protocol template is constructed.
[0043] For example, the target application corresponds to two protocol texts, sample protocol text 1 and sample protocol text 2. Among them, sample protocol text 1 includes protocol item A, protocol item B1 and protocol item C1, and sample protocol text 2 includes protocol item A, protocol item B2 and protocol item C2. Among them, the protocol content in protocol item A in sample protocol text 1 is exactly the same as the protocol content in protocol item A in sample protocol text 2, so it can be determined that protocol item A is a fixed protocol content that does not need to be modified. Since, although protocol item B1 in sample protocol text 1 and protocol item B2 in sample protocol text 2 both involve protocol item B, the specific protocol contents involved are different, it can be determined that protocol item B is a variable protocol content that needs to be modified, that is, protocol item B can be determined as a total modified protocol item; similarly, it can be determined that protocol item C is a variable protocol content that needs to be modified, that is, protocol item C can be determined as a total modified protocol item.
[0044] Furthermore, since the total modified protocol item B contains several sub-protocol items, not all sub-protocol items need to be adjusted according to the protocol version, and thus it is necessary to further determine the sub-modified protocol items that need to be modified from the sub-protocol items in the total modified protocol item B, for example, to determine that sub-protocol items b1 and b2 in the total modified protocol item B are sub-modified protocol items. Similarly, based on the total modified protocol item C, sub-protocol items c1 and c3 can be determined as sub-modified protocol items from the sub-protocol items in the total modified protocol item C. After determining each total modified protocol item and each sub-modified protocol item, the field corresponding to each total modified protocol item can be used as the first variable field, and the field corresponding to each sub-modified protocol item can be used as the second variable field. Finally, the target protocol template is constructed based on each first variable field and each second variable field.
[0045] Step S202, based on each first variable field in the target protocol template, performing variable content extraction processing on the protocol content in the historical protocol text to obtain the total historical protocol items corresponding to each first variable field;
[0046] In this step, each first variable field in the target protocol template can be used as a key field, and then each protocol item in the historical protocol text can be matched to obtain the historical total protocol items corresponding to the key field / first variable field. For example, the target protocol template has the first variable fields "Basic Business Function (1)" and "Basic Business Function (2)", from which the following two historical total protocol items can be extracted:
[0047] The first historical total agreement item corresponding to "Basic Business Function (1)":
[0048] Business processing scenario: register / login account
[0049] Purpose of processing: To register or log in to your account
[0050] Processing method: collection and use
[0051] Necessary personal information scope: Name, created password
[0052] Scope of non-essential personal information: Not involved
[0053] The second historical general agreement item corresponding to “Basic Business Function (2)”:
[0054] Business processing scenario: real-name authentication
[0055] Purpose of processing: To confirm whether the registration application is made by the applicant
[0056] Processing method: collection and use
[0057] Necessary personal information scope: Name
[0058] Scope of non-essential personal information: Not involved
[0059] Step S203, based on the second variable fields corresponding to the first variable fields, performing variable content extraction processing on the agreement content in each of the historical total agreement items to obtain the historical sub-agreement items corresponding to the second variable fields;
[0060] In this step, taking the first variable field as "basic business function (1)" as an example, the second variable field corresponding to the first variable field includes: business processing scenario, processing purpose, processing method, necessary personal information scope, non-essential personal information scope, etc. Therefore, several historical sub-protocol items can be determined from the first historical total agreement item based on the above-mentioned second variable fields. For example, the first historical sub-protocol item is determined to be: registration / login account; the second historical sub-protocol item is: used to register or log in to your account; the third historical sub-protocol item is: collection, use; the fourth historical sub-protocol item is: name, created password; the fifth historical sub-protocol item is: not involved. Similarly, the historical sub-protocol items corresponding to the first variable field can be extracted based on other first variable fields and the second variable field corresponding to the first variable field. For example, based on the first variable field "basic business function (2)", the historical sub-protocol items corresponding to the historical total agreement item "basic business function (2)" are extracted.
[0061] Step S204, constructing and obtaining the first variable text based on each of the historical total agreement items and each of the historical sub-agreement items;
[0062] In this step, after obtaining each historical total agreement item and each historical sub-agreement item, the first variable text can be constructed based on each historical total agreement item, each historical sub-agreement item and the association relationship between the historical total agreement item and the historical sub-agreement item.
[0063] Step S205, based on each first variable field in the target protocol template, performing variable content extraction processing on the protocol content in the current protocol text to obtain the current total protocol items corresponding to each first variable field;
[0064] In this step, each first variable field in the target protocol template can be used as a key field, and then each protocol item in the current protocol text can be matched to obtain the current total protocol item corresponding to the key field / first variable field. For example, the target protocol template has the first variable fields "Basic Business Function (1)" and "Basic Business Function (2)", from which the following two current total protocol items can be extracted:
[0065] The first current general agreement item corresponding to “Basic Business Function (1)”:
[0066] Business processing scenario: register / login account
[0067] Purpose of processing: To register or log in to your account
[0068] Processing method: collection and use
[0069] Necessary personal information scope: name, created password, mobile phone number
[0070] Non-essential personal information scope: verification code
[0071] The second current general agreement item corresponding to “Basic business function (2)”:
[0072] Business processing scenario: real-name authentication
[0073] Purpose of processing: To confirm whether the registration application is made by the applicant
[0074] Processing method: collection and use
[0075] Necessary personal information scope: name, ID number, facial recognition features
[0076] Scope of non-essential personal information: Not involved
[0077] Step S206, based on the second variable fields corresponding to the first variable fields, performing variable content extraction processing on the protocol content in each of the current total protocol items to obtain the current sub-protocol items corresponding to the second variable fields;
[0078] In this step, taking the first variable field as "basic business function (1)" as an example, the second variable field corresponding to the first variable field includes: business processing scenario, processing purpose, processing method, necessary personal information scope, non-essential personal information scope, etc. Therefore, several previous sub-protocol items can be determined from the first current total agreement item based on the above-mentioned second variable fields. For example, the first current sub-protocol item is determined to be: registration / login account; the second current sub-protocol item is: used to register or log in to your account; the third current sub-protocol item is: collection, use; the fourth current sub-protocol item is: name, created password, mobile phone number; the fifth current sub-protocol item is: verification code. Similarly, the current sub-protocol item corresponding to the first variable field can be extracted based on other first variable fields and the second variable field corresponding to the first variable field. For example, based on the first variable field "basic business function (2)", the current sub-protocol item corresponding to the current total agreement item "basic business function (2)" is extracted.
[0079] Step S207, constructing and obtaining the second variable text based on each of the current general agreement items and each of the current sub-agreement items;
[0080] In this step, after obtaining each current general agreement item and each current sub-agreement item, the second variable text can be constructed based on the current general agreement item, each current sub-agreement item and the association relationship between the current general agreement item and the current sub-agreement item.
[0081] Step S208, based on each current total agreement item in the second variable text and each historical total agreement item in the first variable text, determine the deleted historical total agreement item in the first variable text, the newly added current total agreement item in the second variable text, and the modified current total agreement item in the current total agreement item;
[0082] In this embodiment, by matching each current total agreement item in the second variable text with each historical total agreement item in the first variable text, it is possible to quickly and accurately determine the current total agreement items that are added to the second variable text relative to the first variable text, and the historical total agreement items that are deleted from the first text relative to the second variable text. For example, the first variable field has four fields "A", "B", "C", and "D":
[0083] The first variable text includes: historical total agreement item A1, historical total agreement item B1, and historical total agreement item C1. Among them, historical total agreement item A1 corresponds to the first variable field "A", historical total agreement item B1 corresponds to the first variable field "B", and historical total agreement item C1 corresponds to the first variable field "C".
[0084] The second variable text includes: current total agreement item A1, current total agreement item B2, and historical total agreement item D1. Among them, the current total agreement item A2 corresponds to the first variable field "A", the current total agreement item C1 corresponds to the first variable field "C", and the current total agreement item D1 corresponds to the first variable field "D".
[0085] Therefore, by matching the first variable text and the second variable text, it can be determined that the current total agreement item newly added by the second variable text relative to the first variable text is D1, the historical total agreement item C1 deleted by the first variable text relative to the second variable text, the modified current total agreement item in the current total agreement item is the current total agreement item B2, and the current total agreement item A1 is the same as the historical total agreement item A1.
[0086] Step S209, based on the modified current total agreement item and the historical total agreement item corresponding to the modified current total agreement item, compare each current sub-agreement item in the current total agreement item with each historical sub-agreement item in the historical total agreement item to determine the deleted historical sub-agreement item in the historical sub-agreement item, the newly added current sub-agreement item in the current sub-agreement item, and the modified current sub-agreement item in the current sub-agreement item;
[0087] In this step, after determining the modified current total agreement item, that is, determining the current total agreement item B2, you can then obtain each current sub-agreement item (historical sub-agreement item b21, historical sub-agreement item b22...) in the current total agreement item B2, and at the same time obtain each historical sub-agreement item (historical sub-agreement item b11, historical sub-agreement item b12) in the historical current total agreement item B1, and compare them to determine the deleted historical sub-agreement items in the historical sub-agreement items, the newly added current sub-agreement items in the current sub-agreement items, and the modified current sub-agreement items in the current sub-agreement items. For example, the historical sub-agreement items of the historical total agreement item B1 include: historical sub-agreement item b1-1, historical sub-agreement item b1-2, historical sub-agreement item b1-3,
[0088] The current sub-protocol items of the current total agreement item B2 include: current sub-protocol item b2-1, current sub-protocol item b2-2', and current sub-protocol item b2-5. Therefore, by matching the historical sub-protocol items of the historical total agreement item B1 with the current sub-protocol items of the current total agreement item B2, it can be determined that the newly added current sub-protocol item is the current sub-protocol item b2-5, the deleted historical sub-protocol item b1-3, the modified current sub-protocol item in each current sub-protocol item is the current sub-protocol item b2-2', and the current sub-protocol item b2-1 is the same as the historical sub-protocol item b1-1.
[0089] Step S210, based on the deleted historical total agreement item, the newly added current total agreement item, the modified current total agreement item, the deleted historical sub-agreement item corresponding to the modified current total agreement item, the newly added current sub-agreement item corresponding to the modified current total agreement item, and the modified current sub-agreement item corresponding to the modified current total agreement item, determine the difference text to obtain the difference identification result.
[0090] In the present application, after obtaining the deleted historical total agreement items, the newly added current total agreement items, the modified current total agreement items, the deleted historical sub-agreement items corresponding to the modified current total agreement items, the newly added current sub-agreement items corresponding to the modified current total agreement items, and the modified current sub-agreement items corresponding to the modified current total agreement items, a difference text can be constructed based on these agreement items, and the difference text can be output in a predetermined manner to facilitate subsequent review by agreement reviewers, such as sending the difference text to a predetermined terminal device or mailbox.
[0091] In this embodiment, after obtaining the difference text, the current agreement text may be displayed in a predetermined display mode. For example, based on the newly added current general agreement item, the newly added current general agreement item, the newly added current sub-agreement item corresponding to the modified current general agreement item, and the modified current sub-agreement item corresponding to the modified current general agreement item in the difference text, the corresponding position in the current agreement text may be highlighted, and at the same time, based on the deleted historical general agreement item in the difference text and the deleted historical sub-agreement item corresponding to the modified current general agreement item, the deleted historical sub-agreement item may be displayed in the current agreement text in a deleted format.
[0092] The protocol text difference identification method in this embodiment, by utilizing the target protocol template, can quickly and accurately extract the content of the current protocol text of the current version and the historical protocol text of any version, thereby realizing the template and variable processing of the protocol text, so that the solidified content that does not need to be changed in the protocol text can be screened out and the variable text that may be changed can be obtained. Subsequently, by comparing the variable texts, the difference between the current protocol text and the historical protocol text can be quickly and accurately determined, thereby improving the efficiency and accuracy of difference identification, and realizing the difference identification between different versions of protocol texts, solving the problem in the prior art that the difference between the current version of the protocol and any historical version of the protocol cannot be flexibly and accurately determined.
[0093] In the specific implementation process of this embodiment, in order to make the difference identification result more accurate and reliable, before performing difference identification based on the first variable text and the second variable text, that is, before executing step S208, the historical total agreement items in the first variable text can also be sorted according to a predetermined arrangement order to obtain the sorted first variable text for difference identification; the current total agreement items in the second variable text can be sorted according to a predetermined arrangement order to obtain the sorted second variable text for difference identification. Specifically, the historical total agreement items corresponding to the first variable field can be sorted according to the predetermined order of each first variable field, and the current total agreement items corresponding to the first variable field can be sorted at the same time.
[0094] In this embodiment, by sorting the total agreement items in the first variable text and the second variable text, the matching process of subsequent historical total agreement items with the current total agreement items can be faster, and the matching results can be more accurate, avoiding the problem of inaccurate matching results due to disordered order, and laying the foundation for accurate identification of text differences.
[0095] Another embodiment of the present application provides a device for identifying differences in protocol texts, such as Figure 2 As shown, including:
[0096] A first extraction module 11 is used to perform variable content extraction processing on the historical protocol text of the target application based on a predetermined target protocol template to obtain a first variable text corresponding to the historical protocol text;
[0097] A second extraction module 12 is used to perform variable content extraction processing on the current protocol text of the target application based on the target protocol template to obtain a second variable text corresponding to the current protocol text;
[0098] The difference identification module 13 is used to perform difference identification based on the first variable text and the second variable text, determine the difference text between the second variable text and the first variable text, and obtain a difference identification result.
[0099] In the specific implementation process of this embodiment, the protocol text difference identification device also includes: a construction module for constructing a target protocol template, and the construction module is specifically used to: obtain several sample protocol texts of the target application; based on the affiliation of each protocol in each sample protocol text and the modification frequency of the protocol content in each protocol, determine the total modification protocol items of several modifiable protocols and the sub-modification protocol items corresponding to each total modification protocol item; based on the first variable field of each of the total modification protocol items and the second variable field of each sub-modification protocol item, construct the target protocol template.
[0100] In the specific implementation process of this embodiment, the first extraction module is specifically used to: based on the first variable fields in the target protocol template, perform variable content extraction processing on the protocol content in the historical protocol text to obtain the historical total protocol items corresponding to the first variable fields; based on the second variable fields corresponding to the first variable fields, perform variable content extraction processing on the protocol content in each historical total protocol item to obtain the historical sub-protocol items corresponding to the second variable fields; based on each historical total protocol item and each historical sub-protocol item, construct and obtain the first variable text.
[0101] In the specific implementation process of this embodiment, the second extraction module is specifically used to: based on the first variable fields in the target protocol template, perform variable content extraction processing on the protocol content in the current protocol text to obtain the current total protocol items corresponding to the first variable fields; based on the second variable fields corresponding to the first variable fields, perform variable content extraction processing on the protocol content in each current total protocol item to obtain the current sub-protocol items corresponding to the second variable fields; based on the current total protocol items and the current sub-protocol items, construct and obtain the second variable text.
[0102] In the specific implementation process of this embodiment, the difference recognition module is specifically used to: determine the deleted historical total agreement items in the first variable text, the newly added current total agreement items in the second variable text, and the modified current total agreement items in the current total agreement items based on the current total agreement items in the second variable text and the historical total agreement items in the first variable text; compare the current sub-agreement items in the current total agreement item with the historical sub-agreement items in the historical total agreement items based on the modified current total agreement items and the historical total agreement items corresponding to the modified current total agreement items, and determine the deleted historical sub-agreement items in the historical sub-agreement items, the newly added current sub-agreement items in the current sub-agreement items, and the modified current sub-agreement items in the current sub-agreement items; determine the difference text based on the deleted historical total agreement items, the newly added current total agreement items, the modified current total agreement items, the deleted historical sub-agreement items corresponding to the modified current total agreement items, the newly added current sub-agreement items corresponding to the modified current total agreement items, and the modified current sub-agreement items corresponding to the modified current total agreement items, so as to obtain the difference recognition result.
[0103] In the specific implementation process of this embodiment, the protocol text difference identification device also includes a sorting module, which is used to: sort the historical total agreement items in the first variable text according to a predetermined arrangement order to obtain a sorted first variable text for difference identification; sort the current total agreement items in the second variable text according to a predetermined arrangement order to obtain a sorted second variable text for difference identification.
[0104] In the specific implementation process of this embodiment, the protocol text difference identification device also includes a display module, and the display module is used to: display the current protocol text in a predetermined display mode based on the difference text.
[0105] The protocol text difference identification device in this embodiment, by utilizing the target protocol template, can quickly and accurately extract the content of the current protocol text of the current version and the historical protocol text of any version, thereby realizing the template and variable processing of the protocol text, so that the solidified content that does not need to be changed in the protocol text can be screened out and the variable text that may be changed can be obtained. Subsequently, by comparing the variable texts, the difference between the current protocol text and the historical protocol text can be quickly and accurately determined, thereby improving the efficiency and accuracy of difference identification, and being able to realize the difference identification between different versions of protocol texts, solving the problem in the prior art that it is impossible to flexibly and accurately determine the difference between the current version of the protocol and any historical version of the protocol.
[0106] Another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the following method steps are implemented:
[0107] Step 1: Based on a predetermined target protocol template, a variable content extraction process is performed on the historical protocol text of the target application to obtain a first variable text corresponding to the historical protocol text;
[0108] Step 2: Based on the target protocol template, perform variable content extraction processing on the current protocol text of the target application to obtain a second variable text corresponding to the current protocol text;
[0109] Step three: performing difference recognition based on the first variable text and the second variable text, determining the difference text between the second variable text and the first variable text, so as to obtain a difference recognition result.
[0110] The specific implementation process of the above method steps can be found in any of the above-mentioned protocol text difference identification method embodiments, and this embodiment will not be repeated here.
[0111] The storage medium in the present application, by utilizing the target protocol template, can quickly and accurately extract the content of the current protocol text of the current version and the historical protocol text of any version, thereby realizing the template and variable processing of the protocol text, so that the solidified content that does not need to be changed in the protocol text can be screened out and the variable text that may be changed can be obtained. Subsequently, by comparing the variable texts, the difference between the current protocol text and the historical protocol text can be quickly and accurately determined, thereby improving the efficiency and accuracy of difference identification, and realizing the difference identification between different versions of protocol texts, solving the problem in the prior art that it is impossible to flexibly and accurately determine the difference between the current version of the protocol and any historical version of the protocol.
[0112] Another embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, it implements the functions or steps of a service-side method for determining a product marketing strategy.
[0113] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer program is executed by the processor, it implements the functions or steps of a client side of a product marketing strategy determination method.
[0114] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0115] Step 1: Based on a predetermined target protocol template, a variable content extraction process is performed on the historical protocol text of the target application to obtain a first variable text corresponding to the historical protocol text;
[0116] Step 2: Based on the target protocol template, perform variable content extraction processing on the current protocol text of the target application to obtain a second variable text corresponding to the current protocol text;
[0117] Step three: performing difference recognition based on the first variable text and the second variable text, determining the difference text between the second variable text and the first variable text, so as to obtain a difference recognition result.
[0118] The specific implementation process of the above method steps can be found in any of the above-mentioned embodiments of protocol text difference identification, and this embodiment will not be repeated here.
[0119] The computer device in the present application, by utilizing the target protocol template, can quickly and accurately extract the content of the current protocol text of the current version and the historical protocol text of any version, thereby realizing the template and variable processing of the protocol text, so that the solidified content that does not need to be changed in the protocol text can be screened out and the variable text that may be changed can be obtained. Subsequently, by comparing the variable texts, the difference between the current protocol text and the historical protocol text can be quickly and accurately determined, thereby improving the efficiency and accuracy of difference identification, and realizing the difference identification between different versions of protocol texts, solving the problem in the prior art that the difference between the current version of the protocol and any historical version of the protocol cannot be flexibly and accurately determined.
[0120] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application. The non-Company software tools or components that appear in the embodiments of the present application are merely examples and do not represent actual use.
Claims
1. A method for identifying differences in protocol texts, characterized in that: include: Based on a predetermined target protocol template, performing variable content extraction processing on a historical protocol text of a target application to obtain a first variable text corresponding to the historical protocol text; Based on the target protocol template, performing variable content extraction processing on the current protocol text of the target application to obtain a second variable text corresponding to the current protocol text; Difference recognition is performed based on the first variable text and the second variable text, and a difference text between the second variable text and the first variable text is determined to obtain a difference recognition result.
2. The method according to claim 1, characterized in that Before performing the variable content extraction process, the method further includes: pre-establishing the target protocol template, specifically including: Obtaining several sample protocol texts of the target application; Based on the relationship between the various agreements in each sample agreement text and the modification frequency of the agreement content in each agreement, determine the total modification agreement items of several modifiable agreements and the sub-modification agreement items corresponding to each total modification agreement item; The target protocol template is constructed based on the first variable field of each of the total modified protocol items and the second variable field of each of the sub-modified protocol items.
3. The method according to claim 1, characterized in that The step of performing variable content extraction processing on the historical protocol text of the target application based on the predetermined target protocol template to obtain a first variable text corresponding to the historical protocol text specifically includes: Based on each first variable field in the target protocol template, performing variable content extraction processing on the protocol content in the historical protocol text to obtain the total historical protocol items corresponding to each first variable field; Based on the second variable fields corresponding to the first variable fields, performing variable content extraction processing on the agreement content in each of the historical total agreement items to obtain the historical sub-agreement items corresponding to each of the second variable fields; Based on each of the historical total agreement items and each of the historical sub-agreement items, the first variable text is constructed and obtained.
4. The method according to claim 1, characterized in that The step of performing variable content extraction processing on the current protocol text of the target application based on the target protocol template to obtain a second variable text corresponding to the current protocol text specifically includes: Based on each first variable field in the target protocol template, performing variable content extraction processing on the protocol content in the current protocol text to obtain the current total protocol items corresponding to each first variable field; Based on the second variable fields corresponding to the first variable fields, performing variable content extraction processing on the protocol content in each of the current total protocol items to obtain the current sub-protocol items corresponding to the second variable fields; Based on each of the current general agreement items and each of the current sub-agreement items, the second variable text is constructed and obtained.
5. The method according to claim 1, characterized in that The performing difference recognition based on the first variable text and the second variable text to determine the difference text between the second variable text and the first variable text to obtain a difference recognition result specifically includes: Based on each current total agreement item in the second variable text and each historical total agreement item in the first variable text, determine the deleted historical total agreement item in the first variable text, the newly added current total agreement item in the second variable text, and the modified current total agreement item in the current total agreement item; Based on the modified current total agreement item and the historical total agreement item corresponding to the modified current total agreement item, comparing each current sub-agreement item in the current total agreement item with each historical sub-agreement item in the historical total agreement item, and determining the deleted historical sub-agreement item in the historical sub-agreement item, the newly added current sub-agreement item in the current sub-agreement item, and the modified current sub-agreement item in the current sub-agreement item; Based on the deleted historical total agreement item, the newly added current total agreement item, the modified current total agreement item, the deleted historical sub-agreement item corresponding to the modified current total agreement item, the newly added current sub-agreement item corresponding to the modified current total agreement item, and the modified current sub-agreement item corresponding to the modified current total agreement item, the difference text is determined to obtain the difference identification result.
6. The method according to claim 1, characterized in that Before performing difference identification based on the first variable text and the second variable text, the method further includes: Sorting each of the historical total agreement items in the first variable text according to a predetermined arrangement order to obtain a sorted first variable text for difference identification; The current total agreement items in the second variable text are sorted according to a predetermined arrangement order to obtain a sorted second variable text for difference identification.
7. The method according to claim 1, characterized in that After obtaining the difference text, the method further includes: Based on the difference text, the current protocol text is displayed in a predetermined display manner.
8. A device for identifying differences in protocol texts, characterized in that: include: A first extraction module, configured to perform variable content extraction processing on a historical protocol text of a target application based on a predetermined target protocol template, to obtain a first variable text corresponding to the historical protocol text; A second extraction module, configured to perform variable content extraction processing on the current protocol text of the target application based on the target protocol template, to obtain a second variable text corresponding to the current protocol text; The difference recognition module is used to perform difference recognition based on the first variable text and the second variable text, determine the difference text between the second variable text and the first variable text, and obtain a difference recognition result.
9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for identifying differences in protocol texts described in any one of claims 1 to 7 are implemented.
10. A computer device, characterized in that: The method comprises at least a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for identifying differences in protocol texts as described in any one of claims 1 to 7 when executing the computer program on the memory.
Citation Information
Cited By
Protocol text difference identification method and device, equipment and storage medium
CN118250349A
A protocol text difference identification method, device and equipment and a storage medium
CN118250349B