File recommendation method and electronic device
By recommending related files through electronic devices, the problem of users finding it difficult to quickly locate specific files when storing a large number of files is solved, resulting in more efficient file searching and an improved user experience.
Patent Information
- Application Number
- PCT/CN2025/118438
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-10-25
- Filing Date
- 2025-09-02
- Publication Date
- 2026-04-30
AI Technical Summary
When a large number of files are stored on electronic devices, users may find it difficult to efficiently locate specific files, which negatively impacts the user experience.
Based on file history and topic, electronic devices can recommend related files, including file-level and page-level recommendations, to help users quickly find the files they need.
It improves the efficiency of file searching and user experience. By recommending related files, users can quickly locate and preview relevant files.
Smart Images

Figure CN2025118438_30042026_PF_FP_ABST
Abstract
Description
A document recommendation method and electronic devices
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202411505197.4, filed on October 25, 2024, entitled "A Method for Recommending Documents and an Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of terminal technology, and in particular to a document recommendation method and electronic device. Background Technology
[0004] Electronic devices (such as laptops) play a vital role in people's daily lives and work. For example, users can store all sorts of files on their electronic devices. When a large number of files are stored on an electronic device, if a user wants to find a specific file, they can only rely on memory to search through a large number of files, which is inefficient and negatively impacts the user experience. Summary of the Invention
[0005] This application provides a file recommendation method and electronic device that can recommend related files to users, helping them to quickly find files, improving efficiency and user experience.
[0006] Firstly, a file recommendation method is provided, applied to electronic devices, such as laptops, tablets, etc. The method may include: the electronic device displaying a file selection interface, which includes N file identifiers, where N is a positive integer; the electronic device responding to a first operation on a first file identifier among the N file identifiers, displaying first information about a second file; the second file and the first file have previously been associated, and / or the second file and the first file have the same file theme, and the first file is the file corresponding to the first file identifier.
[0007] In this embodiment, the electronic device can recommend related files to the user based on the file's historical behavior and / or file topic. For example, the electronic device can recommend files that have previously been associated with the user and / or have the same specific file topic. This file recommendation method can help users quickly find related files, improving efficiency and user experience.
[0008] In one possible design, each of the N file identifiers may include a file icon and / or a filename, and optionally, a file format. For example, the first file identifier may include the file icon and / or filename of the first file, and optionally, the file format of the first file. For instance, the file format may include various formats such as .doc, .docx, .ppt, and .pptx.
[0009] In one possible design, the second file and the first file have previously engaged in associated behavior, including one or more of the following:
[0010] The second document and the first document exhibited the same behavior within the same time period;
[0011] The second file and the first file have been switched.
[0012] The second file had interacted with the first file.
[0013] In this embodiment, the electronic device can recommend files to the user that have exhibited the same behavior, switching behavior, or interaction behavior, in order to help the user quickly find related files, improve efficiency, and enhance the user experience.
[0014] In one possible design, before displaying the first information of the second file, the method further includes: determining the second file based on the file-level history behavior of the first file; or, determining the second file based on the page-level history behavior of the first file.
[0015] In this embodiment, the file recommendation method can include file-level recommendation and page-level recommendation. File-level recommendation, for example, involves the electronic device recommending files based on the overall historical behavior of a first file; page-level recommendation, for example, involves the electronic device recommending files based on the historical behavior of a single page within the first file. These two recommendation methods differ in level / granularity; file-level recommendation is more power-efficient, while page-level recommendation is more precise and accurate.
[0016] In one possible design, the file-level history behavior of the first file includes at least one of the following: opening the file, closing the file, displaying the file, copying and pasting with other files, and sending to a contact; the page-level history behavior of the first file includes at least one of the following: opening the page, closing the page, displaying the page, copying and pasting with other pages, and sending the page content to a contact.
[0017] In this embodiment, the electronic device can record the file-level and / or page-level historical behavior of the first file, and make file recommendations based on the file-level and / or page-level historical behavior of the first file to help users quickly find related files, thereby improving efficiency and user experience.
[0018] In one possible design, determining the second file based on the page-level historical behavior of the first file includes: determining the second file that has had associated behavior with the i-th page based on the historical behavior of the i-th page of the first file, where i is an integer, 1 ≤ i ≤ n, and n is the total number of pages in the first file. In this embodiment, the electronic device can recommend files based on a specific page in the first file, providing fine-grained recommendations that help users quickly find associated files on that specific page of the first file, improving efficiency and user experience.
[0019] In one possible design, the second file and the first file have performed the same behavior within the same time period, including one or more of the following: they were displayed on the screen at the same time; they were sent to the same contact within the same time period.
[0020] In this embodiment, the electronic device determines that two files displayed simultaneously or two files sent to the same contact within the same time period are related files, and then recommends related files to the user to help the user quickly find the files.
[0021] In one possible design, the files simultaneously displayed on the screen include either of two scenarios. Scenario 1: One file is displayed in full-screen mode, and the other is displayed in non-full-screen mode, with the non-full-screen file positioned above the full-screen file. Optionally, the non-full-screen display may include displaying within a floating window. Scenario 2: Both files are displayed in non-full-screen mode. Optionally, both non-full-screen displays may include split-screen mode on the screen. Optionally, the split-screen mode may include two-way split-screen, four-way split-screen, or various other split-screen methods. In this embodiment, considering that the two files displayed in split-screen mode are likely files that the user needs to use simultaneously, the electronic device determines that the two files displayed in split-screen mode are related files, and then recommends related files to the user to help the user quickly find the files.
[0022] In one possible design, the second file and the first file have previously switched, including: the number of times the switching behavior between the second file and the first file occurred is greater than or equal to the first number; and / or, the duration of the switching behavior between the second file and the first file is less than or equal to the first duration.
[0023] In this embodiment, the electronic device can determine whether two files are related files based on the number of times and / or the duration of switching between them. For example, if the number of switching between two files is high and / or the duration is short, it indicates that the user has referenced the content of both files simultaneously, suggesting that they are related files. This allows the electronic device to recommend related files to the user, improving the accuracy of file recommendations and helping the user quickly find the files.
[0024] For example, the first number of times could be 2, 3, 4, etc. For example, the first duration could be 4 minutes, 5 minutes, 6 minutes, etc.
[0025] In one possible design, the switching behavior between the second file and the first file includes: switching from the first file to the second file, or switching from the second file to the first file. If switching from the first file to the third file and then from the third file to the second file, it is not considered a switch from the first file to the second file. In this way, the accuracy of the association between the first file and the second file can be improved.
[0026] In one possible design, the second file and the first file have interacted, including at least one copy-paste interaction.
[0027] In this embodiment, the electronic device determines that two files that have been copied and pasted at least once are related files, and then recommends related files to the user to help the user quickly find the files and improve the user experience.
[0028] In one possible design, the second file has the same file source as the first file, and / or the second file has similar media to the first file; wherein the media includes at least one of images, videos, and audio. In this embodiment, the electronic device can recommend related files with the same source and similar media to the user, helping the user quickly find files.
[0029] In one possible design, "media similarity" includes: second media in the second file being similar to first media in the first file; the second media being related to the theme of the second file; and the first media being related to the theme of the first file. Therefore, in this embodiment, the electronic device determines whether the first and second files are related files by comparing the media in the first file with the media in the second file. Furthermore, the media in the first file participating in the comparison is media related to the theme of the first file; media unrelated to the theme of the first file is not included in the comparison. Similarly, the media in the second file participating in the comparison is media related to the theme of the second file; media unrelated to the theme of the second file is not included in the comparison. This method can save power consumption.
[0030] In one possible design, the files having the same source includes: the files being obtained through the same method; and the files being created by the same author. The same method of obtaining the files includes at least one of the following: sent by the same contact, obtained from the same application, or obtained from the same download page. In this embodiment, the electronic device can recommend related files from the same source to the user, helping the user quickly find the files.
[0031] In one possible design, the method further includes: extracting a first keyword from the first file; extracting a second keyword from the second file; and determining that the first file and the second file have the same subject matter when the semantic similarity between the first keyword and the second keyword is greater than a first similarity threshold. Optionally, the first keyword may include one or more keywords, and the first keyword is located in the first file and belongs to the vocabulary contained in the first file. Optionally, the second keyword may include one or more keywords, and the second keyword is located in the second file and belongs to the vocabulary contained in the second file. Therefore, in this embodiment, the electronic device can extract keywords from the two files respectively, and then perform semantic analysis on the extracted keywords. If the semantic similarity is high, the two files are determined to be related files, and then related files are recommended to the user to help the user quickly find the files.
[0032] In one possible design, the method further includes: generating a first keyword for the first file based on the first file, wherein the first keyword does not exist in the first file; generating a second keyword for the second file based on the second file, wherein the second keyword does not exist in the second file; and determining that the first file and the second file have the same subject when the first keyword and the second keyword are the same. Optionally, the first keyword may include one or more words, and the first keyword is not included in the first file; alternatively, the second keyword may include one or more words, and the second keyword is not included in the second file. Therefore, in this embodiment, the electronic device can extract keywords from the content of two files respectively, and then determine whether the two files have the same subject based on the keywords of the two files. If the subjects are the same, the two files are determined to be related files, and then the related files are recommended to the user to help the user quickly find the files.
[0033] In one possible design, generating a first keyword for the first document based on the first document includes: performing content analysis on the first document using a first model to generate the first keyword; generating a second keyword for the second document based on the second document includes: performing content analysis on the second document using the first model to generate the second keyword. Therefore, in this embodiment, the electronic device can extract keyword information from documents using a model, and then use the extracted keyword information to determine whether two documents have the same theme, thereby determining whether the two documents are related documents, thus improving accuracy.
[0034] In one possible design, the second file is located in a different folder than the first file. In this embodiment, when the electronic device recommends associated files of the first file to the user, if the associated file is in a different folder than the first file, the associated file can be recommended to help the user find it quickly; if the associated file is in the same folder as the first file, it is not necessary to recommend the associated file, thus reducing the number of associated files and improving the accuracy of the recommended associated files.
[0035] In one possible design, the first information of the second file includes at least one of the following: file identification information, file attribute information, and file preview information. The file identification information includes at least one of a file icon and a filename; the file attribute information includes at least one of a file type, author, title, filename, modification date, file size, and storage location; and the file preview information includes at least one of a brief summary of the second file's content and a page preview. Optionally, the file identification information may also include the file format. Therefore, in this embodiment, when the electronic device recommends the associated file (i.e., the second file) of the first file to the user, it can display the first information of the second file, such as the file identification information, file attribute information, and file preview information, to facilitate the user's location and preview of the second file, thereby improving the user experience.
[0036] In one possible design, the first information of the second file includes a brief summary of the second file's content. Before displaying the first information of the second file, the method further includes displaying a first prompt message, which indicates that a brief summary of the second file's content is being generated. In this embodiment, when the electronic device determines to recommend a second file to the user, it can generate a brief summary of the second file's content and prompt the user that a brief summary is being generated, thereby improving the user experience. After the brief summary is generated, the user can view the general content of the second file through the summary and then decide whether to open the second file, resulting in a better user experience.
[0037] In one possible design, the method further includes: if generating a summary of the second file fails, displaying a second prompt message, the second prompt message indicating that the summary of the second file cannot be generated. In this embodiment, when the electronic device determines to recommend a second file to the user, it can generate a summary of the second file's content; if it cannot generate it, it prompts the user that it cannot be generated, thus avoiding impacting the user experience.
[0038] In one possible design, the method further includes displaying first indication information, which indicates the type of associated behavior that occurred between the second file and the first file. For example, the first indication information could indicate that the second file and the first file were opened simultaneously, copied and pasted, or switched, etc. This allows the user to know what kind of associated behavior occurred between the second file and the first file, improving the user experience.
[0039] In one possible design, the method further includes displaying second indication information, whereby the second indication information indicates that page k in the second file has been associated with the first file, where k is a positive integer. For example, the second indication information can indicate which page in the second file has been associated with the first file, thus improving the accuracy of the recommendation.
[0040] In one possible design, the method further includes: when the electronic device receives an operation to open the second file (e.g., an operation on the second prompt message or the first information of the second file), opening the first page or the k-th page of the second file. In this way, the electronic device can specifically indicate which page in the second file has been associated with the first file, and when the user opens the second file, they can directly open the specific page or the first page, facilitating user operation.
[0041] In one possible design, the method further includes: the second indication information is used to indicate that page k in the second file and page i in the first file have been associated, where k and i are both positive integers. For example, the second indication information is used to indicate that page 5 in the second file and page 3 in the first file have been associated. This page-specific recommendation method improves the accuracy of the recommendation.
[0042] In one possible design, displaying the first information of the second file includes: displaying the first information of the second file within the file selection interface; or, displaying the first information of the second file within a floating window. In this embodiment, after the electronic device determines that the associated file of the first file includes the second file, it can display the first information of the second file within the file selection interface or within a floating window to facilitate user viewing and improve user experience.
[0043] In one possible design, when the first operation is a first type of operation, the first information of the second file is displayed in the file selection interface. The first type of operation includes a click operation. Therefore, in this embodiment, when the electronic device receives a click operation targeting the first file identifier, it displays the first information of the associated file of the first file, i.e., the second file, in the file selection interface for the user's convenience.
[0044] In one possible design, when the first operation is a second type of operation, the first information of the second file is displayed in the floating window. The second type of operation includes a hover operation. Therefore, in this embodiment, when the electronic device receives a hover operation for the first file identifier, it displays the first information of the associated file of the first file, i.e., the second file, in the floating window for the user's convenience.
[0045] In one possible design, the method further includes: displaying second information of the first file, the second information including: file attribute information and / or file preview information of the first file, wherein the file attribute information includes at least one of file type, author, title, file name, modification date, file size, and storage location, and the file preview information includes at least one of a brief summary of the content of the first file and a page preview. Therefore, in this embodiment of the application, after the electronic device determines that the associated file of the first file includes the second file, it can also display the second information of the first file, such as the file attribute information and / or file preview information of the first file, to facilitate the user's understanding of the first file and improve the user experience.
[0046] In one possible design, the second information includes a page preview of the first file, and the method further includes displaying a page identifier and a page switching button. The page identifier indicates the page number of the current preview page of the first file, and the page switching button switches the current preview page to another preview page. Therefore, in this embodiment, after the electronic device determines that the associated file of the first file includes the second file, it can also display the second information of the first file, such as a page preview of the first file, and the user can also flip through the pages to preview, improving the user experience.
[0047] In one possible design, the electronic device displays the second information of the first file in a first area and the first information of the second file in a second area. Both the first and second areas are located within the file selection interface or within a floating window. Therefore, in this embodiment, after the electronic device determines that the associated file of the first file includes the second file, it can display the first information and the second information of the second file in separate areas within the file selection interface or the floating window, facilitating user access and improving the user experience.
[0048] In one possible design, displaying second information of the first file in a first area includes: displaying a preview of the i-th page of the first file in the first area, where the second file in the second area has previously been associated with the i-th page; the method further includes: in response to an update operation on the first area, updating the first area to a preview of the j-th page of the first file, and updating the second area to third information of a third file, where the third file has previously been associated with the j-th page, where i and j are both positive integers. In this embodiment, the electronic device displays a preview of the i-th page of the first file in the first area, and displays first information of a file associated with the i-th page, such as the second file, in the second area; that is, the files in the second area are recommended based on the pages in the first area. When the first area switches to a preview of the j-th page of the first file, the second area displays third information of a file associated with the j-th page, such as the third file. In other words, as the pages of the first file in the first area are flipped through, the associated files in the second area are dynamically updated, improving the user experience.
[0049] In one possible design, displaying the second information of the first file in a first area includes: displaying a preview of the i-th page of the first file in the first area. The method further includes: in response to an update operation on the first area, updating the first area to display a preview of the j-th page of the first file, while the first information of the second file in the second area remains unchanged, where i and j are both positive integers. Therefore, in this embodiment, the electronic device displays a preview of the i-th page of the first file in the first area and displays the first information of an associated file of the first file, such as the first information of the second file, in the second area. Optionally, the files in the second area can be files recommended through a file-level recommendation method. Therefore, when the first area switches to a preview of the j-th page of the first file, the associated files in the second area remain unchanged, preventing users from missing associated files and improving the user experience.
[0050] In one possible design, displaying the first information of the second file includes: displaying the first information of each of K files, where the K files include the second file; or, displaying the first information of a portion of the K files, where the portion of files includes the second file, while the first information of the other files in the K files is hidden. The K files include all or some files that have previously been associated with the first file. In other words, if the first file has K associated files, the electronic device can display all K files or only a portion of them. If only a portion is displayed, the other portion is hidden to avoid an excessive number of files that would be inconvenient to view.
[0051] In one possible design, the method further includes displaying a first marker while showing first information about a portion of the K files. This first marker indicates the presence of hidden files. The user is alerted by the first marker to the existence of hidden files, allowing them to view them, avoid missing related files, and improve the user's viewing experience.
[0052] In one possible design, the method further includes: while displaying the first information of a subset of the K files, in response to a call-up operation, displaying the first information of the other hidden files. That is, triggered by a call-up operation, the electronic device can display the hidden files for the user to view.
[0053] In one possible design, the hidden file is the file ranked later in the K files. The order of the K files is related to their last usage time, usage frequency, or relevance to the first file. Therefore, in this embodiment, when the first file has K associated files, the electronic device can display the first few files in the K files. These first-ranked files are the ones the user is most likely to need, thus this method is highly accurate.
[0054] In one possible design, displaying the first information of a portion of K files includes: dividing the K files into X groups according to the association behavior between each file in the K files and the first file, where the files in each of the X groups have the same association behavior with the first file; and displaying the first information of a portion of the files in each of the X groups, where X is a positive integer. Therefore, in this embodiment of the application, when the first file has K associated files, the electronic device can group the K files into multiple groups, with each group having the same association behavior, and only displaying a portion of the files in each group, reducing the number of associated files displayed and facilitating user viewing.
[0055] In one possible design, the first operation differs from the second operation targeting the first file identifier; the second operation is used to open the first file. That is, if the user triggers the first operation (not the second operation to open the first file), the electronic device displays information about associated files of the first file, such as a second file; if the user triggers the second operation, the second file is opened. Therefore, within the file selection interface, the user can both open a file and trigger the display of its associated files, resulting in a better user experience.
[0056] In a second aspect, an electronic device is also provided, comprising: a processor, a memory, and one or more programs; wherein the one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the method provided in the first aspect above.
[0057] Thirdly, an electronic device is also provided, including modules / units for performing the methods corresponding to any of the designs in the first aspect above. These modules / units can be implemented in hardware or by hardware executing corresponding software.
[0058] Fourthly, a computer-readable storage medium is also provided for storing a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect above.
[0059] Fifthly, a computer program product is also provided, comprising a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect above.
[0060] In a sixth aspect, a chip is also provided, which is coupled to a memory in an electronic device for calling a computer program stored in the memory and executing the technical solution provided in the first aspect of the embodiments of this application. In the embodiments of this application, "coupling" means that two components are directly or indirectly combined with each other.
[0061] In a seventh aspect, a chip system is also provided, the chip system including a processing circuit and a storage medium, the storage medium storing instructions; when the instructions are executed by the processing circuit, they implement the method as described in the first or second aspect above.
[0062] For the technical effects that can be achieved in the second to seventh aspects mentioned above, please refer to the description of the technical effects that can be achieved by the corresponding design scheme in the first aspect mentioned above. This application will not repeat them here. Attached Figure Description
[0063] Figure 1 is a schematic diagram of a file manager provided in an embodiment of this application;
[0064] Figures 2A to 2F are schematic diagrams illustrating the display style of associated files provided in an embodiment of this application;
[0065] Figures 3A to 3D are another schematic diagram of the display style of associated files provided in an embodiment of this application;
[0066] Figures 4A and 4B are schematic diagrams of the display area of associated files provided in an embodiment of this application;
[0067] Figures 5A and 5B are another schematic diagram of the display area of associated files provided in an embodiment of this application;
[0068] Figures 6A to 6D are schematic diagrams showing the display style of document a according to an embodiment of this application;
[0069] Figures 7A and 7B are schematic diagrams showing the file a and associated files in different regions according to an embodiment of this application;
[0070] Figures 8A to 8C are another schematic diagram showing the file a and associated files in different regions according to an embodiment of this application;
[0071] Figures 9A and 9B are schematic diagrams illustrating the hidden display of associated files according to an embodiment of this application;
[0072] Figure 10 is a schematic diagram of page-level associated files provided in an embodiment of this application;
[0073] Figure 11 is a schematic diagram of an electronic device provided in an embodiment of this application;
[0074] Figure 12 is another schematic diagram of an electronic device provided in an embodiment of this application;
[0075] Figure 13 is another schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0076] The following explanations of some terms used in the embodiments of this application are provided to facilitate understanding by those skilled in the art.
[0077] The embodiments of this application involve at least one, including one or more; where "multiple" means two or more. Furthermore, it should be understood that in the description of this specification, terms such as "first," "second," and "third" are used only for descriptive purposes and should not be construed as indicating relative importance or order. For example, "first document" and "second document" do not represent their relative importance or order, but are merely for descriptive distinction. In the embodiments of this application, "and / or" merely describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0078] The directional terms mentioned in the embodiments of this application, such as "up", "down", "left", "right", "inner", and "outer", are only for reference to the directions in the accompanying drawings. Therefore, the directional terms used are for better and clearer explanation and understanding of the embodiments of this application, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.
[0079] References to "one embodiment," "in some examples," or "some embodiments" as described in the embodiments of this application mean that one or more embodiments of this specification include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in some examples," "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0080] The document recommendation method provided in this application can be applied to electronic devices. For example, an electronic device can be a mobile terminal. For instance, a mobile terminal can be a mobile phone, tablet computer, laptop computer, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), or other portable devices; or it can be a wearable device; or it can be an in-vehicle display device, which can be mounted on various means of transportation such as cars, trains, electric vehicles, helicopters, airplanes, ships, bicycles, and motorcycles; or it can be a virtual reality (VR) device, augmented reality (AR) device, mixed reality (MR) device, etc. In short, this application does not limit the specific type of terminal. For ease of understanding, the following embodiments mainly use a laptop computer as an example for illustration.
[0081] In this embodiment, the electronic device has storage capabilities. For example, the electronic device can store various types of files. File types can include one or more of text, video, audio, and image types. For example, text types can include various document types such as Word, PPT, Excel, TXT, and PDF. Video types can include various video types such as MP4, AVI, and RMVB. Audio types can include various audio types such as Audio, MPEG, and MIDI. Image types can include various image types such as JPEG, BMP, GIF, and PNG.
[0082] In this embodiment, the electronic device can manage stored files. One possible approach is that the electronic device includes a file manager for managing files, such as adding files, deleting files, merging files (e.g., merging multiple files into one folder), etc. The file manager can be an application (APP) in the electronic device, which can be a system application or a third-party application; alternatively, the file manager can also be in other forms, such as a system process or plugin. In short, the electronic device has a module for managing files, which is called a "file manager." Of course, it can also have other names, such as "resource manager," "device manager," etc., which are not limited in this embodiment.
[0083] In this embodiment, a user can view files stored in an electronic device. One possible approach is that the electronic device provides an entry point for viewing the files stored within it. As an example, this entry point could be the entry point of a file manager within the electronic device. For instance, the entry point could be an icon, button, card, or other various forms. Optionally, the entry point could be located anywhere within the electronic device, such as the desktop or taskbar. When the electronic device receives an operation targeting the entry point, it can display a file manager window, which can be used to display the files stored in the electronic device. For example, as shown in Figure 1, the electronic device displays a file manager window 100, which may include multiple options such as "Desktop," "Recycle Bin," and "My Computer." When the electronic device receives an operation targeting the "My Computer" option, it can display one or more folders, such as folder 1, folder 2, and folder 3. When the electronic device receives an operation targeting folder 3 (e.g., a double-click operation), it can display the identification information of each file contained in folder 3, such as the identification information of file a, file p, and file q. Taking file a as an example, the identification information of file a may include file a's icon, file name (e.g., AAA), and file format (e.g., .doc format). It should be noted that the window 100 shown in Figure 1 is only an example. In practical applications, the file manager window can be designed in other styles without limitation.
[0084] Continuing with the example of file a in Figure 1, in practical applications, there is a possible scenario: file a is a file that the user completed previously (e.g., a week ago). Historically, the user referenced other files while editing file a, but these other files are stored in different locations than file a (e.g., the other files are not stored in folder 3). If the user wants to find the file that was previously referenced, they can search for it in the file manager window 100 based on their memory. However, when there are many files, searching based on memory is difficult and inefficient, affecting the user experience.
[0085] To reduce the difficulty of finding files and improve efficiency, this application provides a file recommendation method. In this method, when an electronic device displays a file manager window, if a first operation is received that identifies a first file (e.g., file a), the associated files of the first file can be displayed. Therefore, this method can help users quickly find the associated files of the first file, thereby improving efficiency and user experience.
[0086] For ease of understanding, the following text continues to use Figure 1 as an example to illustrate the document recommendation method provided in the embodiments of this application.
[0087] Taking file a in Figure 1 as an example, one possible implementation is that when the electronic device receives the first operation for the identification information of file a, it determines the associated file of file a.
[0088] In this embodiment, the first operation differs from the operation of opening file a. The operation of opening file a can be understood as the operation used to open the content of file a. For example, when an electronic device receives an operation to open file a, it displays a new window containing the content of file a, such as the first page of file a. If file a has multiple pages, the user can view the content of each page in the new window. Optionally, the user can also edit the content of file a in the new window, such as inputting text, images, videos, audio, etc. Optionally, the user can also adjust the display position and / or size of the new window. The foregoing describes the operation of opening file a. The first operation differs from the operation of opening file a. For example, the operation of opening file a is a double-click operation on the identification information of file a. The first operation can be a single-click operation, a long-press operation, a hover operation, etc., on the identification information of file a. In short, when the electronic device receives the first operation on the identification information of file a, it will not open file a, but will trigger the electronic device to determine the associated files of file a. Optionally, the first operation can be a default operation or a user-specified operation. The default operation can be, for example, an operation set at the factory of the electronic device. User-defined actions can be actions set by the user according to their own needs. One possible approach is that the electronic device provides multiple actions (e.g., click action, long press action, or hover action), and the user can choose one of these actions.
[0089] As mentioned earlier, the electronic device can determine the associated files of file a. In the embodiments of this application, the determination of associated files can include two methods: first, determining the associated files of file a based on the overall information of file a; second, determining the associated files of file a based on the single-page information of file a. These two methods have different granularities. The first method is at the file level and can be called the "file-level recommendation method." The second method is at the page level and can be called the "page-level recommendation method." Compared to the first method, the second method has a finer granularity. These two methods will be explained separately below.
[0090] The first method is the document-level recommendation method.
[0091] For example, an electronic device can determine the associated files of file a based on the overall information of file a. Optionally, the overall information of file a may include at least one of the following: file a's historical behavior, file content, and file source. Therefore, the electronic device can determine the associated files of file a based on the overall information of file a in at least one of the following three ways.
[0092] Method 1: The electronic device determines the associated files of file a based on the historical behavior of file a.
[0093] For example, an electronic device can determine the associated files of file a based on the file-level history behavior of file a. Optionally, the file-level history behavior of file a may include one or more of the following: file opening, file closing, file display, copying and pasting with other files, sending to a contact, etc. (1) File opening, that is, opening the content of a file, which can be the content of any page in the file. (2) File closing, that is, closing the file, whether in the foreground or background. (3) File display, that is, displaying the content of a file on the screen, which can be the content of any page in the file. (4) Copying and pasting with other files, including copying within file a (e.g., triggering Ctrl+C within file a), or pasting within file a (e.g., triggering Ctrl+V within file a). (5) Sending to a contact, that is, sending the file to a contact. There can be various sending methods, such as sending to a contact through instant messaging applications (e.g., email, Changlian, etc.). In practical applications, the file-level history behavior of a file may include more or fewer history behaviors than those mentioned above, without limitation.
[0094] In some embodiments, the electronic device can record user operation information and file display position, and then determine the file-level historical behavior of the file based on the operation information and file display position. For example, the electronic device stores a list for recording user operation information and file display position. For instance, the list may be Table 1 below:
[0095] Table 1: File Operation Information
[0096] Table 1 above illustrates the user's operation information on files a and b, as well as the display positions of files a and b, recorded by the electronic device. It is understood that as the number of user operations increases, the content recorded in Table 1 increases, and each operation is sorted by time. For example, in Table 1, T1 to T7 are sorted from earliest to latest as T1, T2, T3, T4, T5, T6, and T7. In this embodiment, the electronic device can determine the file-level historical behavior of a file based on the recorded user operation information (e.g., Table 1 above). For example, Table 1 can determine various historical behaviors of file a, such as opening, closing, displaying, copying and pasting with other files, and sending to contacts. Therefore, through the above method, the electronic device can obtain the file-level historical behavior of file a, and then determine the associated files of file a based on the file-level historical behavior of file a.
[0097] In some embodiments, the electronic device determines that file a and file b have had associated behavior based on the file-level historical behavior of file a and file b, and then determines that file b is an associated file of file a. Optionally, the fact that file b and file a have had associated behavior may include at least one of the following:
[0098] (1) File b and file a had the same behavior during the same time period.
[0099] For example, file b and file a were opened within the same time period. This can be understood as the "opening times of files a and b overlapping," where the opening time can be the duration between the opening and closing times of the files. For example, in Table 1 above, if file a's opening time is T1 and its closing time is T12, then file a's opening time is T12-T1. If file b's opening time is T2 and its closing time is T13, then file b's opening time is T13-T2. If the opening time of file a (T12-T1) overlaps with the opening time of file b (T13-T2), then files a and b were once opened simultaneously. It is understandable that if a user has opened two files simultaneously, it is likely because the user needs to use both files at the same time. Therefore, these two files are more likely to be related files, and the electronic device determines that the two files that were once opened simultaneously are related files. In this embodiment of the application, the overlapping opening times of the two files can be simply an overlap or it can be that there is not only an overlap but the overlap duration is greater than a preset duration 2. The preset duration 2 can be half an hour, one hour, etc., and the specific value is not limited.
[0100] Alternatively, file b and file a were previously displayed simultaneously. Taking Table 1 above as an example, the electronic device can determine whether files a and b are displayed simultaneously based on their display positions. The display position of file a can be one of the four corners of the window corresponding to file a, and the display position of file b can be one of the four corners of the window corresponding to file b. Therefore, the electronic device can determine whether the window of file b completely covers or partially covers the window of file a. If it does not completely cover the window, then file b and file a are displayed simultaneously. The condition that the window of file b does not completely cover the window of file a can include: the window of file a being displayed in full-screen mode, and the window of file b being displayed in partial-screen mode; or, the window of file a being displayed in partial-screen mode, and the window of file b being displayed in partial-screen mode. In some embodiments, when the electronic device receives a split-screen operation, it can enter split-screen mode. In this case, files a and b can be displayed in split-screen mode, which also constitutes simultaneous display. Optionally, the split-screen method can be two-way split-screen (i.e., one display screen is divided into two display areas) or four-way split-screen (i.e., one display screen is divided into four display areas), without limitation. It is understandable that if two files were displayed at the same time, it is likely because the user needed to use both files simultaneously. Therefore, these two files are more likely to be related files, and the electronic device determines that the two files that were displayed at the same time are related files.
[0101] Alternatively, file b and file a were sent to the same contact. "Sent to the same contact" can include sending to the same contact using the same instant messaging application, or sending to the same contact using different instant messaging applications. Taking sending with the same instant messaging application as an example, assuming the instant messaging application is email, one possibility is that file a and file b are sent at once, for example, file a and file b are sent to the same contact via the same email, then file a and file b are determined to be related files. Another possibility is that file a and file b are sent separately. For example, file a and file b are sent to the same contact via two emails, but the subjects of these two emails are the same or similar, or the time interval between the two emails is short, then file a and file b are determined to be related files. Taking sending with different instant messaging applications as an example, assuming file a is sent to contact a via application a (e.g., email), and file b is sent via application b (e.g., We... If file a and file b are sent to contact b, and it is determined that contact a and contact b are the same contact and the time interval between their sending is short, then file a and file b are determined to be associated files. In this method, the electronic device needs to determine that contact a in application a and contact b in application b are the same contact. One possible way is that contact a in application a and contact b in application b correspond to the same account (e.g., a mobile phone number), thus determining that contact a and contact b are the same contact.
[0102] (2) File b and file a have interacted.
[0103] For example, file b and file a have been copied and pasted at least once. This could include copying within file a and then pasting the copied content into file b, or copying within file b and then pasting the copied content into file a. In practical applications, there is a possibility that when a user edits a file, they may use template content (e.g., pre-edited content). For example, when editing file a, the user might copy template content from file b and then paste the copied template content into file a. In this case, considering that only template content was copied and pasted between file a and file b, and no substantial content of the files was copied and pasted, treating file a and file b as associated files would lead to inaccurate file recommendations. Therefore, in some embodiments, the electronic device can determine whether the content copied and pasted between file a and file b is template content. If not, file a and file b are determined to be associated files; otherwise, file a and file b are determined not to be associated files. Specifically, the electronic device determines whether the copied and pasted content between file a and file b is template content. This can include: the electronic device comparing the copied and pasted content with pre-stored template content. If they match, the copied and pasted content is determined to be template content; otherwise, the copied and pasted content is determined not to be template content.
[0104] (3) File b and file a have been switched.
[0105] In some embodiments, the switching behavior between file b and file a may include: switching from file a to file b, or switching from file b to file a (represented as: file a -> file b, or file b -> file a). Optionally, if the switching behavior that has occurred between file b and file a meets the time requirement and / or the number of times requirement, then file b and file a are determined to be associated files.
[0106] To meet the number requirement, for example, the number of times the switching behavior between file b and file a occurs is greater than or equal to the number of the first switching. For example, the number of the first switching could be 2, 3, 4, etc. Taking 3 times as an example, the electronic device determines, based on rows 3 to 6 of Table 1 above, that the switching process includes: file a -> file b -> file a -> file b, that is, there are 3 switching between file a and file b, and thus determines that file b and file a are associated files. Taking 4 times as an example, the electronic device determines, based on rows 3 to 7 of Table 1 above, that the switching process includes: file a -> file b -> file a -> file b -> file a, that is, there are 4 switching between file a and file b, and thus determines that file b and file a are associated files. In the embodiments of this application, the multiple switching behaviors between file b and file a are continuous switching behaviors. Continuing with the example of the first count being 3, if the switching process includes: file a -> file b -> file c -> file a -> file b, then it does not belong to the continuous switching behavior between file b and file a.
[0107] Taking meeting time requirements as an example, the duration of the switching behavior between file b and file a is less than or equal to a first duration. For example, the first duration could be 1 minute, 2 minutes, 3 minutes, 4 minutes, 5 minutes, etc. Taking the switch from file a to file b as an example, for instance, the electronic device determines, based on the third and fourth rows of Table 1 above, that a switching behavior has been performed from T3 to T4: file a -> file b. If the duration from T3 to T4 is less than the first duration, then file b and file a are determined to be associated files.
[0108] Taking a combination of frequency and time requirements as an example, for instance, the number of times file b and file a switch occurs is greater than or equal to the first occurrence, and the duration is less than or equal to the first duration. Taking a first occurrence of 3 times and a first duration of 5 minutes as an example, the electronic device, using rows 3 to 6 of Table 1 above, determines that 3 switching actions occurred from T3 to T6: file a -> file b -> file a -> file b. If the duration from T3 to T6 is less than or equal to 5 minutes, then file b and file a are determined to be associated files. Taking a first occurrence of 4 times and a first duration of 5 minutes as an example, the electronic device, using rows 3 to 7 of Table 1 above, determines that 4 switching actions occurred from T3 to T7: file a -> file b -> file a -> file b -> file a. If the duration from T3 to T7 is less than or equal to 5 minutes, then file b and file a are determined to be associated files.
[0109] It is understandable that when a user switches between two files, it is likely because the user is reading both files at the same time. Therefore, these two files are more likely to be related files, and the electronic device determines that the two files that have been switched back and forth are related files.
[0110] Method 2: The electronic device determines the associated file based on the content of file a.
[0111] One possible approach is for the electronic device to determine that file b and file a are related files when the electronic device determines that the content of file b is similar to that of file a. For example, the electronic device determines that file a and file b are related files when the content similarity between file b and file a is greater than a threshold. Optionally, the similarity between the content of file b and file a may include similar text content and / or similar media.
[0112] Taking text content similarity as an example, it can include: similar filenames and / or identical file themes. Taking identical file themes as an example, one possible approach is for the electronic device to extract a first keyword from file a and a second keyword from file b; if the semantic similarity between the first and second keywords is greater than a first similarity threshold, then file a and file b are determined to have the same file theme. Optionally, the electronic device can determine the semantic similarity between the first and second keywords using a model, such as an embedding model. Another possible approach is for the electronic device to generate a first topic term for file a (which does not exist in file a); and generate a second topic term for file b (which does not exist in file b); if the semantic similarity between the first and second topic terms is greater than a second similarity threshold, then file b and file a are determined to have the same file theme. In this approach, the electronic device needs to generate topic terms based on the files. One possible approach is for the electronic device to generate topic terms based on the files using a model. For example, the electronic device can input file a into a first model and use the first model to perform content analysis on file a to generate the first topic term for file a. An electronic device can input file b into a first model and use the first model to perform content analysis on file b to generate a second topic term for file b. In some embodiments, after the electronic device obtains the first topic term for file a and the second topic term for file b through the first model, it is not necessary to perform semantic analysis on the first and second topic terms to determine whether the semantic similarity between the first and second topic terms is greater than a second similarity threshold. For example, the first and second topic terms can be directly compared. If the first and second topic terms are the same, then it is determined that file b and file a have the same topic. In this case, the first model can be a relatively simple classification model. In other embodiments, after the electronic device obtains the first topic term for file a and the second topic term for file b through the first model, it needs to perform semantic analysis on the first and second topic terms to determine whether the semantic similarity between the first and second topic terms is greater than a second similarity threshold. If it is, then it is determined that file b and file a have the same topic. In this case, the first model can be a large model, such as the Tongyi Qianwen large model or the Pangu large model. For example, when file a is input into the first model (e.g., the Pangu model), the first keyword of file a is: Chinese traditional documents; when file b is input into the first model, the second keyword of file b is: dissemination of Chinese culture. If the electronic device determines through semantic analysis that the semantic similarity between the first keyword and the second keyword is high, then file a and file b are considered to be related files.
[0113] Taking media similarity as an example, if file b includes media b and file a includes media a, and the semantic similarity between media b and media a is greater than a threshold, then file a and file b are determined to be related files. Optionally, media can include at least one of the following: images, videos, and audio. In practical applications, there is a possible situation where file a contains multiple media (e.g., images, videos, or audio), but some media are unrelated to the topic of file a. In this case, the electronic device can filter the multiple media in file a, filtering out valuable media in file a. Valuable media can be understood as media related to the topic of file a. Similarly, the electronic device can also filter out valuable media in file b (i.e., media related to the topic of file b). If the electronic device determines that the valuable media filtered out in file a is similar to the valuable media filtered out in file b, then file b and file a are determined to be related files. The similarity between the valuable media filtered out in file a and the valuable media filtered out in file b can include: the similarity between the valuable media filtered out in file a and the valuable media filtered out in file b is greater than a threshold.
[0114] Method 3: The electronic device determines the associated file of file a based on the file source of file a.
[0115] For example, if an electronic device determines that file b and file a have the same file source, it determines that file b and file a are related files.
[0116] In this embodiment, the electronic device can store the file source of each file. Optionally, the file source can include the file acquisition method and / or the file creator (e.g., author). The file acquisition method can include: which application the file was obtained from, which download page it was obtained from, which contact sent it, etc. Therefore, file b having the same file source as file a can include: the same file acquisition method, and / or the same file creator. Optionally, the same file acquisition method includes at least one of: being sent by the same contact, being obtained from the same application, or being obtained from the same download page.
[0117] The above lists three ways (method 1, method 2, and method 3) for electronic devices to determine that file b and file a are associated files. These three methods can be used individually or in combination without limitation.
[0118] The second method is page-level recommendation.
[0119] For example, an electronic device can determine the associated files of file a based on the single-page information of file a. The difference from the first approach described above is that in the first approach, file a is treated as a whole, and the electronic device determines the associated files based on the entire file a. In the second approach, a single page within file a can be treated as a whole, and the electronic device can determine the associated files for that page based on that single page. Optionally, the single-page information of file a can include at least one of the following: the page's historical behavior, page content, and page source. The historical behavior of a single page in file a refers to actions that have occurred on that page in the past. The page source of a single page in file a can be understood as the source of the content contained in that page. Therefore, in the second approach, the electronic device can determine the associated files of file a based on the single-page information of file a using at least one of the following three methods.
[0120] Method 1: Determine the associated file for a page based on the historical behavior of that page in file a.
[0121] For example, an electronic device can determine the associated file of page i based on the historical behavior of page i of file a, where i is an integer and 1≤i≤n, and n is the total number of pages in file a. The historical behavior of page i can also be called the page-level historical behavior of page i. Optionally, the page-level historical behavior of page i can include one or more of the following: page opening, page closing, page display, copying and pasting with other pages, and sending page content to a contact. (1) Page opening, i.e., opening page i of the file. (2) Page closing, i.e., closing page i of the file. It should be noted that closing a page is different from closing a file. When a page is closed, the file may not necessarily be closed and may still be open. (3) Page display, i.e., displaying page i of the file on the screen. (4) Copying and pasting with other pages, including copying within page i (i.e., triggering Ctrl+C within page i) or pasting within page i (i.e., triggering Ctrl+V within page i). (5) Sending page content to a contact, i.e., sending the content of page i to a contact. There can be various methods of sending, such as sending to a contact via an instant messaging application. In practical applications, the page-level history behavior of page i can include more or fewer historical behaviors than described above, without limitation.
[0122] In some embodiments, the electronic device can record user operation information on page i of a file, and then determine the page-level historical behavior of page i based on the operation information on page i. For example, the electronic device stores a list for recording user operation information on a single page of a file. For instance, the list can be Table 2 below:
[0123] Table 2: Operation information for a single page of a file
[0124] Table 2 above illustrates user operations on pages of files a and b recorded by an electronic device. It is understood that as user operations increase, the amount of information recorded in Table 2 increases, and the operations are ordered by time; for example, T1 is the earliest and T17 is the latest in Table 2. In this embodiment, the electronic device can determine the page-level historical behavior of a file based on the recorded user operations on the page (e.g., Table 2 above). For example, Table 2 can be used to determine one or more historical behaviors of the i-th page of file a (e.g., page 1), such as opening the page, closing the page, displaying the page, copying and pasting to other pages, and sending page content to contacts. After obtaining the page-level historical behavior of the i-th page of file a, the electronic device can determine the associated files of the i-th page based on this behavior.
[0125] In some embodiments, if an electronic device determines that the i-th page of file a has been associated with file b, then file b is determined to be an associated file of the i-th page of file a. Optionally, the association between file b and the i-th page of file a may include at least one of the following:
[0126] (1) File b and the i-th page of file a had the same behavior at the same time.
[0127] For example, file b and page i of file a were opened within the same time period. This can be understood as the "opening times of file b and page i of file a overlapping," where the opening time can be the duration from the opening moment to the closing moment. In this method, the page opened in file b is not limited; any page of file b can be opened. Optionally, the electronic device can also determine which page in file b was opened simultaneously with page i of file a. For example, if page X of file b and page i of file a were opened simultaneously, then the electronic device can determine that page X of file b is an associated page of page i of file a. In this embodiment, overlapping opening times can be simply an overlap or it can be not only an overlap but also an overlap duration greater than a preset duration of 5. The preset duration of 5 can be half an hour, one hour, etc., and the specific value is not limited.
[0128] Alternatively, file b and page i of file a may have been displayed simultaneously. The principle behind determining "simultaneous display" is described above and will not be repeated here. This method does not limit the displayed pages of file b; any page of file b can be displayed. Optionally, the electronic device can also determine which page of file b was displayed simultaneously with page i of file a. For example, if page i of file a and page X of file b were displayed simultaneously, then the electronic device can determine that page X of file b is the associated page of page i of file a.
[0129] Alternatively, file b and page i of file a were both sent to the same contact. "Sent to the same contact" can include sending to the same contact using the same instant messaging application, or sending to the same contact using different instant messaging applications. Taking sending using the same instant messaging application as an example, let's assume that the instant messaging application is... For example, if a user sends the contents of page i of file a and file b (the entire file) to the same contact via DingTalk, and the sending time interval is short, then file b is determined to be an associated file of page i of file a. Optionally, the electronic device can also determine which page of file b was sent to the same contact as page i of file a. Continuing with instant messaging applications is... For example, if a user sends the content of page i of file a and the content of page X of file b to the same contact via DingTalk, and the time interval between sending is short, then page X of file b is determined to be the associated page of page i of file a.
[0130] (2) File b and the i-th page of file a have interacted.
[0131] For example, file b and page i of file a have been copied and pasted at least once. "Copying and pasting with page i of file a" can include: performing a copy operation within page i of file a and then pasting the copied content into file b, or performing a copy operation within file b and then pasting the copied content into page i of file a. In some embodiments, the electronic device can determine whether the content copied and pasted between page i of file a and file b is template content. If not, it determines that file b is an associated file of page i of file a; otherwise, it determines that file b is not an associated file of page i of file a. Optionally, the electronic device can also determine which page in file b has been copied and pasted with page i of file a. For example, performing a copy operation within page i of file a and then pasting the copied content into page X of file b, or performing a copy operation within page X of file b and then pasting the copied content into page i of file a, then the electronic device can determine that page X of file b is an associated page of page i of file a.
[0132] (3) The i-th page of file b and file a have been switched.
[0133] In some embodiments, the switching behavior between file b and the i-th page of file a may include: switching from the i-th page of file a to file b (represented as: the i-th page of file a -> file b); or switching from file b to the i-th page of file a (represented as: file b -> the i-th page of file a). Optionally, if the switching behavior between file b and the i-th page of file a has met the time requirement and / or the number of times requirement, then file b is determined to be an associated file of the i-th page of file a. For the time requirement and the number of times requirement, please refer to the preceding text, which will not be repeated here. Optionally, the electronic device may also determine which page in file b has previously switched with the i-th page of file a. For example, if the electronic device determines that a switching behavior has previously occurred between the X-th page of file b and the i-th page of file a, it may also determine whether the switching behavior between the X-th page of file b and the i-th page of file a meets the time requirement and / or the number of times requirement; if so, then the X-th page of file b is determined to be an associated page of the i-th page of file a.
[0134] Method 2: The electronic device determines the associated file of page i based on the page content of page i of file a.
[0135] For example, when an electronic device determines that the content of file b is similar to the content of page i of file a, it determines that file b is an associated file of page i of file a. Alternatively, when an electronic device determines that the content similarity between file b and page i of file a is greater than a threshold, it determines that file b is an associated file of page i of file a. Optionally, the similarity between the content of file b and page i of file a may include textual similarity and / or media similarity.
[0136] Taking text similarity as an example, it can include: having the same topic. One possible approach is for the electronic device to extract a first keyword from page i of file a and a second keyword from file b (the entire file); if the semantic similarity between the first keyword and the second keyword is greater than a first similarity threshold, then page i of file a and file b are determined to have the same topic. Another possible approach is for the electronic device to generate a first topic term for page i based on page i of file a (the first topic term does not exist on page i); and to generate a second topic term for file b based on file b (the second topic term does not exist in file b); if the semantic similarity between the first topic term and the second topic term is greater than a second similarity threshold, then file b and page i of file a are determined to have the same topic.
[0137] Taking media similarity as an example, if file b includes media b, and page i of file a includes media a, and the semantic similarity between media b and media a is greater than a threshold, then file b is determined to be an associated file of page i of file a. Optionally, the electronic device can filter multiple media on page i of file a to filter out valuable media, such as media related to the topic of page i of file a. Similarly, the electronic device can also filter out valuable media in file b (i.e., media related to the topic of file b). If the electronic device determines that the valuable media filtered out on page i of file a is similar to the valuable media filtered out in file b, then file b is determined to be an associated file of page i of file a.
[0138] Optionally, the electronic device can also determine which page in file b has the highest content similarity (including text similarity and / or media similarity) to page i of file a, and designate that page as the associated page of page i of file a. For example, if the electronic device determines that page X of file b has the highest content similarity to page i of file a, then page X of file b is designated as the associated page of page i of file a.
[0139] Method 3: The electronic device determines the associated file of page i based on the content source of page i of file a.
[0140] For example, when an electronic device determines that file b and page i of file a have the same source, it determines that file b is an associated file of page i of file a. Optionally, the source of the content of page i may include the acquisition method and / or the creator of page i. The acquisition method may include: from which application it was obtained, from which download page it was obtained, from which contact it was sent, etc. The creator refers to the creator of page i, which may be the same as or different from the creator of the file. Therefore, the fact that file b and page i of file a have the same source may include: the same acquisition method, and / or the same creator. Optionally, the same acquisition method includes at least one of the following: sent by the same contact, obtained from the same application, or obtained from the same download page.
[0141] Optionally, the electronic device can also determine which page in file b shares the same source as page i of file a, and designate that page as the associated page of page i of file a. For example, if the electronic device determines that page X of file b shares the same source as page i of file a, then page X in file b is determined to be the associated page of page i of file a.
[0142] The above lists three ways (method 1, method 2, and method 3) to determine the associated file of page i of file a in an electronic device. These three methods can be used individually or in combination without limitation.
[0143] In the above embodiments, two methods for the electronic device to determine the associated files of file a were described: "file-level recommendation" and "page-level recommendation". In other embodiments, after determining the associated files of file a, the electronic device can display those associated files. One possible method is that the electronic device displays the first information of the associated files of file a, which will be described later. It is worth noting that the associated files of file a determined by the electronic device may include files located in the same folder as file a. For example, the associated files of file a may include file p, and file p and file a are located in the same folder. In this case, the electronic device may not display the first information of file p. Optionally, the electronic device may also display the second information of file a, which will be described later. Therefore, the following description is divided into three parts: the first part, the electronic device displays the first information of the associated files of file a; the second part, the electronic device displays the second information of file a; and the third part, the display layout between the first information of the associated files and the second information of file a.
[0144] Part 1: The electronic device displays the first information of the associated file (e.g., file b) of file a.
[0145] In this embodiment of the application, the first information of the associated file of file a may include at least one of the following:
[0146] (1) File identification information of associated files. Optionally, the file identification information may include at least one of the following: file icon, file name, and file format (e.g., file extension). For example, Figure 2A is a schematic diagram of the first display style of the associated files of file a. As shown in Figure 2A, the associated files of file a include file b, file c, and file d. The electronic device can display the file identification information of each of these three associated files, such as displaying the file icon, file name, and file format corresponding to each associated file.
[0147] (2) File attribute information of associated files. Optionally, file attribute information may include at least one of the following: file type, author, title, file name, last used date (or modification date), file size, and storage location. For example, Figure 2B is a schematic diagram of the second display style of associated files of file a. As shown in Figure 2B, the associated files of file a include files b, c, and d, and the electronic device can display the file attribute information of each of these three associated files. It is understandable that when there are multiple associated files, the file attribute information of each associated file can be displayed in separate areas.
[0148] (3) File preview information of the associated file. Optionally, the file preview information may include at least one of the following: a summary of the content and a page preview. The summary of the content is used to provide a brief introduction to the overall content of the associated file. For example, the summary of the content may include a summary, meeting minutes (e.g., meeting topic, meeting time, participants, meeting content, chairperson, outstanding issues, etc.). Optionally, the summary of the content may be the content of a paragraph (e.g., the beginning or the end) of the associated file, or it may be information extracted from the overall content of the associated file through analysis, such as AI analysis. The page preview may include a preview of one or more pages of content in the associated file, such as a preview of the first page, middle page, or last page of the associated file.
[0149] Taking a brief summary as an example, Figure 2C illustrates the third display style of the associated files of file a. As shown in Figure 2C, file a's associated files include files b, c, and d. The electronic device can display a brief summary of the content of each of these three associated files. It can be understood that when there are multiple associated files, the brief summary of each associated file can be displayed in separate areas. For example, in Figure 2C, the brief summary of file b is a summary of file b. Optionally, a copy button can be displayed below the summary of file b. When the electronic device receives an operation on this copy button, it can copy the summary of file b. As shown in Figure 2C, the brief summary of file c is meeting minutes. Optionally, a copy button and an add-to-do button can be displayed below the meeting minutes of file c. When the electronic device receives an operation on the copy button, it can copy the meeting minutes of file c. When the electronic device receives an operation on the add-to-do button, a calendar interface is displayed, and to-do items, such as meeting-related items, are added to the calendar. It should be noted that there is a possible situation: the associated file does not have a brief summary, for example, it is impossible to analyze and extract a brief summary from the associated file. In this situation, the electronic device can display a "Unable to generate content summary" message. For example, in Figure 2C, the content summary display area for file d shows "Unable to generate content summary". Furthermore, it should be noted that the electronic device may take some time to generate the content summary of the associated file. In other words, after the electronic device identifies the associated file for file a, it may not immediately display the content summary of the associated file and requires a waiting period. To ensure a good user experience, one possible approach is for the electronic device to display a prompt message to remind the user to wait for the content summary to be generated. For example, as shown in Figure 2D, the electronic device displays the prompt message: "Generating content summary". It is understood that if a content summary is generated, it will be displayed, such as for file b or file c in Figure 2C; if a content summary cannot be generated, a "Unable to generate content summary" message will be displayed, such as for file d in Figure 2C.
[0150] Taking page preview as an example, Figure 2E illustrates the fourth display style of associated files for file a. As shown in Figure 2E, file a's associated files include files b, c, and d. The electronic device can display page previews of each of these three associated files. It can be understood that when there are multiple associated files, page previews of each associated file can be displayed in separate areas. For example, Figure 2E includes page previews of file b, file c, and file d. Taking file b's page preview as an example, this preview can be a preview of any page in file b (e.g., the first page). Optionally, the electronic device can also display the page identifier of the current preview page of file b, such as the page number of the current preview page. Optionally, it can also display the total number of pages in file b, such as "1 / 8" in Figure 2E, meaning file b has a total of 8 pages, and the current preview page is page 1. Optionally, the electronic device can also display page switching buttons to switch the current preview page to other preview pages. For example, the previous page button and next page button in Figure 2E. When the electronic device receives a press of the "Previous Page" button, it displays a preview of the previous page; when the electronic device receives a press of the "Next Page" button, it displays a preview of the next page.
[0151] The above (1) to (3) list the first information of the associated file of file a. As mentioned above, the display style of the associated file is different when the first information is different. For example, when the first information is (1) above, the display style is the style of Figure 2A. When the first information is (2) above, the display style is the style of Figure 2B. When the first information is (3) above, the display style is the style of Figure 2C or Figure 2E.
[0152] Optionally, steps (1) to (3) above can be used individually or in combination. Taking the combination of (1) and (3) as an example, the electronic device displays both the file identification information of the associated files and the file preview information of the associated files. For example, Figure 2F is a schematic diagram of the fifth display style of the associated files of file a. As shown in Figure 2F, the associated files of file a include file b, file c, and file d. The electronic device can display the file identification information (e.g., file name and file format) and page preview of each of the three associated files. For example, Figure 2F includes the file identification information and page preview of file b, the file identification information and page preview of file c, and the file identification information and page preview of file d. Optionally, the file identification information can be displayed in the area above, below, left, or right of the page preview, as long as it does not obscure the page preview.
[0153] As mentioned above, the electronic device can display first information about the associated file of file a. The first information can be the information listed in (1) to (3) above, and can correspond to different display styles. In some other embodiments, the electronic device can also display first indication information, which is used to indicate the reason for the association between the associated file (e.g., file b) and file a. For example, the first indication information is used to indicate the type of association behavior that has occurred between the associated file (e.g., file b) and file a, such as file b and file a being opened at the same time, displayed at the same time, having been switched, having been copied and pasted, etc. Or, the first indication information is used to indicate that the associated file (e.g., file b) and file a have similar content (e.g., similar file names, the same file theme, similar media, etc.) or the same source (e.g., downloaded from the same download page, or sent by the same contact, etc.).
[0154] It should be noted that the preceding text listed several display styles for the first information of associated files, such as the display styles listed in Figures 2A to 2F. Each display style can include an association reason. For example, Figure 3A illustrates the sixth display style for the associated files of file a. As shown in Figure 3A, the associated files of file a include files b, c, and d. The electronic device can display the file identification information and association reason for each of these three associated files. For example, Figure 3A includes the file identification information of file b and the association reason between file b and file a: they were once opened simultaneously; it also includes the file identification information of file c and the association reason between file c and file a: they were once displayed simultaneously; and it also includes the file identification information of file d and the association reason between file d and file a: they were once copied and pasted. As another example, Figure 3B illustrates the seventh display style for the associated files of file a. As shown in Figure 3B, the associated files of file a include files b, c, and d. The electronic device can display the file identification information, page preview, and association reason for each of these three associated files. For example, Figure 3B includes file identification information, page preview, and the reason for the association between file b and file a: they were opened at the same time; it also includes file identification information, page preview, and the reason for the association between file c and file a: they were displayed at the same time; and it also includes file identification information, page preview, and the reason for the association between file d and file a: they were copied and pasted.
[0155] Continuing with Figure 3A or Figure 3B as an example, optionally, to facilitate user differentiation, the file identification information and the associated reason can be displayed in different ways. For example, at least one of the font color, font style, and font background color of the file identification information and the associated reason can be different. The font style can include various styles such as size, weight, italics, KaiTi, and SongTi. Optionally, a separator can be set between the file identification information and the associated reason, and the separator can be various symbols, text, letters, etc. For example, in Figure 3A, there is a separator "—" between the file identification information and the associated reason.
[0156] In other embodiments, the association reason can be further refined. One possible approach is that the association reason can also indicate which page of the associated file (e.g., file b) has what kind of association relationship with file a. For example, the electronic device can display second indication information to indicate that page k of file b has been associated with file a; or, the second indication information can indicate that page k of file b has similar content or the same source as file a, where k is a positive integer. For example, Figure 3C is a schematic diagram of the eighth display style of the associated files of file a. As shown in Figure 3C, the associated files of file a include file b, file c, and file d. The electronic device can display the file identification information and page preview of each of these three associated files. Assuming that page X1 of file b was once displayed simultaneously with file a, then the page preview of file b is a preview of page X1 of file b, and the association reason of file b can be: page X1 was displayed simultaneously with this file (i.e., file a). Assuming that page X2 of file c contains similar content to file a, then the page preview of file c is a preview of page X2 of file c, and the association reason for file c could be: page X2 contains similar content to this file. Assuming that page X3 of file d was previously copied and pasted from file a, then the page preview of file d is a preview of page X3 of file d, and the association reason for file d could be: page X3 was previously copied and pasted from this file. Another possible approach is for the electronic device to determine the page-level associated files of file a using a second method. For example, based on page i of file a, it determines that the associated files include file b, and determines that page X of file b is an associated page of page i. In this case, the association reason can specifically indicate the relationship between page X and page i of file b. For example, Figure 3D illustrates the ninth display style of associated files for file a. As shown in Figure 3D, the associated files of page i of file a include files b, c, and d, and the electronic device can display the file identification information and page preview of each of these three associated files. Assuming that page X1 of file b and page i of file a were once displayed simultaneously, then the page preview of file b is a preview of page X1 of file b, and the reason for the association between file b and page i could be: page X1 and page i were displayed simultaneously. Assuming that page X2 of file c contains similar content to page i of file a, then the page preview of file c is a preview of page X2 of file c, and the reason for the association between file c and page i could be: page X2 and page i contain similar content. Assuming that page X3 of file d was once copied and pasted from page i of file a, then the page preview of file d is a preview of page X3 of file d, and the reason for the association between file d and page i could be: page X3 and page i were once copied and pasted.
[0157] In the above embodiments, several display styles for the first information of the associated files were described. For example, the display styles listed in Figures 2A to 3C. The electronic device can adopt any of these display styles. One possibility is that the electronic device is configured with only one display style, in which case that display style is used. Another possibility is that the electronic device is configured with multiple display styles, and one of them can be selected. The selection method can include both automatic selection and manual selection. Taking automatic selection as an example, one possible implementation is that the electronic device determines which display style to use based on the number of associated files. For example, when the number of associated files is large, the display style of Figure 2A or Figure 3A can be used; when the number of associated files is small, the display styles of Figures 2B, 2C, 2E, 2F, 3B, or 3C can be used. Another possible implementation is that the electronic device determines which display style to use based on the size of the display area for the first information of the associated files. The display area for the first information of the associated files will be explained later. For example, when the display area is small, the display style shown in Figure 2A or Figure 3A can be used; when the display area is large, the display styles shown in Figure 2B, Figure 2C, Figure 2E, Figure 2F, Figure 3B, or Figure 3C can be used. Taking manual selection as an example, the electronic device determines which display style to use based on the user's selection. One possible approach is for the electronic device to provide multiple display styles for the user to choose from, for example, displaying multiple display styles in the electronic device's settings application.
[0158] In some embodiments, after the electronic device displays first information about the associated file of file a, it can open the associated file if it receives an operation related to the first information. For example, in Figure 2A, when the electronic device receives an operation related to the file identifier information of file b, it opens file b; similarly, files c and d are opened. In Figure 2B, when the electronic device receives an operation related to the file attribute information of file b, it opens file b; similarly, files c and d are opened. In Figure 2C, when the electronic device receives an operation related to a summary of the content of file b, it opens file b; similarly, files c and d are opened. In Figure 3D, when the electronic device receives an operation related to a page preview of file b, it can display a new window to display the content of file b, such as the first page or page X1 of file b. Similarly, when the electronic device receives an operation related to a page preview of file c, it can display a new window to display the content of file c, such as the first page or page X2 of file c. Similarly, when the electronic device receives an operation related to a page preview of file d, it can display a new window to display the content of file d, such as the first page or page X3 of file d.
[0159] As mentioned above, the electronic device needs to display the first information of the associated file of file a. The display area for the first information of the associated file is described below. The display area may include at least one of the following:
[0160] In the first case, the display area is located within the file manager window.
[0161] For example, as shown in Figure 4A(a), the electronic device displays a file manager window 100, which includes the identification information of file a. When the electronic device receives the first operation for the identification information of file a, it determines the associated files of file a (which can be "folder-associated files" or "page-level associated files"), and then displays the first information of the associated files of file a in the diagonal area shown in Figure 4A(b). As mentioned above, there are various display styles for the first information of associated files, such as the display styles listed in Figures 2A to 3C. The electronic device can display the information according to any of these display styles. Taking the display style shown in Figure 3B above as an example, as shown in Figure 4B, the window 100 displays the page previews, file identification information, and association reasons for files b, c, and d respectively.
[0162] The second method involves a display area located within a floating window, which is displayed above the file manager's window.
[0163] For example, as shown in Figure 5A(a), the electronic device displays a file manager window 100, which includes the identification information of file a. When the electronic device receives the first operation for the identification information of file a, it determines the associated files of file a (which can be "folder-associated files" or "page-level associated files"), and then displays a floating window, as shown in Figure 5A(b), displaying the first information of the associated files of file a within the floating window (e.g., the diagonal line area). As mentioned above, there are various display styles for the first information of the associated files, such as the display styles listed in Figures 2A to 3C. The electronic device can display the information according to any of these display styles. Taking the display style shown in Figure 3A above as an example, as shown in Figure 5B, the floating window displays the file identification information and association reasons corresponding to files b, c, and d respectively.
[0164] The above lists two implementation methods for displaying the first information area of associated files. Electronic devices can use either method. One possibility is that the electronic device only has program code configured for the first method, in which case the first method is used. Alternatively, the electronic device only has program code configured for the second method, in which case the second method is used. Or, the electronic device has program code configured for both the first and second methods, in which case the electronic device can choose one method. The method of selection can include automatic selection and manual selection. Taking automatic selection as an example, the electronic device can determine which method to use based on the type of the first operation. For example, when the first operation is a first-type operation (e.g., a click operation), the first method is used, i.e., displaying the first information of associated files in the file manager window; when the first operation is a second-type operation (e.g., a hover operation), the second method is used, i.e., popping up a floating window and displaying the first information of associated files within the floating window. Taking manual selection as an example, the electronic device can determine which method to use based on the user's selected operation. One possibility is that the electronic device offers two options for the user to choose from, for example, by displaying the two options in the device's settings application.
[0165] As mentioned earlier, the electronic device displays the first information of the associated files of file a within the lined area in Figure 4A or Figure 5A. It is understood that file a can have multiple associated files; in this case, the electronic device needs to display the first information of multiple associated files within the lined area.
[0166] One possible approach is that the electronic device can sort multiple associated files and display first information about the multiple associated files according to this sorting. Optionally, the sorting method includes at least one of the following:
[0167] The first sorting method is based on the last used time of the associated files. For example, sorting can be done from earliest to latest or from latest to earliest. Taking sorting by the last used time of associated files from latest to earliest as an example, suppose file a is associated with files b, c, and d. File b was last used one day ago, file c was last used two days ago, and file d was last used three days ago. Then the order of files b, c, and d would be: file b -> file c -> file d.
[0168] The second sorting method is based on the frequency of use of associated files. For example, sorting can be done from highest to lowest or lowest to highest frequency of use. Taking sorting from highest to lowest frequency of use as an example, suppose file a is associated with files b, c, and d, where file b is used most frequently, file c is used next most frequently, and file d is used least frequently. Then the order of files b, c, and d would be: file b -> file c -> file d.
[0169] The third sorting method is based on the degree of relevance between the associated files and file a. For example, sorting can be done from high to low or low to high according to the degree of relevance between the associated files and file a. Optionally, the degree of relevance can be determined in several ways. Method A: Taking file a's associated files as including files b, c, and d as an example, the electronic device can determine the number of times these three associated files have engaged in similar behaviors and / or interactions with file a. The degree of relevance between the three associated files and file a is determined by the number of interactions, where a higher number of interactions indicates a higher degree of relevance. Method B: Taking file a's associated files as including files b, c, and d as an example, the electronic device can determine the content similarity between these three associated files and file a. The degree of relevance between the three associated files and file a is determined by the content similarity, where a higher content similarity indicates a higher degree of relevance. The determination of the content similarity between associated files and file a can be achieved in various ways, such as through algorithmic models, which will not be detailed in this paper.
[0170] The fourth sorting method, "page-level related files," allows you to sort related files according to page order. For example, related files on the first page are listed first, followed by those on the second page, and so on, with the last page's related files appearing last.
[0171] The above lists several sorting methods for associated files. It is understood that there may be other sorting methods besides those mentioned above, which will not be listed one by one.
[0172] Considering the limited area of the diagonal region in Figure 4A or Figure 5A, and the varying number of associated files for file a, taking a total of K associated files as an example, there are two methods: Method A, which displays the first information of all K associated files within the diagonal region. That is, the first information of all associated files is displayed at once within the diagonal region. Method B, which displays the first information of some of the K associated files within the diagonal region, while hiding the first information of the others. The implementation principles of Method A and Method B will be explained later. The electronic device can use either Method A or Method B. For example, if the electronic device only has program code configured for Method A, then Method A is used. Or, if the electronic device only has program code configured for Method B, then Method B is used. Or, if the electronic device has program code configured for both Method A and Method B, then the electronic device can choose one of the two methods. The selection method can include automatic selection or manual selection. Taking manual selection as an example, the electronic device determines which method to use based on the user's manual operation. Taking automatic selection as an example, for instance, when K is less than the threshold, method A is used, and when K is greater than or equal to the threshold, method B is used.
[0173] The second part involves the electronic device displaying the second information of file a.
[0174] In this embodiment of the application, the second information of file a may include at least one of the following:
[0175] (1) File attribute information of file a. Optionally, the file attribute information may include at least one of the following: file type, author, title, file name, last used time (or modification date), file size, storage location, etc. This part has been described in the first information section above and will not be repeated. For example, Figure 6A is a schematic diagram of the first display style of the second information of file a. As shown in Figure 6A, the electronic device displays the file attribute information of file a, such as file type, author, title, size, modification date, etc.
[0176] (2) File preview information for file a. Optionally, the file preview information may include at least one of a content summary and a page preview. For details on content summaries and page previews, please refer to the preceding descriptions; they will not be repeated here. Taking the content summary as an example, Figure 6B illustrates the second display style of the second information for file a. As shown in Figure 6B, the electronic device displays a summary of the content for file a. Taking the page preview as an example, Figure 6C illustrates the third display style of the second information for file a. As shown in Figure 6C, the electronic device displays a page preview of file a. Optionally, the electronic device may also display the total page number of file a and the page number of the currently previewed page, such as "1 / 10" in Figure 6C, indicating that file a has a total of 10 pages and the currently previewed page is page 1. Optionally, page turning buttons may also be displayed, such as a previous page button and a next page button. When the electronic device receives an operation on the previous page button, it displays the preview of the previous page; when the electronic device receives an operation on the next page button, it displays the preview of the next page.
[0177] The above (1) to (2) list the second information of file a. As mentioned above, the display style is different when the second information is different. For example, when the second information is (1) above, the display style is the style of Figure 6A. When the second information is (2) above, the display style is the style of Figure 6B or Figure 6C. Optionally, (1) and (2) above can be used alone or in combination. Taking the combination as an example, the electronic device displays both the file attribute information of file a and the file preview information of file a. For example, Figure 6D is a schematic diagram of the fourth display style of the second information of file a. As shown in Figure 6D, the electronic device displays a summary of file a and file attribute information (e.g., file type, author, title, size, modification date, etc.).
[0178] The above lists various display styles for the second information of document a, such as the display styles listed in Figures 6A to 6D. The electronic device can employ any of these display styles. One possibility is that the electronic device is configured with only one display style, in which case that display style will be used. Another possibility is that the electronic device is configured with multiple display styles, and one of them can be selected. The selection method can include both automatic and manual selection. Taking manual selection as an example, the electronic device determines which display style to use based on the user's selection. One possible approach is that the electronic device provides multiple display styles for the user to choose from, for example, displaying multiple display styles for the user to choose from in the electronic device's settings application. Taking automatic selection as an example, one possible implementation is that when the electronic device cannot extract a summary of the content of document a, it can use the display style shown in Figure 6A or Figure 6D.
[0179] As mentioned above, the electronic device needs to display the second information of file a. The display area for the second information of file a is described below. In the first part above, the display area for the first information of the associated file of file a was introduced. This display area can be located within the file manager window (e.g., the diagonally lined area in Figure 4A) or within a floating window (e.g., the diagonally lined area in Figure 5A). In this embodiment, the second information of file a and the first information of the associated file can be displayed in the same area. For example, both the second information of file a and the first information of the associated file are displayed within the file manager window, for example, both within the diagonally lined area in Figure 4A. Alternatively, both the second information of file a and the first information of the associated file are displayed within a floating window, for example, both within the diagonally lined area in Figure 5A.
[0180] The third part describes the display layout of the first information of the associated file and the second information of file a.
[0181] As mentioned above, the electronic device can display the first information of the associated file and the second information of file a within the same display area. The display area can be, for example, the diagonal line area shown in Figure 4A or Figure 5A. One possible approach is for the electronic device to divide the display area (i.e., the diagonal line area) into two areas: a first area and a second area. The second information of file a is displayed in the first area, and the first information of the associated file is displayed in the second area.
[0182] Taking the diagonal area shown in Figure 4A as an example, one possible division method is as shown in Figure 7A, where the diagonal area is divided into a first area and a second area. The first area is used to display the second information of file a, and the second area is used to display the first information of the associated file (which can be a "folder-associated file" or a "page-level associated file").
[0183] Taking the diagonal area shown in Figure 4B as an example, one possible division method is as shown in Figure 7B, where the diagonal area is divided into a first area and a second area. The first area is used to display the second information of file a, and the second area is used to display the first information of the associated file (which can be a "folder-associated file" or a "page-level associated file").
[0184] Continuing with the division method shown in Figure 7A or Figure 7B as an example, as mentioned earlier, the first area is used to display the second information of file a, and the second area is used to display the first information of the associated file. As mentioned before, the second information of file a can have multiple display styles, such as the display styles shown in Figures 6A to 6D. Therefore, any one of these display styles can be used in the first area. Similarly, as mentioned before, the first information of the associated file can also have multiple display styles, such as the display styles shown in Figures 2A to 3C. Therefore, any one of these display styles can be used in the second area.
[0185] Taking the division method in Figure 7A as an example, for instance, as shown in Figure 8A(a), the first area displays a brief summary of the content of file a, and the second area displays the first information of the associated files of file a, such as the page previews, file identification information, and association reasons for files b, c, and d respectively. As another example, as shown in Figure 8A(b), the first area displays a page preview of file a, and the second area displays the first information of the associated files of file a, such as the page previews, file identification information, and association reasons for files b, c, and d respectively.
[0186] Taking the division method in Figure 7B as an example, for instance, as shown in Figure 8B(a), the first area displays a brief summary of the content of file a, and the second area displays the first information of the associated files of file a, such as the file identification information and association reasons for files b, c, and d. As another example, as shown in Figure 8B(b), the first area displays a page preview of file a, and the second area displays the first information of the associated files of file a, such as the file identification information and association reasons for files b, c, and d.
[0187] Continuing with Figure 8A(b) or Figure 8B(b) as examples, the first area is used to display a page preview of document a. Optionally, the user can turn pages within the first area. For example, the first area displays the page number "1 / 10", a previous page button, and a next page button. When the electronic device receives an operation on the previous page button, the first area is updated with the previous page preview. When the electronic device receives an operation on the next page button, the first area is updated with the next page preview. Therefore, the content in the first area can be updated.
[0188] In some embodiments, the second region is updated independently of the first region. For example, updating the content in the first region does not affect the content in the second region, and similarly, updating the content in the second region does not affect the first region. Taking the first region's update not affecting the second region as an example, if the first region displays a preview of page i of file a, in response to an update operation on the first region, the first region is updated to display a preview of page j of file a, while the first information of the associated file in the second region remains unchanged. That is, while the user is browsing through pages of file a in the first region, the first information of the associated file in the second region remains unchanged. Taking the second region's update not affecting the first region as an example, for instance, when the second region uses the pagination display strategy shown in Figure 9B (described later), when the user is flipping through pages in the second region, the page preview of file a in the first region remains unchanged.
[0189] In other embodiments, the second region updates in tandem with the first region. For example, when the content in the first region is updated, the content in the second region is updated synchronously. One possible approach is that the associated files in the second region are "page-level associated files," and are determined based on the current preview page in the first region. Therefore, when the current preview page in the first region changes, the associated files in the second region change accordingly. For example, as shown in Figure 8C above, when the first region displays a preview of the i-th page (e.g., page 1) of file a, the second region displays first information of the page-level associated file determined based on the i-th page (e.g., a file that has previously been associated with page i). In response to an update operation on the first region, the electronic device updates the first region to a preview of the j-th page (e.g., page 2) of file a, and updates the second region to third information of a third file, for example, the third file is a page-level associated file determined based on the j-th page (e.g., a file that has previously been associated with page j).
[0190] As mentioned earlier, the second area is used to display the associated files of file a. Considering the limited area of the second area, and the fact that file a may have many or few associated files, taking the example that file a has a total of K associated files, there are two possible approaches:
[0191] Method A: Display the first information of all K related files within the second area. That is, display the first information of all related files at once within the second area. Display methods can include tiling, overlay, etc. Taking tiling as an example, as shown in Figure 8A(b), the first information of the three related files is displayed tiling. It can be understood that when the value of K is large, the area of the second area is insufficient, so the first information of each related file can be shrunk, and then the shrunk first information is displayed tiling. Taking overlay as an example, the first information of related file c is overlaid on top of the first information of related file b, but it will not completely cover the first information of related file b. Optionally, when displaying the first information of all related files within the second area, they can be displayed in sorted order; the sorting method can be found above.
[0192] Method B displays the first information of some of the K associated files in the second area, while hiding the first information of the other associated files. With this method, the electronic device needs to determine which of the K associated files should be hidden and which should not.
[0193] One possible approach is for the electronic device to sort the K associated files, with the top few files not hidden and the rest hidden. The sorting method is described above and will not be repeated here.
[0194] Another possible approach is for the electronic device to divide the K associated files into multiple sets (or groups), each set potentially containing one or more associated files. For a set, only the initial information of some associated files (e.g., one associated file) is displayed, while the initial information of the other associated files is hidden. For example, if the associated files include files b, c, d, e, and f, the electronic device identifies three sets: set 1 includes file b, set 2 includes file c, and set 3 includes files d, e, and f. For set 1, the initial information of file b is displayed; for set 2, the initial information of file c is displayed; and for set 3, the initial information of file d is displayed, while the initial information of files e and f is hidden. This approach requires the electronic device to divide the K associated files into multiple sets (or groups). One possible method is for the electronic device to divide the K associated files into multiple sets based on the association reason between each association method and file a (e.g., past association behaviors with file a). For example, associated files with the same association reason could be grouped into one set. For example, if files d, e, and f have all had the same associated behavior with file a (e.g., all were displayed simultaneously with file a or all were copied and pasted with file a), then these three files are grouped into a set. For a set, only the first information of some associated files within that set is displayed, while the first information of other associated files is hidden. Therefore, the electronic device needs to determine which associated files within the same set are displayed and which are hidden. One possible approach is for the electronic device to sort the associated files within the set, displaying the top-ranked files and hiding the others. The sorting method is described above and will not be repeated here.
[0195] Optionally, the hiding method may include at least one of the following:
[0196] The first method of hiding is stacking.
[0197] For example, as shown in Figure 9A(a), the second area displays the first information corresponding to three associated files, namely files b, c, and d. The display area corresponding to file d includes a marker 900, indicating that the first information of other associated files is hidden. For example, when the electronic device receives an operation targeting marker 900, the interface shown in Figure 9A(b) is displayed. This interface displays an expansion box 901, which displays the first information of the hidden associated files (e.g., files e and f). Optionally, considering the limited area of the expansion box 901, it may only display the file identification information of the hidden associated files, without displaying file preview information (e.g., page preview). One possible scenario is that in Figure 9A(a), there are multiple associated files that have previously been copied and pasted with file a, such as files d, e, and f. These three files are grouped into a set, but Figure 9A(a) only displays the first information of one associated file within this set, namely file d.
[0198] The second hiding method: paginated hiding.
[0199] For example, as shown in Figure 9B(a), the second area displays the first information corresponding to three related files, namely files b, c, and d, and also displays a pagination marker 902. When the electronic device receives a page-turning operation (e.g., a left / right swipe operation) in the second area, it displays the next page in the second area, as shown in Figure 9B(b). The next page includes the first information corresponding to files e and f. In other words, the second area uses a pagination display strategy to distribute the first information of multiple related files across different pages. One possible scenario is that the electronic device sorts the multiple related files and distributes the first information of the multiple related files across different pages according to this sorting. For example, the first information of the first-sorted related file is located on the first page.
[0200] It should be noted that the above lists two hiding methods. In practical applications, there are other hiding methods, which will not be listed one by one.
[0201] In some embodiments, if the electronic device displays only the first information of a portion of the K associated files, it can display a first marker to indicate the presence of hidden associated files. For example, the first marker could be marker 900 in Figure 9A(a), indicating the presence of hidden files. When the electronic device receives a recall operation, it can display the first information of the hidden associated files. The recall operation can be an operation targeting the first marker. Continuing with Figure 9A(a) as an example, when the electronic device receives an operation targeting marker 900 (i.e., a recall operation), it displays the first information of the hidden files, such as other associated files (e.g., files e and f) that are in the same set as file d.
[0202] The preceding embodiments provided two file recommendation schemes: file-level recommendation and page-level recommendation. The electronic device can use either of these methods. One possibility is that the electronic device only has program code for the first scheme configured, in which case the first scheme is used. Another possibility is that the electronic device only has program code for the second scheme configured, in which case the second scheme is used. Yet another possibility is that the electronic device has program code for both the first and second schemes configured; in this case, the electronic device can choose one scheme to use. The selection method can include automatic selection or manual selection. Taking manual selection as an example, the electronic device determines which recommendation scheme to use based on the user's manual operation. Taking automatic selection as an example, when the first area displays a preview of the first or last page of file a, the associated files in the second area can be determined using the first scheme, i.e., the associated files in the second area are "file-level associated files"; when the first area displays a preview of a middle page of file a, the associated files in the second area are determined using the second scheme, for example, the associated files in the second area are determined based on the current preview page in the first area.
[0203] Please refer to Figure 10, which is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 10, the electronic device includes: a UI module, an association recommendation module, a data construction module, a data integration module, a file parser, a file system, and a database. The UI module is used to display information, such as displaying file a and its associated files. The association recommendation module is used to determine the associated files of file a, which can be done through the first or second method described above. The data construction module is used to construct information for each file, which may include the file's text and / or media, as well as historical behavior information, file source information, etc. The data integration module is used to organize the information constructed in the data construction module, for example, organizing the overall information or page information of each file, which will not be repeated here. The file parser is used to parse the files, such as text parsing, image parsing, video parsing, audio parsing, etc. The file system is used to store files. The database is used to store information for each file, such as overall information and / or page information, or it may also store the correspondence between each file, which indicates which files are associated with each file. The associated files can be file-level or page-level associated files.
[0204] The following section continues using Figure 10 as an example to illustrate the workflow between the various modules in Figure 10. For example, as shown in Figure 11, the file system includes file a. The file parser parses file a, including text parsing and / or media parsing. Media parsing includes at least one of image parsing, video parsing, and audio parsing. Text parsing may include text semantic analysis. Image parsing may include analyzing image semantics. Video parsing may include analyzing the semantics of each frame in a video. Audio parsing may include converting audio to text and then analyzing the semantics of the text. The file parser provides the parsing results to the data construction module. The data construction module performs various processing based on the parsing results: 1. Extracting the file's theme, keywords, etc., based on the text parsing results. 2. Identifying valuable media contained in the file based on the media parsing results. Valuable media can be understood as media related to the file content. 3. Determining the file's source information based on the text parsing results. 5. Determining file behavior information based on the file parsing results. The data integration module is used to integrate the data constructed by the data construction module, integrating the overall information or page information of each file, and storing the integrated information in the database. Therefore, the database can store overall information and / or page information for each file, or it can store the correspondence between each file, indicating which files are associated with each file. These associated files can be file-level or page-level. The association recommendation module can determine the associated files for file 'a' based on the database, and then display the initial information of the associated files through the UI module.
[0205] Please refer to Figure 12, which is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device can be any of the electronic devices listed above. As shown in Figure 12, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0206] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the nerve center and command center of the electronic device. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. Processor 110 may also include memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that processor 110 has just used or is repeatedly used. If processor 110 needs to reuse the instruction or data, it can directly retrieve it from the memory. This avoids repeated access, reduces the waiting time of processor 110, and thus improves system efficiency.
[0207] In some embodiments, the processor 110 may execute the file recommendation method provided in the embodiments of this application.
[0208] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0209] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0210] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0211] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0212] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0213] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0214] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0215] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0216] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0217] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in conjunction with a tuning switch.
[0218] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G in electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0219] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0220] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices via wireless communication technology.
[0221] The display screen 194 is used to display the application's interface, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device may include one or N display screens 194, where N is a positive integer greater than 1.
[0222] The electronic device 100 can perform shooting functions through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor. The ISP is used to process the data fed back by the camera 193.
[0223] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and software code for at least one application program. The data storage area may store data generated during the use of the electronic device (e.g., images, videos, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, general-purpose flash memory, etc.
[0224] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, images, videos, and other files can be saved on the external memory card.
[0225] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.
[0226] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0227] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls and other external playback scenarios through one or more speakers 170A.
[0228] The receiver 170B, also known as a "handpiece," can be one or more, and is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0229] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.
[0230] The 170D headphone jack is used to connect wired headphones.
[0231] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
[0232] The gyroscope sensor 180B can be used to determine the motion attitude of an electronic device. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization.
[0233] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0234] The magnetic sensor 180D includes a Hall effect sensor. Electronic devices can use the magnetic sensor 180D to detect the opening and closing of a flip cover.
[0235] The 180E accelerometer can detect the magnitude of acceleration in various directions (typically three axes) of electronic devices. When the electronic device is stationary, it can detect the magnitude and direction of gravity.
[0236] The 180F distance sensor is used to measure distance. Electronic devices can measure distance using infrared or laser.
[0237] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device emits infrared light outward through the LED. The electronic device uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the electronic device. When insufficient reflected light is detected, the electronic device can determine that no object is near the electronic device.
[0238] An ambient light sensor 180L is used to detect ambient light levels. Electronic devices can adaptively adjust the brightness of the display screen 194 based on the detected ambient light levels.
[0239] The fingerprint sensor 180H is used to collect fingerprints.
[0240] The 180J temperature sensor is used to detect temperature.
[0241] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K is used to detect touch operations applied to or near it. The touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event.
[0242] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords.
[0243] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The electronic device can receive button inputs and generate key signal inputs related to user settings and function control. Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device.
[0244] It is understood that the components shown in Figure 12 do not constitute a specific limitation on the electronic device. The electronic device in embodiments of the present invention may include more or fewer components than those shown in Figure 12. Furthermore, the combination / connection relationships between the components in Figure 12 can also be adjusted and modified.
[0245] Figure 13 is a schematic diagram of the structure of an electronic device 1300 provided in an embodiment of this application. The electronic device 1300 can be the electronic device described above (e.g., a laptop computer). As shown in Figure 13, the electronic device 1300 may include: one or more processors 1301; one or more memories 1302; a communication interface 1303; and one or more computer programs 1304. These devices can be connected via one or more communication buses 1305. The one or more computer programs 1304 are stored in the memory 1302 and configured to be executed by the one or more processors 1301. The one or more computer programs 1304 include instructions. For example, when the electronic device 1300 is the electronic device described above, the instructions can be used to perform relevant steps of the electronic device as described in the corresponding embodiments above, such as performing the relevant steps of the electronic device in Figures 2A to 11. The communication interface 1303 is used to enable communication between the electronic device 1300 and other devices; for example, the communication interface can be a transceiver.
[0246] In the embodiments provided above, the methods provided by the present application are described from the perspective of an electronic device (e.g., a laptop computer) as the executing entity. To implement the functions of the methods provided in the embodiments of the present application, the electronic device may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is implemented in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.
[0247] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)). Where there is no conflict, the solutions in the above embodiments can be combined.
[0248] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0249] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. 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 processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0250] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0251] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0252] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope and intent of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and variations.
Claims
1. A document recommendation method, characterized in that, Applied to electronic devices, the method includes: Display a file selection interface, which includes N file identifiers, where N is a positive integer; In response to a first operation targeting a first file identifier among the N file identifiers, first information about a second file is displayed, wherein the second file has previously been associated with the first file, and / or the second file has the same file topic as the first file, and the first file is the file corresponding to the first file identifier.
2. The method according to claim 1, characterized in that, The second document and the first document have been associated in some way, including one or more of the following: The second document and the first document exhibited the same behavior within the same time period; The second file and the first file have been switched. The second file had interacted with the first file.
3. The method according to claim 1 or 2, characterized in that, Before displaying the first information of the second file, it also includes: The second file is determined based on the file-level historical behavior of the first file; or, The second file is determined based on the page-level historical behavior of the first file.
4. The method according to claim 3, characterized in that, The file-level history behavior of the first file includes at least one of the following behaviors: opening the file, closing the file, displaying the file, copying and pasting with other files, and sending to a contact. The page-level history behavior of the first file includes at least one of the following behaviors: opening a page, closing a page, displaying a page, copying and pasting content from other pages, and sending page content to a contact.
5. The method according to claim 3 or 4, characterized in that, Based on the page-level historical behavior of the first file, the second file is determined, including: Based on the historical behavior of the i-th page of the first file, determine the second file that has had related behavior with the i-th page, where i is an integer and 1≤i≤n, and n is the total number of pages of the first file.
6. The method according to any one of claims 2-5, characterized in that, The second document and the first document exhibited the same behavior within the same time period, including one or more of the following: It was displayed on the screen at the same time; It was sent to the same contact within the same time period.
7. The method according to claim 6, characterized in that, The phrase "simultaneously displayed on the display screen" includes: displaying on the display screen in a split-screen manner.
8. The method according to any one of claims 2-5, characterized in that, The second file and the first file have been switched, including: The number of times the switching behavior between the second file and the first file occurred is greater than or equal to the number of times it occurred during the first switching; and / or, The duration of the switching behavior between the second file and the first file is less than or equal to the first duration.
9. The method according to any one of claims 2-5, characterized in that, The second file and the first file had interacted, including: The second file and the first file have been copied and pasted at least once.
10. The method according to any one of claims 1-9, characterized in that, The second file has the same file source as the first file, and / or, The second file is similar to the media of the first file, and the media includes at least one of images, videos, and audio.
11. The method according to claim 10, characterized in that, The media similar to those mentioned include: The second medium in the second document is similar to the first medium in the first document, and the second medium is related to the subject of the second document, while the first medium is related to the subject of the first document.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: Extract the first keyword from the first file; Extract the second keyword from the second document; When the semantic similarity between the first keyword and the second keyword is greater than the first similarity threshold, the first file and the second file are determined to have the same subject.
13. The method according to any one of claims 1-11, characterized in that, The method further includes: Based on the first document, generate a first subject term for the first document, wherein the first subject term does not exist in the first document; Based on the second document, generate a second subject term for the second document, wherein the second subject term does not exist in the second document; When the semantic similarity between the first topic term and the second topic term is greater than the second similarity threshold, the first file and the second file are determined to have the same topic.
14. The method according to any one of claims 1-13, characterized in that, The second file is in a different folder than the first file.
15. The method according to any one of claims 1-14, characterized in that, The first information in the second document includes: The second file contains at least one of the following: file identification information, file attribute information, and file preview information; The file identification information includes at least one of the file icon and the file name; the file attribute information includes at least one of the file type, author, title, file name, modification date, file size, and storage location; and the file preview information includes at least one of the following: a brief summary of the second file's content and a page preview.
16. The method according to any one of claims 1-15, characterized in that, The method further includes: Display first indication information, which indicates the type of behavior associated with the second file and the first file.
17. The method according to any one of claims 1-16, characterized in that, The method further includes: Display a second indication message, which indicates that page k in the second file has been associated with the first file, where k is a positive integer.
18. The method according to any one of claims 1-17, characterized in that, The first information for displaying the second file includes: The first information of the second file is displayed in the file selection interface; or, The first information of the second file is displayed in a floating window.
19. The method according to claim 18, characterized in that, When the first operation is a first type of operation, the first information of the second file is displayed in the file selection interface, and the first type of operation includes a click operation; When the first operation is a second type of operation, the first information of the second file is displayed in the floating window, and the second type of operation includes a hover operation.
20. The method according to any one of claims 1-19, characterized in that, The method further includes: Displaying second information of the first file, the second information including: file attribute information and / or file preview information of the first file, the file attribute information including at least one of file type, author, title, file name, modification date, file size, and storage location, and the file preview information including at least one of the following: a brief summary of the content of the first file and a page preview.
21. The method according to claim 20, characterized in that, The second information includes a page preview of the first file, and the method further includes: Display page identifier and page switching button. The page identifier is used to indicate the page number of the current preview page of the first file, and the page switching button is used to switch the current preview page to another preview page.
22. The method according to claim 20 or 21, characterized in that, Display the second information of the first file within the first area; The first information of the second file is displayed in the second area; The first region and the second region are both located within the file selection interface or within a floating window.
23. The method according to claim 22, characterized in that, The second information of the first file is displayed in the first area, including: The method further includes displaying a preview of the i-th page of the first file in the first area, and in the second area, the second file and the i-th page have previously been associated. In response to the update operation for the first region, the first region is updated with a preview of the j-th page of the first file, and the second region is updated with the third information of the third file, wherein the third file and the j-th page have previously been associated, and i and j are both positive integers.
24. The method according to any one of claims 1-23, characterized in that, The first information for displaying the second file includes: Display the first information of each of the K files, including the second file; or, Display the first information of a portion of K files, including the second file, while the first information of the other K files is hidden; The K files include all or part of the files that have had an association with the first file.
25. The method according to any one of claims 1-24, characterized in that, The first operation is different from the second operation targeting the first file identifier, which is used to open the first file.
26. An electronic device, characterized in that, include: Processor, memory, and one or more programs; The one or more programs are stored in the memory, and the one or more programs include instructions that, when executed by the processor, cause the electronic device to perform the steps of the method as described in any one of claims 1-25.
27. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 25.
28. A computer program product, characterized in that, Includes a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 25.
Citation Information
Patent Citations
Method and device for establishing coupled relation between documents
CN101097574A
File association system and method thereof
CN102339297A
File processing method, file processing device and file processing electronic equipment
CN103164444A
Method and System for Folder Recommendation in a File Operation
US20090248615A1