CN108363707B - Method and device for generating webpage - Google Patents

Method and device for generating webpage Download PDF

Info

Publication number
CN108363707B
CN108363707B CN201710057348.8A CN201710057348A CN108363707B CN 108363707 B CN108363707 B CN 108363707B CN 201710057348 A CN201710057348 A CN 201710057348A CN 108363707 B CN108363707 B CN 108363707B
Authority
CN
China
Prior art keywords
pushed
preset
information
keyword
search keyword
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710057348.8A
Other languages
Chinese (zh)
Other versions
CN108363707A (en
Inventor
韩基超
胡旷
王存玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710057348.8A priority Critical patent/CN108363707B/en
Priority to KR1020170125821A priority patent/KR102023999B1/en
Priority to JP2017194577A priority patent/JP6449961B2/en
Publication of CN108363707A publication Critical patent/CN108363707A/en
Application granted granted Critical
Publication of CN108363707B publication Critical patent/CN108363707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method and a device for generating a webpage. One embodiment of the method comprises: receiving a search request sent by a client, wherein the search request comprises a search keyword; acquiring an information set to be pushed corresponding to the search keyword; determining an association type between the search keyword and a preset keyword set; determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set; and setting each piece of information to be pushed on the webpage according to the determined pushing position to generate a new webpage. The embodiment improves the information pushing efficiency.

Description

Method and device for generating webpage
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of internet technologies, and in particular, to a method and an apparatus for generating a web page.
Background
Information push, also called "network broadcast", is a technology for reducing information overload by pushing information required by users on the internet through a certain technical standard or protocol. The information push technology can reduce the time spent by a user in searching on the network by pushing information to the user.
However, the existing information push platform only provides a push manner for the brand word, that is, only when the user searches for the brand word, the push information related to the brand word is pushed to the user, and when the user searches for the word around the brand word, the push information cannot be accurately identified, so that the information push efficiency is low.
Disclosure of Invention
It is an object of the present application to provide an improved method and apparatus for generating a web page, which solves the technical problems mentioned in the background section above.
In a first aspect, the present application provides a method for generating a web page, the method comprising: receiving a search request sent by a client, wherein the search request comprises a search keyword; acquiring an information set to be pushed corresponding to the search keyword; determining an association type between the search keyword and a preset keyword set; determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set; and setting each piece of information to be pushed on the webpage according to the determined pushing position to generate a new webpage.
In some embodiments, obtaining a set of information to be pushed corresponding to the search keyword includes: and acquiring an information set to be pushed corresponding to the search keyword from the general information database to be pushed and a preset information database to be pushed corresponding to the preset keyword.
In some embodiments, the preset keyword set includes preset keywords and corresponding words around the preset keywords; and determining the association type between the search keyword and a preset keyword set, including: determining a matching relation between the search keyword and a preset keyword and peripheral words of the preset keyword based on a semantic analysis result of the search keyword; and determining the association type between the search keyword and a preset keyword set based on the determined matching relationship.
In some embodiments, the association types include a first association type and a second association type; and determining the association type between the search keyword and a preset keyword set based on the determined matching relationship, wherein the association type comprises the following steps: when the matching degree of the search keyword and the preset keyword is greater than a first preset threshold value or the matching degree of the search keyword and words around the preset keyword is greater than a second preset threshold value, determining the association type between the search keyword and the preset keyword set as a first related type; and when the matching degree of the search keyword and the preset keyword is not more than a first preset threshold value and the matching degree of the search keyword and the words around the preset keyword is not more than a second preset threshold value, determining the association type between the search keyword and the preset keyword set as a second association type.
In some embodiments, the association type includes a first association type and a second association type, and the preset keywords in the preset keyword set include a plurality of preset keywords; and determining the association type between the search keyword and a preset keyword set based on the determined matching relationship, wherein the association type comprises the following steps: when the matching degree of the search keyword and only one preset keyword in the preset keyword set is greater than a first preset threshold value or the matching degree of the search keyword and words around the preset keyword of only one preset keyword is greater than a second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a first correlation type; when the matching degree of the search keyword and at least two preset keywords in the preset keyword set is greater than a first preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type; when the matching degree of the search keyword and the preset keyword is not more than a first preset threshold value and the matching degree of the search keyword and the words around the preset keyword is not more than a second preset threshold value, determining the association type between the search keyword and the preset keyword set as a second association type; and when the matching degree of the search keyword and the preset keyword is not more than a first preset threshold value and the matching degree of the search keyword and the words around the preset keyword of at least two preset keywords is more than a second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type.
In some embodiments, the information set to be pushed comprises a first information set to be pushed obtained from a general information database to be pushed and a second information set to be pushed obtained from a preset information database to be pushed; and determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set, wherein the method comprises the following steps: when the association type is a first association type, sequencing all information to be pushed in a second information set to be pushed in front of all information to be pushed in a first information set to be pushed, and determining the pushing sequence of each information to be pushed in the first information set to be pushed and the second information set to be pushed based on the matching degree of each information to be pushed and a search keyword aiming at each information to be pushed in the first information set to be pushed and the second information set to be pushed; when the association type is a second association type, determining a pushing sequence of each piece of information to be pushed according to the matching degree of each piece of information to be pushed and a search keyword aiming at each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed; and setting each piece of information to be pushed on the webpage according to the determined pushing position to generate a new webpage, wherein the method comprises the following steps: and setting all the information to be pushed at the corresponding pushing positions of the web pages according to the determined pushing sequence to generate a new web page.
In some embodiments, the information set to be pushed comprises a first information set to be pushed obtained from a general information database to be pushed and a second information set to be pushed obtained from a preset information database to be pushed; and determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set, wherein the method comprises the following steps: when the association type is a first association type, setting the pushing positions of all information to be pushed in the second information set to be a first preset position of a webpage, setting the pushing positions of all information to be pushed in the first information set to be positions except the first preset position of the webpage, and determining the pushing sequence of all information to be pushed in the positions except the first preset position and the first preset position based on the matching degree of all information to be pushed and search keywords aiming at all information to be pushed in the first information set to be pushed and the second information set to be pushed; when the association type is a second association type, determining a pushing sequence of each piece of information to be pushed according to the matching degree of each piece of information to be pushed and a search keyword aiming at each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed; and setting each piece of information to be pushed on the webpage according to the determined pushing position to generate a new webpage, wherein the method comprises the following steps: and setting all the information to be pushed at the corresponding pushing positions of the web pages according to the determined pushing sequence to generate a new web page.
In some embodiments, obtaining an information set to be pushed corresponding to a search keyword from a general information database to be pushed and a preset information database to be pushed corresponding to a preset keyword includes: acquiring all or a first preset number of pieces of information to be pushed corresponding to the search keyword from a preset information database to be pushed; when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting a second preset number of pieces of information to be pushed according to the matching degree; and when the number of the information to be pushed acquired from the preset information database to be pushed is less than a second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
In some embodiments, obtaining the set of information to be pushed corresponding to the search keyword from the general information database to be pushed and the preset information database to be pushed corresponding to the preset keyword includes: acquiring a number of pieces of information to be pushed or a first preset number of pieces of information to be pushed, which correspond to the search keyword and are matched with a first preset position, from a preset information database to be pushed; when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting a second preset number of pieces of information to be pushed according to the matching degree; and when the number of the information to be pushed acquired from the preset information database to be pushed is less than a second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
In some embodiments, the preset keyword-surrounding words include: the method comprises the steps of generating preset keyword peripheral words based on preset keywords and preset services related to the preset keywords; and/or preset keyword peripheral words generated based on the preset keywords and preset products related to the preset keywords.
In a second aspect, the present application provides an apparatus for generating a web page, the apparatus comprising: the system comprises a receiving unit, a searching unit and a searching unit, wherein the receiving unit is configured to receive a searching request sent by a client, and the searching request comprises a searching keyword; the acquisition unit is configured to acquire an information set to be pushed corresponding to the search keyword; the association type determining unit is configured for determining an association type between the search keyword and a preset keyword set; the pushing position determining unit is configured to determine the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set; and the webpage generating unit is configured for setting each piece of information to be pushed on the webpage according to the determined pushing position so as to generate a new webpage.
In some embodiments, the obtaining unit is to: and acquiring an information set to be pushed corresponding to the search keyword from the general information database to be pushed and a preset information database to be pushed corresponding to the preset keyword.
In some embodiments, the preset keyword set includes preset keywords and corresponding words around the preset keywords; and the association type determination unit includes: the matching relation determining module is configured for determining the matching relation between the search keyword and a preset keyword and peripheral words of the preset keyword based on the semantic analysis result of the search keyword; and the association type determining module is configured to determine an association type between the search keyword and a preset keyword set based on the determined matching relationship.
In some embodiments, the association types include a first association type and a second association type; and an association type determination module to: when the matching degree of the search keyword and the preset keyword is greater than a first preset threshold value or the matching degree of the search keyword and words around the preset keyword is greater than a second preset threshold value, determining the association type between the search keyword and the preset keyword set as a first related type; and when the matching degree of the search keyword and the preset keyword is not more than a first preset threshold value and the matching degree of the search keyword and the words around the preset keyword is not more than a second preset threshold value, determining the association type between the search keyword and the preset keyword set as a second association type.
In some embodiments, the association type includes a first association type and a second association type, and the preset keywords in the preset keyword set include a plurality of preset keywords; and an association type determination module to: when the matching degree of the search keyword and only one preset keyword in the preset keyword set is greater than a first preset threshold value or the matching degree of the search keyword and words around the preset keyword of only one preset keyword is greater than a second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a first correlation type; when the matching degree of the search keyword and at least two preset keywords in the preset keyword set is greater than a first preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type; when the matching degree of the search keyword and the preset keyword is not more than a first preset threshold value and the matching degree of the search keyword and the words around the preset keyword is not more than a second preset threshold value, determining the association type between the search keyword and the preset keyword set as a second association type; and when the matching degree of the search keyword and the preset keyword is not more than a first preset threshold value and the matching degree of the search keyword and the words around the preset keyword of at least two preset keywords is more than a second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type.
In some embodiments, the information set to be pushed comprises a first information set to be pushed obtained from a general information database to be pushed and a second information set to be pushed obtained from a preset information database to be pushed; and a push position determination unit for: when the association type is a first association type, sequencing all information to be pushed in a second information set to be pushed in front of all information to be pushed in a first information set to be pushed, and determining the pushing sequence of each information to be pushed in the first information set to be pushed and the second information set to be pushed based on the matching degree of each information to be pushed and a search keyword aiming at each information to be pushed in the first information set to be pushed and the second information set to be pushed; when the association type is a second association type, determining a pushing sequence of each piece of information to be pushed according to the matching degree of each piece of information to be pushed and a search keyword aiming at each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed; and a web page generation unit for: and setting all the information to be pushed at the corresponding pushing positions of the web pages according to the determined pushing sequence to generate a new web page.
In some embodiments, the information set to be pushed comprises a first information set to be pushed obtained from a general information database to be pushed and a second information set to be pushed obtained from a preset information database to be pushed; and a push position determination unit for: when the association type is a first association type, setting the pushing positions of all information to be pushed in the second information set to be a first preset position of a webpage, setting the pushing positions of all information to be pushed in the first information set to be positions except the first preset position of the webpage, and determining the pushing sequence of all information to be pushed in the positions except the first preset position and the first preset position based on the matching degree of all information to be pushed and search keywords aiming at all information to be pushed in the first information set to be pushed and the second information set to be pushed; when the association type is a second association type, determining a pushing sequence of each piece of information to be pushed according to the matching degree of each piece of information to be pushed and a search keyword aiming at each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed; and a web page generation unit for: and setting all the information to be pushed at the corresponding pushing positions of the web pages according to the determined pushing sequence to generate a new web page.
In some embodiments, the obtaining unit is to: acquiring all or a first preset number of pieces of information to be pushed corresponding to the search keyword from a preset information database to be pushed; when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting a second preset number of pieces of information to be pushed according to the matching degree; and when the number of the information to be pushed acquired from the preset information database to be pushed is less than a second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
In some embodiments, the obtaining unit is to: acquiring a number of pieces of information to be pushed or a first preset number of pieces of information to be pushed, which correspond to the search keyword and are matched with a first preset position, from a preset information database to be pushed; when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting a second preset number of pieces of information to be pushed according to the matching degree; and when the number of the information to be pushed acquired from the preset information database to be pushed is less than a second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
In some embodiments, the preset keyword-surrounding words include: the method comprises the steps of generating preset keyword peripheral words based on preset keywords and preset services related to the preset keywords; and/or preset keyword peripheral words generated based on the preset keywords and preset products related to the preset keywords.
In a third aspect, the present application provides a web server comprising the apparatus as in the second aspect.
In a fourth aspect, the present application provides an apparatus comprising: one or more processors; a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform a method for generating a web page.
According to the method and the device for generating the webpage, firstly, an information set to be pushed corresponding to a search keyword is obtained based on the search keyword in a search request; then, determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and a preset keyword set; and finally, setting all pieces of information to be pushed on the webpage according to the determined pushing positions to generate a new webpage. Therefore, the method and the device can accurately identify the brand words under the condition that the user searches the words around the brand words, and the information pushing efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for generating a web page in accordance with the present application;
fig. 3A shows a flowchart of an example for determining a push position of each piece of information to be pushed in an acquired set of information to be pushed according to the application;
fig. 3B illustrates a flowchart of another example for determining push locations of pieces of information to be pushed in an acquired set of information to be pushed according to the present application;
FIG. 4 is a schematic diagram of an application scenario of a method for generating a web page according to the present application;
fig. 5A shows a flow chart of an improved example for obtaining a set of information to be pushed corresponding to a search keyword;
fig. 5B shows a flowchart of another improved example for obtaining a set of information to be pushed corresponding to a search keyword;
FIG. 6 shows a flow chart of an improved example of the steps for determining the type of association between a search keyword and a set of preset keywords;
FIG. 7 is a schematic diagram illustrating an embodiment of an apparatus for generating a web page according to the present application;
FIG. 8 shows a schematic structural diagram of a web server according to the present application;
FIG. 9 is a block diagram of a computer system suitable for implementing a server according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the method for generating a web page or the apparatus for generating a web page of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background web server providing support for web pages displayed on the terminal devices 101, 102, 103. The background web server may analyze and perform other processing on the received data such as the search request, and feed back a processing result (e.g., web page data) to the terminal device.
It should be noted that the method for generating a web page provided by the embodiment of the present application is generally performed by the server 105, and accordingly, the apparatus for generating a web page is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for generating a web page in accordance with the present application is shown. The method for generating the webpage comprises the following steps:
step 201, receiving a search request sent by a client.
In the present embodiment, an electronic device (e.g., the server 105 shown in fig. 1) on which the method for generating a web page operates may receive a search request from a terminal with which a user browses a web page through a wired connection manner or a wireless connection manner, wherein the search request may include a search keyword.
In this embodiment, the electronic device may perform semantic analysis on the received search request, and extract a search keyword input by the user. The search keyword may be complete search information input by the user, information obtained by removing useless information from the search information input by the user, or key information extracted from the search information input by the user. As an example, if the user inputs "XX car insurance calculator," the search keyword may be "XX car insurance calculator"; if the user inputs the "XX car insurance calculator tool", the electronic device can remove the "XX car insurance calculator tool" and the "XX car insurance tool", so as to obtain a search keyword "XX car insurance calculator"; if the user inputs "XX kid insurance and YY family insurance," the search keyword may be "XX kid insurance" and "YY family insurance," where "XX" and "YY" may be brand words of different insurance.
Step 202, obtaining an information set to be pushed corresponding to the search keyword.
In this embodiment, based on the search keyword obtained in step 201, the electronic device may search out an information set to be pushed corresponding to the search keyword from the information database to be pushed. The information set to be pushed corresponding to the search keyword may include at least one piece of information to be pushed corresponding to the search keyword. As an example, if the search keyword is "XX car insurance calculator", the set of information to be pushed corresponding to "XX car insurance calculator" may include information to be pushed related to "XX" and/or at least one piece of information to be pushed related to "car insurance calculator".
Preferably, the information database to be pushed may include a general information database to be pushed and a preset information database to be pushed corresponding to preset keywords. Here, the general information database to be pushed is used for storing information to be pushed provided by a general information provider to be pushed without a specific authority (such as a brand special authority), such as an information provider to be pushed without a brand special authority for purchasing. The preset information to be pushed database is used for storing preset information to be pushed, which is provided by a specific information provider to be pushed with a specific authority (such as a brand special area authority) and corresponds to a preset keyword. In this case, the electronic device may obtain the information set to be pushed corresponding to the search keyword from the general information database to be pushed and the preset information database to be pushed corresponding to the preset keyword. The information set to be pushed may include a first information set to be pushed composed of information to be pushed acquired from the general information database to be pushed and a second information set to be pushed composed of information to be pushed acquired from the preset information database to be pushed.
Step 203, determining the association type between the search keyword and the preset keyword set.
In this embodiment, based on the search keyword obtained in step 201, the electronic device may analyze the search keyword and the preset keyword set, and obtain an association type between the search keyword and the preset keyword set according to an analysis result. The preset keyword set may include preset keywords, and the preset keywords may be brand words.
In this embodiment, if the analysis results are different, the association types between the search keywords and the preset keywords may also be different. In one example of the present application, the association types may include a strong correlation type (i.e., a first correlation type in the present application) and a weak correlation type (i.e., a second correlation type in the present application). As an example, if the analysis result shows that the matching degree between the search keyword and the preset keyword set is high, the association type between the search keyword and the preset keyword set may be considered as a strong association type, otherwise, the association type between the search keyword and the preset keyword set may be considered as a weak association type.
In some optional implementation manners of this embodiment, the preset keyword set may include preset keywords and words around the preset keywords. The words around the preset keyword may be keywords having an association relationship with the preset keyword, such as keywords associated with the preset keyword set by an information provider to be pushed with a brand-specific permission. In some optional implementation manners of this embodiment, the presetting of words around the keyword may include: the method comprises the steps of generating preset keyword peripheral words based on preset keywords and preset services related to the preset keywords; and/or preset keyword peripheral words generated based on the preset keywords and preset products related to the preset keywords. As an example, if the preset keyword is "XX", the word surrounding the preset keyword may be "XX car insurance calculator", wherein "car insurance calculator" is a product related to "XX".
In this case, the electronic device may first determine, based on a semantic analysis result of the search keyword, a matching relationship between the search keyword and a preset keyword and a word around the preset keyword; and then determining the association type between the search keyword and a preset keyword set based on the determined matching relationship. As an example, the electronic device may first match the search keyword with the preset keyword and words around the preset keyword word by word, and then determine that the degree of matching between the search keyword and the preset keyword and words around the preset keyword is higher in a case that the search keyword includes the preset keyword and is the same as one corresponding word around the preset keyword, that is, the association type between the search keyword and the preset keyword set is a strong association type; otherwise, determining that the matching degree between the search keyword and the preset keyword and the words around the preset keyword is low, namely that the association type between the search keyword and the preset keyword set is a weak association type.
And 204, determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set.
In this embodiment, based on the information set to be pushed corresponding to the search keyword obtained in step 202 and based on the association type between the search keyword obtained in step 203 and the preset keyword set, the electronic device may determine the pushing position of each piece of information to be pushed in the obtained information set to be pushed.
In this embodiment, if the association types between the search keyword and the preset keyword set are different, the push positions of the pieces of information to be pushed in the acquired information set to be pushed may also be different.
As an example, as shown in fig. 3A, if the association type between the search keyword and the preset keyword set is a strong correlation type, the steps 311a and 312a are continuously performed. As shown in step 311a, the electronic device may order all information to be pushed in the second information set to be pushed, which is obtained from the preset information database to be pushed, before all information to be pushed in the first information set to be pushed, which is obtained from the general information database to be pushed; as shown in step 312a, the electronic device may determine, for each piece of information to be pushed in the first set of information to be pushed and the second set of information to be pushed, a pushing order of each piece of information to be pushed in the first set of information to be pushed and the second set of information to be pushed based on a matching degree of each piece of information to be pushed and the search keyword. If the association type between the search keyword and the preset keyword set is a weak association type, the step 321a is continuously performed. As shown in step 321a, the electronic device may determine, for each piece of information to be pushed in the first set of information to be pushed and the second set of information to be pushed, a pushing order of each piece of information to be pushed based on a matching degree of each piece of information to be pushed and the search keyword.
As another example, as shown in fig. 3B, if the association type between the search keyword and the preset keyword set is a strong correlation type, the steps 311B and 312B are continuously performed. As shown in step 311b, the electronic device may set pushing positions of all information to be pushed in a second information set to be pushed, which is obtained from a preset information database to be pushed, as a first preset position of the web page, and set pushing positions of all information to be pushed in a first information set to be pushed, which is obtained from a general information database to be pushed, as positions other than the first preset position of the web page; as shown in step 312b, the electronic device may determine, for each piece of information to be pushed in the first set of information to be pushed and the second set of information to be pushed, a pushing order of each piece of information to be pushed at a first preset position and a position other than the first preset position based on a matching degree of each piece of information to be pushed and the search keyword. If the association type between the search keyword and the preset keyword set is a weak association type, the step 321b is continuously performed. As shown in step 321b, the electronic device may determine, for each piece of information to be pushed in the first set of information to be pushed and the second set of information to be pushed, a pushing order of each piece of information to be pushed based on a matching degree of each piece of information to be pushed and the search keyword. Here, the first preset position may be a relatively conspicuous position on the web page, for example, a head position of the web page or a middle position of the web page, and the specific position of the first preset position is not limited in this embodiment.
Step 205, setting each piece of information to be pushed on the webpage according to the determined pushing position to generate a new webpage.
In this embodiment, based on the pushing position of each piece of information to be pushed obtained in step 204, the electronic device may correspondingly set each piece of information to be pushed at a corresponding position of the web page according to the pushing position of each piece of information to be pushed, so as to generate a new web page.
In the case of determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed shown in fig. 3A, setting each piece of information to be pushed on the web page according to the determined pushing position to generate a new web page may be setting each piece of information to be pushed on the corresponding pushing position of the web page according to the determined pushing sequence to generate a new web page.
In the case of determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed shown in fig. 3B, setting each piece of information to be pushed on the web page according to the determined pushing position to generate a new web page may be setting each piece of information to be pushed on the corresponding pushing position of the web page according to the determined pushing sequence to generate a new web page.
With continued reference to fig. 4, fig. 4 is a schematic diagram of an application scenario of the method for generating a web page according to the present embodiment. In the application scenario of FIG. 4, the user first enters "XX car insurance calculator" in the input box and clicks the search button to initiate a search request; then, the web server can perform semantic analysis on the search request to obtain a search keyword 'XX car insurance calculator'; then, the web server may acquire an information set to be pushed corresponding to the "XX car insurance calculator", where the acquired information set to be pushed may include information to be pushed corresponding to the "XX", "YY", and "ZZ", and the "XX", "YY", and "ZZ" may be brand words of different insurance, and products of the "YY" and "ZZ" include the car insurance calculator; then, the webpage server can determine the association type between the XX car insurance calculator and a preset keyword set; finally, the web page server sets the push information corresponding to "XX", "YY", and "ZZ" on the web page from top to bottom in sequence based on the determined association type to generate a new web page. When the user browses a new web page, the push information is displayed as shown in fig. 4.
According to the method provided by the embodiment of the application, firstly, an information set to be pushed corresponding to a search keyword is obtained based on the search keyword in a search request; then, determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and a preset keyword set; and finally, setting all pieces of information to be pushed on the webpage according to the determined pushing positions to generate a new webpage. Therefore, the method and the device can accurately identify the brand words under the condition that the user searches the words around the brand words, and the information pushing efficiency is improved.
Preferably, in other embodiments of the method for generating a web page according to the present application, the step of obtaining the information set to be pushed corresponding to the search keyword (i.e., step 202) in fig. 2 may also be improved.
Fig. 5A shows a flow chart of an improved example for obtaining a set of information to be pushed corresponding to a search keyword. As shown in fig. 5A, in step 511a, the electronic device may obtain all or a first predetermined number of pieces of information to be pushed corresponding to the search keyword from a preset information database to be pushed. Next, in step 512a, it is determined whether the number of the information to be pushed obtained from the preset information to be pushed database is equal to or greater than a second predetermined number. Subsequently, in step 513a, when the number of pieces of information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second predetermined number, the electronic device may select a second predetermined number of pieces of information to be pushed according to the matching degree; in step 523a, when the number of information to be pushed acquired from the preset information to be pushed database is less than a second predetermined number, the electronic device may acquire the remaining information to be pushed from the general information to be pushed database. The second preset number can be the number of all information to be pushed which can be contained in the webpage, so that all the information to be pushed in the acquired information set to be pushed corresponding to the search keyword is exactly set on the webpage, a user can browse enough information to be pushed corresponding to the search keyword by initiating a search request, the search time of the user is shortened, and the search efficiency is improved.
Fig. 5B shows a flowchart of another improved example for obtaining a set of information to be pushed corresponding to a search keyword. As shown in fig. 5B, in step 511B, the electronic device may obtain a number of pieces of information to be pushed or a first predetermined number of pieces of information to be pushed, which correspond to the search keyword and are adapted to the first preset position, from the preset information to be pushed database. Next, in step 512b, it is determined whether the number of the information to be pushed obtained from the preset information to be pushed database is equal to or greater than a second predetermined number. Subsequently, in step 513b, when the number of pieces of information to be pushed acquired from the preset information to be pushed database is equal to or greater than a second predetermined number, the electronic device may select a second predetermined number of pieces of information to be pushed according to the matching degree; in step 523b, when the number of the information to be pushed acquired from the preset information to be pushed database is smaller than a second predetermined number, the electronic device may acquire the remaining information to be pushed from the general information to be pushed database. The second preset number can be the number of all information to be pushed which can be contained in the webpage, so that all the information to be pushed in the acquired information set to be pushed corresponding to the search keyword is exactly set on the webpage, a user can browse enough information to be pushed corresponding to the search keyword by initiating a search request, the search time of the user is shortened, and the search efficiency is improved.
In the example shown in fig. 5A and 5B, the electronic device acquires only a predetermined number of pieces of information to be pushed that are adapted to the web page to be pushed, instead of all the information to be pushed that correspond to the search keyword. Among them, the example shown in fig. 5A corresponds to the above-described push position determination method shown in fig. 3A, and the example shown in fig. 5B corresponds to the above-described push position determination method shown in fig. 3B.
Furthermore, in other embodiments of the method for generating a web page according to the present application, the step for determining the association type between the search keyword and the preset keyword set (i.e., step 203) in fig. 2 may be further preferably modified as follows.
Fig. 6 shows a flow chart of an improved example of the steps for determining the type of association between a search keyword and a preset keyword set.
As shown in fig. 6, first, in step 601, it is determined whether a preset keyword set includes a plurality of preset keywords. When a plurality of preset keywords are included, the flow proceeds to step 602. When the keyword does not include a plurality of preset keywords, the flow proceeds to step 603.
In step 602, it is determined whether the matching degree between the search keyword and at least two preset keywords is greater than a first preset threshold. When the matching degree between the search keyword and at least two preset keywords is greater than the first preset threshold, the process proceeds to step 604. At step 604, the type of association between the search keyword and the preset keyword set is determined as a second type of association (i.e., a weak type of association).
In step 603, it is determined whether the matching degree between the search keyword and the preset keyword is greater than a first preset threshold. When the matching degree of the search keyword and the preset keyword is greater than the first preset threshold, the process proceeds to step 605. In step 605, the association type between the search keyword and the preset keyword set is determined as a first correlation type (i.e., a strong correlation type).
When the matching degree of the search keyword and the preset keyword is not greater than the first preset threshold, the flow proceeds to step 606. In step 606, it is determined whether the matching degree between the search keyword and the words around the preset keyword is greater than a second preset threshold. When the matching degree between the search keyword and the words around the preset keyword is greater than the second preset threshold, the process proceeds to step 605. When the matching degree between the search keyword and the words around the preset keyword is not greater than the second preset threshold, the process proceeds to step 604.
When the matching degrees of the search keyword and the at least two preset keywords are not both greater than the first preset threshold, the process proceeds to step 607. In step 607, it is determined whether the matching degree of the search keyword and one of the preset keywords is greater than a first preset threshold. When the matching degree of the search keyword and one of the preset keywords is greater than the first preset threshold, the process proceeds to step 605, otherwise to 608.
When the matching degree between the search keyword and all the preset keywords is not greater than the first preset threshold, the process proceeds to step 608. In step 608, it is determined whether the matching degree between the search keyword and the words around the preset keyword of only one preset keyword is greater than a second preset threshold. When the matching degree between the search keyword and the words around the preset keyword of only one preset keyword is greater than the second preset threshold, the process proceeds to step 605. When the matching degree between the search keyword and the words around the preset keyword of the at least two preset keywords is not greater than the second preset threshold or the matching degree between the search keyword and the words around the preset keyword of the at least two preset keywords is greater than the second preset threshold, the process proceeds to step 604.
It should be noted that, the first preset threshold and the second preset threshold in the foregoing steps may be preset by a system, and specific values thereof are not limited in this embodiment.
Preferably, in other examples of the present application for determining the association type between the search keyword and the preset keyword set, the above steps 601, 602, 604, 607, and 608 may not be included.
With further reference to fig. 7, as an implementation of the method shown in the above figures, the present application provides an embodiment of an apparatus for generating a web page, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 7, the apparatus 700 for generating a web page in the present embodiment includes: a receiving unit 701, an acquiring unit 702, an association type determining unit 703, a push position determining unit 704, and a web page generating unit 705. The receiving unit 701 is configured to receive a search request sent by a client, where the search request includes a search keyword; an obtaining unit 702 configured to obtain an information set to be pushed corresponding to a search keyword; an association type determining unit 703 configured to determine an association type between the search keyword and a preset keyword set; a pushing position determining unit 704 configured to determine, based on the association type between the search keyword and the preset keyword set, a pushing position of each piece of information to be pushed in the acquired information set to be pushed; the web page generating unit 705 is configured to set each piece of information to be pushed on the web page according to the determined pushing position to generate a new web page.
In this embodiment, the receiving unit 701 of the web page generating apparatus 700 may receive a search request from a terminal with which a user browses a web page through a wired connection manner or a wireless connection manner, wherein the search request may include a search keyword.
In this embodiment, based on the search keyword obtained by the receiving unit 701, the obtaining unit 702 may search out an information set to be pushed corresponding to the search keyword from the information database to be pushed.
Preferably, the information database to be pushed may include a general information database to be pushed and a preset information database to be pushed corresponding to preset keywords. Here, the general information database to be pushed is used for storing information to be pushed provided by a general information provider to be pushed without a specific authority (such as a brand special authority), such as an information provider to be pushed without a brand special authority for purchasing. The preset information to be pushed database is used for storing preset information to be pushed, which is provided by a specific information provider to be pushed with a specific authority (such as a brand special area authority) and corresponds to a preset keyword. In this case, the obtaining unit 702 may obtain the set of information to be pushed corresponding to the search keyword from the general information database to be pushed and a preset information database to be pushed corresponding to the preset keyword. The information set to be pushed may include a first information set to be pushed composed of information to be pushed acquired from the general information database to be pushed and a second information set to be pushed composed of information to be pushed acquired from the preset information database to be pushed.
In this embodiment, based on the search keyword obtained by the receiving unit 701, the association type determining unit 703 may analyze the search keyword and the preset keyword set, and obtain an association type between the search keyword and the preset keyword set according to an analysis result. The association types may include a strong association type (i.e., a first association type in this application) and a weak association type (i.e., a second association type in this application), among others.
In some optional implementation manners of this embodiment, the preset keyword set may include preset keywords and words around the preset keywords. The words around the preset keyword may be keywords having an association relationship with the preset keyword, such as keywords associated with the preset keyword set by an information provider to be pushed with a brand-specific permission. In some optional implementation manners of this embodiment, the presetting of words around the keyword may include: the method comprises the steps of generating preset keyword peripheral words based on preset keywords and preset services related to the preset keywords; and/or preset keyword peripheral words generated based on the preset keywords and preset products related to the preset keywords.
In this case, the association type determining unit 703 may include a matching relationship determining module (not shown in the figure) and an association type determining module (not shown in the figure), and first, the matching relationship determining module (not shown in the figure) may determine a matching relationship between the search keyword and the preset keyword and the words around the preset keyword based on a semantic analysis result of the search keyword; then, an association type determination module (not shown in the figure) may determine an association type between the search keyword and a preset keyword set based on the determined matching relationship.
In this embodiment, based on the information set to be pushed corresponding to the search keyword obtained by the obtaining unit 702 and the association type between the search keyword obtained by the association type determining unit 703 and the preset keyword set, the pushing position determining unit 704 may determine the pushing position of each piece of information to be pushed in the obtained information set to be pushed.
In this embodiment, if the association types between the search keyword and the preset keyword set are different, the pushing positions of the pieces of information to be pushed in the information set to be pushed, which are obtained by the pushing position determining unit 704, may also be different.
As an example, if the association type between the search keyword and the preset keyword set is a strong correlation type, the pushing position determining unit 704 may order all the information to be pushed in the second information set to be pushed, which is obtained from the preset information to be pushed database, before all the information to be pushed in the first information set to be pushed, which is obtained from the general information to be pushed database, and determine, for each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed, a pushing order of each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed, based on a matching degree of each piece of information to be pushed and the search keyword. If the association type between the search keyword and the preset keyword set is a weak association type, the pushing position determining unit 704 may determine, for each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed, a pushing order of each piece of information to be pushed based on a matching degree of each piece of information to be pushed and the search keyword.
As another example, if the association type between the search keyword and the preset keyword set is a strong association type, the pushing position determining unit 704 may set the pushing positions of all information to be pushed in the second information set to be pushed, which is obtained from the preset information to be pushed database, as the first preset positions of the web page, set the pushing positions of all information to be pushed in the first information set to be pushed, which is obtained from the general information to be pushed database, as positions other than the first preset positions of the web page, and determine, for each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed, the pushing order of each piece of information to be pushed in the positions other than the first preset positions and the first preset positions based on the matching degree of each piece of information to be pushed and the search keyword. If the association type between the search keyword and the preset keyword set is a weak association type, the pushing position determining unit 704 may determine, for each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed, a pushing order of each piece of information to be pushed based on a matching degree of each piece of information to be pushed and the search keyword. In this embodiment, based on the pushing position of each piece of information to be pushed obtained by the pushing position determining unit 704, the web page generating unit 705 may correspondingly set each piece of information to be pushed at a corresponding position of the web page according to the pushing position of each piece of information to be pushed, so as to generate a new web page.
In the case that the pushing position determining unit 704 of the above-mentioned one example determines an example of the pushing position of each piece of information to be pushed in the acquired information set to be pushed, the web page generating unit 705 sets each piece of information to be pushed on the web page according to the determined pushing position to generate a new web page, where the web page generating unit 705 sets each piece of information to be pushed on the corresponding pushing position of the web page according to the determined pushing order to generate a new web page.
In the case where the push position determining unit 704 of the another example determines an example of push positions of pieces of information to be pushed in the acquired information set to be pushed, the web page generating unit 705 sets the pieces of information to be pushed on the web page according to the determined push positions to generate a new web page, where the web page generating unit 705 sets the pieces of information to be pushed on the corresponding push positions of the web page according to the determined push order to generate the new web page.
Preferably, in other embodiments of the apparatus for generating a web page according to the present application, the function of the obtaining unit 702 (i.e., step 202) in fig. 7 may also be improved.
As an example, the obtaining unit 702 may obtain all or a first predetermined number of pieces of information to be pushed corresponding to the search keyword from a preset information database to be pushed; when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting a second preset number of pieces of information to be pushed according to the matching degree; and when the number of the information to be pushed acquired from the preset information database to be pushed is less than a second preset number, acquiring the rest information to be pushed from the general information database to be pushed. The second preset number can be the number of all information to be pushed which can be contained in the webpage, so that all the information to be pushed in the acquired information set to be pushed corresponding to the search keyword is exactly set on the webpage, a user can browse enough information to be pushed corresponding to the search keyword by initiating a search request, the search time of the user is shortened, and the search efficiency is improved.
As another example, the obtaining unit 702 may obtain, from a preset information to be pushed database, a number of pieces of information to be pushed or a first predetermined number of pieces of information to be pushed, which correspond to the search keyword and are adapted to a first preset position; when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting a second preset number of pieces of information to be pushed according to the matching degree; when the number of the information to be pushed acquired from the preset information database to be pushed is less than a second preset number, the electronic device may acquire the remaining information to be pushed from the general information database to be pushed. The second preset number can be the number of all information to be pushed which can be contained in the webpage, so that all the information to be pushed in the acquired information set to be pushed corresponding to the search keyword is exactly set on the webpage, a user can browse enough information to be pushed corresponding to the search keyword by initiating a search request, the search time of the user is shortened, and the search efficiency is improved.
Furthermore, preferably, in other embodiments of the apparatus for generating a web page according to the present application, the function of the association type determining module (not shown in the figure) may be further improved as follows.
As an example, in a case that the preset keyword set does not include a plurality of preset keywords, when the matching degree between the search keyword and the preset keyword is greater than a first preset threshold or the matching degree between the search keyword and a word around the preset keyword is greater than a second preset threshold, the association type determining module (not shown in the figure) may determine that the association type between the search keyword and the preset keyword set is a first association type; when the matching degree between the search keyword and the preset keyword is not greater than the first preset threshold and the matching degree between the search keyword and the words around the preset keyword is not greater than the second preset threshold, the association type determining module (not shown in the figure) may determine that the association type between the search keyword and the preset keyword set is the second association type.
As another example, in a case where the preset keyword set includes a plurality of preset keywords, when a matching degree of the search keyword with only one preset keyword in the preset keyword set is greater than a first preset threshold or a matching degree of the search keyword with a word around the preset keyword of only one preset keyword is greater than a second preset threshold, the association type determination module (not shown in the figure) may determine that the association type between the search keyword and the preset keyword set is a first correlation type; when the matching degree between the search keyword and at least two preset keywords in the preset keyword set is greater than a first preset threshold, the association type determining module (not shown in the figure) may determine that the association type between the search keyword and the preset keyword set is a second association type; when the matching degree between the search keyword and the preset keyword is not greater than the first preset threshold and the matching degree between the search keyword and the words around the preset keyword is not greater than the second preset threshold, the association type determining module (not shown in the figure) may determine that the association type between the search keyword and the preset keyword set is the second association type. Alternatively, when the matching degree between the search keyword and the preset keyword is not greater than the first preset threshold and the matching degree between the search keyword and the words around the preset keyword of the at least two preset keywords is greater than the second preset threshold, the association type determining module (not shown in the figure) may determine that the association type between the search keyword and the preset keyword set is the second association type.
The present application further provides an embodiment of a web server, as shown in fig. 8. In this embodiment, the web page server 800 may include the apparatus for generating a web page described in the corresponding embodiment of fig. 7.
Referring now to FIG. 9, shown is a block diagram of a computer system 900 suitable for use in implementing a server according to embodiments of the present application.
As shown in fig. 9, system architecture 900 includes one or more processors 901 (only one processor is shown in fig. 9 by way of example) that may perform various suitable actions and processes in accordance with one or more programs and data loaded into memory 902 from external memory portion 907. When the one or more programs are executed by the one or more processors, the one or more processors may be caused to perform the methods described in the embodiments described above. The processor 901 and the memory 902 are connected to each other via a bus 903. An input/output (I/O) interface 904 is also connected to bus 903.
The following components are connected to the I/O interface 904: an input portion 905 including a sensor and the like; an output section 906 including such things as a virtual reality display and speakers; an external memory portion 907 including a hard disk and the like; and a communication section 908 including a network interface card such as a wireless wifi network card. The communication section 908 performs communication processing via a network such as the internet.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network through the communication section 908 and/or installed from the external memory section 907.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an obtaining unit, an association type determining unit, a push position determining unit, and a web page generating unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, a receiving unit may also be described as a "unit that receives a search request sent by a client".
As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium included in the apparatus in the above embodiment; or it may be a non-volatile computer storage medium that exists separately and is not incorporated into the terminal. The non-volatile computer storage medium stores one or more programs that, when executed by a device, cause the device to: receiving a search request sent by a client, wherein the search request comprises a search keyword; acquiring an information set to be pushed corresponding to the search keyword; determining an association type between the search keyword and a preset keyword set; determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set; and setting each piece of information to be pushed on the webpage according to the determined pushing position to generate a new webpage.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (20)

1. A method for generating a web page, the method comprising:
receiving a search request sent by a client, wherein the search request comprises a search keyword;
acquiring an information set to be pushed corresponding to the search keyword, wherein the information set to be pushed comprises a first information set to be pushed acquired from a general information database to be pushed and a second information set to be pushed acquired from a preset information database to be pushed;
determining the association type between the search keyword and a preset keyword set;
determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set;
setting all pieces of information to be pushed on a webpage according to the determined pushing positions to generate a new webpage;
determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set, wherein the determining comprises:
when the association type is a first association type, setting all information to be pushed in the second information set to be pushed in front of all information to be pushed in the first information set to be pushed, and determining the pushing sequence of the information to be pushed in the first information set to be pushed and the second information set to be pushed based on the matching degree of the information to be pushed and the search keyword for each information to be pushed in the first information set to be pushed and the second information set to be pushed, or setting the pushing positions of the information to be pushed in the second information set to be pushed at a first preset position of a webpage, setting the pushing positions of the information to be pushed in the first information set to be pushed at positions other than the first preset position of the webpage, and setting all information to be pushed in the first information set to be pushed and each information to be pushed in the second information set to be pushed, determining a pushing sequence of each piece of information to be pushed on the first preset position and a position except the first preset position based on the matching degree of each piece of information to be pushed and the search keyword, wherein when the matching degree of the search keyword and the preset keyword is greater than a first preset threshold or the matching degree of the search keyword and words around the preset keyword is greater than a second preset threshold, or when the matching degree of the search keyword and only one preset keyword in a preset keyword set is greater than the first preset threshold or the matching degree of the search keyword and words around the preset keyword of only one preset keyword is greater than the second preset threshold, determining that the association type between the search keyword and the preset keyword set is the first correlation type.
2. The method according to claim 1, wherein the obtaining of the set of information to be pushed corresponding to the search keyword comprises:
and acquiring an information set to be pushed corresponding to the search keyword from a general information database to be pushed and a preset information database to be pushed corresponding to the preset keyword.
3. The method according to claim 1 or 2, wherein the preset keyword set comprises preset keywords and corresponding words around the preset keywords; and
the determining of the association type between the search keyword and a preset keyword set includes:
determining a matching relation between the search keyword and the preset keyword and the words around the preset keyword based on the semantic analysis result of the search keyword;
and determining the association type between the search keyword and the preset keyword set based on the determined matching relationship.
4. The method of claim 3, wherein determining the type of association between the search keyword and the set of predetermined keywords based on the determined matching relationship comprises:
and when the matching degree of the search keyword and the preset keyword is not more than the first preset threshold value and the matching degree of the search keyword and the words around the preset keyword is not more than the second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type.
5. The method according to claim 3, wherein the preset keywords in the preset keyword set comprise a plurality of preset keywords; and
determining the association type between the search keyword and the preset keyword set based on the determined matching relationship, including:
when the matching degree of the search keyword and at least two preset keywords in the preset keyword set is greater than the first preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type;
when the matching degree of the search keyword and the preset keyword is not greater than the first preset threshold value and the matching degree of the search keyword and words around the preset keyword is not greater than the second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type;
and when the matching degree of the search keyword and the preset keyword is not more than the first preset threshold value and the matching degree of the search keyword and the words around the preset keyword of the at least two preset keywords is more than the second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type.
6. The method according to claim 4 or 5, wherein the determining the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set comprises:
when the association type is the second association type, determining a pushing sequence of each piece of information to be pushed according to the matching degree of each piece of information to be pushed and the search keyword aiming at each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed; and
the step of setting each piece of information to be pushed on a webpage according to the determined pushing position to generate a new webpage includes:
and setting all the information to be pushed at the corresponding pushing positions of the web pages according to the determined pushing sequence to generate a new web page.
7. The method according to claim 6, wherein the obtaining of the set of information to be pushed corresponding to the search keyword from the general information database to be pushed and a preset information database to be pushed corresponding to the preset keyword comprises:
acquiring all or a first preset number of pieces of information to be pushed corresponding to the search keyword from the preset information database to be pushed;
when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting the second preset number of pieces of information to be pushed according to the matching degree;
and when the number of the information to be pushed acquired from the preset information database to be pushed is less than the second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
8. The method according to claim 6, wherein the obtaining of the set of information to be pushed corresponding to the search keyword from the general information database to be pushed and a preset information database to be pushed corresponding to the preset keyword comprises:
acquiring a number of pieces of information to be pushed or a first preset number of pieces of information to be pushed, which corresponds to the search keyword and is matched with a first preset position, from the preset information database to be pushed;
when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting the second preset number of pieces of information to be pushed according to the matching degree;
and when the number of the information to be pushed acquired from the preset information database to be pushed is less than the second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
9. The method according to claim 3, wherein the words around the preset keyword comprise:
the preset keyword peripheral words are generated based on the preset keywords and preset services related to the preset keywords; and/or
And generating words around the preset keywords based on the preset keywords and preset products related to the preset keywords.
10. An apparatus for generating a web page, the apparatus comprising:
the device comprises a receiving unit, a searching unit and a searching unit, wherein the receiving unit is configured to receive a searching request sent by a client, and the searching request comprises a searching keyword;
the acquisition unit is configured to acquire an information set to be pushed corresponding to the search keyword, wherein the information set to be pushed comprises a first information set to be pushed acquired from a general information database to be pushed and a second information set to be pushed acquired from a preset information database to be pushed;
the association type determining unit is configured to determine an association type between the search keyword and a preset keyword set;
the pushing position determining unit is configured to determine the pushing position of each piece of information to be pushed in the acquired information set to be pushed based on the association type between the search keyword and the preset keyword set;
the webpage generating unit is configured for setting all pieces of information to be pushed on the webpage according to the determined pushing positions so as to generate a new webpage;
wherein the push position determination unit is configured to:
when the association type is a first association type, setting all information to be pushed in the second information set to be pushed in front of all information to be pushed in the first information set to be pushed, and determining the pushing sequence of the information to be pushed in the first information set to be pushed and the second information set to be pushed based on the matching degree of the information to be pushed and the search keyword for each information to be pushed in the first information set to be pushed and the second information set to be pushed, or setting the pushing positions of the information to be pushed in the second information set to be pushed at a first preset position of a webpage, setting the pushing positions of the information to be pushed in the first information set to be pushed at positions other than the first preset position of the webpage, and setting all information to be pushed in the first information set to be pushed and each information to be pushed in the second information set to be pushed, determining a pushing sequence of each piece of information to be pushed on the first preset position and a position except the first preset position based on the matching degree of each piece of information to be pushed and the search keyword, wherein when the matching degree of the search keyword and the preset keyword is greater than a first preset threshold or the matching degree of the search keyword and words around the preset keyword is greater than a second preset threshold, or when the matching degree of the search keyword and only one preset keyword in a preset keyword set is greater than the first preset threshold or the matching degree of the search keyword and words around the preset keyword of only one preset keyword is greater than the second preset threshold, determining that the association type between the search keyword and the preset keyword set is the first correlation type.
11. The apparatus of claim 10, wherein the obtaining unit is configured to:
and acquiring an information set to be pushed corresponding to the search keyword from a general information database to be pushed and a preset information database to be pushed corresponding to the preset keyword.
12. The apparatus according to claim 10 or 11, wherein the preset keyword set comprises preset keywords and corresponding words around the preset keywords; and
the association type determination unit includes:
the matching relation determining module is configured to determine a matching relation between the search keyword and the preset keyword and the words around the preset keyword based on a semantic analysis result of the search keyword;
and the association type determining module is configured to determine an association type between the search keyword and the preset keyword set based on the determined matching relationship.
13. The apparatus of claim 12, wherein the association type determination module is configured to:
and when the matching degree of the search keyword and the preset keyword is not more than the first preset threshold value and the matching degree of the search keyword and the words around the preset keyword is not more than the second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type.
14. The apparatus according to claim 12, wherein the preset keyword in the preset keyword set comprises a plurality of preset keywords; and
the association type determination module is configured to:
when the matching degree of the search keyword and at least two preset keywords in the preset keyword set is greater than the first preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type;
when the matching degree of the search keyword and the preset keyword is not greater than the first preset threshold value and the matching degree of the search keyword and words around the preset keyword is not greater than the second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type;
and when the matching degree of the search keyword and the preset keyword is not more than the first preset threshold value and the matching degree of the search keyword and the words around the preset keyword of the at least two preset keywords is more than the second preset threshold value, determining that the association type between the search keyword and the preset keyword set is a second association type.
15. The apparatus of claim 13 or 14,
the push position determination unit is configured to:
when the association type is the second association type, determining a pushing sequence of each piece of information to be pushed according to the matching degree of each piece of information to be pushed and the search keyword aiming at each piece of information to be pushed in the first information set to be pushed and the second information set to be pushed; and
the webpage generating unit is used for:
and setting all the information to be pushed at the corresponding pushing positions of the web pages according to the determined pushing sequence to generate a new web page.
16. The apparatus of claim 15, wherein the obtaining unit is configured to:
acquiring all or a first preset number of pieces of information to be pushed corresponding to the search keyword from the preset information database to be pushed;
when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting the second preset number of pieces of information to be pushed according to the matching degree;
and when the number of the information to be pushed acquired from the preset information database to be pushed is less than the second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
17. The apparatus of claim 15, wherein the obtaining unit is configured to:
acquiring a number of pieces of information to be pushed or a first preset number of pieces of information to be pushed, which corresponds to the search keyword and is matched with a first preset position, from the preset information database to be pushed;
when the number of the information to be pushed acquired from the preset information database to be pushed is equal to or greater than a second preset number, selecting the second preset number of pieces of information to be pushed according to the matching degree;
and when the number of the information to be pushed acquired from the preset information database to be pushed is less than the second preset number, acquiring the rest information to be pushed from the general information database to be pushed.
18. The apparatus of claim 12, wherein the words around the preset keyword comprise:
the preset keyword peripheral words are generated based on the preset keywords and preset services related to the preset keywords; and/or
And generating words around the preset keywords based on the preset keywords and preset products related to the preset keywords.
19. A web server, characterized in that it comprises the apparatus of one of claims 10-18.
20. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-9.
CN201710057348.8A 2017-01-26 2017-01-26 Method and device for generating webpage Active CN108363707B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201710057348.8A CN108363707B (en) 2017-01-26 2017-01-26 Method and device for generating webpage
KR1020170125821A KR102023999B1 (en) 2017-01-26 2017-09-28 Method and apparatus for generating web pages
JP2017194577A JP6449961B2 (en) 2017-01-26 2017-10-04 Method and apparatus for generating web pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710057348.8A CN108363707B (en) 2017-01-26 2017-01-26 Method and device for generating webpage

Publications (2)

Publication Number Publication Date
CN108363707A CN108363707A (en) 2018-08-03
CN108363707B true CN108363707B (en) 2020-01-24

Family

ID=63011421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710057348.8A Active CN108363707B (en) 2017-01-26 2017-01-26 Method and device for generating webpage

Country Status (3)

Country Link
JP (1) JP6449961B2 (en)
KR (1) KR102023999B1 (en)
CN (1) CN108363707B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371844B (en) * 2020-02-20 2024-01-19 平安科技(深圳)有限公司 Course pushing method and related device
CN111586180A (en) * 2020-05-10 2020-08-25 计雄昆 Artificial intelligence information feedback system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004013995A1 (en) * 2002-08-05 2004-02-12 Sun Microsystems, Inc. Tuning engine and user interface for internet broadcasts on mobile devices
CN103297498A (en) * 2013-04-19 2013-09-11 北京宽连十方数字技术有限公司 Relevant content pushing method based on mobile phone client side

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566160B2 (en) * 2010-09-30 2013-10-22 Yahoo! Inc. Determining placement of advertisements on web pages
CN103838756A (en) * 2012-11-23 2014-06-04 阿里巴巴集团控股有限公司 Method and device for determining pushed information
JP5927145B2 (en) * 2013-06-20 2016-05-25 ヤフー株式会社 Advertisement allocation device and advertisement allocation program
CN105183733A (en) * 2014-06-05 2015-12-23 阿里巴巴集团控股有限公司 Methods for matching text information and pushing business object, and devices for matching text information and pushing business object
CN104063454A (en) * 2014-06-24 2014-09-24 北京奇虎科技有限公司 Search push method and device for mining user demands
CN105095394B (en) * 2015-06-30 2017-06-06 百度在线网络技术(北京)有限公司 webpage generating method and device
CN105095427A (en) * 2015-07-17 2015-11-25 小米科技有限责任公司 Search recommendation method and device
CN105069102B (en) * 2015-08-03 2017-05-24 百度在线网络技术(北京)有限公司 Information push method and apparatus
CN105653673B (en) * 2015-12-29 2019-05-28 小米科技有限责任公司 Information search method and device
CN105701155B (en) * 2015-12-30 2019-05-31 百度在线网络技术(北京)有限公司 Information-pushing method and device
CN105760523A (en) * 2016-02-29 2016-07-13 百度在线网络技术(北京)有限公司 Information push method and information push device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004013995A1 (en) * 2002-08-05 2004-02-12 Sun Microsystems, Inc. Tuning engine and user interface for internet broadcasts on mobile devices
CN103297498A (en) * 2013-04-19 2013-09-11 北京宽连十方数字技术有限公司 Relevant content pushing method based on mobile phone client side

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐白 等.JSP静态网页生成技术的研究.《计算机技术与发展》.2010,第20卷(第6期),第175-178页. *

Also Published As

Publication number Publication date
CN108363707A (en) 2018-08-03
JP6449961B2 (en) 2019-01-09
KR20180088260A (en) 2018-08-03
KR102023999B1 (en) 2019-09-23
JP2018120576A (en) 2018-08-02

Similar Documents

Publication Publication Date Title
CN108804450B (en) Information pushing method and device
CN107679211B (en) Method and device for pushing information
CN107241260B (en) News pushing method and device based on artificial intelligence
CN107577807B (en) Method and device for pushing information
CN107679119B (en) Method and device for generating brand derivative words
US20090094210A1 (en) Intelligently sorted search results
CN110069698B (en) Information pushing method and device
US10664516B2 (en) Search system, method and apparatus
CN107526718B (en) Method and device for generating text
JP2019145093A (en) Method and apparatus for generating information
US11244153B2 (en) Method and apparatus for processing information
CN107908662B (en) Method and device for realizing search system
CN107562432B (en) Information processing method and related product
CN109902726B (en) Resume information processing method and device
CN108363707B (en) Method and device for generating webpage
US20160357811A1 (en) Webpage content search
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN105955988B (en) Information searching method and device
JP6684894B2 (en) Method and apparatus for push information distribution
CN109472028B (en) Method and device for generating information
CN112084441A (en) Information retrieval method and device and electronic equipment
CN108509442B (en) Search method and apparatus, server, and computer-readable storage medium
CN110852078A (en) Method and device for generating title
CN114239501A (en) Contract generation method, apparatus, device and medium
US11423109B2 (en) Information processing method, server and computer program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant