CN-121996857-A - Method and device for recovering browser tab and electronic equipment
Abstract
The invention provides a method and a device for recovering tab pages of a browser and electronic equipment, wherein when a tab page closing event occurs, the browser acquires target information of each tab page corresponding to the tab page closing event, performs semantic feature extraction, divides the tab pages into at least one session group based on the target information and the semantic features, and recovers the display of all tab pages in a first target session group based on the target information and the semantic features of all tab pages in the first target session group corresponding to the tab page recovering triggering operation when a user performs tab page recovering triggering operation. The invention can accurately match the user scene operation habit and improve the user operation efficiency.
Inventors
- TANG JING
Assignees
- 奇瑞汽车股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260126
Claims (10)
- 1. The method for recovering the tab page of the browser is characterized by comprising the following steps of: Responding to a label page closing event, acquiring target information of each label page corresponding to the label page closing event and extracting semantic features, wherein the target information comprises titles and Uniform Resource Locators (URLs) of the corresponding label pages; Dividing all the tag pages corresponding to the tag page closing event into at least one session group based on the obtained target information and semantic features, wherein each session group has corresponding creation time and theme data and the target information and semantic features of at least one tag page; And responding to the tab page restoration triggering operation, and restoring the display of all tab pages in the first target session group based on the target information and semantic features of all tab pages in the first target session group corresponding to the tab page restoration triggering operation.
- 2. The method for recovering a tab page of a browser according to claim 1, wherein the target information further includes closing times of different tab pages, and dividing all tab pages corresponding to the tab page closing event into at least one session group based on the obtained target information and semantic features, comprises: Starting from the first closed tag page corresponding to the tag page closing event, performing the following operations A-C on tag pages by tag page: A. Creating an initial session group, recording the creation time of the initial session group, using the semantic features of the current tag page corresponding to the tag page closing event as initial subject data of the initial session group, and distributing the creation time and initial subject data of the initial session group and the target information and semantic features of the current tag page to the initial session group; B. If the similarity between the semantic features of the next tag page and the initial subject data of the initial session group is not lower than the preset similarity and the respective closing time interval of the current tag page and the next tag page is not longer than the preset time length, distributing the target information and the semantic features of the next tag page to the initial session group, and updating the initial subject data of the initial session group based on the semantic features of the next tag page; C. If the similarity between the semantic features of the next tag page and the initial subject data of the initial session group is lower than the preset similarity or the closing time interval of the current tag page and the next tag page exceeds the preset duration, re-executing the operation A; And (3) until the last closed tag page corresponding to the tag page closing event is subjected to the operation A-C, taking each initial session group as a corresponding session group, and taking updated subject data of each initial session group as subject data of the corresponding session group to obtain at least one session group.
- 3. The method for recovering a tab page of a browser according to claim 2, wherein the extracting of semantic features from the target information of each tab page comprises: and extracting keywords from the title and the URL of each tag page, generating a first topic vector of each tag page based on the obtained keywords of each tag page, and taking the keywords and the first topic vector of each tag page as corresponding semantic features.
- 4. The method for recovering a browser tab of claim 3 wherein the degree of similarity is measured by a degree of similarity, the initial topic data includes a second topic vector for a corresponding initial session group, and the determining of the degree of similarity includes calculating a degree of similarity between a first topic vector for a next tab and the second topic vector for the initial session group; The similarity degree is not lower than the preset similarity degree, and the similarity degree between the first theme vector of the next tab page and the second theme vector of the initial conversation group is not lower than the preset similarity degree threshold.
- 5. The method for restoring a tab page of a browser according to claim 4, further comprising, after dividing all tab pages corresponding to the tab page closing event into at least one session group based on the obtained target information and semantic features: For each conversation group, determining a first target keyword from keywords of all tag pages in the conversation group based on a second topic vector of the conversation group, and identifying the conversation group by using the first target keyword corresponding to the conversation group.
- 6. The method for restoring a tab page of a browser according to claim 1, wherein the target information further includes interaction status data of the corresponding tab page, the interaction status data including at least one of scrolling position data, form input data, cookies data, and local storage data of the corresponding tab page, restoring display of all tab pages in the first target session group based on the target information and semantic features of all tab pages in the first target session group corresponding to the tab page restoration triggering operation, and the method comprises: And opening all the tag pages in the first target session group again according to a preset sequence based on the closing time, the title and the URL of all the tag pages in the first target session group, and injecting interaction state data of each tag page in the first target session group into the corresponding tag page through a preset interface so as to restore display of all the tag pages in the first target session group.
- 7. The method for recovering the tab page of the browser according to claim 2, wherein after dividing all tab pages corresponding to the tab page closing event into at least one session group based on the obtained target information and semantic features, storing each session group into a session group stack, counting the number of tab pages in a stack top session group in the session group stack, and displaying the number of tab pages; After the display of all the tag pages in the first target session group is restored based on the target information and the semantic features of all the tag pages in the first target session group corresponding to the tag page restoration triggering operation, the method further comprises the steps of moving the first target session group out of the session group stack and updating the display of the number of the tag pages in the stack top session group in the session group stack.
- 8. The method for restoring a browser tab according to claim 1, further comprising: And responding to the input operation of the second target keywords, determining a second target session group which is correspondingly matched with the second target keywords from at least one session group, and displaying the second target session group.
- 9. A browser tab recovery apparatus, for use with a browser, comprising: The acquisition module is used for responding to the occurrence of a tag page closing event, acquiring target information of each tag page corresponding to the tag page closing event and extracting semantic features, wherein the target information comprises titles and URLs of the corresponding tag pages; The grouping module is used for dividing all the tag pages corresponding to the tag page closing event into at least one session group based on the obtained target information and semantic features, wherein each session group is provided with corresponding creation time and theme data and the target information and semantic features of at least one tag page; And the recovery module is used for responding to the tab page recovery triggering operation and recovering the display of all the tab pages in the first target session group based on the target information and semantic features of all the tab pages in the first target session group corresponding to the tab page recovery triggering operation.
- 10. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of recovering a browser tab of any one of claims 1 to 8.
Description
Method and device for recovering browser tab and electronic equipment Technical Field The present invention relates to the technical field of browsers, and in particular, to a method and an apparatus for recovering a tab page of a browser, and an electronic device. Background Currently, mainstream browsers and common plug-ins commonly provide a tab page restoration mechanism, wherein tab pages are restored one by one according to a tab page closing sequence through a shortcut key (such as ctrl+shift+t) or a right-key menu, a part of plug-ins provide a closed tab page list, a user can manually select to restore a plurality of items in the closed tab page list, a part of tools record the closing time of each tab page, and the user can select to restore the corresponding tab page according to a time point. However, the existing label page recovery mode mainly has the defects that only single label page recovery or full window recovery is supported, the scene intention formed by continuous operation of a user (such as label pages of 'air ticket inquiry', 'hotel reservation', 'attack view' and the like for booking air tickets and continuous closing of the air tickets) cannot be identified, the user needs to recover the label pages one by one, the operation efficiency is low, the existing label page recovery mode is only based on the grouping mode of label closing time, the problem that the label pages of different topics which are closed in a short time are classified into the same group or the problem that the label pages of the same topic are separated into a plurality of groups at a closing time interval with a slight time threshold value is easy to occur, and the scene operation habit of the user cannot be matched accurately. Disclosure of Invention Accordingly, an objective of the present invention is to provide a method and apparatus for recovering a tab page of a browser, and an electronic device, so as to alleviate the above-mentioned problems in the related art. The embodiment of the invention provides a recovery method of a browser tab page, which is applied to a browser and comprises the steps of responding to a tab page closing event, obtaining target information of each tab page corresponding to the tab page closing event and extracting semantic features, wherein the target information comprises titles and URLs of corresponding tab pages, dividing all tab pages corresponding to the tab page closing event into at least one session group based on the obtained target information and the semantic features, each session group respectively has corresponding creation time and theme data and the target information and the semantic features of at least one tab page, responding to a tab page recovery triggering operation, and recovering display of all tab pages in a first target session group based on the target information and the semantic features of all tab pages in the first target session group corresponding to the tab page recovery triggering operation. The embodiment of the invention also provides a recovery device of the browser tab page, which is applied to the browser and comprises an acquisition module, a grouping module and a recovery module, wherein the acquisition module is used for responding to the tab page closing event, acquiring target information of each tab page corresponding to the tab page closing event and extracting semantic features, the target information comprises titles and URLs of corresponding tab pages, the grouping module is used for dividing all tab pages corresponding to the tab page closing event into at least one session group based on the acquired target information and semantic features, each session group is provided with corresponding creation time and theme data and the target information and semantic features of at least one tab page, and the recovery module is used for responding to a tab page recovery triggering operation and recovering display of all tab pages in a first target session group based on the target information and semantic features of all tab pages in the first target session group corresponding to the tab page recovery triggering operation. In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method for recovering a browser tab according to the first aspect. According to the method and device for recovering the tab pages of the browser and the electronic device, when a tab page closing event occurs, the browser acquires target information of each tab page corresponding to the tab page closing event and extracts semantic features, the tab pages are divided into at least one session group based on the target information and the semantic features, and when a tab page recovery triggering operation is p