Data processing method and device and electronic equipment
By determining multiple sub-attributes of the target attributes in the folder and adjusting the file layout using the second instruction, the problem of poor flexibility in file layout adjustment in the prior art is solved, and a more reasonable and personalized file layout is achieved.
Patent Information
- Application Number
- CN202510551028.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-07-22
AI Technical Summary
In the prior art, the file layout adjustment method in folders is poor in flexibility and cannot reasonably meet the layout needs of different users.
By obtaining the first instruction, the target attribute is determined, and a second instruction is obtained based on the multiple sub-attributes included in the target attribute, the target sub-attribute is determined using the second instruction, and the file layout is adjusted.
More flexible and reasonable file layout adjustments have been achieved, which can meet the personalized layout needs of different users.
Smart Images

Figure CN120353764A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information processing technologies, and in particular, to a data processing method, apparatus, and electronic device. Background Art
[0002] The resource manager provided by the operating system of an electronic device can adjust the layout of files in a folder. For example, based on attributes such as file names or modification times, the layout of multiple files is determined.
[0003] However, currently, the method for adjusting the layout of files in a folder has poor flexibility and cannot reasonably layout the files. Summary of the Invention
[0004] On the one hand, this application provides a data processing method, including:
[0005] Obtaining a first instruction, where the first instruction is used to indicate adjusting the layout of multiple files based on a target attribute;
[0006] In response to the target attribute including multiple sub-attributes that can affect the file layout, obtaining a second instruction, and determining a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute;
[0007] Adjusting the layout of the multiple files based on the target sub-attribute.
[0008] In a possible implementation, the obtaining the second instruction includes:
[0009] In response to a first input operation, obtaining a second instruction, where the first input operation is used to indicate the sub-attribute on which the adjustment of the layout of the multiple files is based;
[0010] Or,
[0011] Determining a second instruction based on the first layout description information input by a second input operation, where the second input operation is used to trigger the obtaining of the first instruction.
[0012] In another possible implementation, the in response to the first input operation, obtaining the second instruction includes:
[0013] Displaying a first information box, and in response to a selection operation on the sub-attributes displayed in the first information box, obtaining a second instruction, where the first information box is used to display the multiple sub-attributes;
[0014] Or,
[0015] Displaying a second information box, and obtaining a second instruction based on the second layout description information input in the second information box.
[0016] In yet another possible implementation, obtaining a second instruction in response to a first input operation includes:
[0017] Displaying a third information box and obtaining the description information input within the third information box;
[0018] Determining the file layout intention of the description information based on a generation model to trigger the generation of a second instruction corresponding to the file layout intention, where the file layout intention is used to characterize the target sub-attribute on which the layout adjustment of the multiple files is based.
[0019] In yet another possible implementation, displaying an information box includes at least one of the following:
[0020] In response to the multiple files being part of a target folder, displaying the information box within a second display area associated with a first display area where the multiple files are located, the second display area being adjacent to the first display area, and the target folder being the folder where the multiple files are located;
[0021] In response to the multiple files being all the files in the target folder, displaying the information box within a third display area associated with the field display area corresponding to the target attribute in the target folder, the third display area being adjacent to the field display area;
[0022] Displaying the information box within the session interaction box corresponding to the running model;
[0023] Wherein, the information box includes a first information box, a second information box, or a third information box.
[0024] In yet another possible implementation, it further includes:
[0025] In response to the target attribute including only one sub-attribute that can affect the file layout, determining the content category corresponding to the file content of each file among the multiple files;
[0026] Adjusting the layout of the multiple files based on the sub-attribute in the target attribute and the content categories corresponding to the respective files among the multiple files.
[0027] In yet another possible implementation, it further includes:
[0028] In response to the target attribute including only one sub-attribute that can affect the file layout, determining the usage information of each file among the multiple files;
[0029] Adjusting the layout of the multiple files based on the sub-attribute in the target attribute and the usage information of the respective files among the multiple files.
[0030] In yet another possible implementation, it further includes:
[0031] In response to the target attribute including only one sub-attribute that can affect the file layout and the target attribute belonging to at least one set attribute, display a text input box;
[0032] Based on the fourth layout description information input in the text input box, obtain the feature information of each file in the multiple files on at least one target file feature, where the fourth layout description information is used to describe the target file feature required for reference in laying out the multiple files;
[0033] Based on the sub-attribute in the target attribute and the feature information of each file in the multiple files on at least one target file feature, adjust the layout of the multiple files.
[0034] In another aspect, the present application also provides a data processing device, including:
[0035] An instruction acquisition unit, configured to acquire a first instruction for instructing to adjust the layout of multiple files based on a target attribute;
[0036] An attribute acquisition unit, configured to, in response to the target attribute including multiple sub-attributes that can affect the file layout, acquire a second instruction, and determine a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute;
[0037] A layout adjustment unit, configured to adjust the layout of the multiple files based on the target sub-attribute.
[0038] In another aspect, the present application also provides an electronic device, including: a processor and a memory;
[0039] Wherein, the processor is configured to acquire a first instruction for instructing to adjust the layout of multiple files based on a target attribute; in response to the target attribute including multiple sub-attributes that can affect the file layout, acquire a second instruction, and determine a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute; adjust the layout of the multiple files based on the target sub-attribute;
[0040] The memory is configured to store a program required for the processor to execute operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original and elements are not necessarily drawn to scale.
[0042] Figure 1 A flowchart of a data processing method provided by this application;
[0043] Figure 2 Another flowchart of a data processing method provided by this application;
[0044] Figure 3 An example diagram of the first information box shown in this application;
[0045] Figure 4 An example diagram of the adjusted file layout of this application;
[0046] Figure 5 Another flowchart of a data processing method provided by this application;
[0047] Figure 6 An example diagram of the second information box shown in this application;
[0048] Figure 7 An example diagram showing the information box when adjusting the layout of some files in a folder;
[0049] Figure 8 An example diagram showing the information box within the session interaction box of the running model;
[0050] Figure 9 Another flowchart showing the data processing method provided by this application;
[0051] Figure 10 Another flowchart of a data processing method provided by this application;
[0052] Figure 11 An example diagram of adjusting the file layout based on the content category and target attributes of the file content in this application;
[0053] Figure 12 Another flowchart of a data processing method provided by this application;
[0054] Figure 13 An example diagram of the composition structure of a data processing device provided by this application;
[0055] Figure 14 An example diagram of the composition architecture of an electronic device provided by this application. Detailed implementation
[0056] The embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. The terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, rather than intended to limit the present application. As is known to those of ordinary skill in the art, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0057] The terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present application are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing when describing objects with the same attributes in the embodiments of the present application. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device comprising a series of units does not have to be limited to those units, but may include other units not clearly listed or inherent to these processes, methods, products or devices.
[0058] As Figure 1 , a schematic flowchart of a data processing method provided by the present application is shown. The method of this embodiment is applied to an electronic device, and the electronic device can be a terminal device such as a mobile phone or a tablet computer; it can also be a device such as a server, without limitation.
[0059] The method of this embodiment may include:
[0060] S101, obtain a first instruction.
[0061] The first instruction is used to indicate adjusting the layout of multiple files based on a target attribute.
[0062] Wherein, the target attribute is a file attribute based on which the first instruction indicates adjusting the layout of multiple files. Therefore, the target attribute is a kind of file attribute that the file has. For example, the target attribute can be file name, creation time, file creator, file size or modification time, etc.
[0063] In particular, the operating system of the electronic device generally configures multiple file attributes that can be used to determine the file layout. For example, in a folder, the file attribute names corresponding to multiple file attributes that can be used to determine the file layout can be displayed. For example, the file attribute names displayed in the folder may include: file name, file size, modification time and file type. Correspondingly, when it is necessary to adjust the file layout, the user can select the file attribute based on which to adjust the file layout from the multiple file attributes. On this basis, the target attribute can belong to multiple file attributes set by the operating system that can be used to determine the file layout.
[0064] In this application, a file refers to a unit in an electronic device for storing data. Based on the different data stored in the file, the specific form of the file can have multiple possibilities. For example, the file can be a document, a program, an image, an audio, or a video, etc. In particular, the file can also be a folder, such as a sub-folder of a folder.
[0065] In this application, there can be multiple possible specific implementation manners for obtaining the first instruction, and no limitation is imposed thereon.
[0066] S102: In response to the target attribute including multiple sub-attributes that can affect the file layout, obtain a second instruction, and determine a target sub-attribute based on the second instruction.
[0067] The target sub-attribute belongs to the multiple sub-attributes included in the target attribute.
[0068] Among them, a sub-attribute refers to a kind of attribute information included in the target attribute and can be used as an adjustment basis for adjusting the layout of the multiple files.
[0069] It can be understood that since the attribute values of the target attributes corresponding to different files are different. For example, taking the target attribute as the file name, the file names of different files are different. Therefore, the sub-attributes in the target attribute can be a kind of attribute information extracted based on the attribute values of the target attributes corresponding to the multiple files. For example, the sub-attribute can be a kind of attribute information extracted based on the content that belongs to the same data type, expresses the same semantic category, or is a relevant string among the attribute values of the target attributes corresponding to the multiple files.
[0070] In this application, based on the target attributes corresponding to multiple files, intelligent models such as a neural network model, a semantic analysis model, or a generation model can be combined to determine the sub-attributes in the target attribute that can affect the file layout, and the specific implementation is not limited.
[0071] Among them, the attribute values of the target attributes corresponding to the multiple files all include the attribute values belonging to the sub-attribute, but the attribute values of the sub-attributes corresponding to different files can be different.
[0072] Illustrative example: Taking the target attribute as the file name, assume that the files whose layout needs to be adjusted include: File A, File B, File C, File D, and File E, and the file names of these files are as follows:
[0073] The file name of File A is: cf2.app-24.423-prod-01e1;
[0074] The file name of File B is: ca3.app-24.429-stag-3aff;
[0075] The file name of File C is: c11.app-24.422-stag-2drt;
[0076] The file name of File D is: cgd.app-24.430-prod-01fe;
[0077] The file name of File E is: cc0.app-24.425-stag-0eas;
[0078] By extracting information from the file names of the above five files or analyzing them in combination with an intelligent model, it can be seen that each of the five file names has a group of numbers, and the number groups in each file name are similar, regular but not exactly the same. Based on this, the layout arrangement information for adjusting the layout of these multiple files can be based on the number group in the file name. Correspondingly, in this application, based on the number group in each file name, it can be determined that the target attribute of the file name can include sub-attribute 1 that can affect the file layout, and this sub-attribute 1 is an attribute used to characterize the number group in the file name. Among them, this sub-attribute 1 can be named using at least part of the number group in each file name. For example, sub-attribute 1 can be expressed as "24.423, 24.429... 24.425".
[0079] Moreover, by performing semantic analysis on the file names of each file or analyzing them in combination with an intelligent model, it can be seen that after the number group in each file name, there is a group of strings used to represent the application's development environment, and this group of strings is prod or stag. Among them, prod represents the production environment (or the formal environment), and stag represents the pre-release environment (or the simulation environment). Therefore, based on the strings representing the development environment in each file name, sub-attribute 2 that affects the file layout can also be determined in the file name. This sub-attribute 2 is an attribute used to characterize the attribute representing the development environment in the file name, and it can be named using the string representing the development environment. For example, sub-attribute 2 can be expressed as "prod, stag".
[0080] In addition, considering that in the current existing technology, when laying out files according to the file name, the position point where the first characters in each file name are different will be determined according to the order of characters in the file name, and the files will be sorted according to the characters at this position point. Therefore, in this application, it can also be determined that each of the five groups of file names has a group of character-number combinations, which are: cf, ca, c1, cg, and cc. Then, a sub-attribute 3 representing the character combination can be extracted, and sub-attribute 3 can be expressed as "cf, ca,... cc".
[0081] In this application, the second instruction may be an instruction indicating a target sub-property. For example, the second instruction is used to indicate layout adjustment of multiple files according to the target sub-property. In the case where the target property includes multiple sub-properties, there can be multiple implementation manners for obtaining the second instruction, and no limitation is imposed thereon.
[0082] It can be understood that the target property including multiple sub-properties that can affect the file layout indicates that there are multiple possible file layout manners based on the target property. On this basis, by obtaining the second instruction and determining the target sub-property based on the second instruction, this application actually realizes reasonably determining a required file layout manner from multiple possible file layout manners.
[0083] S103, adjust the layout of multiple files based on the target sub-property.
[0084] Among them, the layout of multiple files may include but is not limited to the sorting order of multiple files, the relative arrangement positions of multiple files in the window interface of the folder where they are located, and the icon display mode of multiple files, etc., and no limitation is imposed thereon.
[0085] It can be understood that in the current conventional file layout adjustment manner, after obtaining an instruction to adjust the layout of multiple files based on the target property, it does not analyze whether there are multiple sub-properties in the target property that can affect the file layout, but adjusts the layout of multiple files according to the default rule based on the target property. In this way, the flexibility of the layout adjustment of multiple files is poor, it is easy to have an unreasonable file layout situation, and it cannot meet the different layout requirements of different users for files.
[0086] In this application, after obtaining the first instruction used to indicate layout adjustment of multiple files based on the target property, different from directly adjusting the layout of multiple files based on the overall target property, in this application, if it is determined that the target property includes multiple sub-properties that can affect the file layout, the target sub-property used as the basis for layout adjustment of multiple files will be determined from the multiple sub-properties included in the target property based on the obtained second instruction, so that the target sub-property required to meet the layout adjustment requirements can be more reasonably determined, and the layout of multiple files can be more reasonably adjusted based on the target sub-property.
[0087] To facilitate understanding of the problems of poor flexibility and unreasonable layout existing in the current manner of adjusting the file layout, and to more easily understand the benefits of this solution, the following still takes the target property as the file name and the adjustment of the sorting order of multiple files as an example, and combines the above-mentioned example of five files for description:
[0088] In the current existing method, when it is necessary to sort these five files based on the file names of the files, the order of each character in the file name is determined, and the order position where the characters that first appear differently among these five file names is determined. It can be seen that among the file names of the above five files, the characters in the second position of each file name (the characters after "c") are all different. Then, the sorting will be performed according to the characters in the second position, which is equivalent to sorting these five files according to "cf, ca, c1, cg, and cc". According to the current existing method, there is only this one sorting method for these five files, and the flexibility is poor.
[0089] Moreover, compared with the regular order of the group "24.423, 24.429... 24.425", the correlation among "cf, ca, c1, cg, and cc" is relatively small. Therefore, sorting these five files based on "cf, ca, c1, cg, and cc" results in an unreasonable sorting of this file, and it is very likely not the file arrangement method expected by the user.
[0090] In the solution of the present application, after determining three sub-attributes based on the file names of these five files, the user can trigger a second instruction to determine the target sub-attribute required for sorting these five files from these three sub-attributes. If the target sub-attribute determined based on the second instruction is sub-attribute 1, then these five files can be sorted in descending or ascending order of the array "24.423, 24.429... 24.425", so that the sorting order of the files can be adjusted more flexibly.
[0091] In the present application, there can be various possible specific implementation manners for obtaining the first instruction. Several possible implementation manners are described below.
[0092] In a possible implementation manner, in response to a selection operation on the file attribute name displayed in the folder, the first instruction is obtained. Among them, the selection operation is used to select the file attribute name corresponding to the target attribute. Therefore, the target attribute indicated in the first instruction is the file attribute corresponding to the file attribute name selected by the selection operation.
[0093] For example, in the window interface of a folder, the files in the folder can be displayed, and at the top of the window interface of the folder, multiple file attribute names that can be used to adjust the layout of the files in the folder can also be displayed. For example, file name, file size, modification time, and type. On this basis, if the user hopes to sort the files in the folder by file name or make other layout adjustments, the user can click on the field with the file attribute name as the file name, and the electronic device can obtain a first instruction in response to the user's click operation. The first instruction is used to indicate to adjust the layout of the files by file name.
[0094] In another possible implementation, in response to a file layout indication, a file attribute list is presented, and in response to a selection operation on a file attribute in the file attribute list, a first instruction is obtained. Among them, the file layout indication can be generated by detecting a click operation on an "option" in the folder that is used to indicate the file layout. For example, in the folder, the user clicks the right mouse button and moves the cursor to the "Sort" option to trigger the generation of the file layout indication. Among them, multiple file attributes can be displayed in the file attribute list, and the file attribute required for layout can be selected from the multiple file attributes through the selection operation. The file attribute selected by the selection operation is the target attribute.
[0095] In another possible implementation, in response to an input operation for inputting first layout description information, a first instruction is obtained. Among them, the first layout description information is used to describe the layout requirements for multiple files. Correspondingly, based on the first layout description information, the target attribute for adjusting the layout of multiple files can be determined. On this basis, the target attribute indicated in the first instruction is determined based on the first layout description information.
[0096] For example, in response to the input operation, based on the first layout description information input by the input operation, a first instruction is obtained. Among them, based on the first layout description information, through intention analysis or a generation model, etc., the target attribute for multiple files can be determined, and a first instruction corresponding to the target attribute is triggered to be generated.
[0097] In practical applications, a text input box can be displayed in the window interface of the folder or in the session interaction window of the running model running on the electronic device. After the user inputs the first layout description information into the file input box, the target attribute can be determined based on the first layout description information to trigger the first instruction.
[0098] Of course, there can be other possibilities for the specific implementation of obtaining the first instruction, and no restrictions are imposed on this.
[0099] In this application, there can also be multiple possibilities for the specific implementation of obtaining the second instruction. The following will be described in combination with several possible situations:
[0100] In a possible case of obtaining a second instruction, in response to a first input operation, a second instruction is obtained. Wherein, the first input operation is used to indicate a sub-attribute on which the layout adjustment of the multiple files is based. For example, in response to the first input operation, the operating system of the electronic device generates a second instruction to obtain the second instruction.
[0101] In this application, for the sake of easy distinction, the input operation that triggers the obtaining of the second instruction is referred to as the first input operation.
[0102] Among them, there are multiple possible cases for the first input operation. The data processing method of this application will be introduced below in combination with different possible cases of the first input operation.
[0103] Such as Figure 2 , which shows another schematic flowchart of the data processing method provided by this application. The method of this embodiment may include:
[0104] S201, obtain a first instruction.
[0105] Wherein, the first instruction is used to indicate adjusting the layout of multiple files based on the target attribute.
[0106] For this step, reference can be made to the relevant introduction in the previous embodiment, and details will not be elaborated here.
[0107] S202, in response to the target attribute including multiple sub-attributes that can affect the file layout, display a first information box.
[0108] Wherein, the first information box is used to display the multiple sub-attributes included in the target attribute.
[0109] In this application, the first information box may be a selection box for selecting sub-attributes. For example, the first information box may present selection items corresponding to multiple sub-attributes for the user to select the sub-attribute on which the layout adjustment is based from multiple sub-attributes.
[0110] For the convenience of understanding, reference can be made to Figure 3 , which shows an example diagram of the first information box displayed in this application.
[0111] In Figure 3 , still taking the target attribute as the file name and combining with the example of the five files mentioned above for illustration.
[0112] In Figure 3In the window interface of the folder shown in the figure, five files are displayed. As can be seen from the figure, these five files are the five files mentioned in the previous example. Combining the previous introduction of determining sub-properties from the file names of the five files, it can be determined that based on the file names of these five files, the file names include three sub-properties, and the property values corresponding to these three sub-properties in the file names of these five files are as Figure 3 shown by the dashed box in
[0113] On this basis, the present application can pop up a first information box 300 in the window interface of the folder, and selection boxes for the aforementioned sub-property 1, sub-property 2, and sub-property 3 can be displayed in the first information box. For the sake of easy understanding, each sub-property can be represented by at least part of the information in the property value of this five file names corresponding to the sub-property. Such as Figure 3 It can be seen that: there are selection items for three sub-properties displayed in the first information box, which are sub-property 1: "24.423, 24.429... 24.425", sub-property 2: "prod, stag", and sub-property 3: "cf, ca, c1, cg, and cc" respectively corresponding selection items.
[0114] Furthermore, for the sake of easy understanding of the use of the first information box, a selection prompt statement "Please select the information based on which you hope to adjust the layout of the files" is also displayed in the first information box.
[0115] S203, in response to the selection operation of the sub-properties displayed in the first information box, obtain a second instruction, and determine the target sub-property based on the second instruction.
[0116] Among them, the selection operation is used to select sub-properties from the multiple sub-properties displayed in the first information box. Based on this, in response to the selection operation, a second instruction can be obtained. For example, in response to detecting the selection operation, a second instruction is generated.
[0117] Among them, the second instruction at least indicates the target sub-property selected by the selection operation. It can be seen that the target sub-property belongs to the multiple sub-properties included in the target property. For example, the second instruction is used to indicate adjusting the layout of multiple files based on the target property selected by the selection operation.
[0118] S204, adjust the layout of multiple files based on the target sub-property.
[0119] This step can refer to the relevant introduction in the previous embodiment and will not be elaborated here.
[0120] For the sake of easy understanding, still combined with Figure 3 the example of Figure 4As shown. By Figure 4 It can be seen that the files with "prod" in their file names are arranged together in sequence, and the files with "stag" in their file names are arranged together in sequence.
[0121] In this embodiment, after obtaining the first instruction for instructing to adjust the layout of multiple files based on the target attribute, in response to the target attribute including multiple sub-attributes, a first information box will be displayed, and the multiple sub-attributes available for selection will be presented in the first information box. On this basis, the user can select the target sub-attribute required for laying out the multiple files from the first selection box according to the layout requirements of the multiple files. Correspondingly, after the electronic device obtains the second instruction in response to the selection operation of the sub-attributes in the first information box, it can determine the target sub-attribute based on the second instruction, so that the user can reasonably control the sub-attribute based on which the electronic device adjusts the layout of the multiple files according to actual needs, and naturally can meet the different adjustment requirements of different users for adjusting the layout of files.
[0122] For another possibility of the first input operation, the following is combined with Figure 5 for description.
[0123] Such as Figure 5 , which shows another schematic diagram of the implementation process of the data processing method provided by the embodiment of the present application. This embodiment may include:
[0124] S501, obtain the first instruction.
[0125] Among them, the first instruction is used to instruct to adjust the layout of multiple files based on the target attribute.
[0126] This step can refer to the relevant introduction in the previous embodiment and will not be elaborated here.
[0127] S502, in response to the target attribute including multiple sub-attributes that can affect the file layout, display a second information box.
[0128] In this embodiment, the second information box is an information input box for inputting text information. Based on this, the user can input description information for describing the adjustment requirements for the layout of the multiple files into the second information box.
[0129] For ease of understanding, the following is described in combination with Figure 6 the example diagram showing the second information box.
[0130] In Figure 6 Still taking the target attribute as the file name and combining with the previous Figure 3 example of the five files for description.
[0131] By Figure 6It can be seen that when it is determined that the target attribute includes multiple sub-attributes, a second information box 600 will pop up in the window interface of the folder. This second information box can be used to input the description information of the sub-attributes based on which the file layout is adjusted or other description information that can characterize the file layout adjustment based on a certain sub-attribute.
[0132] In particular, in order to enable the user to know which sub-attributes can be used to adjust the file layout, the electronic device can also mark the sub-attributes included in the target attribute. For example, Figure 6 in [description] can frame the data in the file names of each file that belong to the same sub-attribute with the same dotted line box.
[0133] Furthermore, in order to facilitate the user to understand the purpose of the second information box, a purpose prompt statement for characterizing the purpose of this information box can also be displayed in the second information box. For example, the purpose prompt statement can be "Please input the attribute information based on which you hope to adjust the file layout".
[0134] S503, based on the second layout description information input in the second information box, obtain a second instruction, and determine the target sub-attribute based on the second instruction.
[0135] In this embodiment, the first input operation is an input operation of inputting the second layout description information into the second information box. For example, in response to the first input operation of inputting the second layout description information into the second input box, the electronic device generates a second instruction.
[0136] For the sake of easy distinction, this application refers to the layout description information input to trigger the first instruction as the first layout description information, and refers to the description information input in the second information box as the second layout description information.
[0137] Among them, the second layout description information is used to characterize the sub-attributes (i.e., the target sub-attributes) based on which multiple files need to be adjusted. For example, the second layout description information can be the description information describing the sub-attributes based on which it is desired to adjust multiple files. The description information of the sub-attributes can be the values of at least some files on this sub-attribute or the characteristics of the sub-attributes, etc.
[0138] For example, take Figure 3Examples of five files illustrate that the target attributes of these five files include: sub-attribute 1: "24.423, 24.429... 24.425", sub-attribute 2: "prod, stag", and sub-attribute 3: "cf, ca, c1, cg, and cc". Suppose the user wishes to adjust the layout of multiple files according to sub-attribute 1. Then the second layout description information that the user can enter into the second information box can be the description information indicating the wish to layout according to sub-attribute 1. For example, the second layout description information entered by the user can be: "Adjust the layout of the files according to the information related to 24.423 in the file names", or "Based on '24.423, 24.429' for layout adjustment". Then, through this second layout description information, it can be determined that the user wishes to use sub-attribute 1 as the target sub-attribute.
[0139] In this embodiment, the second instruction indicates this second layout description information. For example, the second instruction is used to indicate adjusting the layout of multiple files according to this second layout description information. On this basis, combined with the second layout description information indicated in the second instruction, the target sub-attribute on which the layout of the files needs to be adjusted can be analyzed.
[0140] S504, Adjust the layout of multiple files based on the target sub-attribute.
[0141] In this embodiment, after obtaining the first instruction, if it is determined that the target attributes indicated by the first instruction include multiple sub-attributes that can affect the file layout, a second information box will be displayed, enabling the user to enter layout description information into the second information box. On this basis, in response to the layout description information entered in the second input box, this application can obtain a second instruction, and based on the second instruction, the target sub-attribute on which the file layout needs to be adjusted can be determined, thereby realizing reasonable adjustment of the layout of multiple files according to the layout requirements input by the user.
[0142] In another possible situation of the first input operation, it can be in response to the target attributes including multiple sub-attributes that can affect the file layout, display a third information box, and obtain the description information entered in the third information box. In this possible situation, the first input operation is the input operation of entering description information into the third information box.
[0143] Among them, the function of the third information box is similar to that of the second information box, both are information input boxes for entering text information. Correspondingly, for the specific function of the third information box and the specific manner in which the user enters description information into the third information box, reference can be made to the relevant introduction of the second information box above, which will not be elaborated here.
[0144] Among them, the description information input in the third information box can be used to describe the layout intention of arranging multiple files. For example, the description information can be to describe the layout of files based on which sub-attributes, or the layout state that multiple files are expected to present after layout, etc., and there is no limitation on this.
[0145] On this basis, based on the generation model, determine the file layout intention of this description information to trigger the generation of a second instruction corresponding to this file layout intention. Among them, the file layout intention is used to represent the target sub-attributes required for adjusting the layout of these multiple files.
[0146] Among them, the generation model can be a machine learning model, a deep learning model or other types of artificial intelligence models, and there is no limitation on this.
[0147] In response to the file layout intention determined by the generation model, the second instruction generated by the electronic device is used to instruct to arrange multiple files according to this file layout intention. Since this file layout intention can represent the target sub-attributes required for file layout, therefore, based on this second instruction, the target sub-attributes can be determined. For example, the second instruction can be used to instruct to adjust the layout of files according to the target sub-attributes corresponding to this file layout intention.
[0148] In the above embodiments of the present application, there are various possible display methods for the first information box, the second information box, and the third information box, and the present application does not limit this. For the convenience of introduction, any one of the first information box, the second information box, and the third information box is referred to as an information box. The following introduces several possible situations for displaying the information box:
[0149] In the first possible situation of displaying the information box, if the target attribute includes multiple sub-attributes that can affect file layout, in response to these multiple files being part of the files in the target folder, display this information box in the second display area associated with the first display area where these multiple files are located. Among them, the second display area is adjacent to the first display area, and the target folder is the folder where these multiple files are located.
[0150] In this first possible situation, the multiple files are the files to be layout-adjusted indicated by the first instruction and are part of the files in the target folder. Among them, if there are some selected files in the target folder before obtaining the first instruction, then the obtained first instruction is used to instruct to adjust the layout of the selected part of the files in the target folder according to the target attribute. Correspondingly, these part of the files include multiple files in the target folder.
[0151] For example, when a selection operation on the file attribute name displayed in the folder or an input operation for inputting the first layout description information is detected, and there are multiple selected files in the target folder, in response to the selection operation or the input operation, the multiple selected files in the target folder are determined as the multiple files to be layout-adjusted, and a second instruction is obtained, where the second instruction is used to indicate to perform layout adjustment on the multiple files in the target folder. Among them, the multiple files belong to some files in the target folder.
[0152] Among them, the first display area where the multiple files are located is the display area of the multiple files in the window interface of the target folder. The second display area only needs to be adjacent to the first display area, and the specific position is not restricted.
[0153] As an optional method, in order to enable the user to more easily see the information box, the second display area can be located above the first display area and adjacent to the first display area.
[0154] For ease of understanding, in combination with Figure 7 it is described as follows. Figure 7 FIG. shows an example diagram of displaying an information box in the case of adjusting the layout of some files in the folder.
[0155] In Figure 7 the selected files in the folder are marked with a gray background. It can be seen from Figure 7 that in Figure 7 the files to be layout-adjusted are some files in the folder, and are respectively File A, File B, and File C.
[0156] On this basis, after obtaining the first instruction, in response to the target attribute including multiple sub-attributes that can affect the file layout, and the three files indicated by the first instruction being some files in the target folder, an information box 703 can be displayed in the second display area 702 adjacent to the first display area 701 where the three files are located. For example, in the case where the information box is the first information box, information on selectable sub-attributes can be displayed in the information box 703; for another example, in the case where the information box is the second information box, the information box can be a text input box for inputting text information. It can be seen from Figure 7 that the second display area 702 is adjacent to the first display area 701 and is located above the first display area 701.
[0157] In the second possible case of displaying the information box, if the target attribute includes multiple sub-attributes that can affect the file layout, in response to the multiple files being all files in the target folder, the information box is displayed in the third display area associated with the field display area corresponding to the target attribute in the target folder. Among them, the third display area is adjacent to the field display area of the target attribute.
[0158] It is understandable that if there are no selected files in the target folder before obtaining the first instruction, then in response to the selection operation or input operation for triggering the first instruction, all the files in the target folder will be determined as the files to be layout-adjusted. On this basis, the first instruction is used to indicate to perform layout adjustment on all the files in the target folder.
[0159] Among them, the field display area corresponding to the target attribute is the display area in the window interface of the target folder for displaying the target attribute. For example, generally, the field display area corresponding to the target attribute is located above all the files in the window interface.
[0160] For the convenience of understanding, reference can be made to Figure 3 , in Figure 3 still taking the information box as the first information box as an example, and in Figure 3 taking the target attribute as the file name as an example.
[0161] From Figure 3 it can be seen that at the top of the file display area in the window interface of the folder, there are various attributes that can be used as the basis for file layout adjustment, such as file name, modification time, type, and size.
[0162] In the case where the target attribute is the file name, when multiple files are all the folders in the target folder and the file name includes multiple sub-attributes, the first information box 300 can be displayed in the area immediately adjacent to and above the field display area 301 corresponding to the file name.
[0163] Of course, replacing the first information box 300 in Figure 3 with the second information box or the third information box for realizing text information input is also applicable, and this will not be elaborated here.
[0164] In the third possible case of displaying the information box, in response to the target attribute including multiple sub-attributes that can affect the file layout, an information box is displayed in the session interaction box corresponding to the running model.
[0165] Among them, the running model can be a machine learning model, a deep learning model, or other artificial intelligence models, etc., and there is no restriction on this. In this possible case, the first instruction can be obtained through the running model and it can be analyzed whether the target attribute includes multiple sub-attributes.
[0166] Among them, the session interaction box of the running model can be located within the window interface of the target folder to which multiple files belong, or can also be located outside the window interface of the target folder, and there is no restriction on this.
[0167] It can be understood that after the information box is displayed in the session interaction box corresponding to the running model, in response to the selection operation within the information box, or the description information or the second layout description information input into the information box, the target sub-property or the file layout intention can be determined based on the running model. In particular, when the information box is the third information box, the running model and the generation model can be the same model.
[0168] It can be understood that regardless of whether multiple files are partial files or all files of the target folder, the third possible implementation manner can be adopted to display the information box.
[0169] For ease of understanding, reference can be made to Figure 8 , from Figure 8 It can be seen that a session interaction box 802 of the running model is displayed beside the window interface 801 of the folder. When the running model obtains the first instruction and determines that the target attribute includes multiple sub-properties, the information box 803 can be displayed in the session interaction box 802, so as to determine the target sub-property through the selection operation within the information box or the input layout description information, etc.
[0170] It can be understood that Figures 2 to 8 the embodiment of
[0171] introduces the situation of obtaining the second instruction in response to the first input operation.
[0172] The second input operation is the input operation for inputting the first layout description information mentioned above. To distinguish it from the first input operation for triggering the acquisition of the second instruction mentioned above, the input operation for inputting the first layout description information is called the second input operation.
[0173] For ease of understanding, in combination with a possible implementation of determining the second instruction based on the second input operation, the data processing method of this embodiment is introduced. As Figure 9 , a schematic flowchart of another data processing method provided by the present application is shown. This embodiment may include:
[0174] S901, in response to the second input operation input in the layout information input box, obtain the first instruction based on the first layout description information input by the second input operation.
[0175] Among them, the first instruction is used to indicate adjusting the layout of multiple files based on the target attribute.
[0176] In this embodiment, the layout information input box may be a text input box displayed in response to a display operation of a target folder. The layout information input box may be used to input layout requirement information for the file layout. For example, the first layout description information is used to describe the layout requirement information of the file layout.
[0177] On this basis, through the first layout description information, not only can the target attributes on which the file layout is based be characterized, but also in the case where the target attributes include multiple sub-attributes, based on the first layout description information, the target sub-attributes in the target attributes on which the file layout adjustment is based can also be characterized, etc. Correspondingly, based on the target attributes characterized by the first layout description information, a first instruction is obtained.
[0178] For example, combining the example of files 1 to 5 mentioned above Figure 3 to illustrate, in the case where the user hopes to layout multiple files according to "stag and prod" in the file name, the first layout description information may be "layout files according to stag and prod in the file name" or "layout files according to the development environment information carried in the file name". Then, based on the first layout description information, the target attribute can be determined as the file name, and a first instruction is obtained. The first instruction is used to instruct to adjust the layout of multiple files according to the file name.
[0179] In this embodiment, the layout information input box is also a type of information box, and the layout information input box can be displayed by referring to the way of displaying the display information box mentioned above. For example, in response to multiple selected files being part of the files in the target folder, the layout information input box is displayed in a second display area associated with the first display area where the multiple files are located; or, the layout input information is displayed in the session interaction box of the running model; or, if there are no selected files, the layout information input box is directly displayed in an associated display area associated with the attribute display area of the target folder that is currently at the top layer of the display interface. The attribute information area is used to display each attribute that can be used as a basis for adjusting the file layout in the target folder. The associated display area is adjacent to the attribute display area.
[0180] S902, in response to the target attribute including multiple sub-attributes that can affect the file layout, based on the first layout description information input by the second input operation, obtain a second instruction, and determine the target sub-attribute based on the second instruction.
[0181] Among them, the target sub-attribute belongs to the multiple sub-attributes included in the target attribute.
[0182] In this embodiment, the first layout description information can not only characterize the target attribute, but also characterize the sub-attributes based on which the file layout is adjusted. Based on this, when it is determined that the target attribute includes multiple sub-attributes, the first layout description information can be further analyzed to trigger the generation of a second instruction for indicating the target sub-attribute.
[0183] For example, still taking the example in step S902, when it is determined that the file name includes multiple sub-attributes, based on the first layout description information, it can be determined that the user hopes to adjust the file layout according to "stag and prod". Therefore, the obtained second instruction can be used to indicate adjusting the file layout according to "stag and prod". Correspondingly, the target sub-attribute can be determined as the sub-attribute corresponding to "stag and prod".
[0184] S903, adjust the layout of the multiple files based on the target sub-attribute.
[0185] For the relevant introduction of this part, reference can be made to the previous embodiments and will not be elaborated here.
[0186] It can be understood that if the target attribute only includes one sub-attribute that can affect the file layout, then the layout of the multiple files can be directly adjusted according to this sub-attribute in the target attribute.
[0187] Furthermore, if the target attribute only includes one sub-attribute that can affect the file layout, the present application can also adjust the file layout in combination with the file content, usage information or other file features of each file indicated by the first instruction. The following will be described in combination with several cases.
[0188] Such as Figure 10 , shows another schematic flowchart of the data processing method provided by the present application. The method of this embodiment may include:
[0189] S1001, obtain a first instruction for indicating adjusting the layout of multiple files based on the target attribute.
[0190] S1002, in response to the target attribute including multiple sub-attributes that can affect the file layout, obtain a second instruction and determine the target sub-attribute based on the second instruction.
[0191] Wherein, the target sub-attribute belongs to the multiple sub-attributes included in the target attribute.
[0192] S1003, adjust the layout of the multiple files based on the target sub-attribute.
[0193] For the above steps, reference can be made to the relevant introduction of the previous embodiments and will not be elaborated here.
[0194] S1004. In response to the target attribute including only one sub-attribute that can affect the file layout, determine the content category corresponding to the file content of each file among multiple files.
[0195] Different from the file type, the content category corresponding to the file content of a file is the category to which the content in the file belongs. Therefore, even for files of the same type, the content categories corresponding to the file content of the files may be different.
[0196] Among them, there can be multiple possible ways to divide the content category of the file content. Based on different file types, the division of the content category will also be different, and there is no specific limit.
[0197] For example, taking files all being programs as an example, the content category of the file content can be divided into programs based on C#, programs based on Java, or programs based on TypeScript (a programming language), etc.
[0198] Another example, taking files being documents as an example, the content category of the file content can be divided into categories such as meeting reports, information records, and work summaries.
[0199] Among them, there can be multiple possible implementation ways to determine the content category corresponding to the file content of a file. For example, based on the attribute information of the file, determine the content category of the file content. For example, taking the case where the file is a program as an example, based on the suffix of the file type in the attribute information of the file, it can be determined that it is a program based on C# or Java, etc.
[0200] Another example, it is also possible to analyze at least one of the file content and the file attributes in combination with the previously mentioned running model or other intelligent models to determine the content category corresponding to the file content.
[0201] S1005. Based on the sub-attribute in the target attribute and the content category corresponding to each file among multiple files, adjust the layout of the multiple files.
[0202] For example, the sub-attribute of the target attribute can be used as the main parameter for adjusting the file layout, and the content category of each file can be used as an auxiliary parameter. If the attribute values of the sub-attribute of at least two files are the same, then the sorting and position, etc. of the layout of the at least two files can be determined according to the content category of the at least two files.
[0203] Another example, it can also be to classify files with the same content category among multiple files together, and determine the layout of each file under each content category according to the sub-attribute in the target attribute.
[0204] Of course, based on the sub-attribute in the target attribute and the content category corresponding to the file, there can also be other implementation ways to adjust the file layout, and there is no specific limit.
[0205] For ease of understanding, in conjunction with Figure 11 as shown Figure 11 FIG. shows an example diagram of adjusting the file layout based on the content category and target attributes of the file content.
[0206] In Figure 11 it is illustrated by taking the target attribute as the file name as an example.
[0207] In Figure 11 on the left side of the arrow in FIG. shows an example layout of multiple files before adjusting the layout, while on the right side of the arrow shows an example layout of multiple files after adjusting the layout. For ease of description and understanding, only the example of adjusting the sorting order of the files is illustrated.
[0208] From Figure 11 the file names of the program files on the left side, it can be seen that there are 6 program files in the folder. These 6 program files are respectively program file 1 to program file 6, and the file names of these six program files are aaf2, aa11, aa32, aaf1, aa33, and aat2. It can be seen that each file can only be sorted according to the size of the last digit of the file name.
[0209] On this basis, the present application can obtain the content category corresponding to the file content of each program file. Assuming that it is determined that the program files aaf2, aa32, and aaf1 are Java-based programs, while aa11, aa33, and aat2 are C#-based programs, then after sorting these 6 program files by combining the last digit in the file name and the content category of the file, the file layout shown on the right side of the arrow in Figure 11 can be obtained. It can be seen that by adjusting the file layout, the program files developed based on the same coding language are classified together and sorted in descending order of the last digit in the file name of the program files.
[0210] In another possible case, in response to the target attribute only including a sub-attribute that can affect the file layout, determine the usage information of each file in the multiple files. Correspondingly, the layout of the multiple files can be adjusted based on the sub-attribute in the target attribute and the usage information of each file in the multiple files.
[0211] Among them, the usage information of the file can be the function of the file and the applicable field, etc. For example, taking the file as an application program, the usage information of the application program can indicate that the usage of the application program is for games, shopping, food, or social networking, etc., and for an application program with a shopping usage, it can be further divided into usages such as clothing shopping or comprehensive shopping, etc.
[0212] Determining the usage information of a file can be by combining at least one of the file name and file attributes of the file, determining the usage information of the file through network retrieval, or by means of an intelligent model. Of course, there can also be other ways to determine the usage information of the file, and there is no limitation on this.
[0213] Among them, the specific implementation of adjusting the layout of multiple files by combining the sub-attributes of the target attribute and the usage information of each file can be similar to that in the previous Figure 10 embodiment. For example, the sub-attributes of the target attribute can be used as the main parameter, and the usage information of the file can be used as the auxiliary parameter. First, the layout of multiple files is adjusted according to the sub-attributes of the target attribute; if there are at least two files with the same attribute value of the sub-attributes, then the layout of the sub-attributes of these at least two files is adjusted according to the usage information of the file. Another example is that multiple files can be classified according to the usage information of the file, and the layout of the files with the same usage information category is adjusted according to the sub-attributes of the target attribute.
[0214] In another possible case, in response to the target attribute only including one sub-attribute that can affect the file layout, and the target attribute belongs to at least one of the set attributes, the layout requirements input by the user can also be used in this application. For example Figure 12 , which shows another flow schematic diagram of the data processing method provided by this application. The method of this embodiment can include:
[0215] S1201, obtain a first instruction.
[0216] Among them, the first instruction is used to indicate adjusting the layout of multiple files based on the target attribute.
[0217] S1202, in response to the target attribute including multiple sub-attributes that can affect the file layout, obtain a second instruction, and determine the target sub-attribute based on the second instruction.
[0218] Among them, the target sub-attribute belongs to the multiple sub-attributes included in the target attribute.
[0219] S1203, adjust the layout of multiple files based on the target sub-attribute.
[0220] The above steps can refer to the relevant introduction in the previous embodiment, and will not be elaborated here.
[0221] S1204, in response to the target attribute only including one sub-attribute that can affect the file layout, and the target attribute belongs to at least one of the set attributes, display a text input box.
[0222] Among them, in the case where the target attribute is a set attribute, it is very likely that the attribute values of this sub-attribute of multiple files are the same; or the difference in the attribute values of the sub-attributes of multiple files is not significant.
[0223] For example, the set attributes can be the modification time, file type, etc. Taking the file type as an example, there are often multiple files with the same file type in a folder. For example, multiple files are all Word documents, etc. On this basis, it is not very meaningful to adjust the file layout based on the file type.
[0224] Among them, the function of this text input box is similar to that of the second information box mentioned above. Therefore, this text input box can be used to obtain the layout requirement information input by the user to describe the layout requirements.
[0225] The display method of this text input box can refer to the display method of the previous information box. For example, the text input box can be displayed in the second display area associated with the first display area where multiple files are located; the text input box information box can be displayed in the third display area associated with the field display area corresponding to the target attribute in the target folder where multiple files are located; or the text input box can be displayed in the session interaction box for running the model, etc., without specific restrictions.
[0226] S1205, based on the fourth layout description information input in the text input box, obtain the feature information of each file among multiple files on at least one target file feature.
[0227] For the sake of easy distinction, the text description information input in this text input box is called the fourth layout description information. Among them, the fourth layout description information is used to describe the target file features required for the layout of multiple files. Among them, the target file features can be feature information such as the content category or usage information of the file content, without specific restrictions.
[0228] For example, if the target file feature is the content category, the feature information of the file on this target file feature is the specific content category corresponding to the file content of this target file.
[0229] S1206, based on the sub-attributes in the target attribute and the feature information of each file among multiple files on at least one target file feature, adjust the layout of multiple files.
[0230] Among them, for the specific implementation of adjusting the layout of multiple files by combining the sub-attributes of the target attribute and the feature information of each file on the target file feature, reference can be made to the relevant introduction of adjusting the file layout by combining the sub-attributes of the target attribute and the content category or usage information above, which will not be elaborated here.
[0231] Corresponding to the data processing method provided by this application, this application also provides a data processing device.
[0232] Such as Figure 13, showing another structural schematic diagram of the data processing method provided by this application. The device in this embodiment may include:
[0233] An instruction acquisition unit 1301, configured to acquire a first instruction, where the first instruction is used to indicate adjusting the layout of multiple files based on a target attribute;
[0234] An attribute acquisition unit 1302, configured to, in response to the target attribute including multiple sub-attributes that can affect the file layout, acquire a second instruction, and determine a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute;
[0235] A layout adjustment unit 1303, configured to adjust the layout of the multiple files based on the target sub-attribute.
[0236] In a possible implementation manner, the attribute acquisition unit includes:
[0237] A first acquisition subunit, configured to, in response to the target attribute including multiple sub-attributes that can affect the file layout and a first input operation, acquire a second instruction, where the first input operation is used to indicate the sub-attribute on which the adjustment of the layout of the multiple files is based;
[0238] Or,
[0239] A second acquisition subunit, configured to, in response to the target attribute including multiple sub-attributes that can affect the file layout, determine a second instruction based on first layout description information input by a second input operation, where the second input operation is used to trigger the acquisition of the first instruction.
[0240] In a possible implementation manner, the first acquisition subunit includes:
[0241] A first trigger subunit, configured to display a first information box, and acquire a second instruction in response to a selection operation on the sub-attributes displayed in the first information box, where the first information box is used to display the multiple sub-attributes;
[0242] Or,
[0243] A second trigger subunit, configured to display a second information box, and acquire a second instruction based on second layout description information input in the second information box.
[0244] In another possible implementation manner, the first acquisition subunit includes:
[0245] An information acquisition subunit, configured to display a third information box and acquire the description information input in the third information box;
[0246] An instruction generation subunit, configured to determine the file layout intention of the description information based on a generation model, so as to trigger the generation of a second instruction corresponding to the file layout intention, where the file layout intention is used to characterize the target sub-attribute on which the layout adjustment of the multiple files is based.
[0247] In another possible implementation manner, the first trigger subunit, the second trigger subunit, or the information acquisition subunit displays the information box specifically as at least one of the following:
[0248] In response to the multiple files being partial files in a target folder, display the information box in a second display area associated with the first display area where the multiple files are located, where the second display area is adjacent to the first display area, and the target folder is the folder where the multiple files are located;
[0249] In response to the multiple files being all the files in the target folder, display the information box in a third display area associated with the field display area corresponding to the target attribute in the target folder, where the third display area is adjacent to the field display area;
[0250] Display the information box in the session interaction box corresponding to the running model;
[0251] Wherein, the information box includes a first information box, a second information box, or a third information box.
[0252] In another possible implementation manner, the data processing device further includes:
[0253] A category determination unit, configured to determine the content category corresponding to the file content of each file in the multiple files in response to the target attribute only including one sub-attribute that can affect the file layout;
[0254] A first auxiliary layout unit, configured to adjust the layout of the multiple files based on the sub-attribute in the target attribute and the content category corresponding to each file in the multiple files.
[0255] In another possible implementation manner, the data processing device further includes:
[0256] A usage determination unit, configured to determine the usage information of each file in the multiple files in response to the target attribute only including one sub-attribute that can affect the file layout;
[0257] A second auxiliary layout unit, configured to adjust the layout of the multiple files based on the sub-attribute in the target attribute and the usage information of each file in the multiple files.
[0258] In another possible implementation manner, the data processing device further includes:
[0259] An input box display unit, configured to display a text input box in response to that the target attribute only includes one sub-attribute that can affect the file layout and the target attribute belongs to at least one set attribute;
[0260] A feature acquisition unit, configured to acquire, based on the fourth layout description information input in the text input box, the feature information of each file in the multiple files on at least one target file feature, where the fourth layout description information is used to describe the target file feature for reference in laying out the multiple files;
[0261] A third auxiliary layout unit, configured to adjust the layout of the multiple files based on the sub-attribute in the target attribute and the feature information of each file in the multiple files on at least one target file feature.
[0262] In an embodiment of the present application, an electronic device is further provided. As Figure 14 shown, it shows a schematic structural diagram of a composition of the electronic device, and the electronic device at least includes a processor 1401 and a memory 1402;
[0263] The processor 1401 is configured to obtain a first instruction, where the first instruction is used to indicate adjusting the layout of multiple files based on a target attribute; in response to that the target attribute includes multiple sub-attributes that can affect the file layout, obtain a second instruction, and determine a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute; and adjust the layout of the multiple files based on the target sub-attribute;
[0264] The memory 1402 is configured to store a program required for the processor to perform operations.
[0265] Wherein, the specific operations performed by the processor can refer to the relevant introduction in the previous embodiment, which will not be elaborated here.
[0266] It can be understood that the electronic device may further include a display unit 1403 and an input unit 1404.
[0267] Of course, the electronic device may also have Figure 14 more or fewer components, which is not limited herein.
[0268] In an embodiment of the present application, a computer program product is further provided, including computer-readable instructions, which, when running on an electronic device, enable the electronic device to implement any data processing method provided in the embodiment of the present application.
[0269] In an embodiment of the present application, a computer-readable storage medium is further provided. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any data processing method provided in the embodiment of the present application.
[0270] In addition, it should be noted that the device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the accompanying drawings of the device embodiments provided in the present application, the connection relationship between modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines.
[0271] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or dedicated circuits. However, for the present application, in more cases, software program implementation is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disc of a computer, etc., and includes several instructions for causing a computer device (which can be a personal computer, training device, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0272] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.
[0273] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center by wired means (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless means (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
Claims
1. A data processing method, comprising: Obtaining a first instruction for instructing to adjust the layout of multiple files based on a target attribute; In response to the target attribute including multiple sub-attributes that can affect the file layout, obtaining a second instruction, and determining a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute; Adjusting the layout of the multiple files based on the target sub-attribute.
2. The data processing method according to claim 1, wherein the obtaining of the second instruction comprises: In response to a first input operation for instructing a sub-attribute on which to base the adjustment of the layout of the multiple files, obtaining a second instruction; Or, Based on first layout description information input by a second input operation for triggering the obtaining of the first instruction, determining a second instruction.
3. The data processing method according to claim 2, wherein the obtaining of the second instruction in response to the first input operation comprises: Displaying a first information box, and in response to a selection operation on the sub-attributes displayed in the first information box, obtaining a second instruction, where the first information box is used to display the multiple sub-attributes; Or, Displaying a second information box, and obtaining a second instruction based on second layout description information input in the second information box.
4. The data processing method according to claim 2, wherein the obtaining of the second instruction in response to the first input operation comprises: Displaying a third information box, and obtaining description information input in the third information box; Based on a generation model, determining the file layout intention of the description information to trigger the generation of a second instruction corresponding to the file layout intention, where the file layout intention is used to characterize the target sub-attribute on which to base the adjustment of the layout of the multiple files.
5. The data processing method according to claim 3 or 4, wherein the displaying of the information box comprises at least one of the following: In response to the multiple files being part of a target folder, displaying the information box in a second display area associated with a first display area where the multiple files are located, the second display area being adjacent to the first display area, and the target folder being the folder where the multiple files are located; In response to the multiple files being all the files in the target folder, displaying the information box in a third display area associated with a field display area corresponding to the target attribute in the target folder, the third display area being adjacent to the field display area; Displaying the information box in a session interaction box corresponding to a running model; Among them, The information box includes a first information box, a second information box, or a third information box.
6. The data processing method according to claim 1, further comprising: In response to the target attribute including only one sub-attribute that can affect the file layout, determining the content category corresponding to the file content of each file in the multiple files; Adjusting the layout of the multiple files based on the sub-attribute in the target attribute and the content category corresponding to each file in the multiple files.
7. The data processing method according to claim 1, further comprising: Determine the usage information of each file in the multiple files in response to the target attribute only including one sub-attribute that can affect the file layout; Adjust the layout of the multiple files based on the sub-attribute in the target attribute and the usage information of each file in the multiple files.
8. The data processing method according to claim 1, further comprising: In response to the target attribute only including one sub-attribute that can affect the file layout and the target attribute belonging to at least one set attribute, display a text input box; Based on the fourth layout description information input in the text input box, obtain the feature information of each file in the multiple files on at least one target file feature, where the fourth layout description information is used to describe the target file features required for laying out the multiple files; Adjust the layout of the multiple files based on the sub-attribute in the target attribute and the feature information of each file in the multiple files on at least one target file feature.
9. A data processing device, comprising: An instruction obtaining unit, configured to obtain a first instruction for instructing to adjust the layout of multiple files based on a target attribute; An attribute obtaining unit, configured to, in response to the target attribute including multiple sub-attributes that can affect the file layout, obtain a second instruction and determine a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute; A layout adjustment unit, configured to adjust the layout of the multiple files based on the target sub-attribute.
10. An electronic device, comprising: A processor and a memory; Wherein, the processor is configured to obtain a first instruction for instructing to adjust the layout of multiple files based on a target attribute; in response to the target attribute including multiple sub-attributes that can affect the file layout, obtain a second instruction and determine a target sub-attribute based on the second instruction, where the target sub-attribute belongs to the multiple sub-attributes included in the target attribute; adjust the layout of the multiple files based on the target sub-attribute; The memory is configured to store a program required for the processor to perform operations.