Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Introduction to nouns in embodiments of the present application:
and (3) a browser: refers to an application program that can access the HTML (Hyper Text Markup Language ) file contents of a web server or file system through a web site and that enables a user to interact with the file. Typically, a browser includes a browser kernel.
Application program with web browsing function: the non-browser application program can call the browser kernel, display the HTML file content provided by the webpage server and enable the user to interact with the file. The application program may be at least one of a voice chat program, an instant chat program, a shopping program, a microblog program, and a company management program. Optionally, the user interface in the application is generated by the application, and the web browsing function in the application is implemented by calling a browser kernel, which is not generally belonging to the application.
Self web server: refers to a web server provided by a vendor that provides a browser. Since the web server is provided by the manufacturer of the browser, the browser can display the own web page as the recommended content of the top page. The browser may not display the address bar when displaying the own web page.
Self-service web page: refers to a web page provided by an own web server.
Third-party web server: refers to a web server provided by a third party vendor other than the vendor providing the browser, i.e., a web server in the conventional sense. When the browser displays a third-party webpage, an address bar can be displayed, and the address bar displays a webpage address.
Third-party web page: refers to a web page provided by a third party web server.
FIG. 1 is a block diagram of an information recommendation system for a web page display process provided by an exemplary embodiment of the present disclosure. The system comprises: a terminal 120 and a server 160. The terminal 120 and the server 160 are connected via a communication network 140.
The terminal 120 may be a smart phone, tablet computer, electronic book reader, laptop portable computer, desktop computer, and the like. Alternatively, the terminal 120 has a touch screen, which is a general touch screen, or a touch screen supporting hover touch, or a touch screen supporting pressure sensing. The terminal 120 has an operating system and at least one application installed therein. The operating system may be an Android operating system or an apple (IOS) operating system. The terminal 120 has installed and running therein an application program, which is a browser program, or a non-browser application program having a web browsing function, which has the ability to call a browser kernel.
The terminal 120 and the server 160 are connected through a communication network 140, where the communication network 140 may be a wired network or a wireless network, and the wired network may be a metropolitan area network, a local area network, an optical fiber network, and the wireless network may be a mobile communication network or a wireless fidelity network (WIreless Fidelity, wiFi).
The server 160 may be a server for extracting target information or a server for searching for extended information based on target information at the same time. Wherein the server may be provided by a vendor that provides the browser or/and the browser kernel.
Fig. 2 is a flowchart of an information recommendation method of a web page display process according to an exemplary embodiment of the present disclosure. The method can be applied to the terminal and implemented by the execution of the application program in the terminal. The application program can be a browser or an application program with a web browsing function, and the method comprises the following steps:
in step 101, the terminal displays a first user interface including a first web page, the web page content of the first web page including target information.
The terminal displays a first webpage on a first user interface. Optionally, the first web page is an own service web page provided by an own web server opened by the browser; optionally, the first webpage is a third-party webpage provided by a third-party server opened by the browser; optionally, the first web page is an own service web page or a third party web page opened by an application program having a web browsing function.
The webpage content in the first webpage comprises target information, and the target information is representative information in the webpage content. The target information includes, but is not limited to, at least one of entity words, events, topics. The entity words include, but are not limited to: at least one of a person name, a place name, a film and television work name, a literature work name, a place, a merchant name and a commodity name; the event refers to an event name extracted from a hot news webpage, wherein the hot news webpage is obtained by statistics according to the click rate and/or the exposure rate of a user on the news webpage on a network; a topic refers to a title or subtitle of web page content.
In step 102, the terminal receives a shortcut operation triggered on the first user interface, where the shortcut operation is used to trigger an extended search for target information.
The terminal receives a shortcut operation triggered on the first user interface, the shortcut operation including but not limited to: at least one of single click operation, long press operation, pressure touch operation, multiple click operation, suspension touch operation, double-finger touch operation, knuckle double-click operation and pull-down operation.
Wherein the single click operation is an operation of clicking the touch screen once; the long press operation is an operation in which the touch screen is pressed for longer than a first time; the pressure touch operation is an operation in which the pressing pressure exceeds a preset pressure value; the multi-click operation is an operation in which the number of clicks exceeds a predetermined number of times within a predetermined period of time; the suspension touch operation is an operation in which the duration of suspension above the touch screen exceeds the second duration; the double-finger touch operation is an operation of simultaneously clicking the touch screen by using double fingers by a user; the finger joint double-click operation is an operation of using the finger joint double-click touch screen by a user; the pull-down operation is an operation in which the user presses the touch screen with a finger and drags downward.
The terminal receives the shortcut operation triggered on the first user interface, triggers itself or carries out expansion search on the target information through the server, and at least one type of expansion information recommended based on the target information is obtained. The terminal acquires at least one type of expansion information recommended based on the target information, and generates a second user interface according to the at least one type of expansion information.
Optionally, after identifying the target information of the first webpage, the terminal further displays a button control on the first user interface, and the user can use at least one operation of a single click operation, a long press operation, a pressure touch operation, a multiple click operation and a suspension touch operation as a shortcut operation on the button control; optionally, the terminal does not need to display a button control on the first user interface, and the user can use at least one of a double-finger touch operation, a double-click operation of a finger joint and a pull-down operation as the shortcut operation on the first user interface.
In step 103, the terminal displays a second user interface in a superimposed manner on the first user interface, wherein the second user interface comprises at least one kind of expansion information recommended based on the target information.
The terminal displays a second user interface generated according to the at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information.
Optionally, the terminal displays the second user interface in a superimposed manner on the first user interface in an area except for the title bar, or displays the second user interface in a superimposed manner on the whole area of the first user interface. Optionally, a function of displaying or hiding the second user interface may be implemented on the second user interface.
Referring schematically to fig. 3, the terminal displays a first user interface 11, the first user interface 11 comprising web content of a first web page. The button control 12 is a control displayed on the first user interface 11 after the terminal recognizes the target information in the web page content. When the terminal receives the shortcut operation on the button control 12, the second user interface 22 is displayed, the second user interface 22 is the recommended extension information based on the target information, and the extension information is displayed on the second user interface 22 in the form of a card with the granularity of "target information+resource domain".
Optionally, the second user interface includes at least two kinds of extension information displayed in groups according to categories, and the extension information is content information associated with the target information.
Categories of resource domains include, but are not limited to: at least one of encyclopedia information, question-answer community information, literature work information, movie work information, hot news information, social network information, location information, merchant information, commodity information.
In summary, according to the information recommendation method provided by the disclosure, in the process of browsing the web page content of the first web page by the user, after the shortcut operation is received on the first user interface, the second user interface including at least one type of extension information is displayed, so that the at least one type of extension information can be recommended to the user through one shortcut operation in the process of browsing the web page content by the user, thereby reducing the operation steps when the user searches the extension information manually, improving the man-machine interaction efficiency, and providing enhanced browsing service.
Based on the exemplary embodiment shown in fig. 2, the terminal may or may not display a button control on the first user interface. The following description will be made on the information recommendation method provided by the exemplary embodiments shown in fig. 4, 7, 10 and 12, in the case that the terminal displays a button control on the first user interface; the information recommendation method provided by the exemplary embodiment shown in fig. 16 is explained for the case that the terminal does not display the button control on the first user interface.
Fig. 4 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, wherein the application program can be a browser or an application program with a webpage browsing function, and the method comprises the following steps:
In step 201, a first user interface is displayed that includes a first web page, the web page content of the first web page including target information.
The terminal displays a first webpage on a first user interface. Optionally, the first web page is an own service web page provided by an own web server opened by the browser; optionally, the first webpage is a third-party webpage provided by a third-party server opened by the browser; optionally, the first web page is an own service web page or a third party web page opened by an application program having a web browsing function.
The webpage content in the first webpage comprises target information, and the target information is a representative word in the webpage content.
In step 202, after confirming that the target information is identified, a button control is displayed on the first user interface.
After the terminal obtains the first URL of the first webpage, the terminal sends the first URL of the first webpage to the server; the server receives a first URL of a first webpage and extracts target information in the first webpage according to the first URL; the server extracts the target information and transmits an extraction confirmation signal to the terminal, wherein the extraction confirmation signal is used for indicating that the target information is successfully extracted. And after receiving the extraction confirmation signal, the terminal displays a button control on the first user interface.
Optionally, the terminal acquires the webpage content of the first webpage, and displays the button control on the first user interface after identifying the target information in the webpage content through the terminal.
In one possible implementation, the terminal displays a button control on the left or right side of the address bar on the first user interface. The address field is a field for displaying a web page address of the first web page.
Optionally, if the terminal receives a sliding operation on the first user interface during the process of browsing the first web page by the user, the address bar may be hidden when the web page content of the first web page slides upwards. When the address bar is hidden by sliding, a button control is displayed superimposed on an edge region of the first user interface.
Optionally, a button control is displayed superimposed on the top area on the first user interface.
In the two cases, after the terminal receives at least one type of expansion information recommended based on the target information, the button control is changed from the first shape to the second shape, and summary information of the expansion information is displayed on the button control in the second shape.
Optionally, the first shape has a first area, the second shape has a second area, the second area is larger than the first area, the button of the first shape is used for displaying a button name, and the button of the second shape is used for displaying summary information of the extension information.
The first shape includes, but is not limited to: at least one of the shape of the eye, a circle, an oval, a square, a diamond, and a lip. The second shape includes, but is not limited to: at least one of round, oval, square, rounded rectangle, and corner-cut rectangle.
Optionally, the summary information includes an information summary of the extension information, or first m characters of the extension information, or a resource domain category to which the extension information belongs.
In another possible implementation manner, the terminal receives a triggering operation acting on the first webpage, where the triggering operation includes, but is not limited to, at least one of a long press operation, a pressure touch operation, a double-finger press operation, a double-finger joint click operation, a suspension touch operation, and a multiple-click operation; and displaying an auxiliary toolbar in a superposition mode on the first user interface according to the triggering operation, wherein the auxiliary toolbar comprises button controls. Optionally, the auxiliary toolbar further comprises at least one of a copy button control, a paste button control, a search button control and a share button control.
In step 203, the trigger operation received on the button control is determined as a shortcut operation.
The terminal receives a triggering operation on a button control on a first user interface, the triggering operation including but not limited to: at least one of long press operation, pressure touch operation, multi-click operation, suspension touch operation and single click operation.
And determining the triggering operation as a shortcut operation, wherein the shortcut operation is used for triggering the second user interface to be displayed in a superimposed manner on the first user interface.
In step 204, at least one type of extension information recommended based on the target information is acquired.
Optionally, the terminal acquires a first URL of the first web page; transmitting a first URL of a first webpage to a server through a wireless network or a wired network; the server acquires target information in a first webpage according to the first URL; the server determines at least one resource domain library corresponding to the target information, and the resource domain library is constructed after information extraction is carried out on the offline webpage library; the server queries at least one type of expansion information corresponding to the target information from at least one resource domain, and each type of expansion information corresponds to a respective resource domain; the server obtains at least one kind of expansion information recommended based on the target information and sends the at least one kind of expansion information to the terminal.
The terminal receives at least one kind of extension information recommended by the server based on the target information.
In step 205, a second user interface is generated based on the at least one type of extension information.
Optionally, the terminal classifies at least one type of the extension information into different display areas according to the category of the resource field to which each type of the extension information belongs, and then generates a second user interface.
Categories of resource domains include, but are not limited to: at least one of encyclopedia information, question-answer community information, literature work information, movie work information, hot news information, social network information, location information, merchant information, commodity information.
In step 206, the upper content of the second user interface is displayed superimposed on the lower half of the first user interface.
And the terminal displays the upper half content of the second user interface on the lower half of the first user interface in a two-dimensional superposition mode. If the first user interface is divided into an upper half and a lower half according to a central horizontal line, the lower half refers to an interface area where all or most of the area is located in the lower half.
The upper content refers to the content of the generated second user interface displayed in the upper half of the screen. The lower half refers to the lower half of the first user interface displayed on the screen.
In step 207, when a pull-up operation is received on the upper content, the second user interface is slid up and displayed superimposed on the first user interface.
The terminal receives a pull-up operation on the upper half content of the second user interface, wherein the pull-up operation is an operation that a user touches the screen and a slide-up gesture occurs on the screen, the second user interface slides upwards along with the pull-up operation, and finally the terminal displays the second user interface on the first user interface in a two-dimensional superposition mode.
Referring to fig. 5, the terminal displays a first user interface 11, and after identifying target information in web content of a first web page, a button control 12 is displayed on the first user interface 11. The terminal receives the shortcut operation triggered on the button control 12, and displays the upper half content 21 of the second user interface 22 in a superimposed manner on the lower half of the first user interface 11. The terminal receives a pull-up operation on the upper part of the content 21 of the second user interface 22, the second user interface 22 slides upwards, and finally the terminal displays the second user interface 22 superimposed on the first user interface 11.
As another possible implementation manner, the terminal further displays at least one kind of extension information at the bottom of the first user interface. At this time, if the user does not trigger the display of the second user interface, at least one type of extension information may be viewed at the bottom of the first user interface. Referring to fig. 6 schematically, the terminal displays extension information 23 at the bottom of the text of the web page content, and the extension information 23 may be the extension information ranked in the top n bits in correlation with the target information.
In summary, according to the information recommendation method provided by the disclosure, in the process of browsing the web page content of the first web page by the user, after the shortcut operation is received on the first user interface, the second user interface including at least one type of extension information is displayed, so that the at least one type of extension information can be recommended to the user through one shortcut operation in the process of browsing the web page content by the user, thereby reducing the operation steps when the user searches the extension information manually, improving the man-machine interaction efficiency, and providing enhanced browsing service.
In addition, when the terminal displays at least one kind of recommended extension information, the upper half content of the second user interface is displayed in a superposition mode on the lower half of the first user interface, and a user can browse the webpage content of the first webpage and the extension information on the second user interface, wherein the webpage content and the extension information are included on the first user interface.
The information recommending function may be called as a fine search function, a quick search function, a discovery function, or the like, which is not limited in this application.
Fig. 7 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, wherein the application program can be a browser or an application program with a webpage browsing function, and the method comprises the following steps:
in step 301, a first user interface is displayed that includes a first web page, the web page content of the first web page including target information.
Details of this step are seen in step 201.
In step 302, a first URL of a first web page is obtained.
The terminal obtains a first URL of a first webpage.
In step 303, a first URL of a first web page is sent to a server.
The terminal transmits a first URL of the first web page to the server through the wireless network or the wired network.
In step 304, after confirming that the target information is identified, a button control is displayed on the left or right side of the address bar on the first user interface.
The terminal sends a first URL of a first webpage to the server; the server receives a first URL of a first webpage and identifies target information in webpage content of the first webpage according to the first URL; the server identifies the target information and sends feedback information identifying the target information to the terminal; and the terminal receives feedback information identifying the target information, and a button control is displayed on the left side or the right side of the address bar on the first user interface.
Optionally, after obtaining the web content of the first web page, the terminal identifies target information in the web content, and then displays a button control on the left side or the right side of the address bar on the first user interface.
Typically, when a third-party webpage is opened, the browser displays a rectangular address bar in the top area of the first user interface, where the address bar includes the URL of the third-party webpage.
In step 305, at least one type of extension information fed back by the server is received.
The server searches related expansion information according to target information in the webpage content of the first webpage, obtains at least one type of expansion information, and sends the at least one type of expansion information to the terminal.
The terminal receives at least one kind of extension information fed back by the server.
In step 306, when the address bar is hidden by the slide, a button control is displayed superimposed on an edge area of the first user interface.
In the process of browsing the webpage by the user, the terminal receives a sliding operation on the first user interface, and when the first user interface slides upwards, the address bar may be hidden. And when the address bar is hidden by sliding, a button control is overlapped and displayed on the edge area of the first user interface.
Alternatively, this step need not be performed when the address bar is not or cannot be slide-hidden.
In step 307, the button control is changed from the first shape to a second shape, and summary information of the extension information is displayed on the button control of the second shape.
After the terminal obtains at least one type of expansion information, the button control is changed from a first shape to a second shape, and summary information of the expansion information is displayed on the button control in the second shape.
Optionally, the first shape has a first area, the second shape has a second area, the second area is larger than the first area, the button of the first shape is used for displaying a button name, and the button of the second shape is used for displaying summary information of the extension information.
The first shape includes, but is not limited to: at least one of the shape of the eye, a circle, an oval, a square, a diamond, and a lip. The second shape includes, but is not limited to: at least one of round, oval, square, rounded rectangle, and corner-cut rectangle.
Optionally, the summary information includes an information summary of the extension information, or first m characters of the extension information, or a resource domain category to which the extension information belongs.
Referring to fig. 8, the terminal displays a first user interface 31 including a first web page, the first user interface 31 including an address bar. When the server recognizes the target information, the terminal displays a button control 32 on the right side of the address bar of the first user interface 31. When the address bar is hidden by the slide, a button control 33 is displayed superimposed on the right edge area of the first user interface 31. The button control 33 is obtained by changing the button control 32 from a first shape to a second shape after the terminal obtains at least one type of extension information, and the control button 33 in the second shape may be a control button 34 displaying summary information of the extension information.
Alternatively, the button control (or the button control in the second state) may be changed in position by selecting a drag operation, and the button control enters the semi-hidden state when the button control is less than a preset minimum distance from the edge area. Referring to fig. 9 schematically, the user selects the button control 33 in the second shape of the right edge area, drags the button control 33 to the left edge area, and when the distance between the button control and the edge area is smaller than the preset minimum distance, the button control 33 displays the button control 35 in the semi-hidden state, which is called as the adsorption function for short.
This step is an optional step, and the shape of the button control may also remain unchanged.
In step 308, the trigger operation received on the button control is determined to be a shortcut operation.
The terminal receives a triggered shortcut operation on the button control, wherein the shortcut operation comprises at least one of a single click operation, a long press operation, a pressure touch operation and a multi-click operation. The shortcut operation is used to trigger the display of the second user interface.
In step 309, a second user interface is generated from the at least one type of extension information.
And after receiving the shortcut operation, the terminal generates a second user interface according to at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information. Content information on the second user interface includes, but is not limited to: target information corresponding to the extension information, the belonging resource field and abstract information.
In step 310, the upper content of the second user interface is displayed superimposed on the lower half of the first user interface.
Details of this step are seen in step 206.
In step 311, when the upper content receives the pull-up operation, the second user interface is slid upward and displayed superimposed on the first user interface.
Details of this step are shown in step 207.
In summary, according to the information recommendation method provided by the disclosure, in the process of browsing the web page content of the first web page by the user, after the shortcut operation is received on the first user interface, the second user interface including at least one type of extension information is displayed, so that the at least one type of extension information can be recommended to the user through one shortcut operation in the process of browsing the web page content by the user, thereby reducing the operation steps when the user searches the extension information manually, improving the man-machine interaction efficiency, and providing enhanced browsing service.
In addition, when the terminal displays at least one kind of recommended extension information, the upper half content of the second user interface is displayed in a superposition mode on the lower half of the first user interface, and a user can browse the webpage content of the first webpage and the extension information on the second user interface, wherein the webpage content and the extension information are included on the first user interface.
In the above embodiment, the terminal displays the button control in the address bar, so that shielding of the content information on the first user interface is avoided. The terminal can also change the shape of the button control and display abstract information of the extension information, so that a user can know the category of the extension information under the condition that the second user interface is not opened, and a reference is provided for the user to decide whether the second user interface is to be opened.
Fig. 10 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of the terminal, and the application program can be a browser or an application program with a webpage browsing function.
Illustratively, if the first web page opened by the browser is not a third party web page, but is an own service web page, since the display of the own service web page on the first user interface will not normally display an address bar, the terminal will display a button control in the top area of the first user interface, step 304 in the exemplary embodiment shown in fig. 7 may be replaced with step 404, and step 306 is not present, as shown in fig. 10:
in step 404, after the target information is identified, a button control is displayed in a top area on the first user interface.
The terminal sends the webpage content of the first webpage to the server; the server receives the webpage content of the first webpage and identifies target information in the webpage content; the server identifies the target information and sends feedback information identifying the target information to the terminal; and the terminal receives feedback information identifying the target information, and a button control is displayed in the top area on the first user interface.
Optionally, after obtaining the web content of the first web page, the terminal identifies target information in the web content, and then displays a button control in a top area on the first user interface.
As an alternative implementation, the terminal may also superimpose a button control on the web content of the first web page, where the button control may be in the form of a bubble.
After step 305, step 307 is entered directly to change the button control from the first shape to the second shape.
Referring to fig. 11 schematically, the terminal displays a first user interface 11, the first user interface 11 includes a first web page that is an own service web page, and after identifying target information in the web page content of the first web page, a button control 12 is displayed on the first user interface 11. After the terminal obtains at least one type of expansion information, the button control 12 is changed from the first shape to the second shape, such as a control button 41, and the control button 41 comprises text bubbles for displaying summary information "finely detected related content" of the expansion information.
In summary, according to the information recommendation method provided by the disclosure, in the process of browsing the web page content of the first web page by the user, after the shortcut operation is received on the first user interface, the second user interface including at least one type of extension information is displayed, so that the at least one type of extension information can be recommended to the user through one shortcut operation in the process of browsing the web page content by the user, thereby reducing the operation steps when the user searches the extension information manually, improving the man-machine interaction efficiency, and providing enhanced browsing service.
In addition, when the terminal displays at least one kind of recommended extension information, the upper half content of the second user interface is displayed in a superposition mode on the lower half of the first user interface, and a user can browse the webpage content of the first webpage and the extension information on the second user interface, wherein the webpage content and the extension information are included on the first user interface.
In the above embodiment, the terminal displays the button control in the top area of the first user interface, so that shielding of the content information on the first user interface is avoided. The terminal can also change the shape of the button control and display abstract information of the extension information, so that a user can know the category of the extension information under the condition that the second user interface is not opened, and a reference is provided for the user to decide whether the second user interface is to be opened.
Fig. 12 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, wherein the application program can be a browser or an application program with a webpage browsing function, and the method comprises the following steps:
in step 501, a first user interface is displayed that includes a first web page, the web page content of the first web page including target information.
Details of this step are seen in step 201.
In step 502, a first URL of a first web page is obtained.
The terminal obtains a first URL of a first webpage.
In step 503, web page content of the first web page is sent to the server.
The terminal transmits a first URL of the first web page to the server through the wireless network or the wired network.
In step 504, a trigger operation is received for the first web page, the trigger operation including at least one of a long press operation, a pressure touch operation, a double-finger press operation, a double-finger click operation, a hover touch operation, and a multiple click operation.
Since the first user interface including the first web page is displayed by the application program having the web browsing function, the button control cannot be automatically displayed, the triggering operation is used to trigger the display of the button control on the first user interface.
In step 505, an auxiliary toolbar is displayed superimposed on the first user interface in accordance with the triggering operation, the auxiliary toolbar including button controls.
And the terminal displays an auxiliary toolbar in a superposition manner on the local area of the first user interface according to the triggering operation, wherein the auxiliary toolbar comprises button controls. The localized area includes, but is not limited to, an adjacent area of the interface area that receives the triggering operation.
Referring to fig. 13, a trigger operation is received on the "article content" of the first user interface 51, and the terminal superimposes and displays an auxiliary toolbar 52 in a partial area, and the auxiliary toolbar 52 includes a button control 53. Optionally, referring to fig. 14, the terminal superimposes and displays an auxiliary toolbar 54 in a partial area, and the auxiliary toolbar 54 includes a button control 55. In fig. 13 and 14, after the terminal receives at least one type of extension information, a button control 62 of a second shape is displayed on the first user interface 61, and the button control 62 is in a semi-hidden state.
In step 506, the trigger operation received on the button control is determined to be a shortcut operation.
The terminal receives a triggered shortcut operation on the button control, wherein the shortcut operation comprises at least one of a single click operation, a long press operation, a pressure touch operation and a multi-click operation. The shortcut operation is used for triggering and displaying a second user interface generated according to at least one kind of extension information.
In step 507, at least one type of extension information fed back by the server is received.
The server searches related expansion information according to target information in the webpage content of the first webpage, obtains at least one type of expansion information, and sends the at least one type of expansion information to the terminal.
The terminal receives at least one kind of extension information fed back by the server.
In step 508, a second user interface is generated based on the at least one type of extension information.
And after receiving the shortcut operation, the terminal generates a second user interface according to at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information. Content information on the second user interface includes, but is not limited to: target information corresponding to the extension information, the belonging resource field and abstract information.
In step 509, the terminal superimposes and displays a second user interface on the first user interface, where the second user interface includes at least one type of extension information recommended based on the target information.
The terminal displays a second user interface generated according to the at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information.
Optionally, the second user interface includes at least two kinds of extension information displayed in groups according to categories, and the extension information is content information associated with the target information.
Categories of resource domains include, but are not limited to: at least one of encyclopedia information, question-answer community information, literature work information, movie work information, hot news information, social network information, location information, merchant information, commodity information.
Optionally, the terminal displays the second user interface in a superimposed manner on the first user interface in an area except for the title bar, or displays the second user interface in a superimposed manner on the whole area of the first user interface. Optionally, a function of displaying or hiding the second user interface may be implemented on the second user interface.
Referring to fig. 15, when the terminal receives a shortcut operation on the button control, the second user interface 22 is displayed, the second user interface 22 is extended information recommended based on the target information, and the extended information is displayed in the form of a card on the second user interface 22 with the target information+resource area as granularity.
In summary, according to the information recommendation method provided by the disclosure, in the process of browsing the web page content of the first web page by the user, after the shortcut operation is received on the first user interface, the second user interface including at least one type of extension information is displayed, so that the at least one type of extension information can be recommended to the user through one shortcut operation in the process of browsing the web page content by the user, thereby reducing the operation steps when the user searches the extension information manually, improving the man-machine interaction efficiency, and providing enhanced browsing service.
In addition, the method enables a user to obtain the extension information through two interactive actions with the terminal when browsing a webpage opened in an application program with a webpage browsing function.
Fig. 16 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of the terminal, and the application program can be a browser or an application program with a webpage browsing function.
It should be noted that, in the application program with the web browsing function, the user may trigger to display the second user interface generated according to the at least one type of extension information through the pull-down operation, and then step 504, step 505 and step 506 in the exemplary embodiment shown in fig. 12 may be combined and replaced with step 604, as shown in fig. 16:
in step 604, a drag operation directed in a preset direction on the first user interface is received, and the drag operation is determined as a shortcut operation.
Optionally, if the application program is a third party non-browser program that invokes a browser kernel to implement a web browsing function, since the first user interface is displayed by the application program having the web browsing function, the browser kernel cannot directly display a button control on the first user interface, so that the browser kernel may trigger to display the second user interface by receiving a drag operation.
The preset direction includes: at least one of an upward direction, a downward direction, a leftward direction, and a rightward direction. Taking a downward direction as an example, the pull-down operation is an operation in which a touch event occurs on the first user interface and a trigger function is implemented by a sliding operation on the terminal screen.
Referring to fig. 17, when the terminal receives a drag operation on the first user interface 61, a user interface 63 of an intermediate process is displayed, the drag operation being determined as a shortcut operation. After the drag operation is ended, the user interface 63 jumps to the second user interface 22. Finally, the terminal displays a second user interface 22.
Optionally, the second user interface includes at least two kinds of extension information displayed in groups according to categories, and the extension information is content information associated with the target information.
Categories of resource domains include, but are not limited to: at least one of encyclopedia information, question-answer community information, literature work information, movie work information, hot news information, social network information, location information, merchant information, commodity information.
Referring schematically to fig. 18, the second user interface shown in fig. 18 includes extended information obtained by exploring the target information "entertainment star Zhang Mou", "body tie Li Mou" and "Sichuan chafing dish", wherein the extended information includes encyclopedia, film and television, question and answer and criticizing information in a plurality of resource domain categories.
In summary, according to the information recommendation method provided by the disclosure, in the process of browsing the web page content of the first web page by the user, after the shortcut operation is received on the first user interface, the second user interface including at least one type of extension information is displayed, so that the at least one type of extension information can be recommended to the user through one shortcut operation in the process of browsing the web page content by the user, thereby reducing the operation steps when the user searches the extension information manually, improving the man-machine interaction efficiency, and providing enhanced browsing service.
In addition, the method enables a user to obtain extension information through one interactive action with the terminal when browsing a webpage opened in an application program with a webpage browsing function.
Fig. 19 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The embodiment is exemplified by the application of the method to the server shown in fig. 1. The method comprises the following steps:
in step 701, a first URL of a first web page sent by a terminal is received, where the first URL is sent by the terminal after displaying a first user interface, and the first user interface includes the first web page.
The server receives a first URL of a first webpage sent by the terminal. Optionally, the terminal sends the first URL and/or the target information of the first web page to the server, and the server receives the first URL and/or the target information of the first web page.
Optionally, the web page content is a file written in HTML. The web page content includes at least one of text, pictures, audio, video, code, and script.
In step 702, target information is extracted from web content of a first web page.
And the server performs text processing on the text of the webpage content of the first webpage to acquire target information in the webpage content. The target information is representative information in the web page content. The target information includes, but is not limited to: entity words, event names, and topics. The entity words include, but are not limited to: at least one of a person name, a place name, a film and television work name, a literature work name, a place, a merchant name and a commodity name; the event refers to an event name extracted from a hot news webpage, wherein the hot news webpage is obtained by statistics according to the click rate and/or the exposure rate of a user on the news webpage on a network; theme refers to the title or subtitle of a web page.
Optionally, the server performs word segmentation processing on the webpage content of the first webpage, and performs part-of-speech tagging on the word segmentation result; filtering the segmentation result according to the part-of-speech tagging result, for example, the server filters words with target parts of speech in the segmentation result according to the part-of-speech tagging result, wherein the target parts of speech comprises at least one of adjectives, differential words, numerical words, adverbs, pronouns, prepositions, conjunctions, auxiliary words, sighing and personification. The server extracts the target information from the filtered words.
Optionally, after the server successfully extracts the target information from the web page content, an extraction success signal may also be sent to the terminal, where the extraction success signal is used to indicate to the terminal that the target information in the first web page has been successfully extracted.
In step 703, at least one resource domain library corresponding to the target information is determined, and the resource domain library is constructed after information extraction on the offline web page.
Optionally, at least one resource domain library is pre-stored or connected to the server. Each resource domain library corresponds to each resource category, and each resource domain library is constructed by acquiring web pages on each website through a server, storing the web pages offline, and extracting information from the offline web pages. Resource categories of the resource domain library include, but are not limited to: at least one of character encyclopedia, geography encyclopedia, event encyclopedia, question and answer library, topic ring, various vertical field websites, various vertical field forums, various vertical field channels, microblogs and social websites.
Optionally, the server stores a correspondence between the target information and the resource domain library. Or, the server stores the corresponding relation between the part of speech of the target information and the resource domain library. Table one shows the correspondence schematically.
List one
Optionally, after the server determines the target information, the server queries the detail data of the target information. The detail data comprises at least one kind of data in entity word classification, event association articles and event process sets. And then, the server determines a resource domain library corresponding to the target information according to the detail data of the target information.
The form of determining the resource domain library corresponding to the target information by the server is not limited in this embodiment.
At step 704, at least one type of extension information corresponding to the target information is queried from at least one resource domain library, each type of extension information corresponding to a respective resource domain.
After determining the resource domain libraries corresponding to the target information, the server queries the expansion information corresponding to the target information in each resource domain library, and takes the expansion information queried in each resource domain library as a type of expansion information. That is, each type of extension information corresponds to a respective resource domain (or resource domain, or resource class of resource domain).
For example, if the target information is star a, the server queries encyclopedia information corresponding to star a in encyclopedia of characters as first type extension information; inquiring question-answer information corresponding to the star A in a question-answer library as second-class extension information; inquiring topic information corresponding to the star A in the topic ring as third-class expansion information; and querying a forum post corresponding to the star A in the star forum as fourth type extension information, and the like, which are not described in detail.
In step 705, at least one type of extension information is sent to the terminal.
After the server inquires at least one kind of expansion information corresponding to the target information, the server sends the at least one kind of expansion information to the terminal.
In summary, in the information recommendation method for a web page display process provided in the embodiments of the present disclosure, by receiving web page content of a first web page sent by a terminal, the web page content is sent after a shortcut operation triggered by the terminal on the received first user interface, where the first user interface includes the first web page; extracting target information from web page content of a first web page; determining at least one resource domain library corresponding to the target information, wherein the resource domain library is constructed after information extraction is performed on an offline webpage library; inquiring at least one type of expansion information corresponding to the target information from at least one resource domain, wherein each type of expansion information corresponds to a respective resource domain; and transmitting at least one kind of extension information to the terminal. The method intelligently recommends related contents of the browsed webpage contents for the user, reduces steps of manually inquiring the related contents for the user, and provides enhanced browsing service.
In addition, the information recommendation method in the embodiment of the disclosure constructs the resource domain library by acquiring the offline webpage information, so that the terminal can acquire the extension information in a short time, and in the related art, if the terminal needs 10 seconds to acquire the extension information through online query, the terminal can acquire the extension information from the resource domain library in 1 second or a few seconds by caching the offline webpage information in advance.
In an alternative embodiment based on fig. 19, the server continuously collects and extracts offline web pages to obtain a resource domain library. Reference is made schematically to the following examples.
Fig. 20 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The embodiment is exemplified by the application of the method to the server shown in fig. 1. The method comprises the following steps:
pretreatment: and an offline webpage collecting and processing stage.
In step 801, offline web page information is acquired, the offline web page information including a correspondence between URLs and web page content.
The server sends push requests to various web servers. After receiving the pushing request, each website server pushes each webpage to the server regularly; or pushing the new web page to the server when the new web page exists.
Optionally, each type of website server sends the corresponding relation between the URL and the web page content to the server. Table two schematically shows the correspondence.
Watch II
| URL | Web page content |
| URL1 | News web page content 1 |
| URL2 | Question and answer web page content 2 |
| URL3 | Content of topic ring 1 |
| URL4 | Forum post 1 |
In step 802, redundant information in the URL is filtered to obtain a normalized URL; wherein the redundant information is information in the URL which is irrelevant to the content of the pointed web page.
Typically, URLs sent by various types of web servers include: effective information related to pointing to web page content, and information unrelated to pointing to web page content. Information unrelated to pointing to web page content includes, but is not limited to: login information of the terminal, user account information, a current connection key and the like. Information that is not related to the content of the directed web page may simply be referred to as redundant information.
And for the URL of each offline webpage, the server removes redundant information in the URL to obtain a normalized URL. Alternatively, the normalized URL includes only valid information related to pointing to the web page content.
In step 803, the target information is extracted from the web page content.
For the web page content of each offline web page, the server extracts target information in the web page content.
Optionally, the server performs text processing on text in the webpage content of the offline webpage, and obtains target information in the webpage content. The target information is representative information in the web page content. The target information includes, but is not limited to: entity words, event names, and topics. The entity words include, but are not limited to: at least one of a person name, a place name, a film and television work name, a literature work name, a place, a merchant name and a commodity name; the event refers to an event name extracted from a hot news webpage, wherein the hot news webpage is obtained by statistics according to the click rate and/or the exposure rate of a user on the news webpage on a network; theme refers to the title or subtitle of a web page.
Optionally, the server performs word segmentation processing on the webpage content of the offline webpage, and performs part-of-speech labeling on the word segmentation result; filtering the segmentation result according to the part-of-speech tagging result, for example, the server filters words with target parts of speech in the segmentation result according to the part-of-speech tagging result, wherein the target parts of speech comprises at least one of adjectives, differential words, numerical words, adverbs, pronouns, prepositions, conjunctions, auxiliary words, sighing and personification. The server extracts the target information from the filtered words.
In step 804, a resource domain library corresponding to the target information is determined.
Optionally, at least one resource domain library (the initial state may be empty) is preset or connected to the server. Each resource domain library corresponds to a respective resource class. Resource categories of the resource domain library include, but are not limited to: at least one of character encyclopedia, geography encyclopedia, event encyclopedia, question and answer library, topic ring, various vertical field websites, various vertical field forums, various vertical field channels, microblogs and social websites.
Optionally, the server stores a correspondence between the target information and the resource domain library. Or, the server stores the corresponding relation between the part of speech of the target information and the resource domain library.
The form of determining the resource domain library corresponding to the target information by the server is not limited in this embodiment.
In step 805, the URL, target information, web page content are added to the resource domain library.
For each offline web page, the URL of the offline web page, the target information, and the web page content are added to the resource domain library. Alternatively, the URL of the offline web page is used as a key, and the target information and the web page content are stored as values. In some embodiments, the web content is processed web content.
Optionally, the server stores the corresponding relation among the URL, the target information and the webpage content to a resource domain library of the corresponding category.
Alternatively, the offline web page collection and processing process is performed continuously or periodically.
Information searching and information recommending stage:
in step 806, a first URL of a first web page sent by the terminal is received, the first URL being sent by the terminal after displaying a first user interface, the first user interface including the first web page thereon.
The server receives a first URL of a first webpage sent by the terminal. Optionally, the terminal sends the first URL and/or the target information of the first web page to the server, and the server receives the first URL and/or the target information of the first web page.
Optionally, the server filters the first URL to obtain a normalized first URL.
Optionally, the web content of the first web page is a file written in HTML. The web page content of the first web page includes at least one of text, pictures, audio, video, code, and script.
In step 807, target information is extracted from the web content of the first web page.
The processing in this step may refer to the processing in step 703, and this embodiment will not be described in detail.
Optionally, the server further detects whether the first URL exists in each resource domain library; when the first URL does not exist in any of the resource domain libraries, proceeding to step 808, and then proceeding to step 809; when there is at least one resource domain library where the first URL exists, step 809 is entered directly.
In step 808, when the first URL does not exist in the resource domain library, the first URL, the target information, and the web page content are added to the resource domain library.
When the first URL does not exist in any resource domain library, the server indicates that the web content related to the first URL is not recorded in the server, and the server may add the first URL, the target information and the web content to the resource domain library.
In step 809, at least one resource domain library corresponding to the target information is queried in the correspondence relationship, the correspondence relationship including a correspondence relationship between the target information and the resource domain library.
Optionally, the server stores a correspondence between the target information and the resource domain library. Or, the server stores the corresponding relation between the part of speech of the target information and the resource domain library. The correspondence is schematically shown in the above table.
The server determines at least one resource domain library corresponding to the target information in the corresponding relation.
At step 810, at least one type of extension information corresponding to the target information is queried from at least one resource domain library, each type of extension information corresponding to a respective resource domain.
After determining the resource domain libraries corresponding to the target information, the server queries the expansion information associated with the target information in each resource domain library, and takes the expansion information queried in each resource domain library as a type of expansion information. That is, each type of extension information corresponds to a respective resource domain (or resource domain, or resource class of resource domain).
For example, if the target information is star a, the server queries encyclopedia information corresponding to star a in encyclopedia of characters as first type extension information; inquiring question-answer information corresponding to the star A in a question-answer library as second-class extension information; inquiring topic information corresponding to the star A in the topic ring as third-class expansion information; and querying a forum post corresponding to the star A in the star forum as fourth type extension information, and the like, which are not described in detail.
Optionally, the extension information associated with the target information includes, but is not limited to: the method comprises the steps of expanding information with the existence similarity degree with the target information, expanding information with the existence relevance of attribute information of the target information, expanding information with the existence relevance of an event of the target information, expanding information with the existence time relevance of the target information and expanding information with the existence region relevance of the target information.
Optionally, the searched extension information is also referred to as recalled extension information.
In step 811, attribute parameters corresponding to the recalled at least two types of extension information are obtained.
Since the extension information recalled by the server may be multiple, the terminal only needs to display a limited number of extension information. Thus, the server may sort each type or each piece of extension information and then feed back the extension information sorted in the first n bits to the terminal.
Optionally, the server acquires attribute parameters corresponding to each piece of expansion information, wherein the attribute parameters comprise at least one of correlation between the expansion information and the target information, click exposure proportion of the expansion information and correlation between the expansion information and a user portrait of the terminal.
Optionally, the correlation between each web page content and the target information in the resource domain library is pre-calculated, for example, using TF-IDF (term frequency-inverse text frequency index) to calculate each web page content and the target information.
Optionally, the click exposure proportion of the extension information refers to the proportion of the user click view after the extension information is recommended to the user. For example, after the extended information is pushed to 100 persons, 76 persons click-refer to the extended information, and the click exposure ratio of the extended information is 76%. The click exposure proportion is recorded by the server in a self-accumulation way, or the click exposure proportion is pushed to the server by various website servers.
In step 812, for each class or each extension information, a quality score of the extension information is calculated from the attribute parameters of the extension information.
Optionally, each attribute parameter corresponds to a respective weight. For each piece of extension information, the weight sum of the extension information is calculated as the quality fraction of the extension information according to the attribute parameters and the respective weights of the extension information.
In step 813, at least one kind of expansion information to be recommended is selected according to the mass fraction.
Optionally, the server sorts the expansion information according to the mass fraction, sorts the expansion information sorted in the first n bits, and screens out at least one type of expansion information to be recommended to the terminal. Each type of extension information comprises at least one piece of extension information.
Optionally, the specific number of classes and numbers of extension information is configurable. Alternatively, the number of classes and pieces of extension information is dynamically determined according to the capabilities of the terminal, such as the screen size and resolution of the terminal.
At step 814, at least one type of extension information is sent to the terminal.
Optionally, the server feeds back at least one kind of extension information to the terminal. The extension information is used for generating and displaying a second user interface by the terminal.
In summary, in the information recommendation method provided in this embodiment, the web content of the first web page sent by the terminal is received, where the web content is sent after the terminal triggers a shortcut operation on the received first user interface, and the first user interface includes the first web page; extracting target information from web page content of a first web page; determining at least one resource domain library corresponding to the target information, wherein the resource domain library is constructed after information extraction is performed on an offline webpage library; inquiring at least one type of expansion information corresponding to the target information from at least one resource domain, wherein each type of expansion information corresponds to a respective resource domain; and transmitting at least one kind of extension information to the terminal. The method intelligently recommends related contents of the browsed webpage contents for the user, reduces steps of manually inquiring the related contents for the user, and provides enhanced browsing service.
In an illustrative example, fig. 21 is a flowchart of an offline data extraction flow in an information recommendation method of a web page display process according to an exemplary embodiment of the present disclosure. The embodiment is exemplified by the application of the method to the server shown in fig. 1. The process comprises the following steps:
In step 1001, execution of the flow starts.
In step 1002, various types of news web sites are requested to be pushed.
The server obtains off-line webpage information of various news websites, wherein the off-line webpage information comprises the corresponding relation between the URLs and webpage contents.
In step 1003, URL cleaning unification.
The server cleans redundant information in the URL to obtain a normalized URL; wherein the redundant information is information in the URL which is irrelevant to the content of the pointed web page.
In step 1004, web page content is extracted.
And acquiring the webpage content of the offline webpage from the terminal.
In step 1005, the text extracts core concept data.
The terminal extracts core concept data, also called target information, from the web content of the offline web page.
In step 1006, the web address, core concept data is cached.
And the terminal caches the website and core concept information of the target information to a resource domain library.
The terminal determines a resource domain library corresponding to the target information, and adds the URL, the target information and the webpage content to the corresponding resource domain library.
In step 1007, the above-described flow is ended.
In an illustrative example, fig. 22 is a flowchart of an information recommendation method of a web page display process provided by an exemplary embodiment of the present disclosure. The embodiment is exemplified by the application of the method to the server shown in fig. 1. The method comprises the following steps:
In step 1101, a user opens a web page initiation request.
After the user opens the first webpage, an information recommendation request is sent to the server. Optionally, the information recommendation request includes a URL of the first web page and web page content of the first web page. In some embodiments, the information recommendation request may include only the URL of the first web page, and the server may obtain the web page content of the first web page according to the URL.
In step 1102, the URL cleans up normalization.
And the server cleans the redundant information in the first URL to obtain the normalized URL. Wherein the redundant information is information in the first URL that is not related to the content of the directed web page.
In step 1103, the pre-stored data is read.
The server also extracts core concept data from the first webpage content, and reads pre-stored data from the cached offline data according to the core concept data. The core concept data is also the target information mentioned in the above embodiments.
In step 1104, it is determined whether the pre-stored data is hit.
Judging whether the offline data has data corresponding to the first URL; if not, go to step 1105; if so, step 1106 is entered.
In step 1105, data extraction is triggered.
Since the server does not record the web page content corresponding to the first URL, the server performs offline data extraction on the web page content corresponding to the first URL.
In step 1106, the knowledge-graph queries the associated information of the core concept data.
Alternatively, the knowledge graph is a network relationship graph obtained by connecting all different kinds of information together. That is, the server connects each core concept data and each category (part-of-speech category or entity word category) of the core concept data together to form a knowledge graph.
In step 1107, the specified domain resource is distributed and acquired according to the type of the core concept information and the detail data under the type.
The server is based on the type of core concept information in the first web page and the detail data under the type. And determining the appointed domain resource corresponding to the core concept information. The appointed domain resource is a resource domain library corresponding to the core concept information.
That is, the server determines resource domain libraries corresponding to the core concept information, and determines these resource domain libraries as the specified domain resources.
In step 1108, a specified domain resource is retrieved, the specified domain resource including, but not limited to, at least one of a consultation resource, a topic ring resource, and an automobile article resource.
In one illustrative example, the resource domain library includes a plurality of different categories of resource domain libraries, such as consultation resources, topic ring resources, automobile article resources, and the like. The server retrieves extension information corresponding to the core concept information in the specified domain resource.
Optionally, the server will retrieve the extension information as recalled extension information.
In step 1109, quality assessment of indicators such as resource relevance is recalled.
Optionally, the server calculates a quality score of each resource through correlation between the recalled resource and the core concept data, click exposure proportion of the resource, and correlation between the resource and the user portrait, and performs quality assessment according to the quality score of each resource.
Then, the server determines the resources ordered in the first n bits as the resources to be recommended to the terminal.
In step 1110, the UI card output display is composed with the term+resource domain as granularity.
The server sends the recalled resources to the terminal in the form of core concept information, resource field and extension information. The terminal forms each type of resource into UI cards according to the granularity of core concept information and resource field, and generates each UI card into a second user picture (or after the webpage content of the first webpage is added) to output and display for further reference of the user.
The following is a device embodiment of the present application, and for details of the device embodiment that are not described in detail, reference may be made to corresponding descriptions in the foregoing method embodiment, which are not described in detail herein.
Fig. 23 is a block diagram of an information recommending apparatus of a web page display process provided in an exemplary embodiment of the present disclosure. The apparatus may be implemented as a whole or as part of a terminal by software, hardware or a combination of both.
The device comprises:
a display module 1220 for displaying a first user interface including a first web page, the first web page including target information;
an interaction module 1240, configured to receive a shortcut operation triggered on the first user interface, where the shortcut operation is used to trigger an expanded search for target information;
the display module 1220 is configured to superimpose and display a second user interface on the first user interface, where the second user interface includes at least one type of extension information recommended based on the target information.
In an alternative embodiment, the display module 1220 is configured to display a button control on the first user interface after identifying the target information;
an interaction module 1240, configured to determine the triggering operation received on the button control as a shortcut operation.
In an alternative embodiment, the display module 1220 is configured to display the button control on the left or right side of the address bar on the first user interface.
In an alternative embodiment, the display module 1220 is configured to superimpose the display button control on the edge area of the first user interface when the address bar is slide-hidden.
In an alternative embodiment, the display module 1220 is configured to superimpose the button control on the top area on the first user interface or superimpose the button control on the web content of the first web page.
In an alternative embodiment, the display module 1220 is configured to change the button control from the first shape to the second shape, where summary information of the expanded information is displayed on the button control in the second shape.
In an alternative embodiment, the interaction module 1240 is configured to receive a triggering operation acting on the first web page, where the triggering operation includes at least one of a long press operation, a pressure touch operation, a double-finger press operation, a double-click operation of a finger joint, a hover touch operation, and a multiple-click operation;
and the display module 1220 is configured to superimpose and display an auxiliary toolbar on the first user interface according to the triggering operation, where the auxiliary toolbar includes a button control.
In an alternative embodiment, the interaction module 1240 is configured to receive a drag operation on the first user interface towards a preset direction, and determine the drag operation as a shortcut operation; the preset direction comprises the following steps: at least one of an upward direction, a downward direction, a leftward direction, and a rightward direction.
In an alternative embodiment, the display module 1220 includes:
an acquisition sub-module 1201, configured to acquire at least one type of extension information recommended based on the target information;
a generating sub-module 1202 for generating a second user interface according to the at least one type of extension information;
a display module 1220 for displaying the upper content of the second user interface on the lower half of the first user interface; when a pull-up operation is received on the top half of the content, the second user interface is slid upward and displayed superimposed on the first user interface.
In an alternative embodiment, the second user interface includes at least two kinds of extension information displayed in groups according to categories, and the extension information is content information associated with the target information;
the above categories include: at least one of encyclopedia information, question-answer community information, literature work information, movie work information, hot news information, social network information, location information, merchant information, commodity information.
In an alternative embodiment, the apparatus further comprises:
an acquisition module 1260, configured to acquire at least one type of extension information recommended based on the target information;
the display module 1220 is configured to display at least one type of extension information at the bottom of the web content of the first web page in the first user interface.
In an alternative embodiment, the acquisition submodule 1201 includes:
a transmitting unit 121 for transmitting a first uniform resource identifier URL of a first web page to a server;
and the receiving unit 122 is configured to receive at least one type of extension information fed back by the server.
Fig. 24 is a block diagram of an information recommending apparatus of a web page display process provided in another exemplary embodiment of the present disclosure. The apparatus may be implemented as all or part of a server by software, hardware, or a combination of both. The device comprises:
the receiving module 1301 is configured to receive a first uniform resource identifier URL of a first web page sent by a terminal, where the first URL is sent by the terminal after displaying a first user interface, and the first user interface includes the first web page.
The extracting module 1302 is configured to obtain target information in the first web page according to the first URL.
The determining module 1303 is configured to determine at least one resource domain library corresponding to the target information, where the resource domain library is constructed after information extraction of the offline web page library.
A query module 1304, configured to query at least one type of extension information corresponding to the target information from at least one resource domain, where each type of extension information corresponds to a respective resource domain.
And the sending module 1305 is used for sending at least one kind of extension information to the terminal.
In an alternative embodiment, the determining module 1303 is configured to query at least one resource domain library corresponding to the target information in a corresponding relationship, where the corresponding relationship includes a corresponding relationship between the target information and the resource domain library.
In an alternative embodiment, query module 1304 further comprises:
the obtaining sub-module 131 is configured to obtain attribute parameters corresponding to at least two types of recalled extension information, where the attribute parameters include: at least one of a correlation between the extension information and the target information, a click exposure ratio of the extension information, and a correlation between the extension information and a user representation of the terminal;
a calculating sub-module 132, configured to calculate, for each type or each extension information, a quality score of the extension information according to an attribute parameter of the extension information;
and the screening sub-module 133 is configured to screen at least one type of extension information to be recommended according to the mass fraction.
In an alternative embodiment, the apparatus further comprises:
An obtaining module 1306, configured to obtain offline web page information, where the offline web page information includes a correspondence between a uniform resource identifier URL and web page content;
an extracting module 1302, configured to extract target information from web page content;
a determining module 1303, configured to determine a resource domain library corresponding to the target information;
the caching module 1307 is configured to add the URL, the target information, and the web page content to the resource domain library.
In an alternative embodiment, the apparatus further comprises:
a filtering module 1308, configured to filter redundant information in the URL to obtain a normalized URL; wherein the redundant information is information in the URL which is irrelevant to the content of the pointed web page.
In an alternative embodiment of the present invention,
a receiving module 1301, configured to receive a first URL of a first web page sent by a terminal;
the caching module 1307 is configured to obtain, when the first URL does not exist in the resource domain library, web page content of the first web page according to the first URL; extracting target information of the first webpage from webpage content of the first webpage; and adding the first URL, the target information of the first webpage and the webpage content into a resource domain library.
Fig. 25 shows a block diagram of an electronic device 2400 provided in an exemplary embodiment of the present application. The electronic device 2400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. The electronic device 2400 may also be referred to by other names as a user device, a portable electronic device, a laptop electronic device, a desktop electronic device, and so forth.
Generally, the electronic device 2400 includes: a processor 2401 and a memory 2402.
Processor 2401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 2401 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). Processor 2401 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit, central processor); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, processor 2401 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 2401 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 2402 may include one or more computer-readable storage media, which may be non-transitory. Memory 2402 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 2402 is used to store at least one instruction for execution by processor 2401 to implement the information recommendation method for a web page display process provided by the method embodiments in the present application.
In some embodiments, the electronic device 2400 may also optionally include: a peripheral interface 2403, and at least one peripheral. Processor 2401, memory 2402, and peripheral interfaces 2403 may be connected by bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 2403 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 2404, a touch display 2405, a camera 2406, an audio circuit 2407, and a power source 2408.
The peripheral interface 2403 may be used to connect at least one Input/Output (I/O) related peripheral to the processor 2401 and the memory 2402. In some embodiments, processor 2401, memory 2402, and peripheral interface 2403 are integrated on the same chip or circuit board; in some other embodiments, either or both of processor 2401, memory 2402, and peripheral interface 2403 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 2404 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 2404 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 2404 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 2404 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 2404 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuit 2404 may also include NFC (Near Field Communication ) related circuits, which are not limited in this application.
The display 2405 is used to display UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 2405 is a touch display, the display 2405 also has the ability to collect touch signals at or above the surface of the display 2405. The touch signal may be input to the processor 2401 as a control signal for processing. At this point, the display 2405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 2405 may be one, providing a front panel of the electronic device 2400; in other embodiments, the display 2405 may be at least two, respectively disposed on different surfaces of the electronic device 2400 or in a folded design; in still other embodiments, the display 2405 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 2400. Even more, the display 2405 may be arranged in an irregular pattern that is not rectangular, i.e., a shaped screen. The display 2405 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 2406 is used to capture images or video. Optionally, camera assembly 2406 includes a front camera and a rear camera. In general, a front camera is disposed on a front panel of an electronic device, and a rear camera is disposed on a rear surface of the electronic device. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 2406 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 2407 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, inputting the electric signals to the processor 2401 for processing, or inputting the electric signals to the radio frequency circuit 2404 for realizing voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple, and disposed at different locations of the electronic device 2400. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is then used to convert electrical signals from the processor 2401 or the radio frequency circuit 2404 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 2407 may also include a headphone jack.
The power source 2408 is used to power the various components in the electronic device 2400. The power source 2408 may be alternating current, direct current, disposable or rechargeable. When the power source 2408 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, electronic device 2400 also includes one or more sensors 2409. The one or more sensors 2409 include, but are not limited to: acceleration sensor 2410, gyroscope sensor 2411, pressure sensor 2412, fingerprint sensor 2414, optical sensor 2413, and proximity sensor 2414.
The acceleration sensor 2410 may detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with the electronic device 2400. For example, the acceleration sensor 2410 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 2401 may control the touch display 2405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 2410. The acceleration sensor 2410 may also be used for acquisition of motion data of a game or user.
The gyro sensor 2411 may detect a body direction and a rotation angle of the electronic device 2400, and the gyro sensor 2411 may collect 3D actions of the user on the electronic device 2400 in cooperation with the acceleration sensor 2410. Processor 2401 may implement the following functions based on the data collected by gyro sensor 2411: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 2412 may be disposed at a side frame of the electronic device 2400 and/or at an underlying layer of the touch display 2405. When the pressure sensor 2412 is disposed on a side frame of the electronic device 2400, a grip signal of the user on the electronic device 2400 may be detected, and the processor 2401 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 2412. When the pressure sensor 2412 is disposed at the lower layer of the touch display 2405, the processor 2401 performs control of the operability control on the UI interface according to the pressure operation of the user on the touch display 2405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 2413 is used to collect the ambient light intensity. In one embodiment, processor 2401 may control the display brightness of touch display 2405 based on the ambient light intensity collected by optical sensor 2413. Specifically, when the intensity of the ambient light is high, the display luminance of the touch display screen 2405 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 2405 is turned down. In another embodiment, the processor 2401 may also dynamically adjust the shooting parameters of the camera assembly 2406 according to the ambient light intensity collected by the optical sensor 2413.
A proximity sensor 2414, also referred to as a distance sensor, is typically disposed on a front panel of the electronic device 2400. The proximity sensor 2414 is used to capture the distance between the user and the front of the electronic device 2400. In one embodiment, when the proximity sensor 2414 detects a gradual decrease in the distance between the user and the front face of the electronic device 2400, the processor 2401 controls the touch display 2405 to switch from the bright screen state to the off screen state; when the proximity sensor 2414 detects that the distance between the user and the front of the electronic device 2400 gradually increases, the processor 2401 controls the touch display 2405 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 25 is not limiting of the electronic device 2400 and may include more or fewer components than shown, or may combine certain components, or employ a different arrangement of components.
Fig. 26 further provides a server, where the server includes a processor and a memory, and at least one instruction is stored in the memory, where the at least one instruction is loaded and executed by the processor to implement an information recommendation method for a web page display procedure provided in the foregoing method embodiments. It should be noted that the server may be a server as provided in fig. 26 below.
Referring to fig. 26, a schematic structural diagram of a server according to an exemplary embodiment of the present application is shown. Specifically, the present invention relates to a method for manufacturing a semiconductor device. The server 2500 includes a Central Processing Unit (CPU) 2501, a system memory 2504 including a Random Access Memory (RAM) 2502 and a Read Only Memory (ROM) 2503, and a system bus 2505 connecting the system memory 2504 and the central processing unit 2501. The server 2500 also includes a basic input/output system (I/O system) 2506, which helps to transfer information between the various devices within the computer, and a mass storage device 2507 for storing an operating system 2513, application programs 2514, and other program modules 2515.
The basic input/output system 2506 includes a display 2508 for displaying information and an input device 2509, such as a mouse, keyboard, etc., for user input of information. Wherein the display 2508 and input device 2509 are connected to the central processing unit 2501 through an input output controller 2510 connected to the system bus 2505. The basic input/output system 2506 can also include an input/output controller 2510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input/output controller 2510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 2507 is connected to the central processing unit 2501 through a mass storage controller (not shown) connected to the system bus 2505. The mass storage device 2507 and its associated computer-readable media provide non-volatile storage for the server 2500. That is, the mass storage device 2507 may include a computer readable medium (not shown) such as a hard disk or CD-ROI drive.
The computer readable medium may include computer storage media and communication media without loss of generality. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the one described above. The system memory 2504 and mass storage device 2507 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 2501, the one or more programs containing instructions for implementing the above-described method of interacting in a short video program, the central processing unit 2501 executing the one or more programs to implement the information recommendation method of the web page display process provided by the respective method embodiments described above.
The server 2500 may also be operated through a network, such as the internet, connected to a remote computer on the network, according to various embodiments of the present invention. That is, the server 2500 may be connected to the network 2512 through a network interface unit 2511 connected to the system bus 2505, or alternatively, the network interface unit 2511 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs stored in the memory, the one or more programs including steps executed by the server in the information recommendation method for performing the web page display process provided by the embodiment of the present invention.
The application also provides a computer readable storage medium, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the readable storage medium, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the information recommendation method of the webpage display process provided by the method embodiment.
The application also provides a computer program product which, when run on an electronic device, causes the electronic device to execute the information recommendation method of the webpage display process in the above method embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.