File processing method and device

When image or text content is generated, corresponding content objects are automatically generated based on the object types and contents selected by the user in the interface, which solves the problem of cumbersome operations in the prior art and improves user experience and file processing efficiency.

CN119690917APending Publication Date: 2025-03-25LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411545160.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

When generating images or text content, the prior art requires manual input of description information and generation instructions on the input interface. The operation is cumbersome and difficult to meet the user's complex application needs.

Method used

By selecting an object in the first area and the second area, a third object is generated based on the type information of the first object and the content information of the second object, and a third object is displayed in the second area, or the display position of the third object is adjusted according to the positional relationship between the first object and the fourth object.

Benefits of technology

It realizes the rapid generation of a third object with the same type as the first object and the content corresponding to the second object, simplifies user operations, improves file processing efficiency, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690917A_ABST
    Figure CN119690917A_ABST
Patent Text Reader

Abstract

The invention provides a file processing method and device, and the method comprises the steps: determining a first object from a first region in response to a first selection operation; in response to a second selection operation, determining a second object from the second area; a third object is obtained based on the type information of the first object and the content information of the second object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of document editing technology, and in particular to a file processing method and device. Background Art

[0002] When generating content such as images or texts, the only way to obtain the content generated by the corresponding tool is to manually input description information and generation instructions for the generated content in the corresponding input interface, which is cumbersome. Summary of the invention

[0003] Embodiments of the present application provide a file processing method, device, electronic device, and storage medium.

[0004] According to a first aspect of the present application, a file processing method is provided, the method comprising:

[0005] In response to a first selection operation, determining a first object from within the first area;

[0006] In response to a second selection operation, determining a second object from within the second area;

[0007] A third object is obtained based on the type information of the first object and the content information of the second object.

[0008] According to an embodiment of the present application, obtaining a third object based on the type information of the first object and the content information of the second object includes:

[0009] Determine target prompt information according to the type information of the first object and the content information of the second object, wherein the target prompt information is used to instruct the model to generate an object of the same type as the first object based on the content information of the second object;

[0010] Sending the target prompt information to the target model;

[0011] The third object generated by the target model based on the target prompt information is obtained.

[0012] According to an embodiment of the present application, the method further includes:

[0013] The third object is displayed in the second area.

[0014] According to an embodiment of the present application, the method further includes:

[0015] Obtaining format information of the first object;

[0016] The third object is adjusted according to the format information.

[0017] According to an embodiment of the present application, the method further includes:

[0018] determining a fourth object within the first area, the fourth object being of the same type as the second object;

[0019] The format of the second object is adjusted according to the format information of the fourth object.

[0020] According to an embodiment of the present application, the method further includes:

[0021] determining a fourth object within the first area, the fourth object being of the same type as the second object;

[0022] The target display position of the third object in the second area is determined based on the first position relationship between the first object and the fourth object. When the third object is displayed at the target display position, the second position relationship between the third object and the second object corresponds to the first position relationship.

[0023] According to an embodiment of the present application, the second object is a link, and obtaining the third object based on the type information of the first object and the content information of the second object includes:

[0024] Accessing a target page corresponding to the second object;

[0025] Obtaining page content in the target page;

[0026] The third object is obtained according to the page content and the type information of the first object.

[0027] According to an embodiment of the present application, obtaining a third object based on the type information of the first object and the content information of the second object includes:

[0028] determining a fourth object within the first area, the fourth object being of the same type as the second object;

[0029] determining first content association information between the fourth object and the second object;

[0030] The third object is obtained based on the type information of the first object, the content information of the second object and the first content-related information.

[0031] According to an embodiment of the present application, obtaining a third object based on the type information of the first object and the content information of the second object includes:

[0032] determining a fourth object within the first area, the fourth object being of the same type as the second object;

[0033] determining second content association information between the fourth object and the first object;

[0034] The third object is obtained based on the type information of the first object, the content information of the second object and the second content-related information.

[0035] According to a second aspect of the present application, a file processing device is provided, the file processing device comprising:

[0036] A first object determining module, configured to determine a first object within the first area in response to a first selection operation;

[0037] A second object determining module, configured to determine a second object within the second area in response to a second selection operation;

[0038] The third object generating module is used to obtain a third object based on the type information of the first object and the content information of the second object.

[0039] According to a third aspect of the present application, an electronic device is provided, including:

[0040] at least one processor; and

[0041] a memory communicatively connected to the at least one processor; wherein,

[0042] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present application.

[0043] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the present application.

[0044] It should be understood that the teachings of the present application are not required to achieve all of the beneficial effects described above, but specific technical solutions can achieve specific technical effects, and other embodiments of the present application can also achieve beneficial effects not mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0046] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0047] Figure 1A schematic diagram of a process flow of a file processing method provided in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of object generation provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of a process for obtaining a third object provided in an embodiment of the present application;

[0050] Figure 4 Another schematic diagram of a process for obtaining a third object provided in an embodiment of the present application;

[0051] Figure 5 A schematic diagram of the structure of a file processing device provided in an embodiment of the present application;

[0052] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0053] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0054] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0055] In the following description, the terms "first\second" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0057] Since the current document editing method is difficult to meet the increasingly complex application needs of users, it affects the user experience. Therefore, in order to improve the user experience, the present application provides a file processing method and device, which can be applied to electronic devices such as mobile phones, computers and tablets.

[0058] The following is a description of the processing flow in the file processing method provided in the embodiment of the present application.

[0059] See also Figure 1 , Figure 1 A flowchart of a file processing method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the file processing method includes:

[0060] S101: In response to a first selection operation, determine a first object in the first area.

[0061] In the present disclosure, the first area may be an area in a word file or a ppt file. The user may pre-set the position and size of the first area according to actual use requirements. The first object may include a word file, a pdf file, an image, and text, etc. The first area may include one or more objects, and the type and number of the objects in the first area may be the same or different.

[0062] The first selection operation may include a click operation, a drag operation, and a menu selection operation, etc. For example, the user may select the first object by clicking the position where the object is located in the first area; or the user may select the first object by dragging the object in the first area; or the file interface may set a menu, the menu includes the various objects in the first area, and the user may select the option corresponding to the first object in the menu by means of a drop-down menu.

[0063] S102: In response to a second selection operation, determine a second object in the second area.

[0064] In the present disclosure, the second area may be an area in a word file or a ppt file. The user may pre-set the position and size of the second area according to actual use requirements. The second object may include a word file, a pdf file, an image, and text, etc. The second area may include one or more objects, and the type and number of the objects in the second area may be the same or different. The second area and the first area may be different areas in the same file or different areas in different files.

[0065] The second selection operation may include a click operation, a drag operation, a menu selection operation, and the like.

[0066] S103: Obtain a third object based on the type information of the first object and the content information of the second object.

[0067] In the present disclosure, the types of objects may include word files, pdf files, ppt files, images, and texts, etc. The content of an object may include text content and image content, etc. Through the above implementation, information can be quickly generated by selecting operations based on the information of the existing content in the operation interface. For example, if there is a picture of a cat and a description text content of a dog in the operation interface, then the picture of the cat is first selected, and then the description text of the dog is selected, and a picture of the dog can be quickly generated, and the picture matches the description text of the dog. In the related art, the input interface of the generation model can only be opened first, and the description text and the corresponding picture generation instructions can be manually typed or voice input to trigger the model to generate a picture of the dog corresponding to the description text of the dog.

[0068] In the present disclosure, the third object may be displayed in the second area. For example, Figure 2 The object generation schematic diagram provided in the embodiment of the present application is as follows: Figure 2 As shown, the first area 210 and the second area 220 may be two areas in the same file, the first area 210 includes an object 201 and an object 202, the object 201 is an image, and the object 202 is a text. If the user selects the object 201 as the first object in the first area 210 through a first selection operation, and selects the object 203 as the second object in the second area 220 through a second selection operation, then the type of the object 201 and the content of the object 203 may be combined to generate an object 204 as the third object. The type of the object 204 and the object 201 are both images, and the object 204 may be displayed in the second area. The object 204 may be an image corresponding to the text content of the object 203.

[0069] In the present disclosure, a third object can be generated based on the type information of the first object and the content information of the second object, the type of which is consistent with that of the first object and the content of which corresponds to that of the second object. For example, if the first object is a word file and the second object is a pdf file, a corresponding word file can be generated as the third object based on the content of the pdf file of the second object. For another example, if the first object is a picture and the second object is a text describing the scenery of area A, a corresponding picture can be generated as the third object based on the text of the second object describing the scenery of area A.

[0070] By adopting the file processing method provided in the embodiment of the present application, a third object can be quickly generated by combining the type information of the first object selected in the first area and the content information of the second object selected in the second area. This not only meets the user's complex file processing needs, but also improves file processing efficiency, thereby enhancing the user's experience.

[0071] In one possible implementation, Figure 3 A schematic diagram of a process for obtaining a third object provided in an embodiment of the present application, such as Figure 3 As shown, obtaining the third object based on the type information of the first object and the content information of the second object includes:

[0072] S301: Determine target prompt information according to type information of the first object and content information of the second object.

[0073] In the present disclosure, the target prompt information is used to instruct the model to generate an object of the same type as the first object based on the content information of the second object.

[0074] In the present disclosure, the prompt information may include text information describing the type of the first object and the content of the second object. The prompt information may also include a feature vector obtained by extracting the type information of the first object and the content information of the second object. For example, if the type of the first object is a picture and the content of the second object is "a golden retriever wearing a hat", the prompt information is "please generate a picture of a golden retriever wearing a hat all the time".

[0075] S302: Send the target prompt information to the target model.

[0076] In the present disclosure, the target model may be a text generation model and / or an image generation model. The target model may be a combination of multiple models, such as a combination of a large language model and a diffusion model.

[0077] S303: Obtain the third object generated by the target model based on the target prompt information.

[0078] In the present disclosure, the target model can be obtained by training the neural network to be trained based on a plurality of sample prompt information and real objects corresponding to the sample prompt information. The sample prompt information includes type information and description text information of the object.

[0079] For example, if the type of the first object is text, the target prompt information is sent to the target model, and the target model can generate text information with the content information of the second object as a third object based on the target prompt information; if the type of the first object is an image, the target model can generate an image with the content information of the second object as a third object based on the target prompt information.

[0080] In a possible implementation, the file processing method further includes steps A1-A2:

[0081] Step A1, obtaining the format information of the first object.

[0082] In the present disclosure, the format information of the first object may include the attribute information, size information, position information and content information of the first object. The attribute information of the first object may include the type, font and border information of the first object. If the first object is an image, the attribute information of the first object may also include transparency and image color information. The size information of the first object includes the width, length and number of text characters of the first object. The position information of the first object may include the position coordinates of the first object in the first area. The content information of the first object may include: if the first object is a text type, the content information of the first object may include specific text; if the first object is an image type, the content information of the first object may include description information of the image.

[0083] Step A2: adjusting the third object according to the format information.

[0084] In the present disclosure, the third object can be adjusted to be consistent with the format of the first object. For example, if the first object is a text type, the font size, font type, and text box size of the third object can be adjusted to be consistent with the first object. If the first object is an image type, the image size and image style of the third object can be adjusted to be consistent with the first object.

[0085] In a possible implementation, the target prompt information can be determined based on the type information of the first object, the format information of the first object, and the content information of the second object. The target prompt information can include the format information of the first object. When the target model generates a third object based on the target prompt information, a third object having a format consistent with the format information of the first object can be generated.

[0086] In the present disclosure, the third object can be generated by referring to the format information of the first object. For complex content such as pictures, the corresponding format can be determined directly when the image is generated, without the need for manual adjustment by the user later, which simplifies user operations and improves the user experience.

[0087] In a possible implementation, the file processing method further includes steps B1-B2:

[0088] Step B1: determining a fourth object in the first area, where the fourth object is of the same type as the second object.

[0089] For example, Figure 2 As shown, the user may select object 202 as the fourth object in the first area 210 , object 203 is the second object in the second area, and both object 202 and object 203 are texts.

[0090] For another example, if the second object is an image, the user may select an image different from the first object in the first area as the fourth object.

[0091] Step B2: adjusting the format of the second object according to the format information of the fourth object.

[0092] The format information of the fourth object may include attribute information, size information, position information, content information, etc. of the fourth object. In the present disclosure, the second object may be adjusted to be consistent with the format of the fourth object. For example, if the fourth object is a text type, the font size, font type, and text box size of the second object may be adjusted to be consistent with the fourth object.

[0093] In a possible implementation, the file processing method further includes steps C1-C2:

[0094] Step C1: determining a fourth object in the first area, where the fourth object is of the same type as the second object.

[0095] This step is the same as step B1 and will not be repeated here.

[0096] Step C2, determining the target display position of the third object in the second area based on the first position relationship between the first object and the fourth object, when the third object is displayed at the target display position, the second position relationship between the third object and the second object corresponds to the first position relationship.

[0097] In the present disclosure, the positional relationship between objects may include spatial positional relationships such as relative coordinates and overlapping relationships. The first positional relationship between the first object and the fourth object may include: the first object is located on the left, right, above or below the fourth object, the horizontal distance and vertical distance between the first object and the fourth object, and whether there is an overlap between the first object and the fourth object. The second positional relationship between the third object and the second object may include: the third object is located on the left, right, above or below the second object, the horizontal distance and vertical distance between the third object and the second object, and whether there is an overlap between the third object and the second object.

[0098] In the present disclosure, the position of the second object can also be adjusted according to the first position relationship between the fourth object and the first object, so that the second position relationship between the second object and the third object is consistent with the first position relationship between the fourth object and the first object. For example, if the fourth object is text 1, the first object is image 1, the second object is text 2, and the third object is image 2, if text 1 is 1 cm directly below image 1, the position of text 2 can be adjusted to 1 cm directly below image 2, so that the position relationship between text 2 and image 2 is consistent with the position relationship between text 1 and image 1.

[0099] In a possible implementation manner, obtaining the third object based on the type information of the first object and the content information of the second object may include steps D1-D3:

[0100] Step D1: determining a fourth object in the first area, where the fourth object is of the same type as the second object.

[0101] This step is the same as step B1 and will not be repeated here.

[0102] Step D2: determining first content association information between the fourth object and the second object.

[0103] In the present disclosure, there may be first content association information between the fourth object in the first area and the second object in the second area. The first content association information may include content theme association information and context association information. For example, if the fourth object and the second object are both texts, the fourth object and the second object may be descriptive texts for the same theme. Alternatively, the fourth object and the second object may be contextual description texts for the same theme, for example, the fourth object provides background introduction text for theme A, and the second object provides development direction text for theme A.

[0104] Step D3: obtaining the third object based on the type information of the first object, the content information of the second object and the first content-related information.

[0105] In the present disclosure, a third object consistent with the type of the first object can be generated. Specifically, a third object consistent with the type of the first object and having an association relationship with the first object corresponding to the first content-related information can be generated based on the type information of the first object, the content information of the second object and the first content-related information.

[0106] For example, the first object is an image, the content information of the second object is the development direction text for Topic A, the content information of the fourth object is the background introduction text for Topic A, the first content-related information represents the existence of context-related information between the fourth object and the second object, and the generated third object can be an image that displays the background introduction information of Topic A.

[0107] In a possible implementation manner, obtaining the third object based on the type information of the first object and the content information of the second object may include steps E1-E3:

[0108] Step E1: determining a fourth object in the first area, where the fourth object is of the same type as the second object.

[0109] This step is the same as step B1 and will not be repeated here.

[0110] Step E2: determining second content association information between the fourth object and the first object.

[0111] In the present disclosure, there may be second content association information between the fourth object in the first area and the second object in the first area. The second content association information may include content theme association information and content supplement association information, etc. For example, if the fourth object is text, the first object is an image, and the fourth object is text describing image features, then the second content association information may be content description association information; if the first object is an image, and the fourth object is text supplementing image features, then the second content association information may be content supplement association information.

[0112] Step E3: obtaining the third object based on the type information of the first object, the content information of the second object and the second content-related information.

[0113] In the present disclosure, a third object consistent with the type of the first object can be generated. Specifically, a third object consistent with the type of the first object and having an association relationship with the second object corresponding to the second content-related information can be generated based on the type information of the first object, the content information of the second object, and the second content-related information.

[0114] For example, if the first object is image A, the fourth object is text describing features of image A, and the second content-related information may be a content description association relationship, and the second object is text, then a corresponding image may be generated as the third object based on the content described in the text of the second object.

[0115] In the present disclosure, the third object can be generated by referring to the first content association information between the second object and the fourth object, or by referring to the second content association information between the first object and the fourth object, so that the third object satisfies the content association relationship with the second object. For objects that need to be associated, there is no need for users to manually adjust them later, which simplifies user operations and improves user experience.

[0116] In a possible implementation manner, the second object is a link. Figure 4 Another flowchart of obtaining a third object provided in an embodiment of the present application is as follows: Figure 4 As shown, obtaining the third object based on the type information of the first object and the content information of the second object includes:

[0117] S401: Access a target page corresponding to the second object.

[0118] In the present disclosure, the second object is a link, which can point to a target page. When a user clicks the link, the user can jump to the target page or initiate an HTTP request in the background to obtain the content of the target page.

[0119] S402: Obtain the page content of the target page.

[0120] The target page includes one or more text files and / or image files.

[0121] S403: Obtain the third object according to the page content and the type information of the first object.

[0122] In the present disclosure, a file corresponding to the type information of the first object may be selected from the files in the target page as the third object.

[0123] The following further describes an exemplary structure of a file processing device provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 5 As shown, the software modules in the file processing device may include:

[0124] A first object determining module 501, configured to determine a first object in the first area in response to a first selection operation;

[0125] A second object determining module 502, configured to determine a second object within the second area in response to a second selection operation;

[0126] The third object generating module 503 is configured to obtain a third object based on the type information of the first object and the content information of the second object.

[0127] By using the file processing device provided in the embodiment of the present application, a third object can be quickly generated by combining the type information of the first object selected in the first area and the content information of the second object selected in the second area. This not only meets the user's complex file processing needs, but also improves file processing efficiency, thereby enhancing the user's experience.

[0128] In one possible implementation, the third object generation module 503 is specifically used to determine target prompt information based on the type information of the first object and the content information of the second object, the target prompt information being used to instruct the model to generate an object of the same type as the first object based on the content information of the second object; send the target prompt information to the target model; and obtain the third object generated by the target model based on the target prompt information.

[0129] In one possible implementation, the third object generating module 503 is further configured to display the third object in the second area.

[0130] In one possible implementation, the third object generation module 503 is further configured to obtain format information of the first object; and adjust the third object according to the format information.

[0131] In one possible implementation, the third object generation module 503 is further configured to determine a fourth object from within the first area, the fourth object being of the same type as the second object; and adjust the format of the second object according to the format information of the fourth object.

[0132] In one possible implementation, the third object generation module 503 is also used to determine a fourth object from within the first area, and the fourth object is of the same type as the second object; determine the target display position of the third object in the second area based on a first position relationship between the first object and the fourth object, and when the third object is displayed at the target display position, the second position relationship between the third object and the second object corresponds to the first position relationship.

[0133] In one possible implementation, the third object generation module 503 is specifically used to access a target page corresponding to the second object; obtain page content in the target page; and obtain the third object according to the page content and type information of the first object.

[0134] In one possible implementation, the third object generation module 503 is specifically used to determine a fourth object from the first area, where the fourth object is of the same type as the second object; determine first content association information between the fourth object and the second object; and obtain the third object based on the type information of the first object, the content information of the second object, and the first content association information.

[0135] In one possible implementation, the third object generation module 503 is specifically used to determine a fourth object from the first area, where the fourth object is of the same type as the second object; determine second content association information between the fourth object and the first object; and obtain the third object based on the type information of the first object, the content information of the second object, and the second content association information.

[0136] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, so it will not be repeated here. Figures 1 to 4 The present invention can be understood by referring to the description of any one of the accompanying drawings.

[0137] According to an embodiment of the present application, the present application also provides an electronic device and a non-transitory computer-readable storage medium.

[0138] Figure 6A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0139] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0140] Multiple components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0141] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the file processing method. For example, in some embodiments, the file processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the file processing method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the file processing method in any other appropriate manner (e.g., by means of firmware).

[0142] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0143] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0144] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0146] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0147] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0148] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0149] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0150] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A file processing method, comprising: In response to a first selection operation, determining a first object from within the first area; In response to a second selection operation, determining a second object from within the second area; A third object is obtained based on the type information of the first object and the content information of the second object.

2. The method according to claim 1, wherein obtaining the third object based on the type information of the first object and the content information of the second object comprises: Determine target prompt information according to the type information of the first object and the content information of the second object, wherein the target prompt information is used to instruct the model to generate an object of the same type as the first object based on the content information of the second object; Sending the target prompt information to the target model; The third object generated by the target model based on the target prompt information is obtained.

3. The method according to claim 1, further comprising: The third object is displayed in the second area.

4. The method according to claim 3, further comprising: Obtaining format information of the first object; The third object is adjusted according to the format information.

5. The method according to claim 3, further comprising: determining a fourth object within the first area, the fourth object being of the same type as the second object; The format of the second object is adjusted according to the format information of the fourth object.

6. The method according to claim 3, further comprising: determining a fourth object within the first area, the fourth object being of the same type as the second object; The target display position of the third object in the second area is determined based on the first position relationship between the first object and the fourth object. When the third object is displayed at the target display position, the second position relationship between the third object and the second object corresponds to the first position relationship.

7. The method according to claim 1, wherein the second object is a link, and the step of obtaining the third object based on the type information of the first object and the content information of the second object comprises: Accessing a target page corresponding to the second object; Obtaining page content in the target page; The third object is obtained according to the page content and the type information of the first object.

8. The method according to claim 3, wherein obtaining the third object based on the type information of the first object and the content information of the second object comprises: determining a fourth object within the first area, the fourth object being of the same type as the second object; determining first content association information between the fourth object and the second object; The third object is obtained based on the type information of the first object, the content information of the second object and the first content-related information.

9. The method according to claim 3, wherein obtaining the third object based on the type information of the first object and the content information of the second object comprises: determining a fourth object within the first area, the fourth object being of the same type as the second object; determining second content association information between the fourth object and the first object; The third object is obtained based on the type information of the first object, the content information of the second object and the second content-related information.

10. A file processing device, comprising: A first object determining module, configured to determine a first object from within the first area in response to a first selection operation; A second object determining module, configured to determine a second object within the second area in response to a second selection operation; The third object generating module is used to obtain a third object based on the type information of the first object and the content information of the second object.