Interactive interface generation method of privacy policy text and related device
By generating an interactive interface, parsing and displaying key information in the mobile application privacy policy text, it solves the problem that users find it difficult to understand the privacy policy and improves the transparency and readability of the privacy policy.
Patent Information
- Application Number
- CN202510272005.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-06-27
AI Technical Summary
Due to the lengthy legal terms and complex structure of mobile applications, the text of the privacy policy is difficult for users to understand, which leads to a vicious cycle in which users directly check and agree without reading, affecting the realization of users' right to know.
It provides an interactive interface generation method for privacy policy text. By analyzing the target privacy policy text, an interactive interface is generated. The interface includes multiple interactive modules, each module corresponds to the information content of privacy information in each data dimension, and intuitively reflects the data dimension through color, and users can obtain and understand privacy information through click operations.
Through the interactive interface, users can have a deeper understanding of key information in the privacy policy, which improves the transparency and readability of the privacy policy, and increases users' attention and understanding of important content.
Smart Images

Figure CN120217459A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of information security and privacy protection, and in particular to a method and related device for generating an interactive interface of a privacy policy text. Background Art
[0002] The current privacy policies of mobile applications have obvious design flaws, which seriously affect the realization of users' right to know. The main problems are concentrated in two aspects: first, the policy text uses lengthy legal terms and complex structures, which creates comprehension barriers and makes it difficult for users to capture key information in a short period of time; second, the existing plain text presentation method causes more than 80% of users to directly tick the consent without reading, resulting in "informed consent" becoming a formality. This mechanism defect forms a vicious cycle: the more complex the policy, the less willing users are to read; the less they read, the less effective it is to be informed.
[0003] Therefore, how to improve users' ability to understand privacy policies during the mobile application registration process has become one of the technical problems that need to be urgently solved in the field of information security and privacy protection technology. Summary of the invention
[0004] Based on the above problems, this application provides a method for generating an interactive interface for a privacy policy text, which aims to build an intuitive and easy-to-use interactive interface so that users can understand and grasp the key information in the privacy policy document more deeply by operating the various interactive modules in the interface.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] The first aspect of the present application discloses a method for generating an interactive interface of a privacy policy text, comprising:
[0007] Parsing the target privacy policy text to obtain a target code; the target code indicates multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension;
[0008] Based on the target code, an interactive interface corresponding to the target privacy policy text is generated; the interactive interface includes multiple interactive modules; each of the interactive modules corresponds to each piece of information content of the privacy information in each data dimension; the data dimensions of the privacy information correspond one-to-one to the colors of the interactive modules; the interactive modules are used to display the corresponding privacy information according to user click operations.
[0009] In an optional implementation, the interactive interface includes multiple display pages; the display pages correspond one-to-one to the types of the privacy data.
[0010] In an alternative implementation, the data dimension of the privacy information includes information content; the color of the interaction module corresponding to the information content has the highest human eye recognition degree among the multiple interaction modules.
[0011] In an alternative implementation, the interactive interface includes guiding words for guiding the user to click on all target interaction modules; the target interaction modules are the interaction modules pre-selected from the multiple interaction modules.
[0012] In an alternative implementation, the method further includes:
[0013] After the user clicks on all the target interaction modules in the display page, an animation effect is presented in the interaction interface; after the animation effect ends, a display page corresponding to another type of privacy data is presented in the interactive interface.
[0014] In an alternative implementation, the parsing of the target privacy policy text to obtain the target code includes:
[0015] Using a large language model, according to the prompt words and the target privacy policy text, generating the target code.
[0016] In an alternative implementation, the generating of the target code using a large language model according to the prompt words and the target privacy policy text includes:
[0017] Using the large language model, according to the first prompt word and the target privacy policy text, generating an intermediate text; the intermediate text indicates the multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension.
[0018] Using the large language model, according to the second prompt word and the intermediate text, generating the target code.
[0019] A second aspect of the present application discloses an interactive interface generation device for a privacy policy text, including:
[0020] A target code acquisition module for parsing a target privacy policy text to obtain a target code; the target code indicates the multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension.
[0021] An interactive interface generation module, configured to generate an interactive interface corresponding to the target privacy policy text based on the target code; the interactive interface includes a plurality of interaction modules; each of the interaction modules corresponds to each piece of information content of the privacy information in each data dimension; the data dimensions of the privacy information correspond one-to-one with the colors of the interaction modules; the interaction modules are configured to display the corresponding privacy information according to a user click operation.
[0022] A third aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in any implementation manner of the first aspect are implemented.
[0023] A fourth aspect of the present application provides an electronic device, including:
[0024] A memory, on which a computer program is stored;
[0025] A processor, configured to execute the computer program in the memory to implement the steps of the method described in any implementation manner of the first aspect.
[0026] Compared with the prior art, the present application has the following beneficial effects:
[0027] The present application discloses a method for generating an interactive interface of a privacy policy text. By parsing the target privacy policy text, various types of privacy data and each piece of privacy information contained therein in each data dimension are accurately extracted and encoded to generate a target code, and an interactive interface corresponding to the privacy policy text is constructed based on this code. Each interaction module on the interface not only corresponds one-to-one with each piece of information content of the privacy information in each dimension, but also intuitively reflects the data dimension of the privacy information through color, greatly improving the user experience. Users only need to simply click to instantly obtain and deeply understand the privacy information they care about, effectively enhancing the transparency and readability of the privacy policy, and effectively improving the attention and understanding of users to the important content in the privacy policy text. Description of the Drawings
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0029] Figure 1 It is a flowchart of a method for generating an interactive interface provided by an embodiment of the present application;
[0030] Figure 2A schematic diagram of the structure of an interactive interface of a privacy policy text provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of an experimental effect provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of a privacy data presentation effect provided in an embodiment of the present application;
[0033] Figure 5 A schematic diagram of a memory effect provided in an embodiment of the present application;
[0034] Figure 6 A schematic diagram of the structure of an interactive interface generating device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In the mobile application ecosystem, privacy policy, as a core tool to protect users' right to know, is facing significant challenges in its effectiveness. For example, the text of privacy policy generally uses legal terms and complex sentence structures, and the lengthy text of thousands of words forms a cognitive barrier, making it difficult for ordinary users to quickly extract key information under limited attention and time constraints; for another example, the mechanical notification method of the privacy policy text is obviously misaligned with user behavior habits. Data shows that more than 80% of users will directly skip the reading link and quickly check the authorization. This "blind consent" phenomenon essentially undermines the legislative intent of the principle of informed consent. The vicious cycle formed by this makes it difficult for users to make truly informed decisions under the existing framework even if they have privacy protection awareness, which not only damages the rights and interests of users, but also buries compliance risks for application operators. Therefore, how to improve users' ability to understand privacy policies during the mobile application registration process has become one of the technical problems that need to be solved in the field of information security and privacy protection technology.
[0036] To solve the above problems, the present application discloses a method for generating an interactive interface of a privacy policy text, including: parsing the target privacy policy text, obtaining a target code indicating multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension; based on the target code, generating an interactive interface including multiple interactive modules corresponding to the target privacy policy text. Among them, each interactive module corresponds to each piece of information content of the privacy information in each data dimension; the data dimension of the privacy information corresponds to the color of the interactive module one by one; the interactive module is used to display the corresponding privacy information according to the user's click operation. In this way, the user only needs to click to obtain and deeply understand the relevant privacy information, which effectively enhances the transparency and readability of the privacy policy and improves the user's attention and understanding of the important content in the privacy policy text.
[0037] To enable those skilled in the art to better understand the solution of this application, the following will clearly and completely describe the technical solution in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of this application.
[0038] Figure 1 It is a flowchart of an interactive interface generation method provided by an embodiment of this application. Combining Figure 1 As shown, the interactive interface generation method disclosed in this application includes:
[0039] S101, parse the target privacy policy text to obtain the target code.
[0040] In this application, the privacy policy text refers to a document or statement containing terms and information such as collection, use, storage, sharing, etc. of personal privacy information; it is usually used to inform users how their personal information will be processed by application programs, websites or service providers, and what privacy rights and options users have. The target privacy policy text of this application is the privacy policy text to be processed.
[0041] The target code in this application is a code file generated after parsing the target privacy policy text. The target code indicates multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and at least one piece of information content of each piece of privacy information in each data dimension. The code file in this application can be a code file in Java format or a code file in C++ format; the specific form of the code file is not limited in this application.
[0042] Exemplarily, the types of privacy data in the target privacy policy text include but are not limited to: device information, log information, personal identity information (identity information), transaction information, location data, health information, social information, behavior data, etc.
[0043] It can be understood that each type of privacy data includes multiple pieces of privacy information. For example, device information includes privacy information such as device MAC address, unique device identifier, login IP address, device model, device name, device identifier, browser type and settings, language settings, operating system and application version, access network method, network quality data, mobile network information (including operator name), product version number, device location, etc. Another example is that identity information includes privacy information such as mobile phone number, email, ID number, and passport number.
[0044] The data dimensions of privacy information in this application include but are not limited to: information content (specific types of personal information), transmission method, sharing location, relevant service providers, storage duration, etc.
[0045] The information content refers to the content to be collected corresponding to the privacy information. For example, specific contents such as mobile phone numbers, email addresses, ID card numbers, and passport numbers.
[0046] The transmission method refers to the transmission method corresponding to the privacy information. The transmission methods include but are not limited to SSL (Secure Sockets Layer), TLS (Transport Layer Security), or HTTPS (Hypertext Transfer Protocol Secure).
[0047] In an optional implementation method, the target privacy policy text can be parsed by a large language model or a trained neural network model to generate target code.
[0048] For ease of understanding, this application discloses a specific implementation method for parsing the target privacy policy text by using a large language model to generate target code. It includes:
[0049] First, input the target privacy policy text and the first prompt word into the large language model to generate intermediate text. The intermediate text indicates the multiple privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension.
[0050] Exemplarily, the form of the first prompt word is as follows:
[0051] Please organize the types of personal information collected and their usage or sharing methods in the following format according to the attached privacy agreement:
[0052] [Personal information category]-[Specific personal information type]-[Sharing or disclosure method]-[Shared party]
[0053] Example: [Device information]-[Device MAC address, unique device ID, login IP address, device model, device name, device identifier, browser type and settings, language settings, operating system and application version, network access method, network quality data, mobile network information (including carrier name), product version number, device location]-[Encrypted and anonymized sharing]-[Third-party regulatory agency]
[0054] [Log Information]-[Your browsing history, like / share / comment / interaction records, favorite / follow / reservation records, play history, play duration, access date and time]-[Selective Sharing]-[Third-party company]
[0055] Rule:
[0056] Do not leave any item blank; strictly follow the format; ensure accuracy; do not include any extra content; be as comprehensive as possible without missing any details; do not repeat the examples.
[0057] Exemplarily, the form of the intermediate text is as follows:
[0058] [Device Information]-[Device MAC address, unique device identifier, login IP address, device model, device name, device identification, browser type and settings, language settings, operating system and application version, access network method, network quality data, mobile network information (including carrier name), product version number, device location]-[Encrypted Anonymized Sharing]-[Third-party regulatory agency]
[0059] [Log Information]-[Your browsing records, like / share / comment / interaction records, favorite / follow / reservation records, play records, play duration, access date and time]-[Selective Sharing]-[Third-party company]
[0060] [Identity Information]-[Mobile phone number, email, ID card number, passport number]-[Encrypted Sharing]-[Relevant service providers]
[0061] [Transaction Information]-[Order information, payment information, transaction amount, transaction date]-[Selective Sharing]-[Financial institutions and third-party payment institutions]
[0062] [Location Data]-[GPS location information, geographical location]-[Selective Sharing]-[Logistics service providers]
[0063] [Health Information]-[Health status, medical records]-[Encrypted Sharing]-[Insurance companies and health service providers]
[0064] [Social Information]-[Social accounts, friend lists]-[Selective Sharing]-[Social media platforms]
[0065] [Behavior Data]-[Usage duration, preferences, click behavior]-[Selective Sharing]-[Advertising service providers]
[0066] Then, input the intermediate text and the second prompt into the large language model, and the target code can be generated. The target code indicates the multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, as well as the information content of each piece of privacy information on each data dimension; the target code can be Java code or other types of code files.
[0067] Exemplarily, the form of the second prompt is as follows:
[0068] You need to help me rewrite some data. This is the result rewritten according to this data for a certain Java application.
[0069] Original information:
[0070] [Device information]-[Device MAC address, unique device identification code, login IP address, device model, device name, device identifier, browser type and settings, language settings, operating system and application version, access network method, network quality data, mobile network information (including carrier name), product version number, device location]-[Encrypted anonymized sharing]-[Third-party regulatory agency]
[0071] [Log information]-[Your browsing history, like / share / comment / interaction records, favorite / follow / reservation records, play records, play duration, access date and time]-[Selective sharing]-[Third-party company]
[0072] [Identity information]-[Mobile phone number, email, ID card number, passport number]-[Encrypted sharing]-[Related service providers]
[0073] [Transaction information]-[Order information, payment information, transaction amount, transaction date]-[Selective sharing]-[Financial institutions and third-party payment institutions]
[0074] [Location data]-[GPS location information, geographical location]-[Selective sharing]-[Logistics service providers]
[0075] [Health information]-[Health status, medical records]-[Encrypted sharing]-[Insurance companies and health service providers]
[0076] [Social information]-[Social accounts, friend lists]-[Selective sharing]-[Social media platforms]
[0077] [Behavior data]-[Usage duration, preferences, click behavior]-[Selective sharing]-[Advertising service providers]
[0078] After rewriting:
[0079]
[0080]
[0081]
[0082] According to this pattern, please give the rewritten results of the following data.
[0083] Modularize the extracted content and represent it in a color-coded form, where different colors correspond to different privacy information categories.
[0084] In summary, after determining the target privacy policy text, the first prompt word and the target privacy policy text can be input into the large language model to generate an intermediate file; then, the second prompt word and the intermediate text are input into the large language model to obtain the target code.
[0085] S102, based on the target code, generate an interactive interface corresponding to the target privacy policy text.
[0086] After obtaining the target code, those skilled in the art can add the target code to the code framework and compile it to generate an interactive interface corresponding to the target privacy policy text. Since this process is well-known to those skilled in the art, this application will not elaborate on this content too much.
[0087] To facilitate the user's attention and improve the user's understanding of the important information in the target privacy policy text. The interactive interface in this application includes multiple interaction modules, and each interaction module corresponds to each piece of information content of the privacy information in each data dimension, that is, one piece of information content of one privacy information in one information dimension corresponds to one interaction module; the data dimension of the privacy information corresponds one-to-one with the color of the interaction module. For example, if the data dimension of the privacy information is the information content, the color of the interaction module corresponding to this privacy information is orange; if the data dimension of the privacy information is the transmission method, the color of the interaction module corresponding to this privacy information is yellow.
[0088] As can be seen from the introduction of the foregoing embodiments, the privacy data in the target privacy file includes multiple types. The types of target privacy data include but are not limited to: device information, log information, personal identity information (identity information), transaction information, location data, health information, social information, behavior data, and so on.
[0089] In an alternative implementation, the interactive interface in this application includes multiple display pages, and each display page corresponds to one type of privacy data, that is, the display pages correspond one-to-one with the types of privacy data. In this way, it is convenient for the user to classify and view the important information in each type of privacy data.
[0090] As can be seen from the introduction of the foregoing embodiments, the data dimensions of the privacy information in this application include information content (specific types of personal information), transmission method, sharing location, relevant service providers, storage duration, etc. The information content in the data dimension is the key content in the privacy document that is recommended for users to focus on. To facilitate users to more quickly identify the information content of each piece of privacy information included in each type of privacy data, the color of the interaction module corresponding to the information content in this application has the highest human eye recognition degree among the multiple interaction modules included in the interactive interface corresponding to the target privacy policy text.
[0091] For example, if the data dimension of the privacy information is information content, the color of the interaction module corresponding to this privacy information is orange; if the data dimension of the privacy information is transmission method, the color of the interaction module corresponding to this privacy information is yellow; if the data dimension of the privacy information is a third-party management agency (also known as the sharing entity), the color of the interaction module corresponding to this privacy information is green.
[0092] The function of the interaction module in the interaction interface of this application is that after the user clicks on the interaction module, the interaction module displays the corresponding privacy information to the user.
[0093] In an alternative implementation, after the user clicks on all the target interaction modules in the display page, an animation effect is presented in the interaction interface; after the animation effect ends, a display page corresponding to another type of privacy data is presented in the interactive interface.
[0094] It can be understood that during the process of switching between the display pages corresponding to the two types of privacy data, in addition to adding an animation effect, a voice prompt can be added; whether it is adding an animation effect or a voice prompt, the purpose is to remind the user that all the target interaction modules in the current display page have been clicked, that is, the reading of the privacy information corresponding to each target interaction module has been completed.
[0095] In an alternative implementation, guiding words can be set on each display page in the interaction interface. The guiding words are used to guide the user to click on all the target interaction modules. Exemplarily, the guiding words can be to ask the user to click on all the orange interaction modules on the page.
[0096] The target interaction module is a pre-selected interaction module in the interactive interface corresponding to the target privacy policy text. For example, for the target privacy data, if the information that needs the user's key attention is the detailed content of each piece of privacy data in the data dimension of information content, then the interaction module corresponding to the data dimension of information content in the data dimension of the privacy information can be set as the target interaction module.
[0097] In an alternative implementation, the color of the target interaction module in the interactive interface can be different before and after the user clicks. For example, before the user clicks the target interaction module, its color is dark orange; after the user clicks the target interaction module, its color is light orange. In this way, it helps to deepen the user's understanding and memory of the privacy information corresponding to the interaction module through the change of color.
[0098] Figure 2 FIG. is a schematic structural diagram of an interactive interface of a privacy policy text provided by an embodiment of the present application. Figure 2 The display page in the interactive interface shown is the display page corresponding to personal information (a specific type of privacy data). Figure 2 In (a), the display page corresponding to personal information is a schematic diagram when the user has not clicked any interaction module; Figure 2 In (b), the display page corresponding to personal information is a schematic diagram after the interaction module named advertising identifier is clicked by the user; Figure 2 In (c), the display page corresponding to personal information is a schematic diagram after all the orange interaction modules are clicked by the user.
[0099] It can be understood that Figure 2 In (a), (b), and (c), the "Please click on all the orange color blocks to indicate personal information" is a guiding word. Figure 2 The orange corresponding interaction module is the target interaction module introduced in the foregoing embodiment.
[0100] The color effect of the interaction module named advertising identifier before the user clicks is as Figure 2 shown in (a); the color effect of the interaction module named advertising identifier after the user clicks is as Figure 2 shown in (b); Figure 2 In the animation effect of (c), the "All click operations on the data blocks of this type have been completed" notifies the user that the click operation on all the orange interaction modules in the display interface corresponding to personal information has been completed.
[0101] It should be noted that when the user clicks an interaction module in the display page of the interactive interface that does not match the guiding word, no change in privacy information display occurs on the interactive interface, but the user is prompted to select other modules.
[0102] The method for generating the privacy policy text in the present application is, after determining the target privacy policy text, converting the target privacy policy text into an intermediate text through a large language model and a first prompt word; then converting the intermediate text into a target code through a large language model and a second prompt word; adding the target code to a pre-written code framework to generate an interactive interface corresponding to the target privacy policy text, that is Figure 2The interactive interface shown in []. The interactive interface includes multiple display pages, and each display page corresponds to a type of privacy data; each interactive page includes multiple interactive modules, and each interactive module corresponds to each piece of information content of this type of privacy data in each data dimension; the data dimension of the privacy information corresponds one-to-one with the color of the interactive module; each interactive page has a guiding statement, and the guiding statement is used to guide the user to click on all target interactive modules; the target interactive module is pre-set and is the privacy data that the user is considered to focus on.
[0103] After obtaining Figure 2 the interactive interface shown in [], the user can click on the target interactive modules in the interactive page one by one according to the guiding words in the interactive page being presented in the interactive interface. After completing the click on all the target interactive modules and finishing reading the privacy information corresponding to each target interactive module, an animation effect is presented on the Figure 2 interactive interface in []. After the animation effect ends, a display page corresponding to another type of privacy data is presented on the interactive interface; and so on, until the user clicks on the target interactive modules in each display page, that is, until the user finishes reading the privacy information corresponding to all the target interactive modules in all the display pages.
[0104] That is, for the interactive interface generation method disclosed in this application, by parsing the target privacy policy text, various types of privacy data and the information content of each piece of privacy information included therein in each data dimension are accurately extracted and encoded to generate target codes, and an interactive interface corresponding to the privacy policy text is constructed based on these codes. Each interactive module on the interface not only corresponds one-to-one with each piece of information content of the privacy information in each dimension, but also intuitively reflects the data dimension of the privacy information through color, greatly improving the user experience. The user only needs to simply click to instantly obtain and deeply understand the privacy information they care about, effectively enhancing the transparency and readability of the privacy policy, and effectively improving the user's attention and understanding of the important content in the privacy policy text.
[0105] In an alternative implementation, the target code in the interactive interface generation method for the privacy policy text disclosed in this application can be seamlessly integrated with the CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) template on the Android platform; in this way, the full-process conversion from text to an interactive CAPTCHA interface is achieved.
[0106] It is understandable that in this application, the user reads the privacy information corresponding to the interaction module by clicking on the interaction module in the interactive interface; when the user has clicked on all the target interaction modules in the currently displayed page, the system updates the information on the interface.
[0107] It is understandable that the interactive interface in this application provides dynamic color changes and notification prompts to ensure that users can deepen their understanding and memory of the content of the privacy information during the interaction process.
[0108] Figure 3 This is a schematic diagram of an experimental effect provided by an embodiment of this application. Figure 3 The experimental results of different large language models on the same privacy policy dataset CA4P-483 are given; Figure 3 The large language models given in it are Qwen-max (Tongyi Qianwen-Max), Qwen-72b (Tongyi Qianwen-72b), and Qwen-7b (Tongyi Qianwen-7b) respectively.
[0109] Figure 3 In it, step 1 represents the step of generating intermediate text through a large language model according to the first prompt word and the target privacy policy text (i.e., privacy policy → intermediate text); step 2 represents the step of generating the target code through a large language model according to the second prompt word and the intermediate text (i.e., intermediate text → target code).
[0110] Figure 3 In it, P (Precision) represents precision rate, R (Recall) represents recall rate; F1 is the result calculated based on precision rate and recall rate. Precision rate refers to the proportion of instances that are truly positive samples among the instances predicted as positive samples; it measures the accuracy of the model's prediction of positive samples; recall rate refers to the proportion of all actual positive sample instances that are correctly predicted as positive samples by the model; it measures the ability of the model to cover positive samples; the F1 value is the harmonic mean of precision rate and recall rate, which is used to comprehensively evaluate the performance of the model; it weighs the importance of precision rate and recall rate, enabling the model to achieve a balance between the two.
[0111] It should be noted that each privacy policy dataset includes multiple privacy policy files, Figure 3 Each result in it is the average result obtained by weighted averaging the results of multiple privacy policy files in the same privacy policy data.
[0112] Combined with Figure 3 It can be seen that different large language models have good precision rates, recall rates, and F1 values for extracting the keywords in step 1 and generating the target code in step 2 for the privacy policy text in the same privacy data policy set.
[0113] Figure 4 A schematic diagram of the presentation effect of privacy data provided by an embodiment of the present application. Figure 4 The leftmost one in the middle is the rendering of the interactive interface generated by the embodiment of the present application; Figure 4 The second one from the left in the middle is the rendering of the content (partial content) of the privacy file presented in text in the traditional solution. Compared with the rendering of the content of the privacy file presented in text in the traditional solution, the interactive interface corresponding to the privacy policy text generated by the embodiment of the present application can more clearly display the privacy information in the privacy policy text that needs the user's attention.
[0114] Figure 5 A schematic diagram of the memory effect provided by an embodiment of the present application. In combination with Figure 5 As shown, when the user clicks on the interaction module of the interactive interface generated in the present application to read the privacy information in the privacy policy text, a better memory effect can be achieved within the same time.
[0115] Based on the method for generating an interactive interface of a privacy policy text provided in the foregoing embodiment, the present application further provides an apparatus for generating an interactive interface of a privacy policy text. Figure 6 A schematic structural diagram of an interactive interface generation apparatus provided by an embodiment of the present application. In combination with Figure 6 As shown, the interactive interface generation apparatus 600 in the present application includes:
[0116] A target code acquisition module 601, configured to parse the target privacy policy text to obtain a target code; the target code indicates multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension;
[0117] An interactive interface generation module 602, configured to generate an interactive interface corresponding to the target privacy policy text based on the target code; the interactive interface includes multiple interaction modules; each of the interaction modules corresponds to each piece of information content of the privacy information in each data dimension; the data dimension of the privacy information corresponds one-to-one with the color of the interaction module; the interaction module is configured to display the corresponding privacy information according to a user click operation.
[0118] In an alternative implementation, the interactive interface generation apparatus 600 further includes:
[0119] A page switching module, configured to present an animation effect in the interaction interface after the user clicks on all the target interaction modules in the display page; after the animation effect ends, a display page corresponding to another type of privacy data is presented in the interactive interface.
[0120] In an alternative implementation, the interactive interface generation module 602 includes:
[0121] An interactive interface generation unit, configured to generate the target code according to the prompt words and the target privacy policy text through a large language model.
[0122] In an alternative implementation, the interactive interface generation unit includes:
[0123] An intermediate text generation subunit, configured to generate intermediate text according to the first prompt words and the target privacy policy text through the large language model; the intermediate text indicates multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension;
[0124] A target code generation subunit, configured to generate the target code according to the second prompt words and the intermediate text through the large language model.
[0125] Based on the interactive interface generation method and apparatus provided in the foregoing embodiments, correspondingly, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, some or all of the steps in the interactive interface generation method mentioned above are implemented.
[0126] Based on the interactive interface generation method and apparatus provided in the foregoing embodiments, the present application further provides an electronic device, including:
[0127] A memory, on which a computer program is stored;
[0128] A processor, configured to execute the computer program in the memory to implement some or all of the steps in the interactive interface generation method provided in the foregoing embodiments.
[0129] It should be noted that the embodiments in this specification are all described in a progressive manner. The same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiments, since they are basically similar to the method embodiments, they are described relatively simply. For the relevant parts, refer to the partial description of the method embodiments. The apparatus embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components described as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
[0130] As described above, it is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present application should be covered within the protection scope of the present application.
Claims
1. A method for generating an interactive interface of a privacy policy text, characterized in that: The method comprises: Parsing the target privacy policy text to obtain a target code; the target code indicates multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension; Based on the target code, an interactive interface corresponding to the target privacy policy text is generated; the interactive interface includes multiple interactive modules; each of the interactive modules corresponds to each piece of information content of the privacy information in each data dimension; the data dimensions of the privacy information correspond one-to-one to the colors of the interactive modules; the interactive modules are used to display the corresponding privacy information according to user click operations.
2. The method according to claim 1, characterized in that The interactive interface shown includes multiple display pages; the display pages correspond one-to-one to the types of the privacy data.
3. The method according to claim 1, characterized in that The data dimension of the private information includes information content; the color of the interaction module corresponding to the information content has the highest human eye recognition among the multiple interaction modules.
4. The method according to claim 1 or 2, characterized in that: The interactive interface includes guiding words, and the guiding words are used to guide the user to click on all target interaction modules; the target interaction module is an interaction module selected in advance from the multiple interaction modules.
5. The method according to claim 4, characterized in that The method further comprises: After the user clicks on all target interactive modules on the display page, an animation effect is presented in the interactive interface; after the animation effect ends, a display page corresponding to another type of privacy data is presented in the interactive interface.
6. The method according to claim 1, characterized in that The target privacy policy text is parsed to obtain the target code, including: The target code is generated through a large language model according to the prompt words and the target privacy policy text.
7. The method according to claim 6, characterized in that The method of generating the target code according to the prompt words and the target privacy policy text by using the large language model includes: Generate an intermediate text according to the first prompt word and the target privacy policy text through the large language model; the intermediate text indicates multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension; The target code is generated by the large language model according to the second prompt word and the intermediate text.
8. An interactive interface generation device for a privacy policy text, characterized in that: The device comprises: A target code acquisition module, used to parse the target privacy policy text to obtain a target code; the target code indicates multiple pieces of privacy information included in each type of privacy data in the target privacy policy text, and the information content of each piece of privacy information in each data dimension; An interactive interface generation module is used to generate an interactive interface corresponding to the target privacy policy text based on the target code; the interactive interface includes multiple interactive modules; each of the interactive modules corresponds to each piece of information content of the privacy information in each data dimension; the data dimensions of the privacy information correspond one-to-one to the colors of the interactive modules; the interactive modules are used to display the corresponding privacy information according to user click operations.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.