Data processing method and device

By adjusting the presentation attributes of the data and presenting attributes according to the capabilities and target presentation attributes of the output device, the problem of the output environment affecting the effectiveness of data annotation is solved, ensuring that the content differences are accurately reflected in different environments.

CN120030986APending Publication Date: 2025-05-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510240332.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

After data annotation, the impact of the output environment causes the rendering attributes of the original annotation to fail to effectively reflect the content differences, resulting in the annotation losing its original function.

Method used

By obtaining the output capability data of the data and output device, the presentation attributes of the content can be adjusted so that it can effectively reflect content differences in different output environments. Specific methods include adjusting presentation attributes according to the target presentation attributes, optimizing presentation attributes through a generative model, etc.

Benefits of technology

Ensure that the differences between different contents are clearly and accurately reflected in the output results, and avoid label failure problems caused by changes in the output environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120030986A_ABST
    Figure CN120030986A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, and relates to the technical field of data processing. The data processing method comprises the steps of obtaining first data; the first data at least comprises first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; and outputting based on the first data, and changing the presentation attribute of at least one of the output first content and second content to reflect the content difference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a data processing method and device. Background Art

[0002] Users often need to annotate the content in the data to reflect the differences between different contents. Annotation is usually achieved through different presentation attributes, such as using different fonts, colors or marking methods. However, when the annotated data is output, it is easily affected by the output environment. The presentation attributes of the original annotation may not effectively reflect the differences between different contents, causing the annotation to lose its original function. Summary of the invention

[0003] In view of this, the present disclosure provides a data processing method and device.

[0004] According to a first aspect of the present disclosure, there is provided a data processing method, comprising: Obtaining first data; the first data at least includes first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; The output is performed based on the first data, and the presentation attribute of at least one of the output first content and the output second content changes to reflect the content difference.

[0005] According to an embodiment of the present disclosure, the method further includes: obtaining second data, wherein the second data represents an output capability of the output device; A presentation attribute that needs to be changed is determined based on the second data.

[0006] According to an embodiment of the present disclosure, obtaining the second data includes: In response to the output device being a first output device, obtaining a target presentation attribute supported by a target application; the target application runs on the first output device and is used to output the first data; In response to the output device being a second output device, obtaining a target presentation attribute supported by the second output device; The determining the presentation attribute that needs to be changed based on the second data includes: In response to the target presentation attribute not including the first presentation attribute and / or the second presentation attribute, the first presentation attribute and / or the second presentation attribute are adjusted.

[0007] According to an embodiment of the present disclosure, determining the presentation attribute that needs to be changed based on the second data further includes: In response to the target presentation attribute including the first presentation attribute and the second presentation attribute, obtaining a first presentation effect corresponding to the first presentation attribute and a second presentation effect corresponding to the second presentation attribute in the output device; Based on the first presentation effect and the second presentation effect, the first presentation attribute and / or the second presentation attribute are adjusted.

[0008] According to an embodiment of the present disclosure, adjusting the first presentation attribute and / or the second presentation attribute based on the first presentation effect and the second presentation effect includes any of the following: In response to a first difference value between the first presentation effect and a first preset presentation effect corresponding to the first presentation attribute, or a second difference value between the second presentation effect and a second preset presentation effect corresponding to the second presentation attribute being less than a first difference threshold, adjusting the first presentation attribute and / or the second presentation attribute; In response to a third difference value between the first presentation effect and the second presentation effect being less than a preset difference value and less than a second difference threshold, adjusting the first presentation attribute and / or the second presentation attribute; In response to a first display parameter of the first presentation effect or a second display parameter of the second presentation effect being inconsistent with a standard display parameter, the first presentation attribute and / or the second presentation attribute is adjusted.

[0009] According to an embodiment of the present disclosure, the method further includes: Obtaining third data and fourth data, wherein the third data represents the importance of content, and the fourth data represents content features corresponding to the first content and the second content; Based on the third data and the fourth data, a presentation attribute that needs to be changed is determined.

[0010] According to an embodiment of the present disclosure, determining the presentation attribute that needs to be changed based on the third data and the fourth data includes: If the content with the first presentation attribute reflects a lower content importance than the content with the second presentation attribute, in response to the content feature indicating that the first content is more important than the second content, the first presentation attribute and / or the second presentation attribute is adjusted.

[0011] According to an embodiment of the present disclosure, the method further includes: Obtaining fifth data, wherein the fifth data represents a correspondence between different contents preset by a target object of an output device and different presentation attributes; In response to the correspondence between the first content and the first presentation attribute, and / or the correspondence between the second content and the second presentation attribute not conforming to the correspondence represented by the fifth data, the first presentation attribute and / or the second presentation attribute are adjusted.

[0012] According to an embodiment of the present disclosure, the outputting based on the first data includes: Inputting the first data into the generative model; Obtaining first data output by the generative model; The presentation attribute of at least one of the first content and the second content in the first data output by the generative model changes.

[0013] A second aspect of the present disclosure provides a data processing device, including: A first obtaining module, configured to obtain first data; the first data at least includes first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; The first output module is used to perform output based on the first data, and the presentation attribute of at least one of the output first content and the output second content changes to reflect the content difference.

[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which: Figure 1 A flowchart of a data processing method provided by an embodiment of the present disclosure is schematically shown; Figure 2 A schematic diagram of a scenario for adjusting presentation attributes based on device output capability provided by an embodiment of the present disclosure is schematically shown; Figure 3 A schematic diagram of a scene for adjusting a presentation effect based on a target presentation attribute provided by an embodiment of the present disclosure is schematically shown; Figure 4 A schematic diagram of a scene for adjusting presentation attributes based on presentation effects provided by an embodiment of the present disclosure is schematically shown; Figure 5 The structure block diagram of a data processing device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0016] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0017] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0018] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0019] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0020] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the data involved (for example, including but not limited to user personal information) are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security, and national security.

[0021] The present disclosure provides a data processing method and device. The data processing method includes: Obtaining first data; the first data at least includes first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; The output is performed based on the first data, and the presentation attribute of at least one of the output first content and the second content changes to reflect the content difference.

[0022] By implementing the embodiments of the present disclosure, when the first data is output, the presentation attribute of at least one content in the first data can be adjusted. When the first presentation attribute of the first content or the presentation attribute of the second content cannot be effectively presented in the output environment, it can be switched to other presentation attributes supported by the output environment, thereby ensuring that the differences between different contents can still be reflected in the output result.

[0023] The data processing device in the embodiment of the present disclosure refers to a terminal device with data parsing and output capabilities. This type of data processing device includes display modules of mobile terminals such as smart phones, tablet computers, and laptops, physical output devices such as printers, 3D projectors, and laser engraving machines, as well as holographic presentation modules of augmented reality (AR) / virtual reality (VR) devices, interactive display screens of service robots, and tactile feedback units of smart bracelets. New output carriers. In addition, professional output components such as the ticket printing system of self-service terminals, film imaging devices of medical imaging equipment, and visualization panels of industrial control equipment, vertical field output units such as ATM receipt generation modules in the financial field, electronic whiteboard writing systems in the education industry, and digital signage content rendering engines in retail scenes also belong to the category of data processing devices described in the embodiment of the present disclosure. At the same time, special scene output devices such as smart home control center display terminals, vehicle-mounted head-up displays (HUD), avionics flight instrument display systems in the Internet of Things environment, and distributed output architectures such as remote visualization interfaces of server clusters and streaming media output channels of cloud rendering terminals are all within the technical adaptation scope of the embodiment of the present disclosure.

[0024] It should be noted that the embodiments of the present disclosure do not limit the specific type of data processing device. The above examples are only illustrative descriptions. The technical solution of the present disclosure can be applied to any device that needs to output data and may change the content presentation attributes.

[0025] Below through Figure 1 to Figure 5 The processing method of the embodiment of the present disclosure is described in detail.

[0026] Figure 1 A flowchart of a data processing method provided by an embodiment of the present disclosure is schematically shown.

[0027] like Figure 1 As shown, the processing method of this embodiment may include operations S101 to S102.

[0028] Operation S101, obtaining first data; the first data at least includes first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; Operation S102: outputting based on the first data, wherein the presentation attribute of at least one of the output first content and the output second content changes to reflect the content difference.

[0029] In operation S101, the first data refers to digital information containing multiple contents and their corresponding presentation attributes. In the embodiment of the present disclosure, the first data can be understood as the document content processed by the user in a specific annotation method during the creation or editing process. The first data is used as the original information carrier in the subsequent output process. The data processing device will adaptively adjust the presentation method of the content based on the content and presentation attributes contained therein, combined with the characteristics of the output environment, to ensure that the information differences that the user wants to convey through the presentation attribute annotation can still be accurately identified and understood in different output environments.

[0030] Similarly, the first data may include at least the first content and the second content. The first content and the second content refer to information segments with presentation attributes in the first data. The first content and the second content may be any annotated information unit such as text, graphics, tables, etc. In the embodiment of the present disclosure, the first content and the second content may be understood as content groups that the user needs to distinguish or emphasize their differences. There is a certain difference between the first content and the second content that needs to be reflected through presentation attributes, such as importance, urgency, hierarchical relationship, etc.

[0031] The first content and the second content are used to carry the difference in information that the user wants to convey. The first content has a first presentation attribute, and the second content has a second presentation attribute. The data processing device can understand the user's annotation intention by identifying the presentation attributes corresponding to each content, thereby selecting more appropriate presentation attributes in different output environments to ensure that the differences between the contents are retained and reflected in the output results.

[0032] The presentation attribute refers to a visual representation used to identify and distinguish content, and is a way of marking information that can be displayed by an output device and perceived by a user. In the embodiments of the present disclosure, the presentation attribute can be understood as a visual mark used by a user to express content differences.

[0033] Exemplarily, presentation attributes include, but are not limited to: text color, background color, font type, font size, bold, italic and other font styles; line marks such as underline, strikethrough, double horizontal line, wavy line, etc.; border style, shadow effect, transparency and other visual effects; and animation type, playback speed and other dynamic effects.

[0034] The selection of the above presentation attributes is usually based on specific annotation standards or user habits. Through the differences in presentation attributes, users can identify and distinguish content differences between different contents, including but not limited to content sources, importance, etc.

[0035] The source of content refers to the way the content is generated or the attributes of its classification. The source of content may include, but is not limited to, original content, quoted content, revised content, etc. For example, the source of content may indicate the creator or person in charge of the content. In a team collaboration document, modification suggestions from different departments or roles may use different presentation attributes. For another example, the source of content may also reflect the generation time or version information of the content. In document version control, modifications in different periods can be reflected through differences in presentation attributes.

[0036] Similarly, the importance level includes both objective importance based on objective factual judgment and subjective importance based on user's personal cognition. The difference in presentation attributes enables viewers to quickly identify these content differences through visual perception.

[0037] However, when the output environment changes, the original presentation attributes may not be effectively displayed in the new output environment. In this case, the data processing device needs to convert the original presentation attributes into other forms of expression supported by the current output environment to ensure that the content differences can be accurately conveyed to maintain the distinguishability between the contents.

[0038] In a feasible implementation, the first content and the second content are of the same type. For example, when both the first content and the second content are text content, they may be text fragments that need to be emphasized to different degrees in the same document. For another example, when both the first content and the second content are graphic content, they may be different types of node graphics in a flow chart. For another example, when both the first content and the second content are table content, they may be data rows of different importance in a financial statement.

[0039] In another feasible implementation, the types of the first content and the second content are different. For example, the first content is text content and the second content is graphic content. In a technical document, the first content may be a text description of a warning instruction, using a red bold font as the first presentation attribute; the second content may be a corresponding warning icon, using a red fill as the second presentation attribute. For another example, the first content is a table content and the second content is a chart content. In a product manual, the first content may be a numbered table of operating steps, using a blue background as the first presentation attribute; the second content may be a corresponding schematic diagram, using a blue dotted border as the second presentation attribute to indicate the correspondence between them.

[0040] In another feasible implementation, the same content has one or more different presentation attributes. For example, in a document editing scenario, for particularly important text content, the three presentation attributes of "red font", "bold" and "underline" can be applied simultaneously to form a prominent visual effect.

[0041] In another feasible implementation, different contents have the same presentation attribute, which is usually used to indicate that different contents have the same characteristics or belong to the same category. For example, in a document annotation scenario, all matters that require follow-up can be uniformly presented using the presentation attribute of "yellow background highlighting".

[0042] It should be noted that the above examples are only for illustrating the technical solutions of the embodiments of the present disclosure, and the present disclosure does not limit the specific type combination of the first content and the second content and the corresponding presentation attribute adjustment method. In practical applications, appropriate presentation attributes can be selected according to specific output environment characteristics and content expression requirements.

[0043] In operation S102, the data processing device performs output processing on the acquired first data. Since the user expresses the content difference through the first presentation attribute of the first content and the second presentation attribute of the second content, it is necessary to ensure that the difference can be accurately conveyed during the output process.

[0044] However, in an actual output environment, the original presentation attributes may not be effectively displayed. For example, when a user uses red and green to distinguish between the first content and the second content, if the output device only supports black and white display, this color-based distinction will be completely ineffective. In order to solve the above problem, the data processing device will adjust the presentation attributes of at least one of the first content and the second content, and convert the original presentation attributes into other presentation forms supported by the current output environment.

[0045] In a feasible implementation, the data processing device may adjust one or more presentation attributes of the first content and the second content. For example, when the first content has both red font and bold presentation attributes, and the second content has a green font presentation attribute, in a black and white printing environment, the bold attribute of the first content may be retained and the color attribute may be removed, while the presentation attribute of the second content may be adjusted to italic, thereby maintaining the effect of distinguishing the contents.

[0046] In another feasible implementation, the data processing device may adjust the presentation attributes of the first content and / or the second content by deleting the presentation attributes. For example, when the first content has three presentation attributes of red font, bold and underline, and the second content has two presentation attributes of green font and wavy line, in a specific output environment, only the bold attribute of the first content and the wavy line attribute of the second content may be retained, so as to ensure the clear expression of the content difference by simplifying the presentation attributes.

[0047] In another feasible implementation, the data processing device can adjust the presentation attributes of the first content and / or the second content by combining new presentation attributes. For example, when the output environment does not support a certain presentation attribute, a combination of multiple basic presentation attributes can be used to replace the combination of "italic + dashed underline" to replace the wavy line mark, and an equivalent distinction effect can be achieved by combining attributes.

[0048] In another feasible implementation, the data processing device can make differential adjustments according to the importance of the presentation attributes. For example, when the first content has a red highlight attribute indicating important information and the second content has a light green background attribute indicating ordinary information, when the display capability of the output device is limited, the presentation effect of the first content can be prioritized and adjusted to a combination of bold and border, while the second content can be simplified and adjusted to a common underline, so that the difference in the importance of the content is reflected through the difference in the presentation effect.

[0049] It should be noted that the above adjustment method is only exemplary, and the ultimate goal is to distinguish the presentation attributes between the contents. In practical applications, the data processing device can flexibly select a suitable attribute adjustment strategy based on multiple factors such as the characteristics of the output environment, the source of the content, and the importance of the content. Regardless of the adjustment method used, the ultimate goal is to ensure that the differences between different contents can be clearly and accurately reflected in the output results, so that viewers can quickly identify and understand the differences between the contents, thereby realizing the difference in information that users want to convey through presentation attribute annotations.

[0050] By implementing the embodiments of the present disclosure, when the first data is output, the presentation attribute of at least one content in the first data can be adjusted. When the first presentation attribute of the first content or the presentation attribute of the second content cannot be effectively presented in the output environment, it can be switched to other presentation attributes supported by the output environment, thereby ensuring that the differences between different contents can still be reflected in the output result.

[0051] In actual application scenarios, different output devices often have different output capabilities due to differences in their hardware characteristics, software versions or working modes. For example, color monitors can present rich color changes, while black and white printers can only present grayscale levels; high-version software supports more diverse markup formats, while low-version software may only support basic text styles; professional image devices can accurately restore subtle visual effects, while ordinary monitors may have color distortion or insufficient contrast. The difference in output capabilities directly affects the display effect of presentation attributes in the actual output environment.

[0052] In order to ensure that the presentation attributes can effectively convey the content difference in a specific output environment, based on the above embodiment, as an optional embodiment, the above data processing method further includes operations S201 to S202.

[0053] Operation S201, obtaining second data, where the second data represents an output capability of an output device; Operation S202: determining a presentation attribute that needs to be changed based on the second data.

[0054] The second data refers to digital information about the presentation capability of the output device, including the presentation attribute types, attribute parameter ranges, and related technical specification indicators supported by the device. In the disclosed embodiment, the second data can be understood as a set of system parameters used to characterize content presentation constraints in a specific output environment.

[0055] Exemplarily, for a display device, the second data may include display parameters such as color mode, color gamut range, resolution, contrast, and brightness; for a printing device, it may include output parameters such as supported paper type, ink color, printing accuracy, and texture effect; for a software environment, it may include format parameters such as supported font type, mark style, and special effect type.

[0056] During specific implementation, the data processing device first obtains the second data. The data processing device may also actively detect or query device parameters through the system interface; in addition, the second data may be obtained through preset device configuration information or manual settings by the user. Based on the acquired second data, the data processing device evaluates and screens the presentation attributes in the first data to determine the target attributes that need to be adjusted. The above process first needs to determine the feasibility of the original presentation attributes in the current output environment, that is, whether the output device supports the direct display of these attributes. For unsupported presentation attributes, the system marks them as objects that need to be adjusted.

[0057] Figure 2 A schematic diagram of a scenario for adjusting presentation attributes based on device output capability provided by an embodiment of the present disclosure is schematically shown.

[0058] like Figure 2 As shown, in an environment where multiple display devices work together, the system can dynamically adjust the presentation properties of the content according to the output capability differences of different display devices.

[0059] Specifically, the original document displayed in the main display area 201 of the computer contains multiple important content annotations, among which the first content "key indicators" uses a red filled background with a bold font presentation attribute, and the second content "related instructions" uses a green font with a wavy underline presentation attribute to reflect the difference in importance of the content.

[0060] When it is detected that the main display area 201 supports full color display, while the secondary display area 202 of the extended display screen only supports 16-level grayscale display, the system recognizes this difference in display capabilities. In this case, the main display area 201 can fully present these color-based presentation attributes, while the secondary display area 202 cannot show color differences and needs to adopt an alternative display solution.

[0061] Based on the actual display capability of the secondary display area 202 , the red filled background of the first content may be converted to a combination of a dark gray border and bold font, and the green font and wavy underline of the second content may be converted to a combination of a medium grayscale and a dotted underline.

[0062] In the final presentation effect, the main display area 201 maintains the original color labeling scheme to ensure the best visual effect on devices with full display capabilities; and the secondary display area 202 uses an optimized grayscale display scheme to also achieve effective distinction in the importance of content, so that even on devices with limited display capabilities, users can still accurately identify the differences between different content.

[0063] By implementing the embodiments of the present disclosure, the second data representing the output capability of the output device is obtained, and the presentation attribute that needs to be changed is determined based on the second data, thereby improving the environmental adaptability of the data processing method. The data processing device can understand the limitations of the target output environment before processing the first data, thereby avoiding directly outputting unsupported presentation attributes to the device.

[0064] In actual application scenarios, the output of the first data may involve different types of output devices and different applications on the output devices. Different output environments may use different applications or have different hardware characteristics, which leads to differences in the degree of support for presentation attributes.

[0065] In order to solve the problems existing in the above scenario, based on the above embodiment, as an optional embodiment, in operation S201 to operation S202, the following operations may be included: Operation S301, in response to the output device being a first output device, obtaining a target presentation attribute supported by a target application; the target application runs on the first output device and is used to output first data; Operation S302, in response to the output device being a second output device, obtaining a target presentation attribute supported by the second output device; Operation S303: in response to the target presentation attribute not including the first presentation attribute and / or the second presentation attribute, adjusting the first presentation attribute and / or the second presentation attribute.

[0066] Among them, the target presentation attribute refers to the set of content identification and differentiation methods that are actually available in a specific output environment, including all visual representation forms and parameter ranges supported by the output environment. In the embodiments of the present disclosure, the target presentation attribute can be understood as the markup type and format options that the current output device or application can correctly display. The target presentation attribute is used to further define the attribute presentation capability of the output environment, helping the system determine whether the original presentation attributes need to be adjusted, and how to choose a suitable alternative.

[0067] When the output device is the first output device, the presentation of the first data is subject to the functional characteristics of the target application. For example, when a user uses document editing software on a personal computer to view a document, even if the display supports full-color display, some advanced markup formats may not be correctly presented if the editing software version is low. Therefore, the data processing device needs to first obtain the target presentation attributes supported by the target application and accurately determine the presentation capability limitations at the software level.

[0068] When the output device is a second output device, such as a printer or a projector, the presentation of the first data is mainly limited by the hardware characteristics of the device. At this time, the data processing device needs to directly obtain the target presentation attributes supported by the second output device to understand the display constraints at the hardware level.

[0069] After obtaining the target presentation attribute, the data processing device will compare it with the first presentation attribute and the second presentation attribute in the first data. When it is found that the target presentation attribute set does not contain the original presentation attribute, corresponding adjustments are made.

[0070] Figure 3 A schematic diagram of a scene for adjusting a presentation effect based on a target presentation attribute provided by an embodiment of the present disclosure is schematically shown.

[0071] like Figure 3 As shown, in the scenario of accessing documents across applications, the system can dynamically adjust the display mode of the content according to the degree of support for presentation attributes of different applications.

[0072] Specifically, the original document displayed in the first application area 301 contains multiple format annotations, among which the first content "Processing Requirements" uses double horizontal lines with blue fill presentation attributes, and the second content "Precautions" uses underlines with yellow background presentation attributes to reflect the hierarchical relationship of the content.

[0073] When it is detected that the first application area 301 is a high-version editor that supports all format features, while the second application area 302 is a basic version viewer that only supports conventional formats, the system recognizes this difference in function support. In this case, the first application area 301 can fully present these complex format combinations, while the second application area 302 needs to adopt an alternative display solution because it does not support advanced markup formats.

[0074] Based on the actual support capability of the second application area 302 , the double horizontal lines and blue fill of the first content may be converted into a combination of bold underline and dark background, and the underline and yellow background of the second content may be converted into a combination of dotted underline and light background.

[0075] In the final presentation effect, the first application area 301 maintains the original high-level format to ensure the most ideal visual effect in a fully functional environment; and the second application area 302, through an optimized basic format combination, also achieves effective differentiation of content levels, so that even in applications with limited functions, users can still accurately understand the hierarchical relationship between different contents.

[0076] By implementing the embodiments of the present disclosure and analyzing target presentation attributes in different output environments, the problem of presentation attribute conversion between different devices and applications can be effectively solved, thereby establishing a complete presentation attribute adaptation mechanism.

[0077] In actual application scenarios, even if the output device supports specific presentation attributes, the visual effects of these presentation attributes when actually output may deviate from expectations due to the technical characteristics of the device itself or environmental factors. For example, different displays have different color reproduction capabilities, and the same color value may present different visual effects; for another example, under different lighting environments, the differentiation of certain presentation attributes may decrease, affecting the recognition effect of content differences. Therefore, it is not enough to simply determine whether the output device supports a certain presentation attribute.

[0078] In order to solve the problems existing in the above scenario, based on the above embodiment, as an optional embodiment, the above data processing method may further include the following operations: Operation S401, in response to the target presentation attribute including a first presentation attribute and a second presentation attribute, obtaining a first presentation effect corresponding to the first presentation attribute and a second presentation effect corresponding to the second presentation attribute in an output device; Operation S402: adjusting the first presentation attribute and / or the second presentation attribute based on the first presentation effect and the second presentation effect.

[0079] The presentation effect refers to the actual visual performance level that the presentation attribute can achieve in a specific output environment, including but not limited to technical indicators such as the display parameters, visual characteristics, and perceptual effects of the attribute. In the embodiments of the present disclosure, the presentation effect can be understood as the actual performance capability of the output device for various presentation attributes, such as the accuracy of restoring color attributes, the clarity of line attributes, the rendering quality of special effect attributes, etc. The presentation effect is used to evaluate whether the output device can accurately display the visual differences that the presentation attribute is intended to convey, so as to determine whether the presentation attribute needs to be optimized and adjusted.

[0080] Furthermore, obtaining the presentation effect does not need to rely on the specific display of the first content and the second content, but can be directly evaluated by analyzing the characteristics of the presentation attribute itself. For example, for the presentation attribute of the color type, the system can analyze the actual display effect of the color through the color profile of the output device; for the presentation attribute of the line type, the clarity of the line can be evaluated through the resolution parameter of the device.

[0081] Figure 4 A schematic diagram of a scene for adjusting presentation attributes based on presentation effects provided by an embodiment of the present disclosure is schematically shown.

[0082] like Figure 4 As shown, in the scene of switching between indoor and outdoor environments, the system can dynamically adjust the display mode of the content according to the actual display effect of the presentation attributes under different ambient lighting conditions.

[0083] Specifically, the original document displayed in the main screen display area 401 of the folding screen device contains multiple important annotations, among which the first content "Important Tips" uses the presentation attribute of a light red background, and the second content "Reference Information" uses the presentation attribute of a light yellow background, which is used to reflect the difference in importance of the content.

[0084] When it is detected that the main screen display area 401 is in a standard indoor lighting environment, and the secondary screen display area 402 is directly exposed to sunlight 403, and the display surface produces strong reflections, the system recognizes the impact of this environment on the presentation effect. In this case, the contrast of the light background in the main screen display area 401 is normal, but in the secondary screen display area 402, due to the strong ambient light, the presentation effect of the light background is greatly weakened, and the visual difference between the two colors becomes difficult to identify, and an enhanced display solution is required.

[0085] Based on the actual presentation effect of the secondary screen display area 402 in a strong light environment, the light red background of the first content can be enhanced to a combination of a dark red background with a black border, and the light yellow background of the second content can be adjusted to a combination of a dark orange background with a dotted border. The visual contrast is enhanced by increasing the color depth and adding border logos.

[0086] In the final presentation effect, the main screen display area 401 maintains the original labeling scheme to ensure the most comfortable visual effect under standard lighting conditions; and the secondary screen display area 402 uses an optimized high-contrast scheme to also achieve effective distinction in the importance of content, so that even in an environment with strong light interference, users can still accurately identify the importance differences between different content.

[0087] By implementing the embodiments of the present disclosure, when it is detected that the target presentation attributes include a first presentation attribute and a second presentation attribute, the data processing device will evaluate the actual presentation effects of these presentation attributes in the output device, and dynamically adjust based on the evaluation results of the first presentation effect and the second presentation effect, thereby being able to effectively deal with problems such as color reproduction differences in different display devices and contrast changes in different application environments.

[0088] In actual application scenarios, the adjustment of presentation attributes needs to consider factors from multiple dimensions. First, the presentation attribute itself has an expected standard display effect. This preset effect reflects the purpose of the user's annotation through this attribute. For example, when using red to highlight warning information, it is expected to achieve a striking visual effect. Secondly, the contrast between different presentation attributes directly affects the recognition effect of content differences. In addition, the display parameter deviation of the output device will also affect the accuracy of the presentation effect.

[0089] In order to solve the problems existing in the above scenario, based on the above embodiment, as an optional embodiment, the above data processing method may include the following operations: Operation S501, in response to a first difference value between a first presentation effect and a first preset presentation effect corresponding to a first presentation attribute, or a second difference value between a second presentation effect and a second preset presentation effect corresponding to a second presentation attribute being less than a first difference threshold, adjusting the first presentation attribute and / or the second presentation attribute; Operation S502, in response to a third difference value between the first presentation effect and the second presentation effect being less than a preset difference value and less than a second difference threshold, adjusting the first presentation attribute and / or the second presentation attribute; Operation S503: In response to a first display parameter of the first presentation effect or a second display parameter of the second presentation effect being inconsistent with a standard display parameter, adjusting the first presentation attribute and / or the second presentation attribute.

[0090] In operation S501, the preset presentation effect refers to the standard visual performance that a specific presentation attribute should achieve under ideal display conditions, including but not limited to quantifiable visual parameter indicators such as color saturation, contrast, and clarity. In the embodiments of the present disclosure, the preset presentation effect can be understood as the visual effect standard that the user expects to achieve when selecting a certain presentation attribute, such as the warning effect expected to be presented by red highlighting, the modification mark effect expected to be presented by wavy lines, etc. The preset presentation effect is used to provide a reference benchmark for the evaluation of presentation effects in an actual output environment, and to help the data processing device determine whether the presentation attribute accurately conveys the user's annotation intention.

[0091] On this basis, the difference value refers to the degree of deviation between the actual presentation effect and its corresponding benchmark effect, which can be understood as the quantitative value of the effect deviation obtained by the data processing device by comparing the actual display parameters with the standard parameters. The difference value is used to quantitatively evaluate the accuracy of the presentation effect and provide a basis for the system to determine whether the presentation attributes need to be adjusted.

[0092] Correspondingly, the difference threshold refers to the maximum allowable effect deviation range, which is the standard boundary value for judging whether the presentation effect is acceptable. It can be understood as a tolerance standard determined based on the visual perception characteristics of the human eye and actual application requirements. For example, color difference tolerance value, minimum contrast difference requirement, etc. The difference threshold is used to provide a judgment standard for the evaluation of the difference value. When the calculated difference value is less than the difference threshold, it indicates that the deviation of the actual presentation effect exceeds the acceptable range and needs to be optimized and adjusted.

[0093] For example, in a medical document review scenario, the original medical record displayed in display area a contains multiple medical order annotations, where the first content "execute immediately" is presented in a red bold font, and the second content "regular execution" is presented in a green italic font, to reflect the difference in the urgency of the medical orders.

[0094] When it is detected that display area a uses a professional medical display and display area b uses an ordinary office display, the system recognizes the difference in the color reproduction capabilities of the devices. In this case, the color and font effects in display area a are normal, but in display area b, due to insufficient color saturation of the display, the red font appears dull brick red, which is significantly different from the expected eye-catching warning effect, resulting in a weakened visual prompt effect of the degree of urgency.

[0095] Based on the actual presentation effect of display area b, the red bold font of the first content can be adjusted to a combination of dark red font with a black border and an "*" mark, and the green italic font of the second content can be adjusted to a combination of a larger inclination angle and a dotted underline, so as to enhance the visual distinction by adding auxiliary logos.

[0096] In operation S502, after obtaining the presentation effect, in addition to evaluating whether a single presentation attribute achieves the expected effect, it is also necessary to evaluate the degree of visual difference between different presentation attributes. If the visual effects produced by different presentation attributes are too similar, even if each attribute meets the expected presentation standard, it may affect the user's recognition effect of content differences.

[0097] Furthermore, after confirming that the first presentation effect and the second presentation effect meet the preset standards respectively, it is also necessary to evaluate the degree of difference between them. The data processing device calculates a third difference value between the first presentation effect and the second presentation effect. The third difference value can be obtained by comparing parameters in multiple dimensions, such as distance, brightness contrast, texture feature difference, etc. in color space. When the calculated third difference value is less than the second difference threshold, it indicates that the two presentation attributes are too close in visual performance and need to be differentiated and enhanced.

[0098] The data processing device can adopt a variety of strategies to enhance the distinction between presentation attributes. For example, the parameter difference can be increased on the basis of the original presentation attributes. For another example, new visual elements can be introduced as auxiliary identification, such as adding different types of borders, configuring complementary graphic marks, etc. For another example, a differentiated visual effect can be constructed by combining multiple attribute features to ensure that the display features between different contents are sufficiently distinguishable.

[0099] In operation S503, display parameters refer to a set of technical indicators used to describe and quantify the display capability of the device, including but not limited to hardware-related display characteristics such as color space parameters, resolution parameters, and optical parameters. Display parameters can be understood as hardware display capability parameters when the device actually presents content, such as the color range actually supported by the display. Display parameters are used to evaluate whether the device can accurately restore the expected presentation effect.

[0100] Correspondingly, standard display parameters refer to the minimum hardware indicator standards that can meet the requirements for accurate display of presentation attributes. Standard display parameters can be understood as the ideal hardware conditions required to ensure the normal display of presentation attributes, such as the minimum resolution required to clearly display text details. When the actual display parameters are lower than the standard display parameters, it indicates that the hardware capabilities of the current device may not meet the display requirements of the presentation attributes, and corresponding optimization adjustments are required.

[0101] In different devices and display environments, even if the same presentation properties are configured, the actual presentation effect may deviate from the standard display parameters due to differences in the device's hardware specifications, color management capabilities, etc. Therefore, the data processing device needs to evaluate the consistency between the actual display parameters and the standard display parameters.

[0102] In specific implementation, the data processing device obtains the first display parameter of the first presentation effect and the second display parameter of the second presentation effect respectively, and these display parameters may include hardware-related display indicators such as color space parameters, resolution parameters, and refresh rate parameters. By comparing with pre-defined standard display parameters, it is determined whether the display capability of the current device meets the standard requirements of the presentation attributes.

[0103] When the data processing device detects that the display parameters are inconsistent with the standard parameters, it means that the display capability of the current device may not be able to accurately restore the expected presentation effect. For example, when the color gamut coverage of the device is insufficient, some specific colors may not be accurately displayed; when the display resolution is low, some fine visual effects may become blurred.

[0104] The data processing device can map parameters that exceed the display capabilities of the device to the range supported by the device, or can compensate for the limitations of a single parameter by adjusting a combination of multiple display parameters. For example, when the color reproduction is insufficient, the contrast can be increased to enhance the visual effect. Device-independent visual elements can also be introduced to supplement the annotation effect to ensure that the difference in content can be accurately conveyed even on low-configuration devices.

[0105] By implementing the embodiments of the present disclosure, a three-layer progressive evaluation and adjustment mechanism is adopted to solve the technical problem of unsatisfactory content annotation effects in different display environments. First, by comparing the actual presentation effect with the preset presentation effect, the difference value is calculated to evaluate the display anomaly of a single presentation attribute, ensuring that the annotated presentation attribute can achieve the expected display effect. Secondly, by evaluating the difference values ​​between different presentation attributes, the system can identify and enhance the visual distinction of the annotated content, making it easier for users to quickly distinguish between content of different levels. Thirdly, by comparing the actual display parameters with the standard display parameters, the impact of device hardware limitations on the presentation effect can be identified and overcome.

[0106] The above multi-dimensional evaluation and adjustment mechanism can maintain the distinguishability of content in different output and display environments, while adapting to diverse hardware conditions, providing a stable and reliable content presentation solution for various application scenarios.

[0107] In actual application scenarios, the presentation attributes of content not only need to adapt to the technical limitations of the output environment, but also need to accurately reflect the importance and feature differences of the content itself. For example, in the document editing process, users usually choose the corresponding annotation method based on the importance of the content, such as using eye-catching presentation attributes for key information and relatively low-key presentation attributes for secondary information. However, when these presentation attributes need to be adjusted according to the output environment, if only technical adaptation is considered and the semantic characteristics of the content are ignored, it may cause the visual expression of importance to not match the actual content.

[0108] In order to solve the problems existing in the above scenario, based on the above embodiment, as an optional embodiment, the above data processing method may further include the following operations: Operation S601, obtaining third data and fourth data, wherein the third data represents the importance of the content, and the fourth data represents the content features corresponding to the first content and the second content; Operation S602: determining a presentation attribute that needs to be changed based on the third data and the fourth data.

[0109] Among them, the third data refers to the quantitative description information of the importance of the content carried by the presentation attribute in the annotation system, including but not limited to measurable hierarchical indicators such as priority level, importance weight, urgency score, etc. The third data can be understood as a mapping relationship between the importance of information expressed by different presentation attributes, for example, red highlight corresponds to the highest importance, and green font corresponds to normal importance. The third data is used to judge the importance information to be conveyed by the original annotation scheme when adjusting the presentation attributes, to ensure that the expression of the importance of the content will not be changed or weakened in the process of changing the presentation attributes, thereby maintaining the semantic accuracy of the document annotation.

[0110] Correspondingly, the fourth data refers to the feature description information obtained by semantically analyzing the first content and the second content, including but not limited to content attribute features such as text type, keywords, contextual information, and structural features. It can be understood as a set of semantic features that reflect the actual importance of the content, such as whether it contains warning words, whether it involves key operations, whether it belongs to the core chapter, and other semantic identifiers. The fourth data is used to evaluate the actual importance of the content, provide a judgment basis based on semantic understanding for the adjustment of presentation attributes, and ensure that the visual expression is consistent with the content characteristics.

[0111] After obtaining the third data and the fourth data, the data processing device first analyzes the third data to understand the hierarchical relationship of importance to be expressed by the original presentation attribute. Then, the actual importance of the content is evaluated by analyzing the fourth data. By comparing the information of these two dimensions, the system can identify whether there is a mismatch between the expression of the importance of the presentation attribute and the actual importance of the content. When a mismatch is found, the data processing device will adjust the distribution scheme of the presentation attribute accordingly to ensure that the visual can accurately reflect the actual importance of the content.

[0112] In practical applications, the importance of content includes both subjective importance based on user personal cognition and objective importance based on content attributes. These two importance levels may be inconsistent and need to be accurately conveyed through reasonable configuration of presentation attributes.

[0113] In a feasible implementation, in order to reflect the user's subjective importance of different contents, the user can select presentation attributes based on personal habits and usage preferences. For example, in a schedule management scenario, the user may mark "next week's regular meeting" as red highlight and "this week's urgent task" as yellow background based on personal planning. The above marking method reflects the user's subjective judgment on the priority of tasks.

[0114] In another feasible implementation, in order to reflect the objective importance of different contents, presentation attributes can be automatically assigned according to the attribute characteristics of the content. For example, in medical documents, "abnormal breathing and heartbeat" related to the patient's vital signs are bolded in red, while ordinary "body temperature records" are in regular fonts. The above annotation method is based on medical professional standards and reflects the importance of the information itself.

[0115] It should be noted that the above examples are only exemplary. In another feasible implementation, both subjective and objective importance can be reflected by adding different combinations of presentation attributes. For example, in engineering design documents, for objectively important content such as "safety warnings", the system defaults to using red fonts to indicate their objective importance, and users can overlay border styles to mark their subjective level of concern, thereby achieving dual-dimensional expression of importance.

[0116] In order to solve the above technical problem, based on the above embodiment, as an optional embodiment, operation S602 may specifically include the following operations: If the content with the first presentation attribute reflects a lower content importance than the content with the second presentation attribute, in response to the content feature indicating that the first content is more important than the second content, the first presentation attribute and / or the second presentation attribute is adjusted.

[0117] In specific implementation, the data processing device understands the importance levels expressed by different presentation attributes by analyzing the third data. In the annotation system, the first presentation attribute is usually used to indicate the highest importance, while the second presentation attribute indicates the second highest importance. However, when the system finds through analyzing the fourth data that the content with the second presentation attribute actually contains more important information, while the content with the first presentation attribute is relatively less important information, it is necessary to adjust this unreasonable annotation method.

[0118] In a feasible implementation, the data processing device may directly exchange the presentation attributes of the two contents, change the secondary content that originally used the first presentation attribute to the second presentation attribute, and change the important content that originally used the second presentation attribute to the first presentation attribute.

[0119] In another feasible implementation, the data processing device may keep the first presentation attribute of the important content unchanged, but add additional visual emphasis to it, while reducing the visual prominence of the secondary content.

[0120] In another feasible implementation, the data processing device may also select other more suitable combinations of presentation attributes according to the characteristics of the output environment to ensure that the adjusted visual hierarchy can accurately reflect the actual importance relationship of the content.

[0121] For example, in the medical document review scenario, the original medical record displayed in display area a contains multiple doctor's order annotations, where the first content "patient condition observation" uses a yellow background with a normal font presentation attribute, and the second content "vital sign monitoring" uses a red background with a bold font presentation attribute. The third data obtained through analysis shows that in the original annotation system, the red background is set as the highest priority, indicating information that needs to be focused on, while the yellow background indicates secondary prompt information.

[0122] However, after the system obtained the fourth data through semantic analysis, it was found that the first content marked as "patient condition observation" involved real-time monitoring requirements for key vital indicators such as the patient's state of consciousness, breathing, and pupils, which could lead to delayed disease if not properly observed. In contrast, the second content marked as "vital signs monitoring" only includes routine basic examination items such as temperature and blood pressure measurements. In the above case, the actual importance of the first content is significantly higher than that of the second content, but the visual hierarchy of the presentation attributes conveys the opposite importance relationship.

[0123] Based on the analysis results of the third and fourth data, the data processing device changes the presentation attribute of the first content related to the observation of key life indicators to a red background with a bold font to highlight its high importance; and changes the presentation attribute of the second content of the routine examination items to a yellow background with a normal font to reduce its visual priority. This ensures that the presentation attribute accurately reflects the actual importance of the doctor's order and avoids medical staff from making misjudgments on execution priority due to deviations in visual prompts.

[0124] By implementing the embodiments of the present disclosure and adopting a dynamic adjustment mechanism of presentation attributes based on content features, it is possible to effectively avoid the misalignment between the importance expression in the annotation system and the actual importance of the content, thereby providing a more accurate and reliable information display effect.

[0125] In actual application scenarios, different users may form different annotation systems based on their personal habits. Such differences in annotation habits may lead to comprehension barriers when sharing documents across users. For example, some users are accustomed to using color tags to distinguish the importance of content, while others prefer to use line tags; some users understand red as the highest priority, while others may be accustomed to using green to represent important content. When documents need to be shared between users with different annotation habits, if the presentation attributes are not properly converted, it may cause deviations in information understanding.

[0126] In order to solve the above problem, based on the above embodiment, as an optional embodiment, the above data processing method may further include the following operations: Operation S701, obtaining fifth data, where the fifth data represents a correspondence between different contents preset by a target object of an output device and different presentation attributes; Operation S702: in response to the correspondence between the first content and the first presentation attribute, and / or the correspondence between the second content and the second presentation attribute not conforming to the correspondence represented by the fifth data, adjusting the first presentation attribute and / or the second presentation attribute.

[0127] Among them, the fifth data refers to the configuration information that describes the mapping relationship between different content types and presentation attributes for the target user group, including but not limited to user-defined display preference settings such as annotation rules, visual mapping, and usage habits. The fifth data can be understood as the content annotation habits formed by specific users or user groups in long-term work practice, such as the doctor team agreeing to use red to mark emergency medical orders, and the teacher group accustomed to using wavy lines to mark text that needs to be modified. Fixed annotation modes. The fifth data is used to guide the system to dynamically convert the presentation attributes of the content into the annotation method that the recipient is accustomed to when transferring documents between different users, ensuring that information can be accurately conveyed between different annotation systems.

[0128] In specific implementation, the data processing device obtains the fifth data, that is, the mapping relationship between the content and the presentation attribute preset by the target object of the output device. Then check the correspondence between the first content and the first presentation attribute, and the correspondence between the second content and the second presentation attribute, and determine whether these correspondences conform to the preset mapping relationship represented by the fifth data. When the system finds that the current presentation attribute allocation scheme does not conform to the usage habits of the target object, it triggers the presentation attribute adjustment process. During the adjustment process, the data processing device will convert the original presentation attributes into the attribute type that the target object is accustomed to using based on the mapping relationship recorded in the fifth data, to ensure that the converted annotation method conforms to the cognitive habits of the target object.

[0129] For example, in the medical document review scenario, the original medical record displayed in display area a contains multiple medical order annotations, where the first content "focus on" uses double horizontal lines with bold font presentation attributes, and the second content "regular review" uses a single horizontal line with ordinary font presentation attributes to reflect the importance of medical orders. This annotation method is derived from the personal usage habits of the attending physician who created the medical order.

[0130] When the data processing device detects that the target object of display area b is the intern team, it is found through analyzing the fifth data that the team agrees to use color markings to distinguish the importance of medical orders in their daily work, specifically using green to highlight key matters and yellow to highlight routine review items. In this case, the line-based marking method in display area a is inconsistent with the usage habits of the intern team, which may affect their quick judgment of the importance of medical orders.

[0131] Based on the corresponding relationship represented by the fifth data, the data processing device converts the double horizontal line bold combination of the first content into a presentation attribute of green highlight with bold font, and converts the single horizontal line ordinary font of the second content into a presentation attribute of yellow highlight. Through this automatic conversion, it is ensured that the medical order information is presented in a visual form familiar to the intern team.

[0132] By implementing the embodiments of the present disclosure, a correspondence between the content and presentation attributes of the target object is established, providing a decision-making basis for judging and adjusting the presentation attributes. Through real-time monitoring and automatic adjustment mechanisms, the tedious operation of manually converting the annotation method is avoided, and the data processing efficiency is improved. Secondly, by automatically converting the presentation attributes of the content into a form that conforms to the usage habits of the target object, the recipient can quickly understand the content attributes based on familiar visual cues, reducing the understanding bias in the interpretation process, and further effectively solving the communication barriers caused by differences in annotation habits in cross-departmental and cross-team collaboration scenarios.

[0133] In actual application scenarios, dynamic adjustment of presentation attributes for different devices and user needs often involves complex rule judgments and policy selection. Traditional adjustment methods based on fixed rules require pre-definition of a large number of conversion rules, which is difficult to adapt to diverse application environments and personalized display needs. For example, when documents circulate between different departments, it may be necessary to consider multiple dimensions such as device limitations, user habits, and content importance at the same time. This complex decision-making process is difficult to achieve through simple conditional judgments.

[0134] In order to solve the above problem, the embodiment of the present disclosure introduces a generative model to assist in the adjustment decision of the presentation attribute. Based on the above embodiment, as an optional embodiment, the above operation S102 may also include the following operations: Operation S801, inputting first data into a generative model; Operation S802: obtaining first data output by the generative model, wherein a presentation attribute of at least one of first content and second content in the first data output by the generative model changes.

[0135] Among them, the generative model refers to an artificial intelligence model that can generate output results that conform to specific rules or patterns based on input data, including but not limited to trainable intelligent processing models such as deep learning models, neural network models, and transformer models. In the embodiment of the present disclosure, the generative model can be an intelligent decision-making model that masters the adjustment method of presentation attributes in different scenarios by learning a large number of document annotation samples. The generative model is used to analyze the content features and presentation attribute features in the input document, and generate optimized first data according to the requirements of the target output environment.

[0136] For example, the generative model can understand the regulatory requirements and habitual preferences of different departments when annotating content by learning document annotation data in different fields such as medicine, education, and engineering. When new first data is input, the generative model can identify important content fragments in the document, analyze whether the currently used presentation attributes are in line with the cognitive habits of the target user, and generate a generative model that is more suitable for the target scenario. For another example, the generative model can learn the support characteristics of different display devices for presentation attributes, and quickly generate alternative solutions that meet hardware capabilities when faced with device limitations, ensuring that the document content can be clearly displayed on different devices.

[0137] It should be noted that the training process of the generative model belongs to the scope of the prior art. The embodiments of the present disclosure mainly focus on explaining how to optimize the adjustment process of the presentation attributes by configuring and using the trained generative model. As for the specific technical details such as data collection, feature extraction, parameter optimization, etc. involved in the model training process, since these are basic technical means in the field of artificial intelligence, technicians in this field can choose the appropriate training method according to actual needs, and will not go into details here.

[0138] By implementing the embodiments of the present disclosure, the generative model is used to intelligently analyze and process the first data, which can effectively solve the adaptation problem of the traditional rule-based matching method in complex scenarios. The generative model can simultaneously consider the semantic characteristics of the first content and the second content, the effects of the presentation attributes, and the constraints of the output environment, breaking through the technical limitation that the preset rules are difficult to cover all application scenarios. Through the intelligent decision-making of the model, the system can better maintain the semantic consistency before and after the presentation attribute adjustment, and ensure that the difference relationship between the first content and the second content is accurately conveyed during the transformation process, thereby improving the usability and comprehensibility of the document in a variety of application environments.

[0139] Figure 5 The structure block diagram of a data processing device according to an embodiment of the present disclosure is schematically shown.

[0140] like Figure 5 As shown, the data processing device 900 includes a first obtaining module 910 and a first output module 920 .

[0141] A first obtaining module 910 is used to obtain first data; the first data at least includes first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; The first output module 920 is used to perform output based on the first data, and the presentation attribute of at least one of the output first content and the second content is changed to reflect the content difference.

[0142] Based on the above embodiment, as an optional embodiment, the data processing device 900 may further include a second obtaining module and a data processing module.

[0143] A second obtaining module, used for obtaining second data, where the second data represents the output capability of the output device; The data processing module is used to determine the presentation attribute that needs to be changed based on the second data.

[0144] Based on the above embodiment, as an optional embodiment, the second obtaining module is specifically used to obtain the target presentation attribute supported by the target application in response to the output device being the first output device; the target application runs on the first output device and is used to output the first data; In response to the output device being a second output device, obtaining a target presentation attribute supported by the second output device; The data processing module is specifically configured to adjust the first presentation attribute and / or the second presentation attribute in response to the target presentation attribute not including the first presentation attribute and / or the second presentation attribute.

[0145] On the basis of the above embodiments, as an optional embodiment, the data processing module is specifically used to obtain a first presentation effect corresponding to the first presentation attribute and a second presentation effect corresponding to the second presentation attribute in an output device in response to the target presentation attribute including a first presentation attribute and a second presentation attribute; and adjust the first presentation attribute and / or the second presentation attribute based on the first presentation effect and the second presentation effect.

[0146] On the basis of the above embodiments, as an optional embodiment, the data processing module is specifically used to adjust the first presentation attribute and / or the second presentation attribute in response to a first difference value between the first presentation effect and the first preset presentation effect corresponding to the first presentation attribute, or a second difference value between the second presentation effect and the second preset presentation effect corresponding to the second presentation attribute being less than a first difference threshold; adjust the first presentation attribute and / or the second presentation attribute in response to a third difference value between the first presentation effect and the second presentation effect being less than the preset difference value and less than the second difference threshold; adjust the first presentation attribute and / or the second presentation attribute in response to the first display parameter of the first presentation effect, or the second display parameter of the second presentation effect being inconsistent with the standard display parameter.

[0147] Based on the above embodiment, as an optional embodiment, the data processing device 900 may further include a third obtaining module and a fourth obtaining module.

[0148] A third obtaining module is used to obtain third data, where the third data represents the importance of the content; A fourth obtaining module, used to obtain fourth data, where the fourth data represents content features corresponding to the first content and the second content; The data processing module is further used to determine the presentation attribute that needs to be changed based on the third data and the fourth data.

[0149] Based on the above embodiment, as an optional embodiment, the data processing module is specifically used to adjust the first presentation attribute and / or the second presentation attribute in response to the content feature characterizing that the first content is more important than the second content if the content with the first presentation attribute reflects a lower content importance than the content with the second presentation attribute.

[0150] Based on the above embodiment, as an optional embodiment, the data processing device 900 may further include a fifth obtaining module, which is used to obtain fifth data, where the fifth data represents the correspondence between different contents preset by the target object of the output device and different presentation attributes; The data processing module is also used to adjust the first presentation attribute and / or the second presentation attribute in response to the correspondence between the first content and the first presentation attribute, and / or the correspondence between the second content and the second presentation attribute not conforming to the correspondence represented by the fifth data.

[0151] Based on the above embodiment, as an optional embodiment, the data processing device 900 may further include a data input module and a sixth obtaining module.

[0152] A data input module, used for inputting first data into the generative model; The second output module is used to obtain first data output by the generative model, wherein a presentation attribute of at least one of the first content and the second content in the first data output by the generative model changes.

[0153] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0154] For example, any multiple of the first acquisition module 910 and the first output module 920 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 910 and the first output module 920 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the first acquisition module 810 and the first output module 920 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0155] It should be noted that the data processing system part in the embodiments of the present disclosure corresponds to the data processing method part in the embodiments of the present disclosure. The description of the data processing system part specifically refers to the data processing method part, which will not be repeated here.

[0156] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data processing method, comprising: obtaining first data; The first data includes at least first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; The output is performed based on the first data, and the presentation attribute of at least one of the output first content and the output second content changes to reflect the content difference.

2. The method according to claim 1, further comprising: obtaining second data, wherein the second data represents an output capability of the output device; A presentation attribute that needs to be changed is determined based on the second data.

3. The method according to claim 2, wherein obtaining the second data comprises: In response to the output device being a first output device, obtaining a target presentation attribute supported by a target application; The target application runs on the first output device and is used to output the first data; In response to the output device being a second output device, obtaining a target presentation attribute supported by the second output device; The determining the presentation attribute that needs to be changed based on the second data includes: In response to the target presentation attribute not including the first presentation attribute and / or the second presentation attribute, the first presentation attribute and / or the second presentation attribute are adjusted.

4. The method according to claim 3, wherein the determining the presentation attribute that needs to be changed based on the second data further comprises: In response to the target presentation attribute including the first presentation attribute and the second presentation attribute, obtaining a first presentation effect corresponding to the first presentation attribute and a second presentation effect corresponding to the second presentation attribute in the output device; Based on the first presentation effect and the second presentation effect, the first presentation attribute and / or the second presentation attribute are adjusted.

5. The method according to claim 4, wherein adjusting the first presentation attribute and / or the second presentation attribute based on the first presentation effect and the second presentation effect comprises any one of the following: In response to a first difference value between the first presentation effect and a first preset presentation effect corresponding to the first presentation attribute, or a second difference value between the second presentation effect and a second preset presentation effect corresponding to the second presentation attribute being less than a first difference threshold, adjusting the first presentation attribute and / or the second presentation attribute; In response to a third difference value between the first presentation effect and the second presentation effect being less than a preset difference value and less than a second difference threshold, adjusting the first presentation attribute and / or the second presentation attribute; In response to a first display parameter of the first presentation effect or a second display parameter of the second presentation effect being inconsistent with a standard display parameter, the first presentation attribute and / or the second presentation attribute is adjusted.

6. The method according to any one of claims 1 to 5, further comprising: Obtaining third data and fourth data, wherein the third data represents the importance of content, and the fourth data represents content features corresponding to the first content and the second content; Based on the third data and the fourth data, a presentation attribute that needs to be changed is determined.

7. The method according to claim 6, wherein determining the presentation attribute that needs to be changed based on the third data and the fourth data comprises: If the content with the first presentation attribute reflects a lower content importance than the content with the second presentation attribute, in response to the content feature indicating that the first content is more important than the second content, the first presentation attribute and / or the second presentation attribute is adjusted.

8. The method according to any one of claims 1 to 5, further comprising: Obtaining fifth data, wherein the fifth data represents a correspondence between different contents preset by a target object of an output device and different presentation attributes; In response to the correspondence between the first content and the first presentation attribute, and / or the correspondence between the second content and the second presentation attribute not conforming to the correspondence represented by the fifth data, the first presentation attribute and / or the second presentation attribute are adjusted.

9. The method according to claim 1, wherein the outputting based on the first data comprises: Inputting the first data into the generative model; Obtaining first data output by the generative model; The presentation attribute of at least one of the first content and the second content in the first data output by the generative model changes.

10. A data processing device comprising: A first obtaining module, used for obtaining first data; The first data includes at least first content and second content, the first content has a first presentation attribute, and the second content has a second presentation attribute; The first output module is used to perform output based on the first data, and the presentation attribute of at least one of the output first content and the output second content changes to reflect the content difference.