Document processing method, electronic equipment, chip system, storage medium and program product

By integrating AIGC capabilities into a one-stop office application and embedding them into third-party office applications, the problem of existing office applications needing to develop their own AI capabilities has been solved. This has reduced development pressure and user learning costs, and improved user experience and operational efficiency.

CN121919019APending Publication Date: 2026-04-24HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-10-23
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing office applications require AI processing capabilities to efficiently utilize AI technology, resulting in significant R&D pressure and high learning costs for users.

Method used

Integrate generative artificial intelligence (AIGC) capabilities into a one-stop office application, and enable third-party office applications to have AIGC capabilities, thereby reducing the R&D burden and providing a unified user interface and functions.

Benefits of technology

It reduces the development burden of third-party office applications, reduces user learning and operation time, and improves user experience and operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121919019A_ABST
    Figure CN121919019A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a document processing method, electronic equipment, a chip system, a storage medium and a program product, relates to the technical field of terminals, and is beneficial to release the research and development pressure of office applications. The method comprises the steps that a first sub-window and a second sub-window are displayed in a first window, the first window is a window of a first application, the first application has the capability of providing a document analysis capability by utilizing generative artificial intelligence AIGC for other applications, and the first sub-window is a window which is embedded into the first application by a second application and is used for displaying the content of a first document; the second application is a document application, the second sub-window is an interaction window which is provided by the first application and is used for analyzing a document by utilizing AIGC, and the second sub-window comprises a plurality of function controls; and under the condition that any one of the plurality of function controls is triggered, analyzing and processing the content of the first document by utilizing the AIGC.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a document processing method, electronic device, chip system, storage medium and program product. Background Technology

[0002] With the advancement of artificial intelligence (AI) technology, ubiquitous AI technology is gradually changing the way people live and work. Among these applications, AI's capabilities in the office are an important application scenario for AI technology.

[0003] However, in practice, office applications typically need to have AI processing capabilities to achieve efficient office work using AI. But this often requires the applications to have high R&D capabilities, which is a big challenge for the market. Summary of the Invention

[0004] This application provides a document processing method, an electronic device, a chip system, a storage medium, and a program product, which are applied in the field of terminal technology and help relieve the development pressure of office applications. (Simplified description of the effects).

[0005] In a first aspect, embodiments of this application propose a document processing method applied to an electronic device. The method includes: displaying a first sub-window and a second sub-window in a first window, wherein the first window is a window of a first application, the first application having the ability to provide other applications with the capability to analyze documents using generative artificial intelligence (AIGC); the first sub-window is a window of a second application embedded in the first application for displaying the content of a first document, the second application being a document-type application; the second sub-window is an interactive window provided by the first application for analyzing documents using AIGC; and the second sub-window includes multiple functional controls; and, when any one of the multiple functional controls is triggered, analyzing and processing the content of the first document using AIGC.

[0006] Optionally, the first window could be, for example, Figure 3 The window corresponding to region 313 shown in the figure, for example, could be the first child window. Figure 3 The window corresponding to region 312 shown in the figure, for example, could be the second sub-window. Figure 3 The window corresponding to area 311 shown in e; the first application could be, for example, a super workbench application, and the second application could be, for example, a third-party office application.

[0007] In this embodiment of the application, by embedding the second application into the first application, the second application can use the AIGC capabilities provided by the first application to analyze the documents opened by the first application. In this way, the second application does not need to develop its own AIGC capabilities, which helps to reduce the development burden of the second application or similar applications.

[0008] Furthermore, the AIGC capabilities integrated into the first application can have a unified user interface and functions, which helps reduce the time and effort costs for users to learn and use AIGC functions.

[0009] In conjunction with the first aspect, in some implementations of the first aspect, displaying a first child window and a second child window in a first window includes: displaying the first child window in a first area of ​​the first window and displaying the second child window in a second area of ​​the first window; before displaying the first child window in the first area of ​​the first window and the second child window in the second area of ​​the first window, the method further includes: displaying the first child window in a third area of ​​the first window, the third area including the first area and the second area; the first window also includes a first control, the first control being used to launch the second child window, wherein displaying the first child window in the first area of ​​the first window and displaying the second child window in the second area of ​​the first window includes: in response to an operation on the first control, displaying the first child window in the first area of ​​the first window and displaying the second child window in the second area of ​​the first window.

[0010] Optionally, the first region can be Figure 3 The region 312 shown in e can be the second region. Figure 3 The region 311 shown in e can be the third region. Figure 3 The area 309 shown by d in the figure can be the first control. Figure 3 The control shown as d in the figure is 310.

[0011] This application provides a process for launching a second sub-window. Users can conveniently launch the second sub-window by triggering the first control, which helps to improve the user experience.

[0012] In one possible implementation, the second child window can also be automatically started and displayed at the same time as the first child window, which helps save user operation time and further improves the user experience.

[0013] In conjunction with the first aspect, in some implementations of the first aspect, before displaying the first child window in the third area of ​​the first window, the method further includes: in response to a launch operation of the first application, displaying a third child window in the third area of ​​the first window, the third child window including a second control for triggering a document selection process; in response to a selection operation of the second control, displaying a second window above the first window, the second window including documents in a first folder recently opened by the user, the first folder including a first document; the step of displaying the first child window in the third area of ​​the first window includes: in response to a selection operation of the first document, updating the display of the third child window to the display of the first child window in the third area of ​​the first window.

[0014] Optionally, the third child window could be, for example, Figure 3 The window corresponding to area 314 shown in b, the second control could be, for example, [the window could be...]. Figure 3 The control 303 shown in b in the figure, the second window could be, for example, control 303. Figure 3 In window 304 shown in c, the first folder can be, for example, folder A shown in window 304, and the first document can be, for example, document D.

[0015] In conjunction with the first aspect, in some implementations of the first aspect, the third sub-window further includes a list of documents analyzed by the user using the first application during a preset time period before launching the first application.

[0016] Optionally, the preset time period can be a week or any other time period of any length; this application does not impose any specific limitations on this.

[0017] The method provided in this application embodiment helps reduce unnecessary file selection operations and allows users to quickly find the required document, thus improving user efficiency and experience, especially when the document the user wants to open has been opened within a preset time period before the first application is launched.

[0018] In conjunction with the first aspect, in some implementations of the first aspect, displaying the first child window in a third area of ​​the first window includes: displaying the first child window in a third area of ​​the first window in response to an operation to open the first document.

[0019] In conjunction with the first aspect, in some implementations of the first aspect, the first document is opened using the first application.

[0020] In this case, the first document is opened using the first application. This opening method can be the default method that was selected beforehand, or it can be the method selected on the spot. This method helps to reduce the user's operation process, reduce the complexity of operation, and improve efficiency.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, the plurality of functional controls include a third control, the third control being used to trigger a process of obtaining analysis results for the entire content of a document using AIGC, and the method further includes: in response to a selection operation on the third control, the page displayed in the second sub-window is updated from a page including the plurality of functional controls to a first page, the first page including a first analysis result for the entire content of the first document.

[0022] Optionally, the third control may include, for example, any one of the following: a "Smart Summary" control, a "Mind Map" control, a "Expand Length" control, a "Shorten Length" control, and a "Smart Layout" control, but this application does not specifically limit it. The first page may, for example, be... Figure 4 The page corresponding to area 403 is shown in c.

[0023] In conjunction with the first aspect, in some implementations of the first aspect, when the page displayed in the second sub-window is updated from a page including the plurality of functional controls to a first page, the first page further includes a fourth control, and the method further includes: in response to a triggering operation on the fourth control, inserting the first analysis result into the position of the cursor in the first document displayed in the first sub-window.

[0024] Optionally, the fourth control could be, for example, Figure 4 The "Insert Original Text" control shown in 'c' is an example of this.

[0025] The method provided in this application embodiment allows users to quickly insert the first analysis result into the cursor position in the first document using a fourth control when the user needs to insert the first analysis result into the original text, without the need for complex copy and paste operations. This helps to reduce the user's operation process, lower the operation complexity, and improve the user experience.

[0026] In one possible implementation, taking the second control as a "smart summary" control as an example, the electronic device can also respond to the triggering operation of the fourth control by inserting the summary result of the first document into the first paragraph of the first document, so as to quickly adapt to the writing style of the article without the need for the user to make a selection, thereby improving the user experience.

[0027] In conjunction with the first aspect, in some implementations of the first aspect, updating the page displayed in the second sub-window from a page including the plurality of functional controls to a first page includes: in response to a selection operation on the third control, updating the page displayed in the second sub-window from a page including the plurality of functional controls to a second page, the second page including the progress of reading the first document using AIGC; and when reading the first document using AIGC is completed, updating the page displayed in the second sub-window from the second page to the first page.

[0028] Optionally, the second page could be, for example, Figure 4 The page corresponding to area 404 is shown in b.

[0029] The progress of reading the first document using AIGC can be understood as the upload progress of the document assistant module uploading the document to the office content processing model described above. Displaying this progress when the third control has been triggered but the first document has not yet been uploaded helps users intuitively understand the current status, avoiding causing users to wait without knowing why, and thus improving the user experience.

[0030] In conjunction with the first aspect, in some implementations of the first aspect, the plurality of functional controls includes a fifth control, which is used to trigger a process of obtaining analysis results for content selected by the user in a document using AIGC. The method further includes: in response to a selection operation on the fifth control, the page displayed in the second sub-window is updated from the page including the plurality of functional controls to a third page, the third page including a sixth control and a first prompt, the sixth control being used to trigger a process of analyzing the document content selected by the user using AIGC, and the first prompt being used to instruct the user to select content based on the first document; in response to a selection operation on the sixth control, the page displayed in the second sub-window is updated from the third page to a fourth page, the fourth page including a second analysis result for the first content, the first content being the content selected by the user based on the first document.

[0031] Optionally, the fifth control may include, for example, any one of the following: "Smart Polishing" control, "Mind Mapping" control, "Expand Length" control, "Shorten Length" control, "Smart Layout" control, and "Style Rewriting" control, but this application is not limited thereto. The sixth control may, for example, be... Figure 5 The "Start Polishing" control shown in b in the image could be on the third page, for example. Figure 5 The page corresponding to area 501 shown in b, for example, could be the fourth page. Figure 5 The page corresponding to area 502 shown in c is shown in the image.

[0032] In conjunction with the first aspect, in some implementations of the first aspect, the fourth page further includes a seventh control, and the method further includes: in response to a selection operation on the seventh control, inserting the second analysis result into the position of the cursor in the first document displayed in the first sub-window.

[0033] In conjunction with the first aspect, in some implementations of the first aspect, the fourth page further includes an eighth control, and the method further includes: in response to a selection operation on the eighth control, replacing the first content already selected in the first sub-window with the second analysis result.

[0034] Optionally, the seventh control could be, for example, Figure 5 The "Insert Original Text" control shown in C can be, for example, the eighth control. Figure 5 The "Replace Original Text" control shown in 'c' is an example of this.

[0035] Secondly, embodiments of this application provide a document processing apparatus, which may be an electronic device, a chip, or a chip system within an electronic device. The document processing apparatus may include a display unit and a processing unit. When the document processing apparatus is an electronic device, the display unit may be a display screen. The display unit is used to perform display steps to cause the electronic device to implement a document processing method described in the first aspect or any possible implementation of the first aspect. When the document processing apparatus is an electronic device, the processing unit may be a processor. The document processing apparatus may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to cause the electronic device to implement a document processing method described in the first aspect or any possible implementation of the first aspect. When the document processing apparatus is a chip or a chip system within an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to cause the electronic device to implement a document processing method described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit within the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip within the electronic device (e.g., a read-only memory, random access memory, etc.).

[0036] Thirdly, embodiments of this application provide an electronic device including one or more processors and a memory, the memory being coupled to one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, and one or more processors calling the computer instructions to cause the electronic device to perform the methods described in the first aspect or any possible implementation of the first aspect.

[0037] Fourthly, embodiments of this application provide a computer-readable storage medium, which includes a computer program or instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0038] Fifthly, embodiments of this application provide a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to perform the methods described in the first aspect or any possible implementation of the first aspect.

[0039] Sixthly, this application provides a chip or chip system including one or more processors and a communication interface. The communication interface and the one or more processors are interconnected via a circuit. The one or more processors are used to run computer programs or instructions to perform the methods described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.

[0040] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).

[0041] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0042] Figure 1 A software structure block diagram of an electronic device provided in an embodiment of this application;

[0043] Figure 2A A schematic flowchart illustrating a document processing method provided in an embodiment of this application;

[0044] Figure 2B This is a schematic flowchart illustrating a document processing method provided in an embodiment of this application. Figure 2B for Figure 2A The following image;

[0045] Figure 3 An example diagram of an electronic device interface display provided in this application embodiment;

[0046] Figure 4 An example diagram of an electronic device interface display provided in this application embodiment;

[0047] Figure 5 Another example diagram of an electronic device interface display provided in this application embodiment;

[0048] Figure 6 Another example diagram of an electronic device interface display provided in this application embodiment;

[0049] Figure 7 A hardware structure block diagram of an electronic device provided in an embodiment of this application;

[0050] Figure 8 This is a structural block diagram of a chip provided in an embodiment of this application. Detailed Implementation

[0051] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:

[0052] 1. Generative Artificial Intelligence (AIGC): AIGC is a branch of artificial intelligence. It is a technology that generates text, images, audio, video, code and other content based on algorithms, models and rules.

[0053] In this embodiment of the application, the electronic device can use AIGC technology to intelligently format, extract summaries, correct errors, and polish text content. It can also create mind maps based on text content to guide reading of the text.

[0054] 2. Windows Parent-Child Window Mechanism: The Windows parent-child window mechanism is an important concept in window management within the Windows operating system. In Windows, each form can be considered a parent window. It is not a child window of any other form, but rather exists as a container to contain and manage its child windows. All controls on a form (such as buttons, text boxes, etc.) are child windows of that form.

[0055] In most Windows applications, the main window acts as the parent window, while various controls (such as buttons, text boxes, list boxes, etc.) are added to the main window as child windows.

[0056] 3. Other terms

[0057] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0058] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0059] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0060] 4. Electronic equipment

[0061] The electronic devices in this application embodiment may include handheld devices, vehicle-mounted devices, etc., with AIGC capabilities. For example, some electronic devices include: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving vehicles, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, electronic devices in 5G networks, or future evolution of public land mobile communication networks. The embodiments of this application do not limit the scope of electronic devices in a network (PLMN).

[0062] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0063] Furthermore, in this application embodiment, the electronic device can also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0064] The electronic device in this application embodiment may also be referred to as: electronic device, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0065] In this embodiment, the electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and main memory. The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0066] With the advancement of artificial intelligence (AI) technology, ubiquitous AI technology is gradually changing the way people live and work. Among these applications, AI's capabilities in the office are an important scenario for its application.

[0067] However, in practice, the target office application typically needs to have AI processing capabilities to utilize AI within that application. This often requires the target office application's development team to possess high R&D capabilities, posing a significant challenge to the application market. Furthermore, different applications may have different AI capabilities and usage methods, which increases the time and effort required for users to learn and use each application.

[0068] In view of this, this application provides a document processing method, electronic device, chip system, storage medium, and program product that can integrate AIGC capabilities into a one-stop office application (such as the first application mentioned below), and by embedding a third-party office application (such as the second application mentioned below) into the one-stop office application, the third-party office application can be equipped with AIGC capabilities. In this way, the third-party office application does not need to develop AIGC capabilities on its own, which helps to reduce the development burden of third-party applications, eliminates the need to configure AIGC capabilities separately in multiple third-party office applications, and also helps to reduce the operating burden of electronic devices.

[0069] Furthermore, AI capabilities integrated into one-stop office applications can have unified functions, which helps reduce the time and effort costs for users to learn and use AIGC functions.

[0070] It should be understood that in the embodiments of this application, AI capabilities and AIGC capabilities can be understood as similar and interchangeable concepts, and this application will not distinguish between AI capabilities and AIGC capabilities in the following description.

[0071] Below, in order to better understand the content of this application, a brief introduction will be given to the software structure of the electronic device involved in the embodiments of this application. Figure 1 An exemplary software architecture block diagram of an electronic device is shown. For example... Figure 1 As shown, the layered architecture divides the software system of an electronic device into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. This illustration uses a laptop computer running a Windows operating system as an example; however, this example does not constitute a specific limitation on the form of the electronic device or its operating system.

[0072] In some embodiments, the Windows system is divided into user mode and kernel mode.

[0073] 1. The user space may include a series of application packages that users can directly access, serving as a window for users to interact with terminal devices. For example, the application packages may include at least a super workbench, third-party office applications, etc., where the super workbench can be understood as a one-stop office application that integrates functions such as intelligent documents, calendars, notes, global collections, and trust rings based on AIGC. This application does not specifically limit the name of the application.

[0074] Furthermore, the super workbench can at least include a file management module and a workbench window module. The file management module can include capabilities such as document switching, document interaction, recent document display, third-party document interface placeholders, and a document assistant. The document assistant can be understood as an intelligent document based on AIGC, and may have capabilities such as dialogue display, document polishing, document summary extraction, intelligent formatting, and document guidance. The document assistant can also be called an AI document or other names, which are not limited in this application.

[0075] It should be understood that the Super Workbench can integrate AIGC-based intelligent documents, calendars, notes, global collections, and trust rings. The corresponding function windows can be activated or destroyed by switching windows through the workbench window.

[0076] In this embodiment, the super workbench can interact with the file management database through office services, and can also analyze document content using edge-side large models and / or cloud-side large models through intelligent voice services and basic services. It can also interact with third-party office applications through third-party office services, such as obtaining the document content selected by the user through the third-party office application. This application does not limit this.

[0077] In one possible implementation, the intelligent business platform included in the basic services can include two parts: the electronic device side (also known as the terminal side) and the cloud server side (also known as the cloud side). In this way, models with large amounts of data can be placed on the cloud side, which helps to reduce the memory burden of electronic devices.

[0078] 2. Kernel mode includes the operating system (OS) layer. The operating system refers to the core part of the entire Windows system software, responsible for managing the computer's hardware resources and providing various services to enable applications to run and interact with hardware devices. A Windows operating system can include at least the kernel layer, which is the layer between hardware and software.

[0079] This application does not specifically limit the names of each module; any module or unit that can realize the function of the corresponding module is within the protection scope of this application.

[0080] Below, in conjunction with Figure 1 The various software modules shown herein provide a detailed description of the document processing method provided in the embodiments of this application. Figure 2A and Figure 2B An exemplary embodiment of the document processing method 200 provided in this application is shown. Figure 2B for Figure 2A The following diagram shows S201 to S222 of method 200. Figure 2AIn S223~S235 Figure 2B In the embodiments of this application, the following are set Figure 2A and Figure 2B The reason why Method 200 has so many steps is that it is difficult to describe with a single diagram.

[0081] This method 200 can be applied to electronic devices, and the software structure of the electronic devices can be as follows: Figure 1 As shown, the hardware structure can be as follows: Figure 7 As shown, the specific form of the electronic device can be a laptop, tablet computer, or mobile phone, etc. The illustrations in this application use a laptop computer as an example and do not constitute a specific limitation on the form of the electronic device implementing this application.

[0082] Method 200 includes the following steps:

[0083] S201, The file management module receives selection operations from users.

[0084] S202. In response to the user's selection operation, the file management module launches the corresponding window, which includes controls for opening files.

[0085] As one possible scenario, electronic devices could incorporate a super workbench application, which could, for example,... Figure 3 As shown in 'a', application 301 can be launched by double-clicking its icon. In response to the user's launch of the application, the electronic device displays the corresponding window. Figure 3 Example b illustrates one possible window of the application when the user selects control 302, which can be understood as a control used to control the file management module. Figure 3 The 'b' in the control 302 could be, for example, the window corresponding to the file management module. This application does not limit the specific name of the control 302.

[0086] The Super Workbench application has various functions, which users can access through tools such as... Figure 3 The various controls in the column where control 302 is located, as shown in b, can switch between multiple different functions.

[0087] In such Figure 3 The window shown in b can display the names of documents recently opened by the user, for example... Figure 3 The document b in the figure shows document A, document B and document C. Furthermore, the area corresponding to the document name can also display the file size and the last save time, etc., but this application does not limit this.

[0088] In one possible implementation, the document the user wants to open is not in the list of recently opened files, so the user can click... Figure 3 The control 303 shown in b is used to open the file explorer and select the document to open. Control 303 can be understood as a control used to open files.

[0089] S203. The file management module receives the user's selection of the control used to open the file.

[0090] S204. Based on the user's selection of the control used to open the file, the file management module sends instruction 1 to the resource manager. Instruction 1 is used to instruct the user to open the folder that was most recently selected.

[0091] S205. Based on instruction 1, the resource manager opens the folder A that the user recently selected, which contains document D.

[0092] In one possible implementation, the user's selection of the control used to open the file can be achieved by the user clicking, such as... Figure 3 Control 303, shown as b in the diagram, allows the electronic device to display, as follows: Figure 3 Page 304, shown in c, can display the folder A that the user recently selected.

[0093] In one possible implementation, if the document the user wants to select is not in folder A, the user can further search for and select the document through the disk list corresponding to "This PC" shown on the left side of page 304.

[0094] In another possible implementation, the document the user wants to select is located in folder A. The user then selects the documents included in folder A as shown on the right side of page 304, for example... Figure 3 The image shows documents D, E, and F. Taking document D as an example, when document D is selected... Figure 3 In area 305 (shown as c), the document name of document D can be displayed. Furthermore, area 306 can display allowed document formats to indicate whether the selected document format is supported. If the user-selected document format meets the format shown in area 306, the user can click control 307 to display the document in the corresponding window of the file management module.

[0095] In some implementations, a document might be accidentally selected, or the user might not need to select a document from folder A. In such cases, the user can click control 308 to close page 304 and return to the previous page. Figure 3 The page shown in b is the one in the image.

[0096] S206. The resource manager receives the user's selection operation on document D.

[0097] S207. The resource manager sends the storage path of document D to the file management module.

[0098] Optionally, the storage path of document D may include the name of document D, and document D can be uniquely identified based on the storage path of document D.

[0099] S208. The file management module sends instruction 2 to the office service module. Instruction 2 is used to instruct the opening of document D. Instruction 2 includes the storage path of document D.

[0100] Optionally, the user's selection operation on document D can be understood as the user selecting document D and clicking control 307, but this application does not limit this.

[0101] S209, The office service module initializes third-party office applications based on instruction 2.

[0102] It should be understood that the office service module is used to provide office-related functionalities to the Super Workbench. In some implementations, the office service module initializes third-party office applications in the following ways: 1) calling the Colnitialize() function to initialize the Component Object Model (COM) interface; 2) calling the CLSIDFromProgID() function to search for the third-party office application in the electronic device's registry; 3) calling the CoCreateInstance() function to initialize the third-party office application. At this point, the process of the third-party office application is started.

[0103] It should also be understood that third-party office applications refer to office applications not configured in the Super Workbench, but this application does not specifically limit whether the Super Workbench itself is configured with office applications.

[0104] S210, The office service module sends instruction 3 to the third-party office application. Instruction 3 is used to instruct the opening of document D. Instruction 3 includes the storage path of document D.

[0105] S211, The process of launching document D by a third-party office application.

[0106] S212. The third-party office application returns a feedback message to the office service module indicating that document D was successfully opened.

[0107] S213. The office service module embeds the window of document D into the corresponding window of the file management module.

[0108] S214. The office service module returns a feedback message to the file management module indicating that document D was successfully opened.

[0109] S215. The file management module records the opening history of document D.

[0110] In one possible implementation, in S212 above, the feedback message that the third-party office application returns to the office service module that the document D has been successfully opened may include information such as the process identifier of document D, the menu of document D, the window size and focus of document D, so that the office service module can use this information to embed the document D opened by the third-party office application into the window corresponding to the file management module.

[0111] Optionally, the office service module can embed document D into the window corresponding to the file management module by calling a dynamic link library (DLL). For example, the office service module can call EmbedWindow.dll through the COM interface of a third-party office application to create, manage, or display a window of the third-party office application, such as the window for document D, within the file management module. Further, the office service module can dynamically reference one or more of ExcelHookApi32.dll, PptHookApi32.dll, WordHookApi32.dll, WoekStationHookApi32.dll, or YozoHookProcess32.dll to control the focus of the document D window.

[0112] It should be understood that after S213 above, the electronic device may display as follows: Figure 3 The page shown by d in the image. Figure 3 In the context of document 'd', the window corresponding to region 309 is the window of document 'd'. Figure 3 The area outside the window of document D in the document belongs to the file management module. The window corresponding to the file management module includes control 310, which is used to launch the document assistant module.

[0113] In one possible implementation, the user selects to launch the document assistant module and performs a selection operation on control 310. Further, the file management module executes S216.

[0114] S216. The file management module receives a selection operation for the control used to launch the document assistant module.

[0115] S217. The file management module sends instruction 4 to the document assistant module. Instruction 4 is used to initialize the document assistant module.

[0116] Optionally, instruction 4 may include the storage path of document D, the selected text in document D, and the state of document D, such as document D being saved or closed.

[0117] S218. The document assistant module registers callback functions related to the state of document D.

[0118] S219. The document assistant module returns a feedback message to the office service module indicating that the document assistant module has started successfully.

[0119] S220, The Office Services module embeds the document assistant module window into the corresponding file management module window.

[0120] Optionally, the way the office service module embeds the window of the document assistant module into the window corresponding to the file management module can be similar to the way the office service module embeds the window of document D into the window corresponding to the file management module, and will not be repeated here.

[0121] For example, after S220 described above, the electronic device may display as follows: Figure 3 The page shown in 'e', ​​document D's window starts from... Figure 3 The region 309 shown in d is adjusted to Figure 3 The document assistant window is displayed in area 312, as shown by 'e' in the figure. Figure 3 The area 311 shown in 'e' represents the window corresponding to the document management module, i.e. Figure 3 The region 313 shown in e can be understood as the parent window, while regions 311 and 312 included in region 313 can be understood as two child windows under this parent window.

[0122] In one possible implementation, users can zoom in or out of region 313 by dragging its outer frame or by clicking control 314. During the zooming in or out of region 313, one possible implementation is that regions 311 and 312 zoom in or out proportionally. Another possible implementation is that the height of region 311 changes with the height of region 313, while the width of region 311 remains constant, and region 312 changes with the change of region 313. This way, by keeping the width of region 311 constant, the display width of the document assistant can always display enough content, allowing users to have a clear view of the document assistant's functions, which is beneficial to improving the user experience.

[0123] It is worth noting that, Figure 3 The left-right distribution of the document D window and the document assistant window shown in 'e' is merely an example. The document D window and the document assistant window can also be distributed vertically. This application does not impose any restrictions on the specific position of the document D window and the document assistant window in a left-right or vertically distributed layout.

[0124] For example, the functions of a document assistant may include intelligent summarization, mind mapping, expanding the length, shortening the length, rewriting the style, intelligent polishing, intelligent typesetting, intelligent dialogue, etc., and this application does not specifically limit these functions.

[0125] Furthermore, once the document assistant module is started, it can transmit the content of document D to the office content processing model.

[0126] S221. The document assistant module uploads document D to the office content processing model through the intelligent middleware platform.

[0127] S222: The office content processing model feeds back the transmission status of document D to the document assistant module through the intelligent middle platform.

[0128] Optionally, the transmission status of document D reported by the office content processing model may include the upload progress of document D.

[0129] It should be understood that the office content processing model is a large model trained on a large amount of data for analyzing and processing language. In this embodiment, the document assistant's function is implemented based on this office content processing model. The office content processing model can be set on an electronic device or on a cloud server. When the office content processing model is set on a cloud server, the electronic device can use the smart platform set on both the electronic device side and the cloud server side to communicate with the office content processing model on the cloud server.

[0130] As one possible scenario, a user can open folder A, select document D, and choose to open document D using the file management module of the Super Workbench (this opening method can be the default or selected by the user when they want to open document D). In this scenario, steps S201 to S205 above are optional. Figure 3 a in Figure 3 b and Figure 3 The 'c' in the text refers to the optional display page. After opening folder A, selecting document D, and choosing to open document D using the file management module of the Super Workbench, the electronic device can directly display the document. Figure 3 The page shown as d in the image can then respond to the user's selection of the control used to launch the document assistant module, displaying something like... Figure 3 The page shown in 'e'.

[0131] Furthermore, electronic devices display Figure 3 After the page shown in 'e', ​​users can select any of the following functions to analyze document D: Smart Summary, Mind Map, Expand Length, Shorten Length, Style Rewriting, Smart Polishing, and Smart Layout.

[0132] For example, the user chooses to use the "Smart Summary" feature to analyze the full text of document D.

[0133] S223. The document assistant module receives the user's selection operation for the "Smart Summary" control.

[0134] For example, users can... Figure 4 In the document assistant window on the right side of the page shown in 'a', select the "Smart Summary" control. It should be understood that... Figure 4 a in Figure 3 The 'e' in the text can be the same page.

[0135] S224. The document assistant module responds to the user's selection operation on the "Smart Summary" control by checking the transmission status of document D.

[0136] If document D has been successfully uploaded to the office content processing model, the document assistant executes S225.

[0137] S225. The document assistant module sends instruction 5 to the office content processing model through the smart platform. Instruction 5 is used to instruct the office content processing model to perform content processing related to smart summary for document D.

[0138] S226. The office content processing model returns intelligent summary results to the document assistant module through the intelligent middleware platform.

[0139] In one possible implementation, the smart summary results are returned to the document assistant module in the form of streaming output. Specifically, the smart summary results that the user can see on the document assistant page can be displayed gradually, for example, word by word, line by line, or paragraph by paragraph.

[0140] In another possible implementation, the smart summary results are returned to the document assistant module as a whole data package. Specifically, the user can see all the smart summary results displayed at a certain moment on the document assistant's page.

[0141] It is worth noting that after the user selects "Smart Summary," the document assistant module, upon confirming that document D has been successfully uploaded to the office content processing model, executes steps S225-S226, which means the electronic device... Figure 4 Switch to page a in the middle Figure 4 Page C in the document assistant module; after the user selects "Smart Summary", if the document assistant module detects that document D has not yet been uploaded to the office content processing model, the electronic device can... Figure 4 Switch to page a in the middle Figure 4 The page shown in b, which displays the upload progress of document D in the document assistant window, for example... Figure 4 The "Reading document (23%)" shown in b in the diagram can be interpreted as the upload progress of document D. After document D is successfully uploaded to the office content processing model, the document assistant module executes S225-S226, and then the electronic device... Figure 4 Switch to page b in the middle Figure 4 Page C in the middle.

[0142] For example, Figure 4 On page C, the document assistant window displays the results of the smart summary and controls for "Copy," "Share," "More," and "Insert Original Text." In one possible implementation, the user can select the "Insert Original Text" control to insert the results of the smart summary into document D.

[0143] S227. The document assistant module receives the user's selection operation for the "Insert Original Text" control.

[0144] S228. The document assistant module responds to the user's selection operation on the "Insert Original Text" control and obtains the position of the cursor in document D.

[0145] S229. The document assistant module sends instruction 6 to the third-party office application. Instruction 6 is used to instruct the smart summary result to be inserted at the cursor position.

[0146] It should be understood that the cursor position can be understood as the location in document D that can be used as an insertion point, or it can be understood as the starting position of the mark determined by the mouse or other touch tools.

[0147] Optionally, the document assistant module can obtain the cursor position in document D by calling the COM interface of a third-party office application, but this application does not specifically limit this.

[0148] Furthermore, after the user completes the analysis of document D, they can select... Figure 4 The control shown in c is 402, which closes document D.

[0149] S230, The file management module receives the user's selection operation for the control used to close the document.

[0150] S231. Based on the user's selection of the control used to close the document, the file management module sends instruction 7 to the third-party office application through the office service module. Instruction 7 is used to instruct the document D to be closed.

[0151] S232, The third-party office application destroys the process of document D based on instruction 7.

[0152] S233. The document assistant module listens to the status of document D based on the callback function registered at startup. If it detects that the process of document D has been destroyed, the document assistant module is shut down.

[0153] S234. The third-party office application sends a message to the office service module that document D has been closed.

[0154] S235. The office service module cleans up resources related to document D based on messages from third-party office applications.

[0155] Optionally, the office services module can call the CoUninitialize() function to clean up resources related to document D in order to free up memory on the electronic device.

[0156] It should be understood that clearing the resources related to document D also means that the window corresponding to the file management module is closed.

[0157] Before document D is closed, in one possible implementation, the user can also choose to use the "Smart Polishing" feature to analyze parts of document D's content.

[0158] Optionally, users can select Figure 5 The "Smart Polishing" control included in the document assistant window on the page shown in 'a' triggers the "Smart Polishing Related Process"; or, as described above... Figure 4 The page control shown in 'c' is 401 Return. Figure 5 On the page shown in 'a', select the "Smart Polishing" control. It should be understood that... Figure 5 The page shown in 'a' is related to... Figure 4 a in Figure 3 The 'e' in this context can be understood as referring to the same page.

[0159] Furthermore, after the user selects the "Smart Polishing" control, the electronic device displays... Figure 5 The page shown in b prompts the user to select the area to be polished from document D. The user selects the area to be polished in document D and then selects... Figure 5 After the "Start Polishing" control shown in b appears, the electronic device displays... Figure 5 The page shown in 'c' is... Figure 5 The 'c' in the text includes the results of intelligent polishing, which users can select. Figure 5 The "Insert Original Text" control shown in the lower right corner of document C inserts the result of Smart Editing into the document D at the cursor position. Alternatively, you can select the "Replace Original Text" control to replace the selected content in document D with the result of Smart Editing.

[0160] In one possible implementation, the electronic device can use the following code to obtain the text selected by the user for polishing:

[0161] HWCORE::Selection*pSel=nullptr;

[0162] spApplication->get_Selection(&pSel);

[0163] HWCORE::WdSelection Type type;

[0164] pSel->get_Type(&type);

[0165] if(type!=HWCORE::wdSelectionIP)

[0166] {

[0167] BSTR bxt = nullptr;

[0168] pSel->get_Text(&txt);

[0169] MessageBox(0, bxt, Ltest", 0);

[0170] }

[0171] HWCORE::Selection can be used to represent the COM interface through which the document assistant module obtains the text selected by the user for polishing from a third-party office application.

[0172] In one possible implementation, users can also use dialog boxes within the document assistant window to engage in intelligent dialogue based on document D.

[0173] For example, a user can click Figure 6 Control 601, shown as 'a' in the diagram, makes the dialog box editable. Users can then enter their question, such as "Please summarize the entire document." They can then select control 602 or use the Enter key to send the command. The document assistant module can then send this command to the office content processing model for analysis and return a summary result for the entire document D. Figure 6 As shown in b in the figure.

[0174] Furthermore, users can utilize Figure 6 Control 603, shown in b, adds documents E and F and sends them to the dialog box, for example. Figure 6As shown in c, the scope of the intelligent dialogue can be expanded to documents D, E, and F, allowing users to ask further questions based on this scope.

[0175] It is worth noting that all user operations in the embodiments of this application can be performed by the user clicking on the corresponding controls displayed on the electronic device, or by the user waking up the voice service assistant, such as YOYO, and performing the relevant operations through the voice service assistant. This application does not specifically limit the implementation form of the user operations designed in the embodiments of the application.

[0176] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.

[0177] The following describes another document processing method provided by an embodiment of this application. This method can be applied to electronic devices, the software structure of which can be as follows: Figure 1 As shown, the hardware structure can be as follows Figure 7 As shown in the illustration, but this application does not specifically limit it.

[0178] The method includes: displaying a first sub-window and a second sub-window in a first window, wherein the first window is a window of a first application, the first application having the ability to provide other applications with the ability to analyze documents using generative artificial intelligence (AIGC); the first sub-window is a window of a second application embedded in the first application for displaying the content of the first document; the second application is a document-type application; the second sub-window is an interactive window provided by the first application for analyzing documents using AIGC; and the second sub-window includes multiple functional controls; and, when any one of the multiple functional controls is triggered, analyzing and processing the content of the first document using AIGC.

[0179] Optionally, the first window could be, for example, Figure 3 The window corresponding to region 313 shown in the figure, for example, could be the first child window. Figure 3 The window corresponding to region 312 shown in the figure, for example, could be the second sub-window. Figure 3 The window corresponding to area 311 shown in e; the first application can be, for example, the Super Workbench application described above, and the second application can be, for example, the third-party office application described above.

[0180] The method provided in this application embeds a second application into a first application, enabling the second application to analyze documents opened by the first application using the AIGC capabilities provided by the first application. In this way, the second application can have AIGC capabilities without developing them on its own, which helps to reduce the development burden of the second application or similar applications.

[0181] Furthermore, the AIGC capabilities integrated into the first application can have a unified user interface and functions, which helps reduce the time and effort costs for users to learn and use AIGC functions.

[0182] As an optional embodiment, displaying a first child window and a second child window in a first window includes: displaying the first child window in a first area of ​​the first window and displaying the second child window in a second area of ​​the first window; before displaying the first child window in the first area of ​​the first window and the second child window in the second area of ​​the first window, the method further includes: displaying the first child window in a third area of ​​the first window, the third area including the first area and the second area; the first window also includes a first control for launching the second child window; displaying the first child window in the first area of ​​the first window and displaying the second child window in the second area of ​​the first window includes: displaying the first child window in the first area of ​​the first window and displaying the second child window in the second area of ​​the first window in response to an operation on the first control.

[0183] Optionally, the first region can be Figure 3 The region 312 shown in e can be the second region. Figure 3 The region 311 shown in e can be the third region. Figure 3 The area 309 shown by d in the figure can be the first control. Figure 3 The control shown in d is 310.

[0184] This application provides a process for launching a second sub-window. Users can conveniently launch the second sub-window by triggering the first control, which helps to improve the user experience.

[0185] In one possible implementation, the second child window can also be automatically started and displayed at the same time as the first child window, which helps save user operation time and further improves the user experience.

[0186] As an optional embodiment, before displaying the first child window in the third area of ​​the first window, the method further includes: in response to a launch operation of the first application, displaying a third child window in the third area of ​​the first window, the third child window including a second control for triggering a document selection process; in response to a selection operation of the second control, displaying a second window above the first window, the second window including a document in a first folder recently opened by the user, the first folder including a first document; displaying the first child window in the third area of ​​the first window includes: in response to a selection operation of the first document, updating the display of the third child window in the third area of ​​the first window from displaying the third child window to displaying the first child window.

[0187] Optionally, the third child window could be, for example, Figure 3The window corresponding to area 314 shown in b, the second control could be, for example, [the window could be...]. Figure 3 The control 303 shown in b in the figure, the second window could be, for example, control 303. Figure 3 In window 304 shown in c, the first folder can be, for example, folder A shown in window 304, and the first document can be, for example, document D described above.

[0188] As an optional embodiment, the third sub-window may also include a list of documents that the user has analyzed using the first application during a preset period of time before launching the first application.

[0189] Optionally, the preset time period can be a week or any other time period of any length; this application does not impose any specific limitations on this.

[0190] The method provided in this application embodiment helps reduce unnecessary file selection operations and allows users to quickly find the required document, thus improving user efficiency and experience, especially when the document the user wants to open has been opened within a preset time period before the first application is launched.

[0191] As an optional embodiment, displaying a first child window in a third area of ​​a first window includes: displaying a first child window in a third area of ​​a first window in response to an open operation on a first document.

[0192] In this case, the first document is opened using the first application. This opening method can be the default method that was selected beforehand, or it can be the method selected on the spot. This method helps to reduce the user's operation process, reduce the complexity of operation, and improve efficiency.

[0193] As an optional embodiment, the multiple functional controls include a third control for triggering a process of obtaining analysis results for the entire content of a document using AIGC. The method further includes: in response to a selection operation on the third control, the page displayed in the second sub-window is updated from a page including the multiple functional controls to a first page, the first page including the first analysis results for the entire content of the first document.

[0194] Optionally, the third control could be, for example, the "Smart Summary" control described above, and the first page could be, for example, the... Figure 4 The page corresponding to area 403 is shown in c.

[0195] As an optional embodiment, when the page displayed in the second sub-window is updated from a page including multiple functional controls to a first page, the first page also includes a fourth control, and the method further includes: in response to a triggering operation on the fourth control, inserting the first analysis result of the first document into the position of the cursor in the first document displayed in the first sub-window.

[0196] Optionally, the fourth control could be, for example, Figure 4 The "Insert Original Text" control is shown in 'c'.

[0197] The method provided in this application embodiment allows users to quickly insert the first analysis result into the cursor position in the first document using a fourth control when the user needs to insert the first analysis result into the original text, without the need for complex copy and paste operations. This helps to reduce the user's operation process, lower the operation complexity, and improve the user experience.

[0198] In one possible implementation, taking the second control as a "smart summary" control as an example, the electronic device can also respond to the triggering operation of the fourth control by inserting the summary result of the first document into the first paragraph of the first document, so as to quickly adapt to the writing style of the article without the need for the user to make a selection, thereby improving the user experience.

[0199] As an optional embodiment, updating the page displayed in the second sub-window from a page including multiple functional controls to a first page includes: in response to a selection operation on a third control, updating the page displayed in the second sub-window from a page including multiple functional controls to a second page, the second page including the progress of reading the first document using AIGC; and when reading the first document using AIGC is completed, updating the page displayed in the second sub-window from the second page to the first page.

[0200] Optionally, the second page could be, for example, Figure 4 The page corresponding to area 404 is shown in b.

[0201] The progress of reading the first document using AIGC can be understood as the upload progress of the document assistant module uploading the document to the office content processing model described above. Displaying this progress when the third control has been triggered but the first document has not yet been uploaded helps users intuitively understand the current status, avoiding causing users to wait without knowing why, and thus improving the user experience.

[0202] As an optional embodiment, the multiple functional controls include a fifth control, which triggers a process of obtaining analysis results using AIGC for content selected by the user in a document. The method further includes: in response to a selection operation on the fifth control, the page displayed in the second sub-window is updated from a page including multiple functional controls to a third page, the third page including a sixth control and a first prompt, the sixth control being used to trigger a process of analyzing the document content selected by the user using AIGC, and the first prompt being used to instruct the user to select content based on a first document; in response to a selection operation on the sixth control, the page displayed in the second sub-window is updated from the third page to a fourth page, the fourth page including a second analysis result for the first content, the first content being the content selected by the user based on the first document.

[0203] Optionally, the fifth control could be, for example, the "Smart Polishing" control described above, and the sixth control could be, for example, the... Figure 5 The "Start Polishing" control shown in b in the image could be on the third page, for example. Figure 5 The page corresponding to area 501 shown in b, for example, could be the fourth page. Figure 5 The page corresponding to area 502 shown in c is shown in the image.

[0204] As an optional embodiment, the fourth page also includes a seventh control, and the method further includes: in response to a selection operation on the seventh control, inserting the second analysis result into the position of the cursor in the first document displayed in the first sub-window.

[0205] As an optional embodiment, the fourth page also includes an eighth control, and the method further includes: in response to a selection operation on the eighth control, replacing the first content already selected in the first sub-window with the second analysis result.

[0206] Optionally, the seventh control could be, for example, Figure 5 The "Insert Original Text" control shown in C can be, for example, the eighth control. Figure 5 The "Replace Original Text" control shown in 'c' is an example of this.

[0207] The document processing method of the embodiments of this application has been described above. The apparatus for performing the above method provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced by each other, and the related apparatus provided in the embodiments of this application can perform the steps in the above method.

[0208] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application is shown. For example... Figure 7As shown, the electronic device may include a processor 710, a memory 720, a display screen 730, a sensor module 740, a universal serial bus (USB) interface 750, a charging management module 760, a power management module 761, a battery 762, etc.

[0209] The processor 710 may include one or more processing units, such as a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0210] The memory 720 can be used to store computer executable program code, which includes instructions, such as the program code corresponding to the method described above in the embodiments of this application.

[0211] The display screen 730 is used to display images, videos, etc. The display screen 730 includes a display panel. In some embodiments, the electronic device may include one or N display screens 730, where N is a positive integer greater than 1. The electronic device implements display functions through a GPU, the display screens 730, and an application processor, etc. In this embodiment, the display screen can be used to display the window corresponding to the above method.

[0212] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.

[0213] The document processing method provided in this application embodiment can be applied to electronic devices that support AIGC functionality, and the software structure of the electronic device can be as follows: Figure 1 As shown, the hardware structure can be as follows Figure 7 As shown, the specific form of the electronic device can be referred to the above description, and will not be repeated here.

[0214] Figure 8An exemplary schematic diagram of a chip structure provided in an embodiment is shown. Chip 800 includes one or more (including two) processors 801, communication lines 802, communication interfaces 803, and memory 804.

[0215] In some implementations, memory 804 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.

[0216] The methods described in the embodiments of this application can be applied to or implemented by processor 801. Processor 801 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit in the hardware of processor 801 or by instructions in software form. The processor 801 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 801 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0217] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 804, and processor 801 reads the information in memory 804 and, in conjunction with its hardware, completes the steps of the above method.

[0218] The processor 801, memory 804 and communication interface 803 can communicate with each other through communication line 802.

[0219] In the above embodiments, the instructions stored in the memory for the processor to execute can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.

[0220] In the embodiments of this application, the chip 800 described above may also be a chip system, such as a system on chip (SOC), and this application does not limit it in this way.

[0221] This application provides an electronic device, which includes: one or more processors and a memory; the memory is coupled to one or more processors, and stores computer program code, including computer instructions; one or more processors invoke the computer instructions to cause the electronic device to perform the methods described in the above embodiments.

[0222] This application provides a chip or chip system. The chip or chip system is applied to an electronic device and includes one or more processors. These processors invoke computer instructions to cause the electronic device to execute the methods described in the above embodiments. Its implementation principle and technical effects are similar to the related embodiments described above, and will not be repeated here.

[0223] This application also provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions. When these computer instructions are executed on an electronic device, they cause the electronic device to perform the methods described in the above embodiments. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted on the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0224] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs reproduce data using laser optics. Combinations of the above should also be included within the scope of computer-readable media.

[0225] This application provides a computer program product, which includes computer program code. When the computer program code is run on an electronic device, the electronic device performs the method described in the above embodiments.

[0226] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0227] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.

Claims

1. A document processing method, characterized in that, Applied to electronic devices, the method includes: The first window displays a first sub-window and a second sub-window. The first window is the window of the first application, which has the ability to provide other applications with the ability to analyze documents using generative artificial intelligence (AIGC). The first sub-window is a window of the second application embedded in the first application for displaying the content of the first document. The second application is a document-type application. The second sub-window is an interactive window provided by the first application for analyzing documents using AIGC. The second sub-window includes multiple functional controls. When any one of the multiple functional controls is triggered, AIGC is used to analyze and process the content of the first document.

2. The method according to claim 1, characterized in that, The process of displaying a first child window and a second child window in the first window includes: A first sub-window is displayed in a first area of ​​the first window, and a second sub-window is displayed in a second area of ​​the first window; Before displaying a first sub-window in a first area of ​​the first window and a second sub-window in a second area of ​​the first window, the method further includes: The first sub-window is displayed in a third area of ​​the first window, the third area including the first area and the second area; The first window also includes a first control, which is used to launch the second child window. The step of displaying the first child window in a first area of ​​the first window and displaying the second child window in a second area of ​​the first window includes: In response to an operation on the first control, a first child window is displayed in a first area of ​​the first window, and a second child window is displayed in a second area of ​​the first window.

3. The method according to claim 2, characterized in that, Before displaying the first child window in the third area of ​​the first window, the method further includes: In response to the launch operation of the first application, a third sub-window is displayed in the third area of ​​the first window. The third sub-window includes a second control, which is used to trigger a document selection process. In response to a selection operation on the second control, a second window is displayed on top of the first window, the second window including documents in a first folder that the user has recently opened, the first folder including the first document; Displaying the first sub-window in the third area of ​​the first window includes: In response to the selection operation of the first document, the display of the third sub-window in the third area of ​​the first window is updated to display the first sub-window.

4. The method according to claim 3, characterized in that, The third sub-window also includes a list of documents that the user analyzed using the first application during a preset time period before launching the first application.

5. The method according to claim 2, characterized in that, Displaying the first child window in the third area of ​​the first window includes: In response to the opening operation of the first document, the first child window is displayed in the third area of ​​the first window.

6. The method according to claim 5, characterized in that, The first document is opened using the first application.

7. The method according to any one of claims 1 to 6, characterized in that, The plurality of functional controls include a third control, which is used to trigger the process of obtaining analysis results for the entire content of the document using AIGC. The method further includes: In response to the selection operation of the third control, the page displayed in the second sub-window is updated from the page including the plurality of functional controls to the first page, the first page including the first analysis result for the entire content of the first document.

8. The method according to claim 7, characterized in that, When the page displayed in the second sub-window is updated from a page including the plurality of functional controls to a first page, and the first page further includes a fourth control, the method further includes: In response to a trigger operation on the fourth control, the first analysis result is inserted into the cursor position in the first document displayed in the first sub-window.

9. The method according to claim 7 or 8, characterized in that, The page displayed in the second sub-window is updated from the page including the multiple functional controls to the first page, including: In response to the selection operation of the third control, the page displayed in the second sub-window is updated from the page including the plurality of functional controls to the second page, which includes the progress of reading the first document using AIGC; When the first document is read using AIGC, the page displayed in the second sub-window is updated from the second page to the first page.

10. The method according to any one of claims 1 to 6, characterized in that, The plurality of functional controls includes a fifth control, which is used to trigger a process of obtaining analysis results based on content selected by the user in a document using AIGC. The method further includes: In response to the selection operation of the fifth control, the page displayed in the second sub-window is updated from the page including the plurality of functional controls to the third page, the third page including a sixth control and a first prompt, the sixth control being used to trigger the process of analyzing the content of the document selected by the user using AIGC, and the first prompt being used to instruct the user to select content based on the first document; In response to a selection operation on the sixth control, the page displayed in the second sub-window is updated from the third page to the fourth page, which includes a second analysis result for the first content, which is the content selected by the user based on the first document.

11. The method according to claim 10, characterized in that, The fourth page also includes a seventh control, and the method further includes: In response to the selection operation of the seventh control, the second analysis result is inserted into the cursor position in the first document displayed in the first sub-window.

12. The method according to claim 10, characterized in that, The fourth page also includes an eighth control, and the method further includes: In response to the selection operation of the eighth control, the first content already selected in the first sub-window is replaced with the second analysis result.

13. An electronic device, characterized in that, The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 12.

14. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 12.

16. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 12.