WO2023125284A1 - Search method and electronic device - Google Patents
Search method and electronic device Download PDFInfo
- Publication number
- WO2023125284A1 WO2023125284A1 PCT/CN2022/141403 CN2022141403W WO2023125284A1 WO 2023125284 A1 WO2023125284 A1 WO 2023125284A1 CN 2022141403 W CN2022141403 W CN 2022141403W WO 2023125284 A1 WO2023125284 A1 WO 2023125284A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- topic
- webpage
- search
- card
- keyword
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 117
- 238000009826 distribution Methods 0.000 claims description 175
- 230000015654 memory Effects 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 18
- 230000004044 response Effects 0.000 claims description 17
- 238000003860 storage Methods 0.000 claims description 13
- 238000004458 analytical method Methods 0.000 description 41
- 230000006870 function Effects 0.000 description 29
- 238000012545 processing Methods 0.000 description 26
- 238000004891 communication Methods 0.000 description 25
- 238000010586 diagram Methods 0.000 description 21
- 238000007726 management method Methods 0.000 description 21
- 239000013598 vector Substances 0.000 description 16
- 230000008569 process Effects 0.000 description 15
- 238000010295 mobile communication Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 10
- 230000004927 fusion Effects 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 10
- 230000006399 behavior Effects 0.000 description 8
- 230000003993 interaction Effects 0.000 description 8
- 238000013527 convolutional neural network Methods 0.000 description 6
- 238000013528 artificial neural network Methods 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000005352 clarification Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/906—Clustering; Classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Definitions
- the present application relates to the field of computer technology, in particular to a search method and electronic equipment.
- Electronic devices can search for relevant web pages from the Internet based on query sentences entered by users, and display the pages of these web pages in order. Summary information (can be called a web page list), the user can click on any web page in the list to view the specific content of the web page.
- the obtained search results usually involve a wide range.
- the content of the web page belongs to multiple web pages of multiple categories such as games, movies, and history.
- Electronic devices usually sort the various search results. It is often difficult for users to find the information they really need from a large number of search results, which leads to inaccurate search results.
- the embodiment of the present application discloses a search method and an electronic device, which can display the subject tags corresponding to the search results to the user, so that the user can quickly and efficiently obtain the required information.
- the present application provides a search method, which is applied to an electronic device.
- the method includes: receiving a first search request input by a user; displaying a first interface, the first interface includes a first search set, and the first search
- the collection includes at least one webpage card and theme tags corresponding to the at least one webpage card, wherein the theme label is used to indicate the category to which the webpage content corresponding to the above-mentioned webpage card belongs, and the at least one webpage card is related to the first search request.
- the electronic device can not only display the search results (that is, the above-mentioned webpage cards), but also display the theme tags corresponding to the webpage cards, so as to assist users to find the information they really need from a large number of search results, and the search results are more accurate. Faster and more efficient.
- the first search set includes a theme card
- the theme card includes at least one theme tag
- the theme card is related to the first search request.
- the electronic device can display at least one topic tag in the form of a topic card, so that the user can obtain a related topic tag from a topic card, making viewing more convenient and improving search efficiency.
- the subject tag includes a first subject tag; after the first interface is displayed, the method further includes: receiving a first user operation acting on the first subject tag; responding to the first user operation Operation, displaying a second interface, the second interface includes a second search set, and the subject tag corresponding to the webpage card included in the second search set is the first subject tag.
- the topic tags displayed by the electronic device provide an interactive function, which can display to the user a second search set that matches the first topic tag selected by the user. More precise search and recommendation further facilitate users to obtain the required information quickly and efficiently.
- the at least one webpage card includes a first webpage card, and the first webpage card includes the first theme tag corresponding to the first webpage card; or, the theme card includes the first theme tag .
- the theme tag providing the interactive function may be a theme tag included in any webpage card, or a theme tag included in a theme card.
- the application scenarios are not limited, and the implementation method is flexible, which further improves the user's sense of use.
- the at least one webpage card includes a second webpage card, and the second webpage card includes a first keyword, and the first keyword is obtained according to the first search request;
- the displaying the first The interface includes: displaying the first keyword in the first interface according to the first display method, displaying the information in the second webpage card except the first keyword in the second display method, the first display method and The above-mentioned second display mode is different.
- the electronic device can distinguishably display the first keyword corresponding to the search request input by the user in the second web page card, further assisting the user to find the information they really need from a large number of search results, and improving search efficiency.
- the second search set includes a third webpage card
- the third webpage card includes a first keyword and a second keyword
- the first keyword is obtained according to the first search request
- the above-mentioned second keyword is obtained according to the above-mentioned first topic tag
- the above-mentioned displaying the second interface includes: displaying the above-mentioned first keyword and the above-mentioned second keyword in the above-mentioned second interface according to the third display mode, according to the first
- the fourth display mode displays the information in the third webpage card except the first keyword and the second keyword, and the third display mode is different from the fourth display mode.
- the electronic device can distinguish between the first keyword and the second keyword in the third webpage card, the first keyword is related to the search request input by the user, and the second keyword is related to the first topic tag selected by the user Relevant, further assist users to find the information they really need from a large number of search results, and improve search efficiency.
- the above-mentioned theme card is located before the first above-mentioned webpage card in the above-mentioned at least one webpage card, or the above-mentioned theme card is located between two of the above-mentioned webpage cards in the above-mentioned at least one webpage card .
- the theme card can be inserted into at least one webpage card for display, does not occupy an additional display position, reduces the impact on the user viewing search results, and improves the user's reading experience.
- the above-mentioned displaying the first interface includes: displaying the second theme label at the first position, displaying the third theme label at the second position, the above-mentioned second theme label and the above-mentioned third theme label are the above-mentioned Any two of the above-mentioned topic tags included in the topic card, the above-mentioned topic card is related to the first topic distribution, the above-mentioned first topic distribution is obtained according to the first keyword, and the above-mentioned first keyword is obtained according to the above-mentioned first search request, The probability corresponding to the second topic label included in the first topic distribution is greater than the probability corresponding to the third topic label included in the first topic distribution, and the first position is before the second position.
- the higher the probability that the topic tags included in the topic card are related to the first keyword corresponding to the search request input by the user the higher the display position, so that the user can preferentially obtain the topic tags that are highly relevant to the search request.
- the display mode better matches the user's needs, improving the user's reading experience.
- the above-mentioned webpage cards included in the above-mentioned first search set are related to the distribution of the first keyword and the first topic
- the above-mentioned first keyword is obtained according to the above-mentioned first search request
- the above-mentioned first topic The distribution is obtained according to the above-mentioned first key.
- the first search set is not only related to the first keyword corresponding to the search request input by the user, but also related to the first topic distribution obtained according to the first keyword, which improves the relevance and diversity of search results.
- the method before displaying the first interface, further includes: sending a first query request to a network device, where the first query request is used to request to obtain search results related to the first search request; obtaining The above-mentioned first search set sent by the above-mentioned network device.
- the method before displaying the second interface, further includes: in response to the first user operation, sending a second query request to the network device, where the second query request is used to request to obtain the first Subject tags and search results related to the above-mentioned first search request; obtaining the above-mentioned second search set sent by the above-mentioned network device.
- the present application provides yet another search method, which is applied to a network device, and the method includes: receiving a first query request, the above-mentioned first query request is sent when the electronic device receives a first search request input by a user, The above-mentioned first query request is used to request to obtain the search results related to the above-mentioned first search request; the first search set is sent to the above-mentioned electronic device, and the above-mentioned first search set is used for the above-mentioned electronic device to display a first interface, and the above-mentioned first interface includes the above-mentioned
- the first search set, the above-mentioned first search set includes at least one webpage card and the theme tags corresponding to the at least one webpage card respectively, the above-mentioned theme label is used to indicate the category to which the webpage content corresponding to the above-mentioned webpage card belongs, and the above-mentioned at least one webpage card and The first search request above is relevant.
- the network device can send the first search set related to the first search request to the electronic device, so that the electronic device can display the search results (that is, the above-mentioned webpage cards) and the subject tags corresponding to the webpage cards, and assist users to search from a large number of Find the information you really need in the results, the search results are more accurate, and the search process is faster and more efficient.
- the first search set includes a theme card
- the theme card includes at least one theme tag
- the theme card is related to the first search request.
- the electronic device can display at least one topic tag in the form of a topic card, so that the user can obtain a related topic tag from a topic card, making viewing more convenient and improving search efficiency.
- the above-mentioned theme card is located before the above-mentioned webpage card that is arranged first among the above-mentioned at least one webpage card, or, in the above-mentioned first interface, the above-mentioned theme card is located at the above-mentioned at least one webpage card. Between two of the aforementioned webcards within a webcard.
- the theme card can be inserted into at least one webpage card for display, does not occupy an additional display position, reduces the impact on the user viewing search results, and improves the user's reading experience.
- the subject tag includes a first subject tag
- the method further includes: receiving a second query request, the second query request being the electronic device Sent when the first user operation acting on the above-mentioned first topic tag is received, the above-mentioned second query request is used to request to obtain the above-mentioned first topic tag and search results related to the above-mentioned first search request; send the second query request to the above-mentioned electronic device A search set, the second search set is used for the electronic device to display a second interface, the second interface includes the second search set, and the theme tag corresponding to the webpage card included in the second search set is the first theme label .
- the topic tags displayed by the electronic device provide an interactive function, which can display to the user a second search set that matches the first topic tag selected by the user. More precise search and recommendation further facilitate users to obtain the required information quickly and efficiently.
- the at least one webpage card includes a first webpage card, and the first webpage card includes the first theme tag corresponding to the first webpage card; or, the theme card includes the first theme tag .
- the theme tag providing the interactive function may be a theme tag included in any webpage card, or a theme tag included in a theme card.
- the application scenarios are not limited, and the implementation method is flexible, which further improves the user's sense of use.
- the method before sending the first search set to the electronic device, the method further includes: sorting the at least one subject tag included in the subject card according to the first subject distribution, and the first subject The distribution is obtained according to the first keyword, the first keyword is obtained according to the first search request, and the probability corresponding to the second topic tag included in the first topic distribution is greater than the third topic included in the first topic distribution
- the probability corresponding to the label is that the arrangement order of the above-mentioned second topic label is before the above-mentioned third topic label, and the above-mentioned second topic label is displayed before the above-mentioned third topic label in the above-mentioned first interface.
- the probability corresponding to the topic tag included in the first topic distribution may represent the degree of association between the topic tag and the first search request, for example, the greater the probability, the higher the degree of association, that is, in the above
- at least one topic tag included in the topic card displayed by the electronic device is sorted, and the topic tag with a higher degree of relevance to the search request input by the user is ranked higher and displayed at a higher position, so that the user can Prioritize the acquisition of hashtags with a high degree of correlation with search requests, and the display method better matches user needs, improving the user's reading experience.
- the above-mentioned webpage cards included in the above-mentioned first search set are related to the distribution of the first keyword and the first topic
- the above-mentioned first keyword is obtained according to the above-mentioned first search request
- the above-mentioned first topic The distribution is obtained according to the above-mentioned first key.
- the first search set is not only related to the first keyword corresponding to the search request input by the user, but also related to the first topic distribution obtained according to the first keyword, which improves the relevance and diversity of search results.
- the method further includes: obtaining the second topic distribution corresponding to the first keyword, the first keyword is obtained according to the first search request; obtaining A third topic distribution corresponding to the third search set, where the third search set is obtained according to the first keyword; the second topic distribution and the third topic distribution are fused into the first topic distribution.
- the first topic distribution related to the topic card, and/or, the first topic distribution related to the first search set can be obtained by fusing the second topic distribution and the third topic distribution, even if there is no first topic distribution
- the second topic distribution corresponding to a keyword can also use the third topic distribution corresponding to the third search set recalled according to the first keyword, so that the processing method is more comprehensive and the fault tolerance is improved.
- the above-mentioned at least one webpage card is obtained from a webpage library, and after receiving the second query request, the above-mentioned method further includes: obtaining the fourth A search set, the above-mentioned theme tag corresponding to the above-mentioned webpage card included in the above-mentioned fourth search set is the above-mentioned first theme label; a fifth search set is obtained from a high-quality library, and the above-mentioned theme label corresponding to the above-mentioned webpage card included in the above-mentioned fifth search set is the above-mentioned first theme tag, the above-mentioned high-quality library is a high-quality database determined based on the quality of the web pages in the above-mentioned web page library; the above-mentioned fourth search set and the above-mentioned fifth search set are fused into the above-mentioned second search set.
- the above method instead of simply determining the set of web cards (such as the fourth search set) whose corresponding theme tag is the first theme label in the first search set as the second search set, it also incorporates The recalled set of webpage cards whose corresponding theme label is the first theme label (that is, the fifth search set) not only ensures the relevance of the webpage (matching the first theme label selected by the user), but also ensures the diversity of the webpage , to expand the user's reading experience and enhance the user's sense of use.
- the present application provides a communication device, including a transceiver, a processor, and a memory, the memory is used to store a computer program, and the processor invokes the computer program to execute any possible The search method in the implementation.
- the present application provides a communications device, including one or more processors and one or more memories.
- the one or more memories are coupled with one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the above-mentioned communication means Execute the search method in any possible implementation manner of any of the foregoing aspects.
- an embodiment of the present application provides a computer storage medium, the computer storage medium stores a computer program, and when the computer program is executed by a processor, the search method in any possible implementation of any of the above aspects is implemented .
- an embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the search method in any possible implementation manner of any one of the above aspects.
- FIG. 1A is a schematic diagram of the architecture of a search system provided by an embodiment of the present application.
- FIG. 1B is an interactive schematic diagram of a search system provided by an embodiment of the present application.
- FIG. 2A is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
- FIG. 2B is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application.
- FIG. 2C is a schematic diagram of a hardware structure of a network device provided by an embodiment of the present application.
- Fig. 3 is a schematic diagram of a user interface embodiment provided by the embodiment of the present application.
- Fig. 4 is a schematic diagram of another user interface embodiment provided by the embodiment of the present application.
- Fig. 5 is a schematic diagram of another user interface embodiment provided by the embodiment of the present application.
- Fig. 6 is a schematic diagram of another user interface embodiment provided by the embodiment of the present application.
- FIG. 7 is a schematic flow chart of a search method provided by an embodiment of the present application.
- Fig. 8 is a schematic flowchart of another search method provided by the embodiment of the present application.
- FIG. 9 is a schematic flowchart of another search method provided by the embodiment of the present application.
- Fig. 10 is a schematic flow diagram of obtaining a high-quality library provided by the embodiment of the present application.
- FIG. 11 is a schematic flowchart of another search method provided by the embodiment of the present application.
- This application provides a search method, which can be applied to electronic equipment.
- the method is used, for example, in search systems or recommendation systems.
- the electronic device when it receives a query statement (query) input by the user and a search request for the query statement, it can display search results and hashtags related to the search results to the user for interaction.
- the electronic device can provide users with search results that match the hashtags selected by the user, that is, search results that meet the actual intention of the user's query. equipment to handle the stress.
- This method is, for example, applied in the field of webpage search, and one search result may correspond to one webpage. in:
- recall refers to triggering as many correct results as possible from the original data (generally understood as a full amount of information collection, such as a webpage library).
- triggering it can be realized based on the correlation with the query statement, for example
- the webpages ranked in the top N places of relevance are the result of recall, and N is a positive integer.
- Sorting is to score and sort the input data (such as the correct result obtained by recall) to obtain at least one result with the highest score. For example, scoring may be based on relevant parameters, such as but not limited to including webpage content, webpage quality, site authority, and relevance of query statements.
- recall can recall thousands of data results from tens of millions of content pools, and then return the data results to other sorting layers for selection, which is equivalent to rough sorting.
- the search system and the recommendation system can display at least one result of the sorted output to the user.
- user information (such as interest characteristics and behavior logs) can also be combined to obtain search results. For example, when recalling and sorting, scores can be based on the relevance of the user's information, thereby recommending the user's interested content.
- Webpage search can be understood as: based on the query statement entered by the user, use specific algorithms and strategies to search the search results related to the query statement from the Internet, each search result corresponds to a webpage, and then sort and display the search results In the result list, each search result in the search result list may include summary information of the corresponding web page. The user may operate any search result to view specific content of the corresponding web page.
- Webpage search can also be understood as an electronic device that effectively integrates relevant webpage content on the Internet through query sentences input by users, and helps users quickly obtain required information through a unified entrance.
- any piece of information may have a topic tag (subsequent descriptions may also be referred to as topics for short), for example, a web page may correspond to a topic tag, and the topic tag may be used to indicate the category to which the content of the web page belongs, such as games, movies, videos, History, stars, agriculture, technology, military, etc.
- topic tag may be used to indicate the category to which the content of the web page belongs, such as games, movies, videos, History, stars, agriculture, technology, military, etc.
- the subject tags of the information are not clear, that is, the subject tags of the information cannot be clearly identified.
- the subject of such information can be represented by subject distribution.
- the topic distribution is not a clear topic label, which can represent many possible situations of the topic label, that is to say, when there are many possible situations of the topic label, it can be represented by a mathematical distribution (ie, the above topic distribution), and the mathematical distribution
- the form of is not limited, for example, it includes probabilities corresponding to multiple possible themes.
- query statement 1 can correspond to topic distribution 1, and topic distribution 1 includes probability 1 corresponding to topic label 1, probability 2 corresponding to topic label 2, and probability 3 corresponding to other topics, and the sum of probability 1, probability 2, and probability 3 is 1
- topic distribution 1 can represent the probability that the topic of query statement 1 is topic label 1 is probability 1, the probability that the topic of query statement 1 is topic label 2 is probability 2, and the topic of query statement 1 is other than topic label 1 and topic label 2
- the probability of the other topics is probability 3.
- the electronic device can identify the topic distribution of a webpage collection (including multiple webpages). Classification probability. In some embodiments, the electronic device can identify the topic distribution of the query statement (this application refers to the topic distribution of the query statement as the first topic distribution).
- the electronic device can identify the implicit schematic diagram that the user searches for.
- the implicit schematic diagram can be an intent that cannot be directly obtained from the content included in the query statement.
- the query statement is fruit 1, and the implicit intent can be agriculture and recipes, etc., and implicit The intent is opposite, that is, the intent that can be obtained directly from the query statement can be fruit 1.
- a (clear) hashtag may correspond to a word distribution, and the word distribution may indicate a plurality of words used to characterize the corresponding hashtag, which may also be referred to as related words of the hashtag.
- the distribution is also a mathematical distribution, and the specific form is not limited, for example, it includes probabilities corresponding to multiple words.
- only the top N words among the plurality of words may be used to characterize the word distribution, where N is a positive integer.
- topic tag 1 may correspond to word distribution 1
- word distribution 1 includes probabilities corresponding to 10 words used to characterize topic tag 1.
- the above-mentioned 10 words may be sorted after multiple words used to characterize topic tag 1
- the top 10 words are, for example but not limited to, sorted by relevance to the topic.
- the webpage library can be used for recalling webpages by the electronic device.
- the webpage library is, for example, a collection of a large number of webpages crawled by the electronic device from the Internet using crawler technology.
- a high-quality library can be used to recall webpages for electronic devices.
- a high-quality library is obtained by electronic devices using webpage processing and analysis technology to analyze the authority and importance of webpages in the webpage library, for example, based on authority and importance. Determine the quality of webpages, and filter out high-quality webpage collections.
- the high-quality library can be understood as a subset of the webpage library.
- An example of the process for the electronic device to obtain a high-quality library based on the web page library can be seen in Figure 10 below, which will not be described in detail for now.
- a search system 10 involved in the embodiment of the present application is introduced below.
- FIG. 1A exemplarily shows a schematic structural diagram of a search system 10 provided by an embodiment of the present application.
- the search system 10 may include an electronic device 100 and a network device 200 .
- Electronic devices can be wired (for example, universal serial bus (universal serial bus, USB), twisted pair, coaxial cable, and optical fiber, etc.) or wireless (for example, wireless local area networks (wireless local area networks, WLAN), Bluetooth and mobile device network, etc.) to communicate with network devices.
- wired for example, universal serial bus (universal serial bus, USB), twisted pair, coaxial cable, and optical fiber, etc.
- wireless for example, wireless local area networks (wireless local area networks, WLAN), Bluetooth and mobile device network, etc.) to communicate with network devices.
- the electronic device 100 may be mobile terminals such as mobile phones, tablet computers, handheld computers, and personal digital assistants (Personal Digital Assistant, PDA), smart home devices such as smart TVs and smart cameras, smart bracelets, smart watches, smart glasses, etc. Wearable devices, or other desktops, laptops, notebooks, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), netbooks, smart screens and other devices.
- PDA Personal Digital Assistant
- UMPC ultra-mobile personal computers
- netbooks smart screens and other devices.
- the embodiment of the present application does not specifically limit the specific type of the electronic device 100 .
- the network device 200 may include at least one server, in some embodiments, any one server may be a hardware server, and in some embodiments, any one server may be a cloud server.
- the electronic device 100 may communicate with the network device 200 based on a browser/server (B/S) framework, or may communicate based on a client/server (client/server, C/S) framework.
- the electronic device 100 may receive a search request input by a user, and request the network device 200 to obtain a webpage search result corresponding to the search request.
- the webpage search result may be obtained based on a search statement, and the query statement may be based on a search request input by the user. obtained.
- the electronic device 100 may display the above webpage search results obtained from the network device 200 .
- FIG. 1B exemplarily shows a schematic diagram of interaction of a search system 10 provided by an embodiment of the present application.
- the electronic device 100 in the search system 10 may include an application program, such as a browser.
- the network device 200 in the search system 10 may include a query module (Query), a recall module and a ranking module (Ranker), wherein:
- the application program of the electronic device 100 can be used to receive a search request input by the user, and send a query request to the query module of the network device 200 based on the received search request, so as to request to obtain a web page search result corresponding to the search request.
- the query module of the network device 200 may be used for analyzing and processing query statements, which may be obtained based on a search request input by a user.
- the query module can analyze and understand the query statement to obtain analysis results of the query statement such as keywords and vectors, and send the analysis result of the query statement to the recall module of the network device 200 .
- the query module can perform topic identification on the analysis result of the query statement to obtain the topic distribution of the query statement, and send the topic distribution of the query statement to the recall module of the network device 200 .
- the recall module of the network device 200 may be used to recall the set of webpages, and send the recalled set of webpages to the sorting module of the network device 200 .
- the recall module may recall the set of webpages based on the analysis result and topic distribution of the query statement sent by the query module.
- the sorting module of the network device 200 can be used to sort the set of webpages sent by the recall module to obtain a sorting result, and send the sorting result to the application program of the electronic device 100 .
- the sorting module may also send the subject tags respectively corresponding to at least one webpage in the sorting results to the application program of the electronic device 100 .
- the sorting module can sort the collection of webpages together with topic cards to obtain a sorting result.
- the topic cards include at least one topic tag.
- the topic cards correspond to the topic distribution of the query statement.
- the application program of the electronic device 100 may be used to receive the ranking result sent by the ranking module of the network device 200 and display the ranking result.
- the application program may display the topic tags respectively corresponding to at least one webpage in the sorted results.
- the sorting results displayed by the application program may include topic cards, and the displayed topic cards may include at least one topic tag.
- the application program of the electronic device 100 can be used to receive a search request input by the user and act on the first hashtag, and send a query request to the recall module of the network device 200 based on the received search request to request to obtain The web page search result corresponding to the search request.
- the recall module of the network device 200 may recall the set of webpages based on the first theme tag, and send the recalled set of webpages to the ranking module of the network device 200 .
- the ranking module can sort the set of web pages sent by the recall module to obtain a ranking result, and send the ranking result to the application program of the electronic device 100 .
- the application program of the electronic device 100 may display the received sorting result, and the topic tag corresponding to the webpage in the sorting result is the first topic tag.
- FIG. 2A shows a schematic structural diagram of an electronic device 100 .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be disposed in the processor 110 .
- the power management module 141 and the charging management module 140 may also be set in the same device.
- the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide information including WLAN (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), and global navigation satellite system (global navigation satellite system, GNSS) applied on the electronic device 100. , frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- time division code division multiple access time-division code division multiple access
- TD-SCDMA time-division code division multiple access
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used for processing the data fed back by the camera 193 .
- the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, etc.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be located in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 170 may also be used to encode and decode audio signals.
- the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
- Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
- Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
- Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the receiver 170B can be placed close to the human ear to receive the voice.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
- the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- pressure sensor 180A may be disposed on display screen 194 .
- pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
- a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
- the electronic device 100 determines the intensity of pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
- the touch sensor 180K is also called “touch device”.
- the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- the software system of the layered architecture may be an Android system, a Huawei mobile services (HMS) system, or other software systems.
- the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
- FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application package may include application programs such as camera, calendar, music, short message, gallery, call, navigation, bluetooth, and browser.
- application programs such as camera, calendar, music, short message, gallery, call, navigation, bluetooth, and browser.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
- the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
- a corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level.
- the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Assuming that the touch operation is a touch and click operation, and the control corresponding to the click operation is the search control of the browser as an example, the browser calls the interface of the application framework layer, based on the query statement entered by the user in the search box control of the browser. Search, and then start the display driver by calling the kernel layer, and display the list of webpages obtained by searching through the display screen 194 . Users can obtain the required information through the web page list obtained by searching.
- FIG. 2C shows a schematic structural diagram of a network device 200 .
- the network device 200 may include one or more processors 201, communication interfaces 202, and memories 203, wherein the processors 201, communication interfaces 202, and memories 203 may be connected via a bus or in other ways. Connection via bus 204 as an example. in:
- Processor 201 may be composed of one or more general-purpose processors, such as CPUs.
- the processor 201 can be used to run related program codes of the device control method.
- the communication interface 202 can be a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface), and is used for communicating with other nodes. In the embodiment of the present application, the communication interface 202 may specifically be used to communicate with the electronic device 100 .
- the memory 203 may include volatile memory (volatile memory), such as RAM; the memory may also include non-volatile memory (non-vlatile memory), such as ROM, flash memory (flash memory), HDD or solid state disk SSD.
- volatile memory volatile memory
- non-vlatile memory non-volatile memory
- ROM read-only memory
- flash memory flash memory
- HDD solid state disk SSD
- the memory 203 may also include a combination of the above-mentioned kinds of memories.
- the memory 203 may be used to store a set of program codes, so that the processor 201 calls the program codes stored in the memory 203 to implement the implementation method in the server of the embodiment of the present application.
- the storage 203 may also be a storage array, and the like.
- the network device 200 may include multiple servers, for example, a web server, a background server, a download server, etc.
- the hardware structure of these multiple servers may refer to the hardware structure of the network device 200 shown in FIG. 2C .
- the network device 200 shown in FIG. 2C is only an implementation manner of the embodiment of the present application. In practical applications, the network device 200 may include more or fewer components, which is not limited here.
- FIG. 3 exemplarily shows a schematic diagram of a user interface.
- A) of FIG. 3 shows the user interface 310 before the search control 311B is clicked
- B) of FIG. 3 shows the user interface 320 after the search control 311B is clicked.
- the electronic device can display a user interface 310 of a browser.
- the user interface 310 can be a touch operation (for example, clicking on an icon of a browser) that the electronic device responds to on the desktop. operation), in some embodiments, the user interface 310 may be the homepage of the browser.
- the user interface 310 may include a search bar 311, a navigation bar, and recommended web pages. in:
- the search bar 311 can be used to implement a search function.
- the search bar 311 may include a search box 311A and a search control 311B.
- the search box 311A may be used to input a query statement.
- the search box 311A in the user interface 310 includes text: "search", which is used to prompt the user to input a query statement.
- the search control 311B can be used to trigger a search corresponding to a query statement.
- the electronic device may receive a query statement input by the user based on the search box 311A, and then may receive a touch operation (such as a click operation) acting on the search control 311B, and in response to the touch operation, perform a search based on the query statement to obtain at least one search statement related to the query statement. , and sort at least one of the pages.
- the electronic device may display the sorted web pages, for example, display the user interface 320 shown in (B) of FIG. 3 .
- the electronic device may display a user interface 320 of a browser.
- the user interface 320 may include a search bar 311.
- the search bar 311 in the user interface 320 is similar to the search bar 311 in the user interface 310 shown in (A) of FIG.
- the text included in the search box 311A is the query sentence input by the user: "person A”.
- the user interface 320 may be used to display a list of search results corresponding to the query statement, for example, web page 321, web page 322, and web page 323 in order of sorting, but not limited thereto, more or less search results may be obtained, This application is not limited to this.
- Any webpage in the search result list can include a title and a URL, the title can indicate the content of the webpage, and the URL is the address of the webpage, and the specific content of the webpage can be accessed through the URL.
- the webpage 321 includes a title 321A (including the characters "Character A-Game 1 official website") and a website address 321B (including the characters "URL aaa”), wherein the name of the game corresponding to "Character A" in this application is "Game 1" is an example
- the URL can be an Internet protocol (internet protocol, IP) address, or a domain name address, and the specific form is not limited.
- IP Internet protocol
- the electronic device simply sorts the search results and presents them to the user.
- the user's actual search intention may only involve one of the fields, and the user often needs multiple operations to obtain the desired information, such as performing multiple sliding operations to view the current
- the electronic device when displaying the search results, can display the hashtags related to the search results to the user for interaction, reducing the operations performed by the user when obtaining the required information from a large number of search results, and also reducing the processing pressure on the device .
- the electronic device may display a hashtag corresponding to any search result, and a specific example is shown in FIG. 4 below.
- FIG. 4 exemplarily shows a schematic diagram of another user interface.
- (A) of FIG. 4 shows the user interface 310 before the search control 311B is clicked, and
- (B) of FIG. 4 shows the user interface 330 after the search control 311B is clicked.
- the electronic device may display a user interface 310 of a browser, that is, the user interface 310 shown in (A) of FIG. 3 .
- the electronic device may receive the query statement "person A" input by the user based on the search box 311A, and in response to a touch operation (such as a click operation) acting on the search control 311B, perform a search based on the query statement to obtain at least one search result, and perform a search on the query statement.
- At least one search result is sorted, and each search result corresponds to a web page.
- the electronic device may display topic tags corresponding to some or all of the search results, such as the user interface 330 shown in (B) of FIG. 4 .
- the user interface 330 may include a search bar 311 , for details, refer to the description of the search bar 311 in the user interface 320 shown in (B) of FIG. 3 .
- the user interface 330 can be used to display a list of search results corresponding to the query statement "person A", for example, the web page 331, the web page 333, and the web page 332 in the order of sorting, but it is not limited thereto, and more search results can be obtained. Less, the application is not limited to this.
- Any search result in the search result list can include the title, introduction, URL, source and hashtag of the corresponding webpage, the title and introduction can indicate the content of the webpage, the URL is the entry address for accessing the webpage, and the source is the source of publishing the webpage (For example, website name, official account name, company name, etc.).
- web page 331 includes a title 331A (including the characters "Character A - Game 1 Official Website"), an introduction 331B (including the characters "Game 1 Character Profile: Character A --), a URL 331C, a source 331D, and a subject 331E (including the characters "Game 1 1").
- Web page 332 includes title 332A (including the characters "The Life of Historical Figure A"), Introduction 332B (including the characters “Introducing Character A of Dynasty H --”)), URL 332C, Source 332D, and Subject 332E (including the text "Historical Figure”),
- the present application takes the historical dynasty corresponding to "person A” as “dynasty H” as an example.
- the webpage 333 includes a title 333A (including the characters “Character A Celebrity Data Collection"), an introduction 333B (including the characters “Character A Popular Film and Television Works"), a URL 333C, a source 333D, and a subject 333E (including the words "Celebrity").
- web page 331, web page 332, and web page 333 are the search results ranked in the top three positions.
- the electronic device may display the search results ranked in the third position in response to a touch operation (such as a sliding operation from bottom to top).
- Results i.e. page 332 after the search results, but hashtags for those search results are not displayed.
- the electronic device may also display more hashtags of the search results, which is not limited in the present application.
- the electronic device may receive a touch operation (such as a click operation) acting on a topic tag corresponding to any search result, such as topic 331E, topic 332E or topic 332E in the user interface 330 shown in (B) of FIG.
- the topic 333E in response to the touch operation, displays search results related to the query statement and the topic tag selected by the user, such as the user interface 410 (corresponding to the topic 332E) shown in (A) of Figure 6 below or (B) of Figure 6
- User interface 420 is shown (corresponding to topic 331E).
- the electronic device may display a theme card in the search result list, and the theme card includes at least one theme label corresponding to the search result in the search result list.
- the theme card includes at least one theme label corresponding to the search result in the search result list.
- FIG. 5 exemplarily shows a schematic diagram of another user interface.
- (A) of FIG. 5 shows the user interface 310 before the search control 311B is clicked, and
- (B) of FIG. 5 shows the user interface 340 after the search control 311B is clicked.
- the electronic device may display a user interface 310 of a browser, that is, the user interface 310 shown in (A) of FIG. 3 .
- the electronic device may receive a query sentence "person A" input by the user based on the search box 311A, and perform a search based on the query sentence to obtain at least one search result in response to a touch operation (such as a click operation) acting on the search control 311B.
- the electronic device may sort the at least one search result and topic cards of the query statement obtained from the search, and display the sorted results, such as the user interface 340 shown in (B) of FIG. 5 .
- the user interface 340 may include a search bar 311 , for details, refer to the description of the search bar 311 in the user interface 320 shown in (B) of FIG. 3 .
- the user interface 340 can be used to display a plurality of search results and topic cards corresponding to the query statement "person A", for example, according to the order of sorting, there are webpage 341, webpage 342, topic card 343 and webpage 344, webpage 341, webpage 342
- the webpage 344 is similar to the webpage 331, the webpage 333 and the webpage 332 in the user interface 330 shown in (B) of FIG.
- Topic card 343 may include a title (including the text "recommended content") and a plurality of topic labels, such as topic 343A (including the characters “historical figure”), topic 343B (including the characters “star”), topic 343C (including the characters "game 1 ").
- the topic cards are determined according to the topic distribution of the query statement, for example, the topic card 343 in the user interface 340 is used to indicate the topic distribution of the query statement, and the topic distribution includes three clear topics: "historical figure” , “Star” and “Game 1", respectively corresponding to theme 343A, theme 343B and theme 343C.
- the electronic device can receive a touch operation (such as a click operation) acting on any topic label in the topic card 343, such as topic 343A, topic 343B or topic 343C, and in response to the touch operation, display and query sentences And search results related to the topic tag selected by the user, such as the user interface 410 (corresponding to topic 343A) shown in (A) of FIG. 6 below or the user interface 420 (corresponding to topic 343C) shown in FIG. 6 (B) below.
- a touch operation such as a click operation acting on any topic label in the topic card 343, such as topic 343A, topic 343B or topic 343C
- search results related to the topic tag selected by the user such as the user interface 410 (corresponding to topic 343A) shown in (A) of FIG. 6 below or the user interface 420 (corresponding to topic 343C) shown in FIG. 6 (B) below.
- the electronic device can hit and display (also referred to as highlighting) the query sentence "person A" in the search result list, and the hit display can be understood as a display method that is different from other display methods, for example, the ( B) In the user interface 330 shown, "character A” in the title 331A and brief introduction 331B of the web page 331, "character A” in the title 332A and brief introduction 332B of the web page 332, and in the title 333A and brief introduction 333B of the web page 333 The "Character A” is partially grayed out, and other characters are not partially grayed out.
- the hit display of the user interface 340 shown in (B) of FIG. 5 is consistent with that of (B) of FIG. 4 , and will not be repeated here.
- the theme card is displayed in the search result list as an example for illustration.
- the theme card can also be displayed floating on the search result list, or can be displayed beside the search result list (for example, on the display screen. left or right edge), this application does not limit the display mode of the theme card.
- the electronic device may display search results related to the hashtag selected by the user, a specific example is shown in FIG. 6 below.
- FIG. 6 exemplarily shows a schematic diagram of another user interface.
- the electronic device may display a user interface 410 of a browser, and the user interface 410 may include a search result list and a navigation bar 415 . in:
- search results in the search result list are obtained by searching based on the query statement "person A" and the topic "historical figure" selected by the user, for example, web page 411, web page 412, web page 413 and web page 414 in order of sorting. Limited to this, more or less search results may be obtained, which is not limited in this application.
- Any search result in the search result list may include the title, URL, source, and optionally an introduction of the corresponding web page.
- web page 411 includes a title 411A (including the characters "Story of Historical Figure A") and a brief 411B (including the characters "Character A is of Dynasty H.").
- Web page 412 includes a title 412A (comprising an icon and the characters "Historical Figures Explaining Dynasty H", the icon indicating that the web page includes video information).
- the web page 413 includes a title 413A (including the characters “Life of historical figure A") and an introduction 413B (including the characters "Introducing character A of dynasty H").
- Web page 414 includes a title 414A (including the characters "How did character A die in history") and an introduction 414B (including the characters "Character A died in"). It can be seen from the titles of these webpages that webpage 411, webpage 413 and webpage 414 are related to the query sentence "person A", and webpage 412 is related to the topic label "historical person” selected by the user.
- webpage 411 and webpage 413 It has nothing to do with web page 414 and "historical figure", and it does not limit that web page 412 has nothing to do with "person A”.
- the electronic device recommends to the user a search result whose topic tag is the topic tag "historical person” selected by the user, which is more in line with the actual intention of the user's query.
- these search results are not limited to be related to the query sentence "person A”.
- the title 412A of the webpage 412 does not include the query sentence "person A”, but includes the topic tag "historical person” selected by the user, which can be understood as based on the query
- the actual intention is aggregated and expanded, and more search results related to the hashtag selected by the user are recommended to expand the user's reading experience and improve the experience.
- Navigation bar 415 may include a back control 415A and a number of windows 415B.
- the return control 415A can be used to return to the previous interface, for example, in the user interface 410 shown in (A) of FIG. , return to display the webpage of the upper level, that is, the user interface 330 shown in (B) of FIG. 4 or the user interface 340 shown in (B) of FIG. 5 .
- the number of windows 415B may represent the number of windows opened at the same time, for example, the user interface 410 shown in (A) of FIG. 6 and the upper-level web page are opened at the same time.
- the electronic device can display a user interface 420 of a browser.
- the user interface 420 is similar to the user interface 410 shown in (A) of FIG. Search based on the query statement "character A" and the topic tag "game 1" selected by the user, such as web page 421, web page 422, web page 423, and web page 424 in order of sorting, wherein web page 421 includes title 421A ( Including characters "Game 1 role introduction”) and a brief introduction 421B (including characters "Game 1 roles include character A and character B").
- Web page 422 includes a title 422A (including the characters “Game 1 Skills Analysis") and a brief 422B (including the characters "Character A's skills include”).
- the web page 423 includes a title 423A (including the characters “Character A - Game 1 Official Website”) and an introduction 423B (including the characters “Game 1 Character Profile: Character A").
- Web page 424 includes a title 424A (including the text "Character A Equipment Recommendations") and a brief 424B (including the text "Character A's core equipment is"). Based on the titles of these search results, it can be seen that webpage 423 and webpage 424 are related to the query sentence "person A”, and webpage 421 and webpage 422 are related to the topic tag "game 1" selected by the user.
- webpage 423 and webpage 424 has nothing to do with “Game 1”
- web page 421 and web page 422 have nothing to do with "Character A”.
- the electronic device recommends to the user a search result whose topic tag is the topic tag "game 1" selected by the user, which is more in line with the actual intention of the user's query.
- the electronic device may match and display the query sentence "person A" in the search result list, the hashtag selected by the user, and the related words of the hashtag.
- the topic tag selected by the user is "historical figure”.
- the related words of "historical person” include “history” and “dynasty H” (the historical dynasty corresponding to "person A”).
- the hashtag selected by the user is "Game 1".
- the related words of "game 1” include “skill”, “role” and “equipment”.
- "game 1" and “character” in the title 421A of the web page 421 "game 1", “role” and “character A” in the introduction 421B, "game 1” and “skill A” in the title 422A of the web page 422 ", "Character A” and “Skills” in the introduction 422B, "Character A” and “Game 1” in the title 423A of the web page 423, "Game 1” and “Character A” in the introduction 423B, in the title 424A of the web page 424" "Character A” and “equipment”, “Character A” and “equipment” in the introduction 424B are partially grayed out, and other characters are not partially grayed out.
- the electronic device can receive a touch operation (such as a click operation) acting on any search result, and in response to the touch operation, display the specific content of the search result, such as jumping to the webpage where the user selected A user interface, the user interface is used to display the specific content of the webpage.
- a touch operation such as a click operation
- the electronic device when it realizes the search function or the recommendation function, it can return the search results and the hashtags related to the search results based on the query statement input by the user, and provide a good interaction mode for clarification of intentions through the hashtags, as shown in Figure 4 (
- the user interface 330 shown in B) displays the topic labels corresponding to the search results obtained through the query statement
- the user interface 340 shown in (B) of FIG. 5 displays the topic cards corresponding to the query statement.
- the electronic device may recommend to the user a search result in which the topic tag is the topic tag selected by the user, that is, to provide the user with search results that are more in line with the user's actual intention, such as the user interface 410 shown in FIG. 6 and (B) shown in FIG. 6 .
- the displayed user interface 420, the search result obtained at this time is more accurate. In this way, users can quickly and efficiently obtain required information from a large number of search results, reducing user operations and reducing device processing pressure.
- the search method involved in this application is introduced. This method can be applied to the search system 10 shown in FIG. 1A and FIG. 1B .
- FIG. 7 is a schematic flowchart of a search method provided in an embodiment of the present application. This method may include, but is not limited to, the following procedures:
- the application program of the electronic device sends a query request to the query module of the network device.
- the electronic device can receive a search request input by the user through an application program, and the search request can be used to request to search for a corresponding query statement. For example, in the embodiments shown in FIGS. Based on the query sentence "person A" entered in the search box 311A, a touch operation on the search control 311B may be received, which can be understood as receiving a search request for the search query sentence "person A".
- the electronic device receives the search request by receiving characters, receiving voice, or receiving gestures.
- the application program can send a query request to the query module based on the received search request input by the user, and the query request is used to request to obtain search results related to the query statement. arrived.
- the query module of the network device analyzes the query statement to obtain analysis results such as keywords and vectors.
- the query module may analyze and understand the query statement based on the query request sent by the application program of the electronic device to obtain an analysis result of the query statement.
- the analysis result may include the keyword "person A” obtained by identifying entity words of the query sentence.
- the analysis results may include the keywords “city A” and “sight spots” obtained by segmenting the query sentence, and the keywords “landscape” and " Landscape” (may also be referred to as a synonym for acquisition). It is not limited thereto, and the way to understand the query statement (query) also includes error correction, etc., which is not limited in this application.
- the query module of the network device determines the second topic distribution based on the analysis result of the query statement.
- the corresponding relationship between keywords and topic distribution can be preset in the query module, and the query module can determine the topic distribution corresponding to at least one keyword in the analysis results according to the corresponding relationship, and then at least one of the determined The topic distributions are weighted and summed to obtain a second topic distribution.
- the analysis result of the query statement is the keyword "person A”
- the second topic distribution determined by the query module according to the preset correspondence includes: the probability that the topic is "star” 0.4, the probability that the topic is "historical figure” is 0.3, and the probability that the topic is other topics other than these two topics is 0.3.
- this application classifies the cases where the subject matter is not clear, and calls it the case where the subject matter is another subject matter.
- the query module of the network device sends the analysis result of the query statement to the recall module of the network device.
- the query module may send the keyword "person A" obtained by analyzing the query statement to the recall module.
- the recall module of the network device recalls the first set of webpages based on the analysis result of the query statement.
- the recall module can recall the first set of webpages based on the keyword "person A" obtained by analyzing the query statement.
- the first set of webpages includes the webpages in the user interface 320 shown in (B) of FIG. "Person A" has a high degree of correlation.
- the recall module can also recall the first set of webpages based on the second topic distribution, optionally, based on the correlation between the webpage and the analysis result of the query statement, and the correlation between the webpage and the second topic distribution, recall the related The number of webpages that are ranked first.
- the recall module can also recall the first set of webpages based on the user's information (such as interest characteristics and webpage behavior logs), optionally, based on the correlation between the webpage and the analysis result of the query statement, and the webpage and the user's Relevance of information, recall multiple webpages ranked higher in relevancy.
- the user's information such as interest characteristics and webpage behavior logs
- the first webpage collection includes the webpages in the user interface 320 shown in (B) of Figure 3 above: webpage 321, webpage 322 And web page 323, wherein web page 321 may be a web page with a higher correlation degree between the web page content and the analysis result "character A" of the query statement, and a higher correlation degree between the web page content and the user's information (ie, the above-mentioned "game”).
- the recall module of the network device sends the first set of webpages to the query module of the network device.
- the query module of the network device determines a third topic distribution based on the first set of web pages.
- the query module may first identify the topics of multiple webpages to be searched, for example, perform topic identification on each webpage in the webpage database, and this process can be understood as offline topic prediction.
- the webpages identified in the offline topic prediction stage may be stored in the electronic device.
- the query module can perform topic identification on each webpage in the first webpage collection.
- the topic of the webpage can be obtained directly
- the webpage to be identified is not a webpage whose topic has been identified in the offline topic prediction stage (for example, a newly released news webpage after the offline topic prediction stage)
- the topic tag of the webpage can be identified in real time. Thereby reducing the amount of data processed in real time and speeding up the processing speed.
- the query module can count the topics of the web pages in the first web page collection to determine the third topic distribution.
- the query module can call the topic model to predict the webpage, use the information of the webpage as the input of the topic model, and obtain the output: the identification (identity document, id) of the topic of the webpage, the word corresponding to the id Distribution (e.g. indicating the top 10 words characterizing the topic). Then based on the id of the topic, the corresponding word distribution and the specific content of the webpage, the detailed information of the topic is generated, that is, the topic tag of the webpage is identified.
- the identification identity document, id
- the word corresponding to the id Distribution e.g. indicating the top 10 words characterizing the topic
- the query module can use the specific content of webpage 1 as the input of the topic model, and obtain the output: the id of the topic of webpage 1 (assumed to be 111), the word distribution corresponding to the id (assumed to include the probability of "video” 0.5, "game” The probability of "0.3 and the probability of "star” is 0.2), and then based on the id, the word distribution and the specific content of webpage 1, the topic "entertainment" of webpage 1 is generated, wherein “entertainment” can be uniquely identified by topic id111.
- the electronic device receives the detailed information of the topics corresponding to the multiple topic ids manually input by the user, for example, the electronic device receives the topic "entertainment" with the id 111 manually input by the user.
- the first set of webpages is recalled by the recall module based on the analysis result "person A" of the query statement and the distribution of the second topic. It can be understood that, in combination with the description of the above recall, the first set of webpages may include the subject of The webpages of the topics indicated by the second topic distribution may also include webpages whose topics are not indicated by the second topic distribution, so the topics indicated by the third topic distribution corresponding to the first webpage set and the topics indicated by the second topic distribution may be the same , can also be different.
- the query module of the network device fuses the second topic distribution and the third topic distribution to obtain the first topic distribution (also called the topic distribution of the query statement).
- the query module may perform weighted summation of the second topic distribution and the third topic distribution to obtain the first topic distribution.
- the second topic distribution is the second topic distribution of the example in step 3: the probability that the topic is "star” is 0.4, the probability that the topic is "historical figure” is 0.3, and the probability that the topic is other topics other than these two topics is 0.3.
- the third topic distribution is the third topic distribution of the example in step 7: the probability that the topic is "historical figure” is 0.5, the probability that the topic is "Game 1" is 0.3, and the probability that the topic is other topics other than these two topics is 0.2.
- the query module of the network device sends the first topic distribution to the recall module of the network device.
- the recall module of the network device recalls the second set of web pages based on the analysis results and the first topic distribution.
- the recall module may be based on the correlation between the webpage and the keyword "person A" obtained by analyzing the query statement, and the correlation between the webpage and the first topic distribution, optionally as well as the information of the webpage and the user (such as interest characteristics and webpage behavior log), and recall multiple webpages ranked higher in relevance.
- recalling webpages in combination with user information refer to the description of recalling the first set of webpages based on user information in step 5.
- the second set of webpages includes the webpages in the user interface 330 shown in (B) of FIG. 4 above: webpage 331, webpage 333, and webpage 332, and these webpages have a high degree of correlation with the analysis result "person A" of the query statement , and the relevance degree of the topic "game 1" indicated by the web page 331 and the first topic distribution (assumed to be the first topic distribution example in step 8) is relatively high, and the correlation degree of the topic "star” indicated by the web page 333 and the first topic distribution Higher, the correlation between the web page 332 and the topic "historical figures" indicated by the first topic distribution is high.
- the second topic distribution, the third topic distribution and the first topic distribution are The second topic distribution, the third topic distribution and the first topic distribution illustrated in step 8.
- the webpages (second webpage set) in the user interface 330 shown in (B) of FIG. 4 above are combined
- the first topic distribution and other parameters are recalled, and the first topic distribution is obtained by fusing the second topic distribution and the third topic distribution. Therefore, the webpage in the user interface 330 shown in (B) of FIG.
- the second set of webpages) may further include a webpage 333 with a topic tag of "star", which is a topic tag included in the second topic distribution and not included in the third topic distribution.
- the recall module of the network device sends the second set of webpages to the ranking module of the network device.
- the sorting module of the network device sorts the second webpage set to obtain the first sorting result.
- the ranking module can score based on the relevant parameters of each webpage, and the relevant parameters include at least one of the following: correlation between webpages, webpage content, webpage quality, site authority, and analysis results of query sentences
- sort the scored webpages the higher the score, the higher the ranking order, for example, the N webpages ranked in the top N positions are the first sorting results, and N is a positive integer.
- the first sorting result includes the webpages in the user interface 330 shown in (B) of FIG. 333 (theme is "star") and page 332 (theme is "historical figure”).
- the result of sorting the first set of webpages is the webpages in the user interface 320 shown in (B) of FIG. Historical Figures") and page 323 (subjected to "Historical Figures").
- the webpage in the user interface 330 shown in (B) of FIG. 4 above (the first sorting result) Result) is obtained by combining the correlation with the first topic distribution and other related parameters.
- the ranking module of the network device sends the first ranking result and the theme tag of at least one webpage in the first ranking result to the application program of the electronic device.
- the ranking module can determine whether to send the subject tags of the first ranking result to the application program, for example, the ranking module can determine whether the top N webpages in the first ranking result have clear subject tags, If at least one of the N web pages has a definite theme tag, the sorting module may send the theme tag of the at least one web page to the application program, where N is a positive integer.
- the application program of the electronic device displays the first sorted result and a topic tag of at least one webpage in the first sorted result.
- the first sorting result displayed by the application program is related to the search request input by the user through the application program in step 1, and may specifically include: the first sorting result displayed by the application program is related to the analysis result of the query statement,
- the query statement is obtained according to the search request (see step 2 in FIG. 7 for a specific example).
- the analysis result of the query statement is the keyword "character A”
- the user interface 330 shown in (B) of FIG. The titles and introductions of these webpages both include the keyword "person A”, which can be understood as being related to the first ranking result and the keyword "person A”.
- the application program when it displays the first sorting result, it may display the theme tag of the at least one webpage together.
- it when displaying any one of the at least one webpage, it may correspondingly display the theme label of the webpage.
- the top three web pages all have clear theme tags, and the above-mentioned N is greater than or equal to 3, and the web page 331 includes a theme 331E, indicating that the theme is "Game 1 ", the web page 332 includes a subject 332E, indicating that the subject is "historical figure”, and the web page 333 includes a subject 333E, indicating that the subject is "star”.
- Step 3 and Step 4 is not limited.
- FIG. 8 is a schematic flowchart of another search method provided by the embodiment of the present application.
- the method may include steps 1-10 in the embodiment in FIG. 7 , and for details, refer to the description of steps 1-10 in FIG. 7 .
- the method also includes:
- the recall module of the network device sends the first topic distribution and the second set of web pages to the ranking module of the network device.
- the sorting module of the network device sorts the second webpage collection and the first topic distribution to obtain a second sorting result.
- the ranking module scores each webpage in the second webpage collection, and scores the first topic distribution, and then sorts the scored webpages and the first topic distribution, the higher the score, the higher the ranking order.
- the N webpages ranked in the top N positions are the second sorting results, and N is a positive integer.
- the second sorting result includes webpages and topic cards (corresponding to the first topic distribution) in the user interface 340 shown in (B) of FIG. The score is lower than that of the webpage 342 and higher than that of the webpage 344, so the webpages and topic cards in the user interface 340 are arranged in sequence: webpage 341, webpage 342, topic card 343 and webpage 344.
- step 12a For an example of the ranking module scoring web pages, refer to the description of step 12a in FIG. 7 .
- An example of the ranking module scoring the first topic distribution is shown below:
- the ranking module of the network device sends the second ranking result to the application program.
- the ranking module can determine whether to send the second ranking result including the first topic distribution to the application program, for example, the ranking module can judge whether the first topic distribution ranks in the top N positions in the second ranking result, and if so, The sorting module can send the second sorting result to the application program, otherwise step 12a and step 13a in FIG. 7 can be executed, and N is a positive integer.
- the application program of the electronic device displays the second ranking result.
- the second sorting result displayed by the application program includes a theme card and a plurality of web pages, and the theme card includes at least one theme label, wherein:
- the multiple webpages included in the second sorting result are related to the search request input by the user through the application program in Step 1, and may specifically include: the above-mentioned multiple webpages are related to the analysis results of the query statement, and the query statement is Obtained according to the search request (see step 2 in FIG. 7 for a specific process example).
- the analysis result of the query statement is the keyword "character A”
- webpage 344 wherein the titles and/or introductions of webpage 341, webpage 342 and webpage 344 all include the keyword "person A”
- the plurality of webpages included in the second sorting result are related to the keyword "person A”.
- the topic cards included in the second sorting result are related to the search request input by the user through the application program in step 1, and may specifically include: the topic cards are related to the first topic distribution, and the first topic distribution is It is obtained based on the analysis result of the query statement (see steps 3-8 in FIG. 7 for a specific process example), and the query statement is obtained according to the search request (see step 2 in FIG. 7 for a specific process example).
- the topic card is related to the first topic distribution, specifically: at least one topic tag included in the topic card is at least one definite topic tag included in the first topic distribution.
- the first topic distribution is the first topic distribution in the example of step 8 in Figure 7 above: the probability of the topic being "historical figure” is 0.4, the probability of the topic being "star” is 0.2, the probability of the topic being “Game 1" is 0.15, and the topic is The probability of other topics than these three topics is 0.25.
- the theme card 343 includes a theme 343A (including the characters " historical figure"), theme 343B (comprising character “star”), theme 343C (comprising character “game 1"), can indicate that the theme card includes three theme tags "historical figure", "star” and "game 1", namely The first topic distribution includes three explicit topic tags.
- the theme card displayed by the application program is related to the first theme distribution, which specifically includes: the display position of at least one theme label included in the theme card is related to the probability corresponding to the theme label included in the first theme distribution, for example, the first The higher the probability corresponding to the topic label in a topic distribution, the higher the priority of the display position.
- the first topic distribution is the first topic distribution in the example of step 8 in Figure 7 above: the probability of the topic being "historical figure” is 0.4, the probability of the topic being "star” is 0.2, the probability of the topic being "Game 1" is 0.15, and the topic is The probability of other topics than these three topics is 0.25.
- the user interface 340 shown in (B) of Figure 5 above is used to display the second sorting result, and the display positions of the three topic labels included in the topic card 343 in the second sorting result are according to the probability of the topic in the first topic distribution Assuming that they are arranged in descending order of probability, the sequence of display positions is: theme 343A indicating "historical figure”, theme 343B indicating "star” and theme 343C indicating "Game 1".
- the sorting module can determine the display positions of the multiple topic tags included in the topic card based on the probability corresponding to the topic tags included in the first topic distribution, which can be understood as sorting the multiple topic tags included in the topic card, and the application The program can display multiple topic tags included in the topic card according to the determined display position.
- the sorting module can first sort the second web page collection to obtain the first sorting result, see step 12a in Figure 7 for details, and then the sorting module sorts the first sorting result and The first topic distribution is re-sorted to obtain the second ranking result.
- it can be understood as scoring the newly added topic cards (representing the first topic distribution) based on the first ranking result (including the scored web pages), to calculate the insertion position of the theme card in the first sorting result.
- FIG. 9 is a schematic flowchart of another search method provided by the embodiment of the present application. This method may include, but is not limited to, the following procedures:
- the application program of the electronic device sends a query request based on the first topic tag to the recall module of the network device.
- the electronic device may receive a user operation for selecting a first topic tag input by the user through an application program, and at this time, it may be understood as receiving a search request based on the first topic tag.
- the electronic device executes the process shown in FIG. 7 before step 15, the electronic device executes the process shown in FIG. 7 .
- the electronic device may receive a search request based on the first topic tag in the topic tags of at least one web page in the first sorting result, for example, when the electronic device displays the user interface 330 shown in (B) of FIG.
- the electronic device can receive a touch acting on the theme 332E of the theme “historical figures” of the indicated webpage 332 Operation, at this time the first topic label is "historical figure”, or the electronic device can receive a touch operation acting on the topic 333E indicating the topic "star” of the webpage 333, at this time the first topic label is "star”.
- the electronic device executes the process shown in FIG. 8 before step 15, the electronic device executes the process shown in FIG. 8 .
- the electronic device can receive a search request based on the first topic tag in the topic cards included in the second sorting result. For example, when the electronic device displays the user interface 340 shown in (B) of FIG.
- the application program may send a query request to the query module based on the received search request input by the user, and the query request is used to request to obtain search results related to the first topic tag, and the first topic tag may be the application program Obtained based on a search request.
- the recall module of the network device recalls the third set of webpages from the high-quality library based on the analysis result of the query statement and the first subject tag.
- the recall module is based on the correlation between the webpage and the keyword "character A" obtained by analyzing the query statement, the correlation between the webpage and the first theme tag, and optionally the information (such as interest characteristics) of the webpage and the user. and webpage behavior log), and recall multiple webpages with higher relevance rankings from the high-quality library.
- recalling webpages in combination with user information refer to the description of recalling the first set of webpages based on user information in step 5 of FIG. 7 .
- the recall module recalls the third webpage collection from the high-quality library based on the correlation between the webpage and the first theme tag, which may include: the recall module recalls multiple webpages whose theme labels are the first theme label from the high-quality library, That is to say, the theme tag of the webpage included in the third webpage set is the first theme label.
- the recall module of the network device obtains a fourth webpage collection from the second webpage collection based on the analysis result of the query statement and the first theme tag.
- the second set of webpages is recalled from the webpage library.
- the recall module can be based on the correlation between the webpage and the keyword "person A" result obtained by analyzing the query statement, and the webpage and the first A correlation degree of a theme tag, optionally, and a correlation degree of webpages and user information (such as interest characteristics and webpage behavior logs), determine a fourth webpage collection from the second webpage collection.
- recalling webpages in combination with user information refer to the description of recalling the first set of webpages based on user information in step 5 of FIG. 7 .
- the recall module obtains the fourth webpage collection from the second webpage collection based on the correlation between the webpage and the first theme tag, including: the recall module determines from the second webpage collection that the theme label of the webpage is the first theme label
- the plurality of webpages, that is to say, the theme tag of the webpages included in the fourth webpage set is the first theme label.
- the recall module may recall the fourth webpage set from the webpage library based on the analysis result "person A" of the query statement and the first theme tag.
- step 16 and step 17 is not limited.
- the recall module of the network device fuses the third webpage set and the fourth webpage set to obtain a fifth webpage set.
- the recall module may fuse the third set of webpages recalled from the high-quality library and the fourth set of webpages recalled from the webpage library to obtain a fifth set of webpages. That is to say, the finally obtained fifth webpage collection combines the fourth webpage collection recalled from a wider webpage library and the third webpage collection recalled from the high-quality library obtained through multi-modal high-quality webpage screening, realizing the search system
- the integration with the recommendation system can not only recommend higher-quality web pages for users, but also ensure the diversity and relevance of web pages.
- the recall module of the network device sends the fifth set of web pages to the ranking module of the network device.
- the sorting module of the network device sorts the fifth webpage set to obtain a third sorting result.
- step 12a in FIG. 7 The specific example is similar to step 12a in FIG. 7 and will not be repeated here.
- the ranking module of the network device sends the third ranking result to the application program of the electronic device.
- the application program of the electronic device displays the third sorting result.
- the third sorting result displayed by the application program is related to the search request input by the user through the application program in step 1, and may specifically include: the third sorting result displayed by the application program is related to the analysis result of the query statement, The query statement is obtained according to the search request (see step 2 in FIG. 7 for a specific example).
- the third sorting result displayed by the application program is related to the first topic tag selected by the user, and may specifically include: the topic tag corresponding to the webpage included in the third sorting result is the first topic tag.
- the analysis result of the query sentence is the keyword "person A”
- the first topic tag is “historical person”
- the related words of the first topic tag include “history” and “dynasty H”, (A) in Figure 6 above
- the shown user interface 410 is used to display the third sorting result: webpage 411, webpage 412, webpage 413 and webpage 414 in order of sorting, and the title and/or introduction of these webpages include at least one of the following: keyword " Character A”, the first topic tag "historical person” and related words ("history", "dynasty H") of the first topic tag can be understood as the third sorting result is related to the keyword and the first topic tag.
- the analysis result of the query statement is the keyword "character A”
- the first topic tag is "game 1”
- the related words of the first topic tag include “skills”, “role” and “equipment”, as shown in Figure 6 above
- the user interface 420 shown in (B) is used to display the third sorting result: according to the order of sorting, it is webpage 421, webpage 422, webpage 423 and webpage 424, and the title and/or introduction of these webpages include at least one of the following : keyword “Character A”, the first topic tag "Game 1” and related words ("skills", “role”, “equipment”) of the first topic tag, which can be understood as the third sorting result and keywords,
- the first hashtag is relevant.
- the application program when the application program displays the third sorting result, at least one of the following items may be displayed by hit: the analysis result of the query statement, the first topic tag selected by the user, and related words of the first topic tag, wherein the hit display may be It is understood that the display method is different from other display methods. For example, in the user interface 410 shown in (A) of Figure 6 above, the analysis result of the query statement "person A", the first topic tag "historical person” selected by the user and the related words “history” and “Dynasty H” is partially grayed out, that is, hit display, and other characters are not partially grayed out.
- the recalls in the above Figures 7-8 are recalled from the web library, and in other embodiments, the recalls in the above Figures 7-8 are recalled from the high-quality library.
- the recall module can directly send the third set of webpages to the sorting module, and the sorting module sorts the third set of webpages. The results are returned to the application for display.
- the recall module may directly send the fourth webpage set to the sorting result after recalling the fourth webpage set, and the sorting module sorts the fourth webpage set and returns the sorting result to the application program for display.
- the search results included in the webpage collection and the sorting result obtained by sorting the webpage collection are the same, but the sorting result is obtained after sorting these search results, for example, the second webpage collection and the first sorting result
- the examples of the results are all three webpages included in the user interface 330 shown in (B) of FIG. search results.
- the electronic device may display search results and topic tags related to the search results for user interaction.
- the topics corresponding to at least one search result obtained based on the query statement may be displayed. Because the theme is injected into different web pages.
- topic cards including at least one topic tag and at least one search result can be sorted and displayed together, which can be understood as injecting the topics into the search result list after aggregation.
- the query statement and the hashtag selected by the user can be combined for more precise recall and sorting.
- the hashtag can be displayed as the user
- At least one search result of the selected topic tag is to provide the user with a search result that meets the user's actual intention, so that the user can quickly obtain the required information and reduce the processing pressure of the device.
- the recalled web page collection combines query sentence related and Web pages related to the topic tags selected by the user, thereby expanding the user's reading and further improving the relevance and diversity of the web page.
- the electronic device can process and screen the webpages included in the webpage library to obtain the webpages included in the high-quality library, and then take any webpage included in the webpage library (referred to as the first webpage) as an example to illustrate the processing process , as shown in Figure 10 below:
- the electronic device can extract picture information and text information in the first web page, the picture information can be input into a convolutional neural network (CNN), and the text information can be input into a webpage text encoder (transformer encoder).
- CNN convolutional neural network
- webpage text encoder webpage text encoder
- Multi-layer CNNs are used to extract features of pictures.
- Multi-layer CNNs can include volume Convolution layer (Conv), batch normalization (BN), linear rectification function (rectified linear unit, ReLU), Cnonv, BN, ReLU, ..., Cnonv, BN, ReLU, can be understood as According to Cnonv, BN, and ReLU as a large layer, multiple large layers are constructed.
- the webpage text encoder can fuse traditional features and deep features of text information, and convert the extracted features into text vectors (such as emb format).
- Traditional features include, but are not limited to: site value, page value, site rank category, and page category.
- deep features include: word vector (word to vector, word2vec), neural network (neural network), encoder (encoders), bidirectional encoder (bidirectional encoder representations from transformers, BERT).
- the electronic device may weight traditional features and deep features, and then pass an activation function to obtain a text vector.
- the electronic device can input the image vector output by the convolutional neural network and the text vector output by the webpage text encoder into the image fusion module (Image Fuse Backbone) and the text fusion module (Text Fuse Backbone), and the image fusion module and the text fusion module can
- the image vector and the text vector are interactively operated, the vector output by the image fusion module and the vector input by the text fusion module can be spliced, and the spliced vector (such as emb format) can be input to a page quality decoder (such as realized by a fully connected neural network).
- the electronic device may divide the webpage library into N levels of databases, where N is a positive integer, such as 5.
- the higher-level database includes higher-quality webpages.
- the obtained output can be the probability that the first webpage belongs to the databases of the N levels, and the electronic device can judge the first webpage according to these probabilities.
- the database such as the webpage database, also includes data other than the databases of these N levels. If the probability that the first webpage belongs to the databases of the N levels respectively is less than the preset probability value, then it is determined that the first webpage does not belong to the database of the A levels. .
- the probability that the first webpage belongs to the M-level database among the N-level databases is greater than or equal to the preset probability value, and is greater than the probability of belonging to other levels of databases except the M-level database among the N-level databases, then it can be It is determined that the first web page belongs to the M-level database, M is a positive integer, and M is less than or equal to N.
- the electronic device may execute the above-mentioned processing procedure on each webpage in the webpage database, so as to determine the webpages respectively included in the N levels of databases.
- the electronic device may directly determine the N levels of databases as high-quality databases. In some other embodiments, the electronic device may select the databases of the top X ranks X from the databases of the N ranks, and determine the databases of the X ranks as high-quality databases, where X is a positive integer, and X less than or equal to N.
- the electronic device may include a recommended high-quality library module, and the recommended high-quality library module may be used to realize the above-mentioned processing process, such as processing and screening the webpages included in the webpage library through a high-quality library screening model to obtain a high-quality library.
- the recommended high-quality library module may be used to realize the above-mentioned processing process, such as processing and screening the webpages included in the webpage library through a high-quality library screening model to obtain a high-quality library.
- the quality of the web pages is reflected by the level of the divided database, that is, the higher the level of the high-quality database, the higher the quality of the web pages included in the high-quality database.
- the electronic device may also determine the quality of the webpage based on parameters such as the importance of the webpage content and the authority of the webpage, and determine the set of webpages with higher quality as the Premium library.
- the electronic device can determine the high-quality library by itself. In other embodiments, the electronic device can obtain the high-quality library from the network device. The high-quality library is obtained by the network device. repeat.
- FIG. 11 is a schematic flowchart of another search method provided by the embodiment of the present application. This method includes but is not limited to the following procedures:
- S101 The electronic device receives a first search request.
- the electronic device receives a first search request input by the user, and the first search request is used to request to search the query statement input by the user.
- the electronic device can receive the query statement and user operation input by the user. At this time, it can be understood as receiving the first search request.
- the electronic device can receive Based on the query sentence "person A" entered by the user in the search box 311A, the user may then receive a touch operation (for example, a click operation) acting on the search control 311B, which can be understood as receiving the first request for querying "person A". Search request.
- the form of the query statement input by the user based on the electronic device may include, but is not limited to, text, picture, voice, video, motion gesture and the like.
- the ways for users to input query statements based on electronic devices include, but are not limited to: the user inputs query statements in the form of text, pictures or videos by touching the display screen of the electronic device, the user inputs query statements in the form of text through the keyboard connected to the electronic device, and The electronic device is connected or the built-in microphone inputs the query statement in the form of voice, and the user inputs the query statement in the form of picture, video or motion gesture through the electronic device connection or the built-in camera.
- the user operation received by the electronic device can be used to trigger the electronic device to obtain search results related to the query statement. web page results.
- the form of the user operation may include, but is not limited to, a touch operation (such as a click operation) acting on the display screen, a voice, a motion gesture (such as a gesture), brain waves, and the like.
- the electronic device displays a first interface, where the first interface includes a first search set, and the first search set includes at least one webpage card and at least one theme tag.
- the electronic device when it receives the first search request, it may send the first query request to the network device, and the first query request is used to request to obtain the search result corresponding to the first search request. For a specific example, refer to FIG. 7 step 1.
- the electronic device may receive the first search set sent by the network device based on the first query request, and display the first interface. For specific examples, refer to steps 13a and 14a in FIG. 7, or steps 13b and 14 in FIG. 8 14b.
- the subject tag is used to indicate the category to which the webpage content corresponding to the webpage card belongs, for example, games, movies, history, stars, agriculture, science and technology, military and so on.
- the network device after the network device receives the first query request, it can first analyze and understand the query sentence input by the user, for example, decompose the query sentence into at least one keyword (which can be called word segmentation), and correct the grammar of the query sentence , Word order and other errors (can be called error correction), expand the query statement to obtain synonyms (can be called extension), identify entity words in the query statement, etc.
- the result of analysis and understanding may include at least one keyword, for example, the keyword included in the query statement or a similar keyword.
- the results of the analysis comprehension may include vectors.
- the result of the analysis and understanding is referred to as the first keyword, and the first keyword can be used for searching to obtain the at least one webpage card.
- the network device can perform topic identification based on the query statement to obtain the topic distribution of the query statement (that is, the first topic distribution in the above embodiments).
- the first topic distribution can be used to search for The above at least one web page card is obtained, and optionally, the first theme distribution may be used to determine the theme card.
- the network device may perform topic identification on the query statement to obtain the second topic distribution, which may be referred to simply as performing intent (eg, implicit intent) analysis on the query statement.
- the network device may recall the third search set based on the query statement, and perform topic identification on the third search set to obtain a third topic distribution.
- steps 4-7 in FIG. 7 The network device may fuse the second topic distribution and the third topic distribution to obtain the first topic distribution.
- step 8 in FIG. 7 the network device may fuse the second topic distribution and the third topic distribution to obtain the first topic distribution.
- the network device can obtain the at least one webpage card based on the analysis result of the query sentence (ie, the first keyword, such as "person A") and the first topic distribution, and the at least one webpage card and the first keyword Related to the first topic distribution, see steps 9-10 in FIG. 7 for specific description.
- a query command such as a domain specific language (domain specific language, DSL) can be generated based on the first keyword and related information (such as the first topic distribution, user interest characteristics, and behavior logs, etc.) and other forms of query commands, based on the query command to recall the web page collection from the web page library.
- the network device may sort the recalled webpage set, and send the sorting result to the electronic device, the sorting result includes the sorted at least one webpage card, and the network device may also sort the at least one webpage card
- the corresponding subject tags are sent to the electronic device.
- the first search set displayed by the electronic device may include sorted at least one web card and the subject tags corresponding to the at least one web card, optionally, any one of the at least one web card displayed by the electronic device
- the webpage card includes a corresponding theme tag, for a specific example, refer to step 14a in FIG. 7 .
- the electronic device can display the user interface 330 (which can be understood as the first interface) shown in (B) of FIG. (Can be understood as at least one webpage card after sorting), these three webpages all have definite theme, and webpage 331 comprises theme 331E, and indication theme is " game 1 ", and webpage 332 comprises theme 332E, and indication theme is " historical figure ", the webpage 333 includes a theme 333E, indicating that the theme is "star”, which can be understood as any webpage card includes a corresponding theme tag.
- the network device may sort the recalled web page set and the theme card together, and send the sorting result to the electronic device, and the sorting result includes the sorted at least one web page card and the theme card, for example,
- the theme cards can be regarded as a whole to be scored, and sorted according to the scores of the theme cards and the scores corresponding to at least one web page (for example, the higher the score, the higher the ranking).
- the above sorting result is the second sorting result.
- the first search set displayed by the electronic device may include sorted at least one web card and topic card, and the topic card includes at least one topic tag. For a specific example, refer to step 14b of FIG. 8 .
- the electronic device can display the user interface 340 (which can be understood as the first interface) shown in (B) of FIG. , topic card 343 and webpage 344 (can be understood as at least one webpage card and topic card after sorting), assuming that the topic distribution of the query statement includes three clear topics: "historical figure", “star” and "game 1" , then the topic card 343 indicating the topic distribution of the query statement may include three topic tags: topic 343A (including the characters "historical figure"), topic 343B (including the characters "star"), and topic 343C (including the characters "game 1") , it can be understood that the topic card includes at least one topic tag.
- the network device may determine a topic card according to the first topic distribution, and at least one topic tag included in the topic card is a topic tag included in the first topic distribution.
- the first topic distribution includes: topic tag "historical figure”, topic tag "star”, and topic tag "game 1”
- the topic card is the topic card 343 in the user interface 340 shown in (B) of Fig. 5 , including three hashtags: Topic 343A (including the character “historical figure"), topic 343B (including the character "Star”), and topic 343C (including the character "Game 1").
- the network device may sort at least one topic tag included in the topic card according to the probability corresponding to the topic tag included in the first topic distribution, for example, the higher the probability corresponding to the topic tag included in the first topic distribution, the Hashtags are sorted higher.
- the theme cards sent by the network device to the electronic device may be sorted, and the electronic device may display at least one theme tag in the theme cards according to the sorting result. forward.
- the probabilities corresponding to the topic tags included in the first topic distribution are, in descending order: the probability corresponding to the topic tag "historical figure” is 0.4, the probability corresponding to the topic tag “star” is 0.2, and the probability corresponding to the topic tag "Game 1" is The probability of 0.15, the corresponding probability of other topic tags is 0.25, then the topic card is the topic card 343 in the user interface 340 shown in (B) of Figure 5, and the topic tags included in the topic card 343 are in order from front to back: Topic 343A (including the characters "Historical Person"), topic 343B (including the characters "Star”), and topic 343C (including the characters "Game 1").
- the electronic device In response to the first user operation acting on the first topic tag, the electronic device displays a second interface, the second interface includes a second search set, and the topic tag corresponding to the web page card included in the second search set is the first topic tag.
- S103 is an optional step.
- the electronic device may receive a first user operation acting on a first topic tag, where the first topic tag is any one of at least one topic tag included in the first search set, and the form of the first user operation is not
- the user operation in S101 for a specific example.
- the electronic device may send a second query request to the network device in response to the first user operation, and the second query request is used to request to obtain search results related to the first topic tag.
- the electronic device may receive the second search set sent by the network device based on the second query request, and display the second interface. For a specific example, refer to steps 21-22 in FIG. 9 .
- the network device after the network device receives the second query request, it can recall the set of webpages based on the analysis result of the query statement (that is, the first keyword, such as "person A") and the first theme tag.
- the network The device may recall a fourth search set from the webpage library or the first search set based on the first keyword and the first topic tag, and recall a fifth search set from the high-quality library, and fuse the fourth search set and the fifth search set,
- the recalled web page set is obtained by fusing the fourth search set and the fifth search set. For a specific example, refer to steps 16-18 in FIG. 9 .
- the network device may sort the recalled web page set, and send the sorting result to the electronic device.
- the above sorting result is the third sorting result.
- the second search set displayed by the electronic device may include the above sorting results, and for a specific example, refer to step 22 in FIG. 9 .
- the first webpage card among the at least one webpage card displayed by the electronic device includes a first theme tag, which can be understood as the first theme label selected by the user is the theme corresponding to the first webpage card displayed by the electronic device Label.
- the first user operation is a touch operation acting on the theme 332E of the webpage 332 in the user interface 330 shown in (B) of FIG. "Historical Figures" indicated by Topic 332E.
- the electronic device may display a user interface 410 (which can be understood as a second interface) shown in (A) of FIG.
- a search result related to the topic tag "historical figure" ie, the second search set).
- the first user operation is a touch operation acting on the theme 331E of the webpage 331 in the user interface 330 shown in (B) of FIG.
- the topic 331E indicates "Game 1".
- the electronic device may display a user interface 420 (which can be understood as a second interface) shown in (B) of FIG.
- a search result related to the topic tag "Game 1" ie, the second search set).
- the displayed theme card of the electronic device includes a first theme label.
- the first user operation is a touch operation on the theme 343A of the theme card 343 in the user interface 340 shown in (B) of FIG. 5
- the first theme label is "historical figure” indicated by the theme 343A.
- the electronic device may display a user interface 410 (which can be understood as a second interface) shown in (A) of FIG.
- a search result related to the topic tag "historical figure” ie, the second search set).
- the first user operation is a touch operation on the theme 343C of the theme card 343 in the user interface 340 shown in (B) of FIG. 5
- the first theme label is "Game 1" indicated by the theme 343C.
- the electronic device may display a user interface 420 (which can be understood as a second interface) shown in (B) of FIG.
- a search result related to the topic tag "Game 1" ie, the second search set).
- the electronic device may display the first keyword in the second webpage card in the first display manner in the first interface, and display information in the second webpage card other than the first keyword in the second display manner , the second webpage card is any one of the above at least one webpage card, which can be understood as hitting and displaying the first keyword in the second webpage card.
- the first keyword is "character A”, in the user interface 330 (which can be understood as the first interface) shown in (B) of Fig. 4 , the title 331A of the webpage 331 (which can be understood as the first web page card)
- the "character A" in the profile 331B is partially grayed out (it can be understood as the first display mode), and other characters are not partially grayed out.
- the electronic device may display the first keyword and the second keyword in the third webpage card according to the third display manner in the second interface, and display the first keyword and the second keyword in the third webpage card according to the fourth display manner.
- Information other than the keyword and the second keyword is the first topic tag and/or related words of the first topic tag
- the third webpage card is any webpage card in the second search set, which can be understood as A hit displays the first keyword and the second keyword in the third web page card.
- the first keyword is “character A”
- the second keyword is the first topic tag "historical person” selected by the user and the related words “history” and “dynasty H” of the first topic tag, (A ) shown in the user interface 410 (can be understood as the second interface)
- the title 411A of the webpage 411 can be understood as the second webpage card
- "character A” and “dynasties” in the introduction 411B H” is partially grayed out (can be understood as the third display mode), and other characters are not partially grayed out.
- the electronic device can combine the topic distribution of the query statement (that is, the first topic distribution above) to realize the search function, identify the user's multiple intentions, and display the search results and the topic labels corresponding to the search results. It can be understood as injecting query statements and/or theme tags of web pages into the front end, and it can also be understood as providing an interaction method for clarifying intentions.
- the electronic device can perform more precise search and sorting based on the user's clarified intention (that is, the first topic tag selected by the user), and recommend to the user at least one webpage whose topic tag is the first topic tag, which is more in line with the user's actual intention, and, Search results are no longer limited to query terms, and can be related to the first hashtag, thus extending the user's reading.
- the user's clarified intention that is, the first topic tag selected by the user
- Search results are no longer limited to query terms, and can be related to the first hashtag, thus extending the user's reading.
- the recall module can include a search module (Searcher), a recommendation module (Recommend) and a fusion search module (Fusion Search), wherein the search module is used to recall webpages based on the webpage library, the recommendation module is used to recall webpages based on the high-quality library, and the fusion search module Web page recalled for fused search module and recommendation module.
- the query module may include a query comprehension module and a topic prediction module. The query comprehension module is used for analyzing and understanding query statements, and the topic prediction module is used for topic identification and topic distribution integration.
- the processes can be completed by computer programs or hardware related to the computer programs.
- the computer programs can be stored in computer-readable storage media.
- the computer programs During execution, it may include the processes of the foregoing method embodiments.
- the aforementioned storage medium includes: various media capable of storing computer program codes such as read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk.
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)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Provided are a search method and an electronic device; the method is applied to an electronic device; the method comprises: receiving a first search request entered by a user; displaying a first interface, the first interface comprising a first search set, the first search set comprising at least one webpage card and a subject tag corresponding to each of the at least one webpage card, the subject tag being used for indicating a category to which the web content corresponding to the webpage card belongs, the at least one webpage card being associated with the first search request. The subject tag corresponding to the search result is displayed to the user so that the user can quickly and efficiently obtain desired information.
Description
本申请要求于2021年12月30日提交中国专利局、申请号为202111669800.9、申请名称为“搜索方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202111669800.9 and application title "Search Method and Electronic Device" filed with the China Patent Office on December 30, 2021, the entire contents of which are incorporated herein by reference.
本申请涉计算机技术领域,尤其涉及一种搜索方法及电子设备。The present application relates to the field of computer technology, in particular to a search method and electronic equipment.
目前用户想获取信息时,可以通过电子设备的搜索功能实现,例如浏览器应用的网页搜索功能,电子设备可以基于用户输入的查询语句从互联网中搜索出相关的网页,并按照顺序显示这些网页的概要信息(可称网页列表),用户可以点击列表中任意一个网页来查看该网页的具体内容。At present, when users want to obtain information, they can realize it through the search function of electronic devices, such as the web page search function of browser applications. Electronic devices can search for relevant web pages from the Internet based on query sentences entered by users, and display the pages of these web pages in order. Summary information (can be called a web page list), the user can click on any web page in the list to view the specific content of the web page.
但是,当用户输入的查询语句较模糊时,得到的搜索结果通常涉及范围较广,例如网页内容分别属于游戏、影视、历史等多个分类的多个网页,电子设备通常将繁多的搜索结果排序后展示给用户,而用户往往难以从大量的搜索结果中找到自己真正需要的信息,进而造成搜索结果不够准确。However, when the query sentence entered by the user is relatively vague, the obtained search results usually involve a wide range. For example, the content of the web page belongs to multiple web pages of multiple categories such as games, movies, and history. Electronic devices usually sort the various search results. It is often difficult for users to find the information they really need from a large number of search results, which leads to inaccurate search results.
发明内容Contents of the invention
本申请实施例公开了一种搜索方法及电子设备,可以将和搜索结果对应的主题标签展示给用户,让用户可以快速高效地获取到所需的信息。The embodiment of the present application discloses a search method and an electronic device, which can display the subject tags corresponding to the search results to the user, so that the user can quickly and efficiently obtain the required information.
第一方面,本申请提供了一种搜索方法,应用于电子设备,该方法包括:接收用户输入的第一搜索请求;显示第一界面,上述第一界面包括第一搜索集合,上述第一搜索集合包括至少一个网页卡片以及上述至少一个网页卡片分别对应的主题标签,其中,上述主题标签用于指示上述网页卡片对应的网页内容所属的分类,上述至少一个网页卡片和上述第一搜索请求相关。In a first aspect, the present application provides a search method, which is applied to an electronic device. The method includes: receiving a first search request input by a user; displaying a first interface, the first interface includes a first search set, and the first search The collection includes at least one webpage card and theme tags corresponding to the at least one webpage card, wherein the theme label is used to indicate the category to which the webpage content corresponding to the above-mentioned webpage card belongs, and the at least one webpage card is related to the first search request.
在上述方法中,电子设备不仅可以展示搜索结果(即上述网页卡片),还可以展示网页卡片对应的主题标签,协助用户从大量搜索结果中找到自己真正需要的信息,搜索结果更加准确,搜索过程更加快速高效。In the above method, the electronic device can not only display the search results (that is, the above-mentioned webpage cards), but also display the theme tags corresponding to the webpage cards, so as to assist users to find the information they really need from a large number of search results, and the search results are more accurate. Faster and more efficient.
在一种可能的实现方式中,上述第一搜索集合包括主题卡片,上述主题卡片包括至少一个上述主题标签,上述主题卡片和上述第一搜索请求相关。In a possible implementation manner, the first search set includes a theme card, the theme card includes at least one theme tag, and the theme card is related to the first search request.
在上述方法中,电子设备可以以主题卡片的形式展示至少一个主题标签,让用户可以从一个主题卡片获取到相关的主题标签,查看更加方便,提升搜索效率。In the above method, the electronic device can display at least one topic tag in the form of a topic card, so that the user can obtain a related topic tag from a topic card, making viewing more convenient and improving search efficiency.
在一种可能的实现方式中,上述主题标签包括第一主题标签;上述显示第一界面之后,上述方法还包括:接收作用于上述第一主题标签的第一用户操作;响应于上述第一用户操作,显示第二界面,上述第二界面包括第二搜索集合,上述第二搜索集合包括的网页卡片对应的上述主题标签为上述第一主题标签。In a possible implementation manner, the subject tag includes a first subject tag; after the first interface is displayed, the method further includes: receiving a first user operation acting on the first subject tag; responding to the first user operation Operation, displaying a second interface, the second interface includes a second search set, and the subject tag corresponding to the webpage card included in the second search set is the first subject tag.
在上述方法中,电子设备展示的主题标签提供交互功能,能为用户展示和用户选择的第一主题标签匹配的第二搜索集合,也可理解为是提供满足用户实际查询意图的搜索结果,实 现更为精准地搜索和推荐,进一步方便用户快速高效地获取到所需的信息。In the above method, the topic tags displayed by the electronic device provide an interactive function, which can display to the user a second search set that matches the first topic tag selected by the user. More precise search and recommendation further facilitate users to obtain the required information quickly and efficiently.
在一种可能的实现方式中,上述至少一个网页卡片包括第一网页卡片,上述第一网页卡片包括上述第一网页卡片对应的上述第一主题标签;或者,上述主题卡片包括上述第一主题标签。In a possible implementation, the at least one webpage card includes a first webpage card, and the first webpage card includes the first theme tag corresponding to the first webpage card; or, the theme card includes the first theme tag .
在上述方法中,提供交互功能的主题标签可以是任意一个网页卡片包括的主题标签,也可以是主题卡片包括的主题标签,应用场景不局限,实现方式灵活,进一步提升用户使用感。In the above method, the theme tag providing the interactive function may be a theme tag included in any webpage card, or a theme tag included in a theme card. The application scenarios are not limited, and the implementation method is flexible, which further improves the user's sense of use.
在一种可能的实现方式中,上述至少一个网页卡片包括第二网页卡片,上述第二网页卡片包括第一关键词,上述第一关键词是根据上述第一搜索请求获取的;上述显示第一界面,包括:在上述第一界面中按照第一显示方式显示上述第一关键词,按照第二显示方式显示上述第二网页卡片中排除上述第一关键词以外的信息,上述第一显示方式和上述第二显示方式不同。In a possible implementation manner, the at least one webpage card includes a second webpage card, and the second webpage card includes a first keyword, and the first keyword is obtained according to the first search request; the displaying the first The interface includes: displaying the first keyword in the first interface according to the first display method, displaying the information in the second webpage card except the first keyword in the second display method, the first display method and The above-mentioned second display mode is different.
在上述方法中,电子设备可以区别显示第二网页卡片中和用户输入的搜索请求对应的第一关键词,进一步协助用户从大量搜索结果中找到自己真正需要的信息,提升搜索效率。In the above method, the electronic device can distinguishably display the first keyword corresponding to the search request input by the user in the second web page card, further assisting the user to find the information they really need from a large number of search results, and improving search efficiency.
在一种可能的实现方式中,上述第二搜索集合包括第三网页卡片,上述第三网页卡片包括第一关键词和第二关键词,上述第一关键词是根据上述第一搜索请求获取的,上述第二关键词是根据上述第一主题标签获取的;上述显示第二界面,包括:在上述第二界面中按照第三显示方式显示上述第一关键词和上述第二关键词,按照第四显示方式显示上述第三网页卡片中排除上述第一关键词和上述第二关键词以外的信息,上述第三显示方式和上述第四显示方式不同。In a possible implementation, the second search set includes a third webpage card, the third webpage card includes a first keyword and a second keyword, and the first keyword is obtained according to the first search request , the above-mentioned second keyword is obtained according to the above-mentioned first topic tag; the above-mentioned displaying the second interface includes: displaying the above-mentioned first keyword and the above-mentioned second keyword in the above-mentioned second interface according to the third display mode, according to the first The fourth display mode displays the information in the third webpage card except the first keyword and the second keyword, and the third display mode is different from the fourth display mode.
在上述方法中,电子设备可以区别显示第三网页卡片中的第一关键词和第二关键词,第一关键词和用户输入的搜索请求相关,第二关键词和用户选择的第一主题标签相关,进一步协助用户从大量搜索结果中找到自己真正需要的信息,提升搜索效率。In the above method, the electronic device can distinguish between the first keyword and the second keyword in the third webpage card, the first keyword is related to the search request input by the user, and the second keyword is related to the first topic tag selected by the user Relevant, further assist users to find the information they really need from a large number of search results, and improve search efficiency.
在一种可能的实现方式中,上述主题卡片位于上述至少一个网页卡片中排列在第一个的上述网页卡片之前,或者,上述主题卡片位于上述至少一个网页卡片中的两个上述网页卡片之间。In a possible implementation manner, the above-mentioned theme card is located before the first above-mentioned webpage card in the above-mentioned at least one webpage card, or the above-mentioned theme card is located between two of the above-mentioned webpage cards in the above-mentioned at least one webpage card .
在上述方法中,主题卡片可以插入到至少一个网页卡片中显示,不占用额外的显示位置,减小对用户查看搜索结果的影响,提升用户阅读感受。In the above method, the theme card can be inserted into at least one webpage card for display, does not occupy an additional display position, reduces the impact on the user viewing search results, and improves the user's reading experience.
在一种可能的实现方式中,上述显示第一界面,包括:在第一位置显示第二主题标签,在第二位置显示第三主题标签,上述第二主题标签和上述第三主题标签为上述主题卡片包括的任意两个上述主题标签,上述主题卡片和第一主题分布相关,上述第一主题分布是根据第一关键词获取的,上述第一关键词是根据上述第一搜索请求获取的,上述第一主题分布包括的上述第二主题标签对应的概率大于上述第一主题分布包括的上述第三主题标签对应的概率,上述第一位置在上述第二位置之前。In a possible implementation manner, the above-mentioned displaying the first interface includes: displaying the second theme label at the first position, displaying the third theme label at the second position, the above-mentioned second theme label and the above-mentioned third theme label are the above-mentioned Any two of the above-mentioned topic tags included in the topic card, the above-mentioned topic card is related to the first topic distribution, the above-mentioned first topic distribution is obtained according to the first keyword, and the above-mentioned first keyword is obtained according to the above-mentioned first search request, The probability corresponding to the second topic label included in the first topic distribution is greater than the probability corresponding to the third topic label included in the first topic distribution, and the first position is before the second position.
在上述方法中,主题卡片包括的主题标签,和用户输入的搜索请求对应的第一关键词相关的概率越大,显示位置越前,让用户可以优先获取到和搜索请求相关度高的主题标签,显示方式和用户需求更加匹配,提升用户阅读感受。In the above method, the higher the probability that the topic tags included in the topic card are related to the first keyword corresponding to the search request input by the user, the higher the display position, so that the user can preferentially obtain the topic tags that are highly relevant to the search request. The display mode better matches the user's needs, improving the user's reading experience.
在一种可能的实现方式中,上述第一搜索集合包括的上述网页卡片与第一关键词和第一主题分布相关,上述第一关键词是根据上述第一搜索请求获取的,上述第一主题分布是根据上述第一关键词获取的。In a possible implementation manner, the above-mentioned webpage cards included in the above-mentioned first search set are related to the distribution of the first keyword and the first topic, the above-mentioned first keyword is obtained according to the above-mentioned first search request, and the above-mentioned first topic The distribution is obtained according to the above-mentioned first key.
在上述方法中,第一搜索集合不仅和用户输入的搜索请求对应的第一关键词相关,而且和根据第一关键词获取的第一主题分布相关,提升了搜索结果的相关性和多样性。In the above method, the first search set is not only related to the first keyword corresponding to the search request input by the user, but also related to the first topic distribution obtained according to the first keyword, which improves the relevance and diversity of search results.
在一种可能的实现方式中,上述显示第一界面之前,上述方法还包括:向网络设备发送第一查询请求,上述第一查询请求用于请求获取上述第一搜索请求相关的搜索结果;获取上述网络设备发送的上述第一搜索集合。In a possible implementation manner, before displaying the first interface, the method further includes: sending a first query request to a network device, where the first query request is used to request to obtain search results related to the first search request; obtaining The above-mentioned first search set sent by the above-mentioned network device.
在一种可能的实现方式中,上述显示第二界面之前,上述方法还包括:响应于上述第一用户操作,向网络设备发送第二查询请求,上述第二查询请求用于请求获取上述第一主题标签及上述第一搜索请求相关的搜索结果;获取上述网络设备发送的上述第二搜索集合。In a possible implementation manner, before displaying the second interface, the method further includes: in response to the first user operation, sending a second query request to the network device, where the second query request is used to request to obtain the first Subject tags and search results related to the above-mentioned first search request; obtaining the above-mentioned second search set sent by the above-mentioned network device.
第二方面,本申请提供了又一种搜索方法,应用于网络设备,该方法包括:接收第一查询请求,上述第一查询请求为电子设备接收到用户输入的第一搜索请求时发送的,上述第一查询请求用于请求获取上述第一搜索请求相关的搜索结果;向上述电子设备发送第一搜索集合,上述第一搜索集合用于上述电子设备显示第一界面,上述第一界面包括上述第一搜索集合,上述第一搜索集合包括至少一个网页卡片以及上述至少一个网页卡片分别对应的主题标签,上述主题标签用于指示上述网页卡片对应的网页内容所属的分类,上述至少一个网页卡片和上述第一搜索请求相关。In a second aspect, the present application provides yet another search method, which is applied to a network device, and the method includes: receiving a first query request, the above-mentioned first query request is sent when the electronic device receives a first search request input by a user, The above-mentioned first query request is used to request to obtain the search results related to the above-mentioned first search request; the first search set is sent to the above-mentioned electronic device, and the above-mentioned first search set is used for the above-mentioned electronic device to display a first interface, and the above-mentioned first interface includes the above-mentioned The first search set, the above-mentioned first search set includes at least one webpage card and the theme tags corresponding to the at least one webpage card respectively, the above-mentioned theme label is used to indicate the category to which the webpage content corresponding to the above-mentioned webpage card belongs, and the above-mentioned at least one webpage card and The first search request above is relevant.
在上述方法中,网络设备可以向电子设备发送第一搜索请求相关的第一搜索集合,以使电子设备可以展示搜索结果(即上述网页卡片)和网页卡片对应的主题标签,协助用户从大量搜索结果中找到自己真正需要的信息,搜索结果更加准确,搜索过程更加快速高效。In the above method, the network device can send the first search set related to the first search request to the electronic device, so that the electronic device can display the search results (that is, the above-mentioned webpage cards) and the subject tags corresponding to the webpage cards, and assist users to search from a large number of Find the information you really need in the results, the search results are more accurate, and the search process is faster and more efficient.
在一种可能的实现方式中,上述第一搜索集合包括主题卡片,上述主题卡片包括至少一个上述主题标签,上述主题卡片和上述第一搜索请求相关。In a possible implementation manner, the first search set includes a theme card, the theme card includes at least one theme tag, and the theme card is related to the first search request.
在上述方法中,电子设备可以以主题卡片的形式展示至少一个主题标签,让用户可以从一个主题卡片获取到相关的主题标签,查看更加方便,提升搜索效率。In the above method, the electronic device can display at least one topic tag in the form of a topic card, so that the user can obtain a related topic tag from a topic card, making viewing more convenient and improving search efficiency.
在一种可能的实现方式中,上述第一界面中,上述主题卡片位于上述至少一个网页卡片中排列在第一个的上述网页卡片之前,或者,上述第一界面中,上述主题卡片位于上述至少一个网页卡片中的两个上述网页卡片之间。In a possible implementation manner, in the above-mentioned first interface, the above-mentioned theme card is located before the above-mentioned webpage card that is arranged first among the above-mentioned at least one webpage card, or, in the above-mentioned first interface, the above-mentioned theme card is located at the above-mentioned at least one webpage card. Between two of the aforementioned webcards within a webcard.
在上述方法中,主题卡片可以插入到至少一个网页卡片中显示,不占用额外的显示位置,减小对用户查看搜索结果的影响,提升用户阅读感受。In the above method, the theme card can be inserted into at least one webpage card for display, does not occupy an additional display position, reduces the impact on the user viewing search results, and improves the user's reading experience.
在一种可能的实现方式中,上述主题标签包括第一主题标签;上述向上述电子设备发送至少一个网页卡片之后,该方法还包括:接收第二查询请求,上述第二查询请求为上述电子设备接收到作用于上述第一主题标签的第一用户操作时发送的,上述第二查询请求用于请求获取上述第一主题标签及上述第一搜索请求相关的搜索结果;向上述电子设备发送第二搜索集合,上述第二搜索集合用于上述电子设备显示第二界面,上述第二界面包括上述第二搜索集合,上述第二搜索集合包括的上述网页卡片对应的上述主题标签为上述第一主题标签。In a possible implementation manner, the subject tag includes a first subject tag; after sending at least one webpage card to the electronic device, the method further includes: receiving a second query request, the second query request being the electronic device Sent when the first user operation acting on the above-mentioned first topic tag is received, the above-mentioned second query request is used to request to obtain the above-mentioned first topic tag and search results related to the above-mentioned first search request; send the second query request to the above-mentioned electronic device A search set, the second search set is used for the electronic device to display a second interface, the second interface includes the second search set, and the theme tag corresponding to the webpage card included in the second search set is the first theme label .
在上述方法中,电子设备展示的主题标签提供交互功能,能为用户展示和用户选择的第一主题标签匹配的第二搜索集合,也可理解为是提供满足用户实际查询意图的搜索结果,实现更为精准地搜索和推荐,进一步方便用户快速高效地获取到所需的信息。In the above method, the topic tags displayed by the electronic device provide an interactive function, which can display to the user a second search set that matches the first topic tag selected by the user. More precise search and recommendation further facilitate users to obtain the required information quickly and efficiently.
在一种可能的实现方式中,上述至少一个网页卡片包括第一网页卡片,上述第一网页卡片包括上述第一网页卡片对应的上述第一主题标签;或者,上述主题卡片包括上述第一主题标签。In a possible implementation, the at least one webpage card includes a first webpage card, and the first webpage card includes the first theme tag corresponding to the first webpage card; or, the theme card includes the first theme tag .
在上述方法中,提供交互功能的主题标签可以是任意一个网页卡片包括的主题标签,也可以是主题卡片包括的主题标签,应用场景不局限,实现方式灵活,进一步提升用户使用感。In the above method, the theme tag providing the interactive function may be a theme tag included in any webpage card, or a theme tag included in a theme card. The application scenarios are not limited, and the implementation method is flexible, which further improves the user's sense of use.
在一种可能的实现方式中,上述向上述电子设备发送第一搜索集合之前,上述方法还包 括:根据第一主题分布对上述主题卡片包括的上述至少一个上述主题标签进行排序,上述第一主题分布是根据第一关键词获取的,上述第一关键词是根据上述第一搜索请求获取的,上述第一主题分布包括的第二主题标签对应的概率大于上述第一主题分布包括的第三主题标签对应的概率,上上述第二主题标签的排列顺序在上述第三主题标签之前,上述第一界面中上述第二主题标签显示在上述第三主题标签之前。In a possible implementation manner, before sending the first search set to the electronic device, the method further includes: sorting the at least one subject tag included in the subject card according to the first subject distribution, and the first subject The distribution is obtained according to the first keyword, the first keyword is obtained according to the first search request, and the probability corresponding to the second topic tag included in the first topic distribution is greater than the third topic included in the first topic distribution The probability corresponding to the label is that the arrangement order of the above-mentioned second topic label is before the above-mentioned third topic label, and the above-mentioned second topic label is displayed before the above-mentioned third topic label in the above-mentioned first interface.
在一些实施例中,上述第一主题分布包括的主题标签对应的概率,可以表征该主题标签和上述第一搜索请求的关联程度,例如概率越大,关联程度越高,也就是说,在上述方法中,电子设备显示的主题卡片包括的至少一个主题标签是排序后的,和用户输入的搜索请求的关联程度越高的主题标签,排列顺序越靠前,显示位置越靠前,让用户可以优先获取到和搜索请求的关联程度高的主题标签,显示方式和用户需求更加匹配,提升用户阅读感受。In some embodiments, the probability corresponding to the topic tag included in the first topic distribution may represent the degree of association between the topic tag and the first search request, for example, the greater the probability, the higher the degree of association, that is, in the above In the method, at least one topic tag included in the topic card displayed by the electronic device is sorted, and the topic tag with a higher degree of relevance to the search request input by the user is ranked higher and displayed at a higher position, so that the user can Prioritize the acquisition of hashtags with a high degree of correlation with search requests, and the display method better matches user needs, improving the user's reading experience.
在一种可能的实现方式中,上述第一搜索集合包括的上述网页卡片与第一关键词和第一主题分布相关,上述第一关键词是根据上述第一搜索请求获取的,上述第一主题分布是根据上述第一关键词获取的。In a possible implementation manner, the above-mentioned webpage cards included in the above-mentioned first search set are related to the distribution of the first keyword and the first topic, the above-mentioned first keyword is obtained according to the above-mentioned first search request, and the above-mentioned first topic The distribution is obtained according to the above-mentioned first key.
在上述方法中,第一搜索集合不仅和用户输入的搜索请求对应的第一关键词相关,而且和根据第一关键词获取的第一主题分布相关,提升了搜索结果的相关性和多样性。In the above method, the first search set is not only related to the first keyword corresponding to the search request input by the user, but also related to the first topic distribution obtained according to the first keyword, which improves the relevance and diversity of search results.
在一种可能的实现方式中,上述接收第一查询请求之后,上述方法还包括:获取第一关键词对应的第二主题分布,上述第一关键词是根据上述第一搜索请求获取的;获取第三搜索集合对应的第三主题分布,上述第三搜索集合是根据上述第一关键词获取到的;将上述第二主题分布和上述第三主题分布融合为上述第一主题分布。In a possible implementation manner, after receiving the first query request, the method further includes: obtaining the second topic distribution corresponding to the first keyword, the first keyword is obtained according to the first search request; obtaining A third topic distribution corresponding to the third search set, where the third search set is obtained according to the first keyword; the second topic distribution and the third topic distribution are fused into the first topic distribution.
在上述方法中,和主题卡片相关的第一主题分布,和/或,和第一搜索集合相关的第一主题分布,可以是融合第二主题分布和第三主题分布得到的,即使不存在第一关键词对应的第二主题分布,还可以使用根据第一关键词召回的第三搜索集合对应的第三主题分布,处理方式更全面,提升容错性。In the above method, the first topic distribution related to the topic card, and/or, the first topic distribution related to the first search set can be obtained by fusing the second topic distribution and the third topic distribution, even if there is no first topic distribution The second topic distribution corresponding to a keyword can also use the third topic distribution corresponding to the third search set recalled according to the first keyword, so that the processing method is more comprehensive and the fault tolerance is improved.
在一种可能的实现方式中,上述至少一个网页卡片是从网页库中获取到的,上述接收第二查询请求之后,上述方法还包括:从上述网页库或者上述至少一个网页卡片中获取第四搜索集合,上述第四搜索集合包括的上述网页卡片对应的上述主题标签为上述第一主题标签;从优质库中获取第五搜索集合,上述第五搜索集合包括的上述网页卡片对应的上述主题标签为上述第一主题标签,上述优质库为基于上述网页库中的网页的质量确定的优质数据库;将上述第四搜索集合和上述第五搜索集合融合为上述第二搜索集合。In a possible implementation manner, the above-mentioned at least one webpage card is obtained from a webpage library, and after receiving the second query request, the above-mentioned method further includes: obtaining the fourth A search set, the above-mentioned theme tag corresponding to the above-mentioned webpage card included in the above-mentioned fourth search set is the above-mentioned first theme label; a fifth search set is obtained from a high-quality library, and the above-mentioned theme label corresponding to the above-mentioned webpage card included in the above-mentioned fifth search set is the above-mentioned first theme tag, the above-mentioned high-quality library is a high-quality database determined based on the quality of the web pages in the above-mentioned web page library; the above-mentioned fourth search set and the above-mentioned fifth search set are fused into the above-mentioned second search set.
在上述方法中,不是单一地将第一搜索集合中对应的主题标签为第一主题标签的网页卡片的集合(如第四搜索集合)确定为是第二搜索集合,还融合了从优质库中召回的对应的主题标签为第一主题标签的网页卡片的集合(即第五搜索集合),不仅保证了网页的相关性(和用户选择的第一主题标签匹配),还保证了网页的多样性,扩展用户的阅读,提升用户使用感。In the above method, instead of simply determining the set of web cards (such as the fourth search set) whose corresponding theme tag is the first theme label in the first search set as the second search set, it also incorporates The recalled set of webpage cards whose corresponding theme label is the first theme label (that is, the fifth search set) not only ensures the relevance of the webpage (matching the first theme label selected by the user), but also ensures the diversity of the webpage , to expand the user's reading experience and enhance the user's sense of use.
第三方面,本申请提供了一种通信装置,包括收发器、处理器和存储器,上述存储器用于存储计算机程序,上述处理器调用上述计算机程序,用于执行上述任一方面任意一种可能的实现方式中的搜索方法。In a third aspect, the present application provides a communication device, including a transceiver, a processor, and a memory, the memory is used to store a computer program, and the processor invokes the computer program to execute any possible The search method in the implementation.
第四方面,本申请提供了一种通信装置,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得上述通信装置执行上述任一方面任意一种可能的实现方式中的搜索方法。In a fourth aspect, the present application provides a communications device, including one or more processors and one or more memories. The one or more memories are coupled with one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the above-mentioned communication means Execute the search method in any possible implementation manner of any of the foregoing aspects.
第五方面,本申请实施例提供了一种计算机存储介质,上述计算机存储介质存储有计算 机程序,上述计算机程序被处理器执行时,实现上述任一方面任意一种可能的实现方式中的搜索方法。In the fifth aspect, an embodiment of the present application provides a computer storage medium, the computer storage medium stores a computer program, and when the computer program is executed by a processor, the search method in any possible implementation of any of the above aspects is implemented .
第六方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任意一种可能的实现方式中的搜索方法。In a sixth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the search method in any possible implementation manner of any one of the above aspects.
以下对本申请实施例用到的附图进行介绍。The accompanying drawings used in the embodiments of the present application are introduced below.
图1A是本申请实施例提供的一种搜索系统的架构示意图;FIG. 1A is a schematic diagram of the architecture of a search system provided by an embodiment of the present application;
图1B是本申请实施例提供的一种搜索系统的交互示意图;FIG. 1B is an interactive schematic diagram of a search system provided by an embodiment of the present application;
图2A是本申请实施例提供的一种电子设备的硬件结构示意图;FIG. 2A is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
图2B是本申请实施例提供的一种电子设备的软件架构示意图;FIG. 2B is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
图2C是本申请实施例提供的一种网络设备的硬件结构示意图;FIG. 2C is a schematic diagram of a hardware structure of a network device provided by an embodiment of the present application;
图3是本申请实施例提供的一种用户界面实施例的示意图;Fig. 3 is a schematic diagram of a user interface embodiment provided by the embodiment of the present application;
图4是本申请实施例提供的又一种用户界面实施例的示意图;Fig. 4 is a schematic diagram of another user interface embodiment provided by the embodiment of the present application;
图5是本申请实施例提供的又一种用户界面实施例的示意图;Fig. 5 is a schematic diagram of another user interface embodiment provided by the embodiment of the present application;
图6是本申请实施例提供的又一种用户界面实施例的示意图;Fig. 6 is a schematic diagram of another user interface embodiment provided by the embodiment of the present application;
图7是本申请实施例提供的一种搜索方法的流程示意图;FIG. 7 is a schematic flow chart of a search method provided by an embodiment of the present application;
图8是本申请实施例提供的又一种搜索方法的流程示意图;Fig. 8 is a schematic flowchart of another search method provided by the embodiment of the present application;
图9是本申请实施例提供的又一种搜索方法的流程示意图;FIG. 9 is a schematic flowchart of another search method provided by the embodiment of the present application;
图10是本申请实施例提供的一种获取优质库的流程示意图;Fig. 10 is a schematic flow diagram of obtaining a high-quality library provided by the embodiment of the present application;
图11是本申请实施例提供的又一种搜索方法的流程示意图。FIG. 11 is a schematic flowchart of another search method provided by the embodiment of the present application.
在本文中对本发明的描述中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本发明的限制。如本在发明的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in describing the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein in the specification of the invention and the appended claims, the singular expressions "a", "an", "said", "the" and "this" are intended to include the plural expressions as well , unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
本申请提供了一种搜索方法,可以应用于电子设备。该方法例如应用于搜索系统或者推荐系统。在一些实施例中,电子设备接收到用户输入的查询语句(query)和针对该查询语句的搜索请求时,可以将搜索结果和搜索结果相关的主题标签展示给用户进行交互,在一些实施例中,电子设备可以为用户提供和用户选择的主题标签匹配的搜索结果,即满足用户查询的实际意图的搜索结果,这样可以减少用户在获取所需信息时执行的操作,搜索结果更加准确,并且降低了设备处理压力。该方法例如应用于网页搜索领域,一个搜索结果可以对应一个网页。其中:This application provides a search method, which can be applied to electronic equipment. The method is used, for example, in search systems or recommendation systems. In some embodiments, when the electronic device receives a query statement (query) input by the user and a search request for the query statement, it can display search results and hashtags related to the search results to the user for interaction. , the electronic device can provide users with search results that match the hashtags selected by the user, that is, search results that meet the actual intention of the user's query. equipment to handle the stress. This method is, for example, applied in the field of webpage search, and one search result may correspond to one webpage. in:
搜索系统和推荐系统通常涉及到两个技术:召回和排序。其中,召回是指从原始数据(一般理解为全量信息集合,例如网页库)中触发尽可能多的正确结果,可选地,触发“正确结果”时可以基于和查询语句的相关度实现,例如相关度排列在前N位的网页为召回的结果,N为正整数。排序则是对输入的数据(如召回得到的正确结果)进行打分和排序,以得到得分最高的至少一个结果。例如可以基于相关参数来进行打分,相关参数例如但不限于包括网页内 容、网页质量、站点权威性、和查询语句的相关度等。可选地,召回可以从千万级内容池中召回几千个数据结果,然后将数据结果返回其他排序层进行挑选,相当于粗排序。搜索系统和推荐系统可以将排序输出的至少一个结果显示给用户。在一些实施例中,还可以结合用户的信息(例如兴趣特点和行为日志)来得到搜索结果,例如召回和排序时可以基于和用户的信息的相关度进行打分,从而向用户推荐其感兴趣的内容。Search systems and recommender systems generally involve two techniques: recall and ranking. Among them, recall refers to triggering as many correct results as possible from the original data (generally understood as a full amount of information collection, such as a webpage library). Optionally, when triggering "correct results", it can be realized based on the correlation with the query statement, for example The webpages ranked in the top N places of relevance are the result of recall, and N is a positive integer. Sorting is to score and sort the input data (such as the correct result obtained by recall) to obtain at least one result with the highest score. For example, scoring may be based on relevant parameters, such as but not limited to including webpage content, webpage quality, site authority, and relevance of query statements. Optionally, recall can recall thousands of data results from tens of millions of content pools, and then return the data results to other sorting layers for selection, which is equivalent to rough sorting. The search system and the recommendation system can display at least one result of the sorted output to the user. In some embodiments, user information (such as interest characteristics and behavior logs) can also be combined to obtain search results. For example, when recalling and sorting, scores can be based on the relevance of the user's information, thereby recommending the user's interested content.
网页搜索可以理解为是:基于用户输入的查询语句,使用特定的算法和策略从互联网搜索出和查询语句相关的搜索结果,每个搜索结果对应一个网页,然后对这些搜索结果进行排序和显示搜索结果列表,搜索结果列表中每个搜索结果可以包括对应的网页的概要信息。用户可以操作任意一个搜索结果查看对应的网页的具体内容。网页搜索也可以理解为是电子设备通过用户输入的查询语句,有效整合互联网上相关的网页内容,并通过统一入口帮助用户快速获取所需的信息。Webpage search can be understood as: based on the query statement entered by the user, use specific algorithms and strategies to search the search results related to the query statement from the Internet, each search result corresponds to a webpage, and then sort and display the search results In the result list, each search result in the search result list may include summary information of the corresponding web page. The user may operate any search result to view specific content of the corresponding web page. Webpage search can also be understood as an electronic device that effectively integrates relevant webpage content on the Internet through query sentences input by users, and helps users quickly obtain required information through a unified entrance.
可以理解地,任意一个信息可以存在一个主题标签(后续描述也可简称为主题),例如一个网页可以对应一个主题标签,主题标签可以用于指示网页的内容所属的分类,例如为游戏、影视、历史、明星、农业、科技、军事等。但需要说明的是,也存在信息的主题标签不明确的情况,即信息的主题标签无法被清楚地识别出来,在一些实施例中,可以通过主题分布来表征这种信息的主题。Understandably, any piece of information may have a topic tag (subsequent descriptions may also be referred to as topics for short), for example, a web page may correspond to a topic tag, and the topic tag may be used to indicate the category to which the content of the web page belongs, such as games, movies, videos, History, stars, agriculture, technology, military, etc. However, it should be noted that there are also cases where the subject tags of the information are not clear, that is, the subject tags of the information cannot be clearly identified. In some embodiments, the subject of such information can be represented by subject distribution.
其中,主题分布不是一个明确的主题标签,可以表征主题标签的多种可能情况,也就是说,主题标签存在多种可能的情况时,可以通过数学分布(即上述主题分布)来表征,数学分布的形式不作限定,例如包括多个可能的主题分别对应的概率。例如,查询语句1可以对应主题分布1,主题分布1包括主题标签1对应的概率1、主题标签2对应的概率2和其他主题对应的概率3,概率1、概率2和概率3之和为1,主题分布1可以表征查询语句1的主题为主题标签1的概率为概率1,查询语句1的主题为主题标签2的概率为概率2,查询语句1的主题为主题标签1和主题标签2以外的其他主题的概率为概率3。Among them, the topic distribution is not a clear topic label, which can represent many possible situations of the topic label, that is to say, when there are many possible situations of the topic label, it can be represented by a mathematical distribution (ie, the above topic distribution), and the mathematical distribution The form of is not limited, for example, it includes probabilities corresponding to multiple possible themes. For example, query statement 1 can correspond to topic distribution 1, and topic distribution 1 includes probability 1 corresponding to topic label 1, probability 2 corresponding to topic label 2, and probability 3 corresponding to other topics, and the sum of probability 1, probability 2, and probability 3 is 1 , topic distribution 1 can represent the probability that the topic of query statement 1 is topic label 1 is probability 1, the probability that the topic of query statement 1 is topic label 2 is probability 2, and the topic of query statement 1 is other than topic label 1 and topic label 2 The probability of the other topics is probability 3.
在一些实施例中,电子设备可以识别网页集合(包括多个网页)的主题分布,例如该网页集合的主题分布可表征该网页集合包括的网页的内容可能所属的多个分类,以及属于每个分类的概率。在一些实施例中,电子设备可以识别查询语句的主题分布(本申请将查询语句的主题分布称为第一主题分布),可选地,可以理解为是进行用户查询的多意图的识别,可选地,可以理解为是识别用户搜索的隐示意图,隐示意图可以是无法从查询语句包括的内容直接得到的意图,例如查询语句为水果1,隐式意图可以为农业和食谱等,和隐式意图相反,即能直接从查询语句得到的意图可以为水果1。In some embodiments, the electronic device can identify the topic distribution of a webpage collection (including multiple webpages). Classification probability. In some embodiments, the electronic device can identify the topic distribution of the query statement (this application refers to the topic distribution of the query statement as the first topic distribution). Optionally, it can be understood as identifying the implicit schematic diagram that the user searches for. The implicit schematic diagram can be an intent that cannot be directly obtained from the content included in the query statement. For example, the query statement is fruit 1, and the implicit intent can be agriculture and recipes, etc., and implicit The intent is opposite, that is, the intent that can be obtained directly from the query statement can be fruit 1.
在一些实施例中,一个(明确的)主题标签可以对应一个词分布,词分布可以指示用于表征对应的主题标签的多个词语,这多个词语也可称为主题标签的相关词,词分布也为数学分布,具体形式不作限定,例如包括多个词语分别对应的概率。可选地,可以仅取这多个词语中排在前N位的N个词语来表征词分布,N为正整数。例如,主题标签1可以对应词分布1,词分布1包括用于表征主题标签1的10个词语分别对应的概率,上述10个词语可以是用于表征主题标签1的多个词语经过排序后,排在前10位的词语,例如但不限于通过和主题的相关度来排序。In some embodiments, a (clear) hashtag may correspond to a word distribution, and the word distribution may indicate a plurality of words used to characterize the corresponding hashtag, which may also be referred to as related words of the hashtag. The distribution is also a mathematical distribution, and the specific form is not limited, for example, it includes probabilities corresponding to multiple words. Optionally, only the top N words among the plurality of words may be used to characterize the word distribution, where N is a positive integer. For example, topic tag 1 may correspond to word distribution 1, and word distribution 1 includes probabilities corresponding to 10 words used to characterize topic tag 1. The above-mentioned 10 words may be sorted after multiple words used to characterize topic tag 1 The top 10 words are, for example but not limited to, sorted by relevance to the topic.
网页库,可以用于电子设备召回网页,网页库例如是电子设备使用爬虫技术从互联网上爬取的大量网页构成的集合。The webpage library can be used for recalling webpages by the electronic device. The webpage library is, for example, a collection of a large number of webpages crawled by the electronic device from the Internet using crawler technology.
优质库,可以用于电子设备召回网页,优质库例如是电子设备使用网页处理分析技术对网页库中的网页进行权威性、重要程度等方面进行分析得到的,例如基于权威性、重要程度 等来确定网页的质量,并将质量较高的网页集合筛选出来,优质库可以理解为是网页库的子集。电子设备基于网页库获取优质库的过程的示例可参见下图10,暂不详述。A high-quality library can be used to recall webpages for electronic devices. For example, a high-quality library is obtained by electronic devices using webpage processing and analysis technology to analyze the authority and importance of webpages in the webpage library, for example, based on authority and importance. Determine the quality of webpages, and filter out high-quality webpage collections. The high-quality library can be understood as a subset of the webpage library. An example of the process for the electronic device to obtain a high-quality library based on the web page library can be seen in Figure 10 below, which will not be described in detail for now.
下面介绍本申请实施例涉及的一种搜索系统10。A search system 10 involved in the embodiment of the present application is introduced below.
图1A示例性示出了本申请实施例提供的一种搜索系统10的架构示意图。FIG. 1A exemplarily shows a schematic structural diagram of a search system 10 provided by an embodiment of the present application.
如图1A所示,搜索系统10可以包括电子设备100和网络设备200。电子设备可以通过有线(例如,通用串行总线(universal serial bus,USB)、双绞线、同轴电缆和光纤等)或无线(例如,无线局域网(wireless local area networks,WLAN)、蓝牙和移动设备网络等)的方式,和网络设备进行通信。As shown in FIG. 1A , the search system 10 may include an electronic device 100 and a network device 200 . Electronic devices can be wired (for example, universal serial bus (universal serial bus, USB), twisted pair, coaxial cable, and optical fiber, etc.) or wireless (for example, wireless local area networks (wireless local area networks, WLAN), Bluetooth and mobile device network, etc.) to communicate with network devices.
其中,电子设备100可以是手机、平板电脑、手持计算机、个人数字助理(Personal Digital Assistant,PDA)等移动终端,智能电视、智能摄像头等智能家居设备,智能手环、智能手表、智能眼镜等可穿戴设备,或其他桌面型、膝上型、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本、智慧屏等设备。本申请实施例对电子设备100的具体类型不作特殊限制。Wherein, the electronic device 100 may be mobile terminals such as mobile phones, tablet computers, handheld computers, and personal digital assistants (Personal Digital Assistant, PDA), smart home devices such as smart TVs and smart cameras, smart bracelets, smart watches, smart glasses, etc. Wearable devices, or other desktops, laptops, notebooks, ultra-mobile personal computers (Ultra-mobile Personal Computer, UMPC), netbooks, smart screens and other devices. The embodiment of the present application does not specifically limit the specific type of the electronic device 100 .
其中,网络设备200可以包括至少一个服务器,在一些实施例中,任意一个服务器可以为硬件服务器,在一些实施例中,任意一个服务器可以为云服务器。Wherein, the network device 200 may include at least one server, in some embodiments, any one server may be a hardware server, and in some embodiments, any one server may be a cloud server.
在一些实施例中,电子设备100可以与网络设备200基于浏览器/服务器(browser/server,B/S)架构通信,也可以基于客户端/服务器(client/server,C/S)架构通信。电子设备100可以接收用户输入的搜索请求,向网络设备200请求获取该搜索请求对应的网页搜索结果,该网页搜索结果可以是基于查询语句进行搜索得到的,查询语句可以是基于用户输入的搜索请求获取到的。电子设备100可以响应于该搜索请求,显示从网络设备200处获取到的上述网页搜索结果。In some embodiments, the electronic device 100 may communicate with the network device 200 based on a browser/server (B/S) framework, or may communicate based on a client/server (client/server, C/S) framework. The electronic device 100 may receive a search request input by a user, and request the network device 200 to obtain a webpage search result corresponding to the search request. The webpage search result may be obtained based on a search statement, and the query statement may be based on a search request input by the user. obtained. In response to the search request, the electronic device 100 may display the above webpage search results obtained from the network device 200 .
图1B示例性示出了本申请实施例提供的一种搜索系统10的交互示意图。FIG. 1B exemplarily shows a schematic diagram of interaction of a search system 10 provided by an embodiment of the present application.
如图1B所示,搜索系统10中的电子设备100可以包括应用程序,例如浏览器。搜索系统10中的网络设备200可以包括查询模块(Query)、召回模块和排序模块(Ranker),其中:As shown in FIG. 1B , the electronic device 100 in the search system 10 may include an application program, such as a browser. The network device 200 in the search system 10 may include a query module (Query), a recall module and a ranking module (Ranker), wherein:
电子设备100的应用程序可以用于接收用户输入的搜索请求,以及基于接收到的搜索请求向网络设备200的查询模块发送查询请求,以请求获取该搜索请求对应的网页搜索结果。The application program of the electronic device 100 can be used to receive a search request input by the user, and send a query request to the query module of the network device 200 based on the received search request, so as to request to obtain a web page search result corresponding to the search request.
网络设备200的查询模块可以用于分析处理查询语句,查询语句可以是基于用户输入的搜索请求获取到的。在一些实施例中,查询模块可以对查询语句进行分析理解,以得到关键词、向量等查询语句的分析结果,以及向网络设备200的召回模块发送查询语句的分析结果。在一些实施例中,查询模块可以对查询语句的分析结果进行主题识别,以得到查询语句的主题分布,以及向网络设备200的召回模块发送查询语句的主题分布。The query module of the network device 200 may be used for analyzing and processing query statements, which may be obtained based on a search request input by a user. In some embodiments, the query module can analyze and understand the query statement to obtain analysis results of the query statement such as keywords and vectors, and send the analysis result of the query statement to the recall module of the network device 200 . In some embodiments, the query module can perform topic identification on the analysis result of the query statement to obtain the topic distribution of the query statement, and send the topic distribution of the query statement to the recall module of the network device 200 .
网络设备200的召回模块可以用于召回网页集合,以及将召回的网页集合发送给网络设备200的排序模块。在一些实施例中,召回模块可以基于查询模块发送的查询语句的分析结果和主题分布召回网页集合。The recall module of the network device 200 may be used to recall the set of webpages, and send the recalled set of webpages to the sorting module of the network device 200 . In some embodiments, the recall module may recall the set of webpages based on the analysis result and topic distribution of the query statement sent by the query module.
网络设备200的排序模块可以用于对召回模块发送的网页集合进行排序以得到排序结果,以及将排序结果发送给电子设备100的应用程序。在一些实施例中,排序模块还可以将排序结果中至少一个网页分别对应的主题标签发送给电子设备100的应用程序。在一些实施例中,排序模块可以对网页集合和主题卡片一起进行排序以得到排序结果,主题卡片包括至少一个主题标签,可选地,主题卡片对应查询语句的主题分布。The sorting module of the network device 200 can be used to sort the set of webpages sent by the recall module to obtain a sorting result, and send the sorting result to the application program of the electronic device 100 . In some embodiments, the sorting module may also send the subject tags respectively corresponding to at least one webpage in the sorting results to the application program of the electronic device 100 . In some embodiments, the sorting module can sort the collection of webpages together with topic cards to obtain a sorting result. The topic cards include at least one topic tag. Optionally, the topic cards correspond to the topic distribution of the query statement.
电子设备100的应用程序可以用于接收网络设备200的排序模块发送的排序结果,以及显示排序结果。在一些实施例中,应用程序可以显示排序结果中至少一个网页分别对应的主题标签。在一些实施例中,应用程序显示的排序结果可以包括主题卡片,显示的主题卡片可以包括至少一个主题标签。The application program of the electronic device 100 may be used to receive the ranking result sent by the ranking module of the network device 200 and display the ranking result. In some embodiments, the application program may display the topic tags respectively corresponding to at least one webpage in the sorted results. In some embodiments, the sorting results displayed by the application program may include topic cards, and the displayed topic cards may include at least one topic tag.
在一些实施例中,电子设备100的应用程序可以用于接收用户输入的作用于第一主题标签的搜索请求,以及基于接收到的搜索请求向网络设备200的召回模块发送查询请求,以请求获取该搜索请求对应的网页搜索结果。网络设备200的召回模块可以基于第一主题标签召回网页集合,以及将召回的网页集合发送给网络设备200的排序模块。排序模块可以对召回模块发送的网页集合进行排序以得到排序结果,以及将排序结果发送给电子设备100的应用程序。电子设备100的应用程序可以显示接收到的排序结果,该排序结果中的网页对应的主题标签为第一主题标签。In some embodiments, the application program of the electronic device 100 can be used to receive a search request input by the user and act on the first hashtag, and send a query request to the recall module of the network device 200 based on the received search request to request to obtain The web page search result corresponding to the search request. The recall module of the network device 200 may recall the set of webpages based on the first theme tag, and send the recalled set of webpages to the ranking module of the network device 200 . The ranking module can sort the set of web pages sent by the recall module to obtain a ranking result, and send the ranking result to the application program of the electronic device 100 . The application program of the electronic device 100 may display the received sorting result, and the topic tag corresponding to the webpage in the sorting result is the first topic tag.
接下来介绍本申请实施例中提供的示例性的电子设备。Next, an exemplary electronic device provided in the embodiment of the present application is introduced.
请参见图2A,图2A示出了一种电子设备100的结构示意图。Please refer to FIG. 2A , which shows a schematic structural diagram of an electronic device 100 .
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface, MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括WLAN(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110 接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide information including WLAN (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), and global navigation satellite system (global navigation satellite system, GNSS) applied on the electronic device 100. , frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度等进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, etc. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件, 闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。 Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。例如,分层架构的软件系统可以是安卓(Android)系统,也可以是华为移动服务(huawei mobile services,HMS)系统,或其它软件系统。本申请实施例以分层架构的Android 系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the layered architecture may be an Android system, a Huawei mobile services (HMS) system, or other software systems. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
图2B是本发明实施例的电子设备100的软件结构框图。FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图2B所示,应用程序包可以包括相机,日历,音乐,短信息,图库,通话,导航,蓝牙,浏览器等应用程序。As shown in FIG. 2B, the application package may include application programs such as camera, calendar, music, short message, gallery, call, navigation, bluetooth, and browser.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in FIG. 2B, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传 感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
下面结合搜索场景,示例性说明电子设备100软件以及硬件的工作流程。In the following, the workflow of the software and hardware of the electronic device 100 will be exemplarily described in conjunction with a search scenario.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为浏览器的搜索控件为例,浏览器调用应用框架层的接口,基于用户在浏览器的搜索框控件输入的查询语句进行搜索,进而通过调用内核层启动显示驱动,通过显示屏194显示搜索得到的网页列表。用户可以通过搜索得到的网页列表获取所需的信息。When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Assuming that the touch operation is a touch and click operation, and the control corresponding to the click operation is the search control of the browser as an example, the browser calls the interface of the application framework layer, based on the query statement entered by the user in the search box control of the browser. Search, and then start the display driver by calling the kernel layer, and display the list of webpages obtained by searching through the display screen 194 . Users can obtain the required information through the web page list obtained by searching.
接下来介绍本申请实施例中提供的示例性的网络设备。Next, an exemplary network device provided in the embodiment of this application is introduced.
请参见图2C,图2C示出了一种网络设备200的结构示意图。Please refer to FIG. 2C , which shows a schematic structural diagram of a network device 200 .
如图2C所示,网络设备200可以包括一个或多个处理器201、通信接口202、存储器203,其中处理器201、通信接口202、存储器203可通过总线或者其它方式连接,本申请实施例以通过总线204连接为例。其中:As shown in FIG. 2C, the network device 200 may include one or more processors 201, communication interfaces 202, and memories 203, wherein the processors 201, communication interfaces 202, and memories 203 may be connected via a bus or in other ways. Connection via bus 204 as an example. in:
处理器201可以由一个或者多个通用处理器构成,例如CPU。处理器201可用于运行设备控制方法的相关的程序代码。 Processor 201 may be composed of one or more general-purpose processors, such as CPUs. The processor 201 can be used to run related program codes of the device control method.
通信接口202可以为有线接口(例如以太网接口)或无线接口(例如蜂窝网络接口或使用无线局域网接口),用于与其他节点进行通信。本申请实施例中,通信接口202具体可用于与电子设备100进行通信。The communication interface 202 can be a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface), and is used for communicating with other nodes. In the embodiment of the present application, the communication interface 202 may specifically be used to communicate with the electronic device 100 .
存储器203可以包括易失性存储器(volatile memory),例如RAM;存储器也可以包括非易失性存储器(non-vlatile memory),例如ROM、快闪存储器(flash memory)、HDD或固态硬盘SSD。存储器203还可以包括上述种类的存储器的组合。存储器203可用于存储一组程序代码,以便于处理器201调用存储器203中存储的程序代码以实现本申请实施例的在服务器的实现方法。在本申请实施例中,存储器203还可以是存储阵列,等等。The memory 203 may include volatile memory (volatile memory), such as RAM; the memory may also include non-volatile memory (non-vlatile memory), such as ROM, flash memory (flash memory), HDD or solid state disk SSD. The memory 203 may also include a combination of the above-mentioned kinds of memories. The memory 203 may be used to store a set of program codes, so that the processor 201 calls the program codes stored in the memory 203 to implement the implementation method in the server of the embodiment of the present application. In this embodiment of the present application, the storage 203 may also be a storage array, and the like.
在一些实施例中,网络设备200可以包括多个服务器,例如,网页服务器、后台服务器、下载服务器等,这多个服务器的硬件结构都可参照图2C所示的网络设备200的硬件结构。In some embodiments, the network device 200 may include multiple servers, for example, a web server, a background server, a download server, etc. The hardware structure of these multiple servers may refer to the hardware structure of the network device 200 shown in FIG. 2C .
需要说明的,图2C所示的网络设备200仅仅是本申请实施例的一种实现方式,实际应用中,网络设备200还可以包括更多或更少的部件,这里不作限制。It should be noted that the network device 200 shown in FIG. 2C is only an implementation manner of the embodiment of the present application. In practical applications, the network device 200 may include more or fewer components, which is not limited here.
下面介绍本申请实施例涉及的应用场景以及该场景下的用户界面实施例。The application scenario involved in the embodiment of the present application and the user interface embodiment in the scenario are introduced below.
请参见图3,图3示例性示出一种用户界面的示意图。图3的(A)示出了点击搜索控件311B之前的用户界面310,图3的(B)示出了点击搜索控件311B之后的用户界面320。Please refer to FIG. 3 . FIG. 3 exemplarily shows a schematic diagram of a user interface. (A) of FIG. 3 shows the user interface 310 before the search control 311B is clicked, and (B) of FIG. 3 shows the user interface 320 after the search control 311B is clicked.
如图3的(A)所示,电子设备可以显示浏览器的用户界面310,在一些实施例中,用户界面310可以是电子设备响应于作用于桌面的浏览器的图标的触摸操作(例如点击操作)显示的,在一些实施例中,用户界面310可以为浏览器的首页。用户界面310可以包括搜索栏311、导航栏和推荐的网页。其中:As shown in (A) of FIG. 3 , the electronic device can display a user interface 310 of a browser. In some embodiments, the user interface 310 can be a touch operation (for example, clicking on an icon of a browser) that the electronic device responds to on the desktop. operation), in some embodiments, the user interface 310 may be the homepage of the browser. The user interface 310 may include a search bar 311, a navigation bar, and recommended web pages. in:
搜索栏311可以用于实现搜索功能。搜索栏311可以包括搜索框311A和搜索控件311B,搜索框311A可以用于输入查询语句,例如用户界面310中的搜索框311A包括文字:“搜索”,用于提示用户输入查询语句。搜索控件311B可以用于触发和查询语句对应的搜索。电子设备可以接收用户基于搜索框311A输入的查询语句,然后可以接收作用于搜索控件311B的触摸 操作(例如点击操作),响应于该触摸操作,基于查询语句进行搜索以得到至少一个和查询语句相关的网页,并对这至少一个网页进行排序。电子设备可以显示排序后的网页,例如显示图3的(B)所示的用户界面320。The search bar 311 can be used to implement a search function. The search bar 311 may include a search box 311A and a search control 311B. The search box 311A may be used to input a query statement. For example, the search box 311A in the user interface 310 includes text: "search", which is used to prompt the user to input a query statement. The search control 311B can be used to trigger a search corresponding to a query statement. The electronic device may receive a query statement input by the user based on the search box 311A, and then may receive a touch operation (such as a click operation) acting on the search control 311B, and in response to the touch operation, perform a search based on the query statement to obtain at least one search statement related to the query statement. , and sort at least one of the pages. The electronic device may display the sorted web pages, for example, display the user interface 320 shown in (B) of FIG. 3 .
如图3的(B)所示,电子设备可以显示浏览器的用户界面320。用户界面320可以包括搜索栏311,用户界面320中的搜索栏311和图3的(A)所示的用户界面310中的搜索栏311类似,区别在于,用户界面320中的搜索栏311中,搜索框311A包括的文字为用户输入的查询语句:“人物A”。用户界面320可以用于显示和该查询语句对应的搜索结果列表,例如按照排序的先后顺序依次为网页321、网页322和网页323,不限于此,得到的搜索结果可以更多也可以更少,本申请对此不作限定。搜索结果列表中任意一个网页可以包括标题和网址,标题可以指示该网页的内容,网址即为该网页的地址,可以通过网址来访问该网页的具体内容。以网页321为例进行说明,网页321包括标题321A(包括字符“人物A-游戏1官网”)和网址321B(包括字符“网址aaa”),其中本申请以“人物A”对应的游戏名称为“游戏1”为例,网址可以是互联网协议(internet protocol,IP)地址,也可以是域名地址,具体形式不作限定。其他搜索结果的说明类似,具体可参见网页322和网页323,不再赘述。As shown in (B) of FIG. 3 , the electronic device may display a user interface 320 of a browser. The user interface 320 may include a search bar 311. The search bar 311 in the user interface 320 is similar to the search bar 311 in the user interface 310 shown in (A) of FIG. The text included in the search box 311A is the query sentence input by the user: "person A". The user interface 320 may be used to display a list of search results corresponding to the query statement, for example, web page 321, web page 322, and web page 323 in order of sorting, but not limited thereto, more or less search results may be obtained, This application is not limited to this. Any webpage in the search result list can include a title and a URL, the title can indicate the content of the webpage, and the URL is the address of the webpage, and the specific content of the webpage can be accessed through the URL. Taking the webpage 321 as an example for illustration, the webpage 321 includes a title 321A (including the characters "Character A-Game 1 official website") and a website address 321B (including the characters "URL aaa"), wherein the name of the game corresponding to "Character A" in this application is "Game 1" is an example, the URL can be an Internet protocol (internet protocol, IP) address, or a domain name address, and the specific form is not limited. The descriptions of other search results are similar, for details, please refer to webpage 322 and webpage 323, and details will not be repeated here.
如图3所示,用户输入的查询语句为“人物A”时,电子设备基于该查询语句得到的搜索结果中,网页321中的“人物A”对应“游戏1”中的游戏角色,网页322和网页323中的“人物A”对应历史人物,不限于此,其他搜索结果中的“人物A”也可以对应明星、影视角色等等。也就是说,用户输入的查询语句较模糊存在多意图时,搜索结果涉及范围较广,例如上述涉及了游戏、历史、明星和影视等多个领域,这样才能保证网页的相关性和多样性。并且电子设备只是简单地将搜索结果排序后展示给用户,用户实际的搜索意图可能只涉及其中一个领域,用户往往需要多次操作才能获取到所需的信息,例如多次执行滑动操作以查看当前界面未显示的其他搜索结果,多次点击列表中的网页来查看具体内容然后返回搜索结果的列表,也就是说用户从查询语句相关的搜索结果中筛选所需的信息时,需执行的用户操作繁琐,设备处理压力也较大,搜索结果无法很好地满足用户的实际意图。As shown in FIG. 3 , when the query sentence input by the user is "Character A", among the search results obtained by the electronic device based on the query sentence, "Character A" in the web page 321 corresponds to the game character in "Game 1", and the web page 322 "Character A" in the web page 323 corresponds to a historical figure, but is not limited thereto, and "Character A" in other search results may also correspond to celebrities, film and television characters, and the like. That is to say, when the query sentence entered by the user is vague and has multiple intentions, the search results cover a wide range. For example, the above-mentioned fields involve games, history, celebrities, film and television, etc., so as to ensure the relevance and diversity of web pages. Moreover, the electronic device simply sorts the search results and presents them to the user. The user's actual search intention may only involve one of the fields, and the user often needs multiple operations to obtain the desired information, such as performing multiple sliding operations to view the current For other search results that are not displayed on the interface, click the webpage in the list multiple times to view the specific content and then return to the list of search results, that is to say, the user operation that needs to be performed when the user filters the required information from the search results related to the query statement It is cumbersome, and the device processing pressure is also high, and the search results cannot well meet the actual intention of the user.
本申请中,电子设备可以在展示搜索结果时将和搜索结果相关的主题标签一起展示给用户进行交互,减少用户从大量搜索结果中获取所需信息时所执行的操作,也降低了设备处理压力。In this application, when displaying the search results, the electronic device can display the hashtags related to the search results to the user for interaction, reducing the operations performed by the user when obtaining the required information from a large number of search results, and also reducing the processing pressure on the device .
在一些实施例中,电子设备可以显示任意一个搜索结果对应的主题标签,具体示例如下图4所示。In some embodiments, the electronic device may display a hashtag corresponding to any search result, and a specific example is shown in FIG. 4 below.
请参见图4,图4示例性示出又一种用户界面的示意图。图4的(A)示出了点击搜索控件311B之前的用户界面310,图4的(B)示出了点击搜索控件311B之后的用户界面330。Please refer to FIG. 4 . FIG. 4 exemplarily shows a schematic diagram of another user interface. (A) of FIG. 4 shows the user interface 310 before the search control 311B is clicked, and (B) of FIG. 4 shows the user interface 330 after the search control 311B is clicked.
如图4的(A)所示,电子设备可以显示浏览器的用户界面310,即图3的(A)所示的用户界面310。电子设备可以接收用户基于搜索框311A输入的查询语句“人物A”,并响应于作用于搜索控件311B的触摸操作(例如点击操作),基于查询语句进行搜索以得到至少一个搜索结果,并对这至少一个搜索结果进行排序,每个搜索结果对应一个网页。在一些实施例中,电子设备可以在显示排序后的至少一个搜索结果时,显示部分或全部搜索结果对应的主题标签,例如图4的(B)所示的用户界面330。As shown in (A) of FIG. 4 , the electronic device may display a user interface 310 of a browser, that is, the user interface 310 shown in (A) of FIG. 3 . The electronic device may receive the query statement "person A" input by the user based on the search box 311A, and in response to a touch operation (such as a click operation) acting on the search control 311B, perform a search based on the query statement to obtain at least one search result, and perform a search on the query statement. At least one search result is sorted, and each search result corresponds to a web page. In some embodiments, when displaying at least one sorted search result, the electronic device may display topic tags corresponding to some or all of the search results, such as the user interface 330 shown in (B) of FIG. 4 .
如图4的(B)所示,用户界面330可以包括搜索栏311,具体可参见图3的(B)所示的用户界面320中的搜索栏311的说明。用户界面330可以用于显示和查询语句“人物A”对应的搜索结果列表,例如按照排序的先后顺序依次为网页331、网页333和网页332,不限于此,得到的搜索结果可以更多也可以更少,本申请对此不作限定。搜索结果列表中任意一个 搜索结果可以包括对应网页的标题、简介、网址、来源和主题标签,标题和简介可以指示该网页的内容,网址为访问该网页的入口地址,来源为发布该网页的源头(例如为网站名称、公众号名称、企业名称等)。例如,网页331包括标题331A(包括字符“人物A-游戏1官网”)、简介331B(包括字符“游戏1角色资料:人物A…”)、网址331C、来源331D和主题331E(包括字符“游戏1”)。网页332包括标题332A(包括字符“历史人物A的一生”)、简介332B(包括字符“介绍朝代H的人物A…”)、网址332C、来源332D和主题332E(包括文字“历史人物”),其中本申请以“人物A”对应的历史朝代为“朝代H”为例。网页333包括标题333A(包括字符“人物A明星资料大全”)、简介333B(包括字符“人物A热门影视作品…”)、网址333C、来源333D和主题333E(包括文字“明星”)。其中,网页331、网页332和网页333为排列在前3位的搜索结果,可选地,电子设备可以响应于触摸操作(例如从下往上的滑动操作),显示排在第3位的搜索结果(即网页332)之后的搜索结果,但不显示这些搜索结果的主题标签。As shown in (B) of FIG. 4 , the user interface 330 may include a search bar 311 , for details, refer to the description of the search bar 311 in the user interface 320 shown in (B) of FIG. 3 . The user interface 330 can be used to display a list of search results corresponding to the query statement "person A", for example, the web page 331, the web page 333, and the web page 332 in the order of sorting, but it is not limited thereto, and more search results can be obtained. Less, the application is not limited to this. Any search result in the search result list can include the title, introduction, URL, source and hashtag of the corresponding webpage, the title and introduction can indicate the content of the webpage, the URL is the entry address for accessing the webpage, and the source is the source of publishing the webpage (For example, website name, official account name, company name, etc.). For example, web page 331 includes a title 331A (including the characters "Character A - Game 1 Official Website"), an introduction 331B (including the characters "Game 1 Character Profile: Character A..."), a URL 331C, a source 331D, and a subject 331E (including the characters "Game 1 1"). Web page 332 includes title 332A (including the characters "The Life of Historical Figure A"), Introduction 332B (including the characters "Introducing Character A of Dynasty H..."), URL 332C, Source 332D, and Subject 332E (including the text "Historical Figure"), The present application takes the historical dynasty corresponding to "person A" as "dynasty H" as an example. The webpage 333 includes a title 333A (including the characters "Character A Celebrity Data Collection"), an introduction 333B (including the characters "Character A Popular Film and Television Works..."), a URL 333C, a source 333D, and a subject 333E (including the words "Celebrity"). Among them, web page 331, web page 332, and web page 333 are the search results ranked in the top three positions. Optionally, the electronic device may display the search results ranked in the third position in response to a touch operation (such as a sliding operation from bottom to top). Results (i.e. page 332) after the search results, but hashtags for those search results are not displayed.
不限于上述示例,在另一些示例中,电子设备也可以显示更多搜索结果的主题标签,本申请对此不作限定。Not limited to the above example, in some other examples, the electronic device may also display more hashtags of the search results, which is not limited in the present application.
在一些实施例中,电子设备可以接收作用于任意一个搜索结果对应的主题标签的触摸操作(例如点击操作),例如图4的(B)所示的用户界面330中的主题331E、主题332E或者主题333E,响应于该触摸操作,显示和查询语句以及用户选择的主题标签相关的搜索结果,例如下图6的(A)所示的用户界面410(对应主题332E)或者图6的(B)所示的用户界面420(对应主题331E)。In some embodiments, the electronic device may receive a touch operation (such as a click operation) acting on a topic tag corresponding to any search result, such as topic 331E, topic 332E or topic 332E in the user interface 330 shown in (B) of FIG. The topic 333E, in response to the touch operation, displays search results related to the query statement and the topic tag selected by the user, such as the user interface 410 (corresponding to the topic 332E) shown in (A) of Figure 6 below or (B) of Figure 6 User interface 420 is shown (corresponding to topic 331E).
在另一些实施例中,电子设备可以在搜索结果列表中显示主题卡片,主题卡片包括和搜索结果列表中的搜索结果对应的至少一个主题标签,具体示例如下图5所示。In some other embodiments, the electronic device may display a theme card in the search result list, and the theme card includes at least one theme label corresponding to the search result in the search result list. A specific example is shown in FIG. 5 below.
请参见图5,图5示例性示出又一种用户界面的示意图。图5的(A)示出了点击搜索控件311B之前的用户界面310,图5的(B)示出了点击搜索控件311B之后的用户界面340。Please refer to FIG. 5 . FIG. 5 exemplarily shows a schematic diagram of another user interface. (A) of FIG. 5 shows the user interface 310 before the search control 311B is clicked, and (B) of FIG. 5 shows the user interface 340 after the search control 311B is clicked.
如图5的(A)所示,电子设备可以显示浏览器的用户界面310,即图3的(A)所示的用户界面310。电子设备可以接收用户基于搜索框311A输入的查询语句“人物A”,并响应于作用于搜索控件311B的触摸操作(例如点击操作),基于查询语句进行搜索以得到至少一个搜索结果。在一些实施例中,电子设备可以对搜索得到的至少一个搜索结果和查询语句的主题卡片进行排序,并显示排序后的结果,例如图5的(B)所示的用户界面340。As shown in (A) of FIG. 5 , the electronic device may display a user interface 310 of a browser, that is, the user interface 310 shown in (A) of FIG. 3 . The electronic device may receive a query sentence "person A" input by the user based on the search box 311A, and perform a search based on the query sentence to obtain at least one search result in response to a touch operation (such as a click operation) acting on the search control 311B. In some embodiments, the electronic device may sort the at least one search result and topic cards of the query statement obtained from the search, and display the sorted results, such as the user interface 340 shown in (B) of FIG. 5 .
如图5的(B)所示,用户界面340可以包括搜索栏311,具体可参见图3的(B)所示的用户界面320中的搜索栏311的说明。用户界面340可以用于显示和查询语句“人物A”对应的多个搜索结果和主题卡片,例如按照排序的先后顺序依次为网页341、网页342、主题卡片343和网页344,网页341、网页342和网页344分别和图4的(B)所示的用户界面330中的网页331、网页333和网页332类似,区别在于用户界面340中的网页不包括主题标签。主题卡片343可以包括标题(包括文字“推荐内容”)和多个主题标签,例如主题343A(包括字符“历史人物”),主题343B(包括字符“明星”),主题343C(包括字符“游戏1”)。As shown in (B) of FIG. 5 , the user interface 340 may include a search bar 311 , for details, refer to the description of the search bar 311 in the user interface 320 shown in (B) of FIG. 3 . The user interface 340 can be used to display a plurality of search results and topic cards corresponding to the query statement "person A", for example, according to the order of sorting, there are webpage 341, webpage 342, topic card 343 and webpage 344, webpage 341, webpage 342 The webpage 344 is similar to the webpage 331, the webpage 333 and the webpage 332 in the user interface 330 shown in (B) of FIG. Topic card 343 may include a title (including the text "recommended content") and a plurality of topic labels, such as topic 343A (including the characters "historical figure"), topic 343B (including the characters "star"), topic 343C (including the characters "game 1 ").
在一些实施例中,主题卡片是根据查询语句的主题分布确定的,例如用户界面340中的主题卡片343用于指示查询语句的主题分布,该主题分布包括三个明确的主题:“历史人物”、“明星”和“游戏1”,分别对应主题343A、主题343B和主题343C。In some embodiments, the topic cards are determined according to the topic distribution of the query statement, for example, the topic card 343 in the user interface 340 is used to indicate the topic distribution of the query statement, and the topic distribution includes three clear topics: "historical figure" , "Star" and "Game 1", respectively corresponding to theme 343A, theme 343B and theme 343C.
在一些实施例中,电子设备可以接收作用于主题卡片343中的任意一个主题标签的触摸操作(例如点击操作),例如主题343A、主题343B或者主题343C,响应于该触摸操作,显示和查询语句以及用户选择的主题标签相关的搜索结果,例如下图6的(A)所示的用户界面410(对应主题343A)或者图6的(B)所示的用户界面420(对应主题343C)。In some embodiments, the electronic device can receive a touch operation (such as a click operation) acting on any topic label in the topic card 343, such as topic 343A, topic 343B or topic 343C, and in response to the touch operation, display and query sentences And search results related to the topic tag selected by the user, such as the user interface 410 (corresponding to topic 343A) shown in (A) of FIG. 6 below or the user interface 420 (corresponding to topic 343C) shown in FIG. 6 (B) below.
在一些实施例中,电子设备可以命中显示(也可称为突出显示)搜索结果列表中的查询语句“人物A”,命中显示可以理解为是显示方式和其他显示方式不同,例如图4的(B)所示的用户界面330中,网页331的标题331A和简介331B中的“人物A”,网页332的标题332A和简介332B中的“人物A”,以及网页333的标题333A和简介333B中的“人物A”,均局部灰色显示,其他字符并未局部灰色显示。图5的(B)所示的用户界面340的命中显示和图4的(B)一致,不再赘述。In some embodiments, the electronic device can hit and display (also referred to as highlighting) the query sentence "person A" in the search result list, and the hit display can be understood as a display method that is different from other display methods, for example, the ( B) In the user interface 330 shown, "character A" in the title 331A and brief introduction 331B of the web page 331, "character A" in the title 332A and brief introduction 332B of the web page 332, and in the title 333A and brief introduction 333B of the web page 333 The "Character A" is partially grayed out, and other characters are not partially grayed out. The hit display of the user interface 340 shown in (B) of FIG. 5 is consistent with that of (B) of FIG. 4 , and will not be repeated here.
不限于上述示例的情况,在另一些示例中,图5的(B)所示的用户界面340中的网页也可以包括主题标签,具体可参见图4的(B)所示的用户界面330。Not limited to the above examples, in some other examples, the webpage in the user interface 340 shown in (B) of FIG.
以上实施例以主题卡片显示在搜索结果列表中为例进行说明,在另一些示例中,主题卡片也可以悬浮显示在搜索结果列表之上,也可以显示在搜索结果列表的旁边(例如显示屏的左侧或右侧边缘),本申请对主题卡片的显示方式不作限定。In the above embodiments, the theme card is displayed in the search result list as an example for illustration. In other examples, the theme card can also be displayed floating on the search result list, or can be displayed beside the search result list (for example, on the display screen. left or right edge), this application does not limit the display mode of the theme card.
在一些实施例中,电子设备可以显示和用户选择的主题标签相关的搜索结果,具体示例如下图6所示。In some embodiments, the electronic device may display search results related to the hashtag selected by the user, a specific example is shown in FIG. 6 below.
请参见图6,图6示例性示出又一种用户界面的示意图。Please refer to FIG. 6 . FIG. 6 exemplarily shows a schematic diagram of another user interface.
如图6的(A)所示,电子设备可以显示浏览器的用户界面410,用户界面410可以包括搜索结果列表和导航栏415。其中:As shown in (A) of FIG. 6 , the electronic device may display a user interface 410 of a browser, and the user interface 410 may include a search result list and a navigation bar 415 . in:
搜索结果列表中的搜索结果是基于查询语句“人物A”和用户选择的主题“历史人物”进行搜索得到的,例如按照排序的先后顺序依次为网页411、网页412、网页413和网页414,不限于此,得到的搜索结果可以更多也可以更少,本申请对此不作限定。搜索结果列表中任意一个搜索结果可以包括对应网页的标题、网址、来源,可选地还包括简介。例如,网页411包括标题411A(包括字符“历史人物A的故事”)和简介411B(包括字符“人物A是朝代H的…”)。网页412包括标题412A(包括图标和字符“解说朝代H的历史人物”,图标指示该网页包括视频信息)。网页413包括标题413A(包括字符“历史人物A的一生”)和简介413B(包括字符“介绍朝代H的人物A…”)。网页414包括标题414A(包括字符“历史上人物A怎么死的”)和简介414B(包括字符“人物A死于…”)。从这些网页的标题可以看出,网页411、网页413和网页414和查询语句“人物A”相关,网页412和用户选择的主题标签“历史人物”相关,当然这并不限定网页411、网页413和网页414和“历史人物”无关,也并不限定网页412和“人物A”无关。可以理解地,电子设备为用户推荐主题标签为用户选择的主题标签“历史人物”的搜索结果,更符合用户查询的实际意图。并且,这些搜索结果不限定于和查询语句“人物A”相关,例如网页412的标题412A不包括查询语句“人物A”,包括用户选择的主题标签“历史人物”,可以理解为是基于查询的实际意图进行了聚合扩展,推荐了更多和用户选择的主题标签相关的搜索结果,扩展用户的阅读,提升体验。The search results in the search result list are obtained by searching based on the query statement "person A" and the topic "historical figure" selected by the user, for example, web page 411, web page 412, web page 413 and web page 414 in order of sorting. Limited to this, more or less search results may be obtained, which is not limited in this application. Any search result in the search result list may include the title, URL, source, and optionally an introduction of the corresponding web page. For example, web page 411 includes a title 411A (including the characters "Story of Historical Figure A") and a brief 411B (including the characters "Character A is of Dynasty H..."). Web page 412 includes a title 412A (comprising an icon and the characters "Historical Figures Explaining Dynasty H", the icon indicating that the web page includes video information). The web page 413 includes a title 413A (including the characters "Life of historical figure A") and an introduction 413B (including the characters "Introducing character A of dynasty H..."). Web page 414 includes a title 414A (including the characters "How did character A die in history") and an introduction 414B (including the characters "Character A died in..."). It can be seen from the titles of these webpages that webpage 411, webpage 413 and webpage 414 are related to the query sentence "person A", and webpage 412 is related to the topic label "historical person" selected by the user. Of course, this does not limit webpage 411 and webpage 413 It has nothing to do with web page 414 and "historical figure", and it does not limit that web page 412 has nothing to do with "person A". It can be understood that the electronic device recommends to the user a search result whose topic tag is the topic tag "historical person" selected by the user, which is more in line with the actual intention of the user's query. Moreover, these search results are not limited to be related to the query sentence "person A". For example, the title 412A of the webpage 412 does not include the query sentence "person A", but includes the topic tag "historical person" selected by the user, which can be understood as based on the query The actual intention is aggregated and expanded, and more search results related to the hashtag selected by the user are recommended to expand the user's reading experience and improve the experience.
导航栏415可以包括返回控件415A和窗口数量415B。返回控件415A可以用于返回上一级界面,例如图6的(A)所示用户界面410中,电子设备可以响应于作用于返回控件415A的触摸操作(例如点击操作),响应于该触摸操作,返回显示上一级网页,即图4的(B)所示的用户界面330或者图5的(B)所示的用户界面340。窗口数量415B可以表征同时打开的窗口数量,例如同时打开了图6的(A)所示用户界面410和上一级网页。 Navigation bar 415 may include a back control 415A and a number of windows 415B. The return control 415A can be used to return to the previous interface, for example, in the user interface 410 shown in (A) of FIG. , return to display the webpage of the upper level, that is, the user interface 330 shown in (B) of FIG. 4 or the user interface 340 shown in (B) of FIG. 5 . The number of windows 415B may represent the number of windows opened at the same time, for example, the user interface 410 shown in (A) of FIG. 6 and the upper-level web page are opened at the same time.
如图6的(B)所示,电子设备可以显示浏览器的用户界面420,用户界面420和图6的(A)所示的用户界面410类似,区别在于,用户界面420显示的搜索结果是基于查询语句“人物A”和用户选择的主题标签“游戏1”进行搜索得到的,例如按照排序的先后顺序依次为网页421、网页422、网页423和网页424,其中,网页421包括标题421A(包括字符“游戏1角 色介绍”)和简介421B(包括字符“游戏1的角色包括人物A、人物B”)。网页422包括标题422A(包括字符“游戏1技能分析”)和简介422B(包括字符“人物A的技能包括”)。网页423包括标题423A(包括字符“人物A-游戏1官网”)和简介423B(包括字符“游戏1角色资料:人物A…”)。网页424包括标题424A(包括字符“人物A装备推荐”)和简介424B(包括字符“人物A的核心装备是…”)。基于这些搜索结果的标题可以看出,网页423和网页424和查询语句“人物A”相关,网页421和网页422和用户选择的主题标签“游戏1”相关,当然这并不限定网页423和网页424与“游戏1”无关,也并不限定网页421和网页422与“人物A”无关。可以理解地,电子设备为用户推荐主题标签为用户选择的主题标签“游戏1”的搜索结果,更符合用户查询的实际意图。As shown in (B) of FIG. 6 , the electronic device can display a user interface 420 of a browser. The user interface 420 is similar to the user interface 410 shown in (A) of FIG. Search based on the query statement "character A" and the topic tag "game 1" selected by the user, such as web page 421, web page 422, web page 423, and web page 424 in order of sorting, wherein web page 421 includes title 421A ( Including characters "Game 1 role introduction") and a brief introduction 421B (including characters "Game 1 roles include character A and character B"). Web page 422 includes a title 422A (including the characters "Game 1 Skills Analysis") and a brief 422B (including the characters "Character A's skills include"). The web page 423 includes a title 423A (including the characters "Character A - Game 1 Official Website") and an introduction 423B (including the characters "Game 1 Character Profile: Character A..."). Web page 424 includes a title 424A (including the text "Character A Equipment Recommendations") and a brief 424B (including the text "Character A's core equipment is..."). Based on the titles of these search results, it can be seen that webpage 423 and webpage 424 are related to the query sentence "person A", and webpage 421 and webpage 422 are related to the topic tag "game 1" selected by the user. Of course, this does not limit the relationship between webpage 423 and webpage 424 has nothing to do with "Game 1", and it does not limit that web page 421 and web page 422 have nothing to do with "Character A". It can be understood that the electronic device recommends to the user a search result whose topic tag is the topic tag "game 1" selected by the user, which is more in line with the actual intention of the user's query.
在一些实施例中,电子设备可以命中显示搜索结果列表中的查询语句“人物A”、用户选择的主题标签和该主题标签的相关词。例如,如图6的(A)所示,用户选择的主题标签为“历史人物”。假设“历史人物”的相关词包括“历史”和“朝代H”(“人物A”对应的历史朝代)。用户界面410中,网页411的标题411A中“历史人物A”、简介411B中“人物A”和“朝代H”,网页412的标题412A中“朝代H”和“历史人物”,网页413的标题413A中“历史人物A”、简介413B中“朝代H”和“人物A”,网页414的标题414A中“历史”、简介414B中“人物A”,均局部灰色显示,其他字符并未局部灰色显示。In some embodiments, the electronic device may match and display the query sentence "person A" in the search result list, the hashtag selected by the user, and the related words of the hashtag. For example, as shown in (A) of FIG. 6 , the topic tag selected by the user is "historical figure". Assume that the related words of "historical person" include "history" and "dynasty H" (the historical dynasty corresponding to "person A"). In the user interface 410, "historical figure A" in the title 411A of the web page 411, "person A" and "dynasty H" in the introduction 411B, "dynasty H" and "historical figure" in the title 412A of the web page 412, the title of the web page 413 "Historical Figure A" in 413A, "Dynasty H" and "Character A" in Introduction 413B, "History" in title 414A of web page 414, and "Character A" in Introduction 414B are partially grayed out, and other characters are not partially grayed out show.
例如,如图6的(B)所示,用户选择的主题标签为“游戏1”。假设“游戏1”的相关词包括“技能”、“角色”和“装备”。用户界面420中,网页421的标题421A中“游戏1”和“角色”,简介421B中“游戏1”、“角色”和“人物A”,网页422的标题422A中“游戏1”和“技能”,简介422B中“人物A”和“技能”,网页423的标题423A中“人物A”和“游戏1”,简介423B中“游戏1”和“人物A”,网页424的标题424A中“人物A”和“装备”,简介424B中“人物A”和“装备”,均局部灰色显示,其他字符并未局部灰色显示。For example, as shown in (B) of FIG. 6 , the hashtag selected by the user is "Game 1". Assume that the related words of "game 1" include "skill", "role" and "equipment". In the user interface 420, "game 1" and "character" in the title 421A of the web page 421, "game 1", "role" and "character A" in the introduction 421B, "game 1" and "skill A" in the title 422A of the web page 422 ", "Character A" and "Skills" in the introduction 422B, "Character A" and "Game 1" in the title 423A of the web page 423, "Game 1" and "Character A" in the introduction 423B, in the title 424A of the web page 424" "Character A" and "equipment", "Character A" and "equipment" in the introduction 424B are partially grayed out, and other characters are not partially grayed out.
在一些实施例中,如图4的(B)所示的用户界面330,图5的(B)所示的用户界面340图6的(A)所示的用户界面410或者图6的(B)所示的用户界面420,电子设备可以接收作用于任意一个搜索结果的触摸操作(例如点击操作),响应于该触摸操作,显示搜索结果的具体内容,例如跳转到用户选择的网页所在的用户界面,该用户界面用于显示该网页的具体内容。In some embodiments, the user interface 330 shown in (B) of FIG. 4 , the user interface 340 shown in (B) of FIG. 5 , the user interface 410 shown in (A) of FIG. 6 or (B) of FIG. 6 ) shown in the user interface 420, the electronic device can receive a touch operation (such as a click operation) acting on any search result, and in response to the touch operation, display the specific content of the search result, such as jumping to the webpage where the user selected A user interface, the user interface is used to display the specific content of the webpage.
可以理解地,电子设备在实现搜索功能或者推荐功能时,可以基于用户输入的查询语句返回搜索结果和搜索结果相关的主题标签,通过主题标签提供良好的意图澄清的交互方式,如图4的(B)所示的用户界面330中显示通过查询语句得到的搜索结果分别对应的主题标签,如图5的(B)所示的用户界面340中显示查询语句对应的主题卡片。并且,电子设备可以为用户推荐主题标签为用户选择的主题标签的搜索结果,即为用户提供更符合用户实际意图的搜索结果,例如图6所示的用户界面410和图6的(B)所示的用户界面420,此时得到的搜索结果更加准确。这样,用户能够快速高效地从大量的搜索结果中获取到所需的信息,减少用户操作,降低设备处理压力。It can be understood that when the electronic device realizes the search function or the recommendation function, it can return the search results and the hashtags related to the search results based on the query statement input by the user, and provide a good interaction mode for clarification of intentions through the hashtags, as shown in Figure 4 ( The user interface 330 shown in B) displays the topic labels corresponding to the search results obtained through the query statement, and the user interface 340 shown in (B) of FIG. 5 displays the topic cards corresponding to the query statement. Moreover, the electronic device may recommend to the user a search result in which the topic tag is the topic tag selected by the user, that is, to provide the user with search results that are more in line with the user's actual intention, such as the user interface 410 shown in FIG. 6 and (B) shown in FIG. 6 . The displayed user interface 420, the search result obtained at this time is more accurate. In this way, users can quickly and efficiently obtain required information from a large number of search results, reducing user operations and reducing device processing pressure.
基于以上实施例,介绍本申请涉及的搜索方法。该方法可以应用于图1A和图1B所示的搜索系统10。Based on the above embodiments, the search method involved in this application is introduced. This method can be applied to the search system 10 shown in FIG. 1A and FIG. 1B .
请参见图7,图7是本申请实施例提供的一种搜索方法的流程示意图。该方法可以包括但不限于如下流程:Please refer to FIG. 7 . FIG. 7 is a schematic flowchart of a search method provided in an embodiment of the present application. This method may include, but is not limited to, the following procedures:
1.电子设备的应用程序向网络设备的查询模块发送查询请求。1. The application program of the electronic device sends a query request to the query module of the network device.
在一些实施例中,电子设备可以接收用户通过应用程序输入的搜索请求,该搜索请求可以用于请求搜索对应的查询语句,例如上图3-图5所示实施例中,电子设备可以接收用户基于搜索框311A输入的查询语句“人物A”,然后可以接收作用于搜索控件311B的触摸操作,此时可以理解为是接收到请求搜索查询语句“人物A”的搜索请求。本申请中,电子设备例如但不限于通过接收字符、接收语音或接收手势等方式来接收搜索请求。In some embodiments, the electronic device can receive a search request input by the user through an application program, and the search request can be used to request to search for a corresponding query statement. For example, in the embodiments shown in FIGS. Based on the query sentence "person A" entered in the search box 311A, a touch operation on the search control 311B may be received, which can be understood as receiving a search request for the search query sentence "person A". In this application, for example but not limited to, the electronic device receives the search request by receiving characters, receiving voice, or receiving gestures.
在一些实施例中,应用程序可以基于接收到的用户输入的搜索请求,向查询模块发送查询请求,该查询请求用于请求获取查询语句相关的搜索结果,查询语句可以是应用程序基于搜索请求获取到的。In some embodiments, the application program can send a query request to the query module based on the received search request input by the user, and the query request is used to request to obtain search results related to the query statement. arrived.
2.网络设备的查询模块分析查询语句得到关键词、向量等分析结果。2. The query module of the network device analyzes the query statement to obtain analysis results such as keywords and vectors.
在一些实施例中,查询模块可以基于电子设备的应用程序发送的查询请求,对查询语句进行分析理解以得到查询语句的分析结果。In some embodiments, the query module may analyze and understand the query statement based on the query request sent by the application program of the electronic device to obtain an analysis result of the query statement.
例如,查询语句为“人物A是谁”或者“人物A的信息”,分析结果可以包括对查询语句进行实体词识别得到的关键词“人物A”。For example, if the query sentence is "who is person A" or "information about person A", the analysis result may include the keyword "person A" obtained by identifying entity words of the query sentence.
例如,查询语句为“城市A有什么景点”,分析结果可以包括对查询语句进行分词得到的关键词“城市A”和“景点”,以及对查询语句进行扩展得到的关键词“景观”和“风景”(也可称为获取同义词)。不限于此,实现查询语句(query)理解的方式还包括纠错等,本申请对此不作限定。For example, if the query sentence is "what attractions are there in city A", the analysis results may include the keywords "city A" and "sight spots" obtained by segmenting the query sentence, and the keywords "landscape" and " Landscape" (may also be referred to as a synonym for acquisition). It is not limited thereto, and the way to understand the query statement (query) also includes error correction, etc., which is not limited in this application.
3.网络设备的查询模块基于查询语句的分析结果确定第二主题分布。3. The query module of the network device determines the second topic distribution based on the analysis result of the query statement.
在一些实施例中,查询模块中可以预设有关键词和主题分布的对应关系,查询模块可以根据该对应关系确定分析结果中的至少一个关键词分别对应的主题分布,然后对确定的至少一个主题分布进行加权求和以得到第二主题分布。例如,上图4-图6所示实施例中,查询语句的分析结果为关键词“人物A”,查询模块根据预设的对应关系确定的第二主题分布包括:主题为“明星”的概率0.4,主题为“历史人物”的概率0.3,主题为这两个主题以外的其他主题的概率0.3。其中,本申请将主题不明确的情况归类在一起,称为主题为其他主题的情况。In some embodiments, the corresponding relationship between keywords and topic distribution can be preset in the query module, and the query module can determine the topic distribution corresponding to at least one keyword in the analysis results according to the corresponding relationship, and then at least one of the determined The topic distributions are weighted and summed to obtain a second topic distribution. For example, in the embodiments shown in Figures 4-6 above, the analysis result of the query statement is the keyword "person A", and the second topic distribution determined by the query module according to the preset correspondence includes: the probability that the topic is "star" 0.4, the probability that the topic is "historical figure" is 0.3, and the probability that the topic is other topics other than these two topics is 0.3. Among them, this application classifies the cases where the subject matter is not clear, and calls it the case where the subject matter is another subject matter.
4.网络设备的查询模块向网络设备的召回模块发送查询语句的分析结果。4. The query module of the network device sends the analysis result of the query statement to the recall module of the network device.
在一些实施例中,查询模块可以将对查询语句分析得到的关键词“人物A”发送给召回模块。In some embodiments, the query module may send the keyword "person A" obtained by analyzing the query statement to the recall module.
5.网络设备的召回模块基于查询语句的分析结果召回第一网页集合。5. The recall module of the network device recalls the first set of webpages based on the analysis result of the query statement.
在一些实施例中,召回模块可以基于对查询语句分析得到的关键词“人物A”召回第一网页集合,可选地,基于网页和查询语句的分析结果“人物A”的相关度,召回相关度排列较前的多个网页,例如,第一网页集合包括上图3的(B)所示的用户界面320中的网页:网页321、网页322和网页323,这些网页和查询语句的分析结果“人物A”的相关度较高。In some embodiments, the recall module can recall the first set of webpages based on the keyword "person A" obtained by analyzing the query statement. For example, the first set of webpages includes the webpages in the user interface 320 shown in (B) of FIG. "Person A" has a high degree of correlation.
在一些实施例中,召回模块还可以基于第二主题分布召回第一网页集合,可选地,基于网页和查询语句的分析结果的相关度,以及网页和第二主题分布的相关度,召回相关度排列较前的多个网页。In some embodiments, the recall module can also recall the first set of webpages based on the second topic distribution, optionally, based on the correlation between the webpage and the analysis result of the query statement, and the correlation between the webpage and the second topic distribution, recall the related The number of webpages that are ranked first.
在一些实施例中,召回模块还可以基于用户的信息(例如兴趣特点和网页行为日志)召回第一网页集合,可选地,基于网页和查询语句的分析结果的相关度,以及网页和用户的信息的相关度,召回相关度排列较前的多个网页。例如,假设用户的网页行为日志表征用户浏览过最多的网页所属的分类为“游戏”,第一网页集合包括上图3的(B)所示的用户界面320中的网页:网页321、网页322和网页323,其中网页321可以是网页内容和查询语句的分析结果“人物A”的相关度,以及网页内容和用户的信息(即上述“游戏”)的相关度均较高的网 页。In some embodiments, the recall module can also recall the first set of webpages based on the user's information (such as interest characteristics and webpage behavior logs), optionally, based on the correlation between the webpage and the analysis result of the query statement, and the webpage and the user's Relevance of information, recall multiple webpages ranked higher in relevancy. For example, assuming that the user's webpage behavior log indicates that the category of the webpage that the user has browsed the most belongs to "game", the first webpage collection includes the webpages in the user interface 320 shown in (B) of Figure 3 above: webpage 321, webpage 322 And web page 323, wherein web page 321 may be a web page with a higher correlation degree between the web page content and the analysis result "character A" of the query statement, and a higher correlation degree between the web page content and the user's information (ie, the above-mentioned "game").
6.网络设备的召回模块向网络设备的查询模块发送第一网页集合。6. The recall module of the network device sends the first set of webpages to the query module of the network device.
7.网络设备的查询模块基于第一网页集合确定第三主题分布。7. The query module of the network device determines a third topic distribution based on the first set of web pages.
在一些实施例中,步骤1之前,查询模块可以先识别多个待搜索的网页的主题,例如对网页库中的每一个网页进行主题识别,该过程可以理解为是离线预测主题。可选地,离线预测主题阶段识别出的网页可以存储在电子设备中。In some embodiments, before step 1, the query module may first identify the topics of multiple webpages to be searched, for example, perform topic identification on each webpage in the webpage database, and this process can be understood as offline topic prediction. Optionally, the webpages identified in the offline topic prediction stage may be stored in the electronic device.
在一些实施例中,查询模块可以对第一网页集合中每一个网页进行主题识别,可选地,若待识别的网页为离线预测主题阶段已识别出主题的网页,可以直接得到该网页的主题,可选地,若待识别的网页不为离线预测主题阶段已识别出主题的网页(例如离线预测主题阶段之后新发布的新闻网页),可以实时识别该网页的主题标签。从而减少实时处理的数据量,加快处理速度。然后,查询模块可以统计第一网页集合中的网页的主题,以确定第三主题分布。In some embodiments, the query module can perform topic identification on each webpage in the first webpage collection. Optionally, if the webpage to be identified is a webpage whose topic has been identified in the offline topic prediction stage, the topic of the webpage can be obtained directly , optionally, if the webpage to be identified is not a webpage whose topic has been identified in the offline topic prediction stage (for example, a newly released news webpage after the offline topic prediction stage), the topic tag of the webpage can be identified in real time. Thereby reducing the amount of data processed in real time and speeding up the processing speed. Then, the query module can count the topics of the web pages in the first web page collection to determine the third topic distribution.
在一些实施例中,查询模块可以调用主题模型对网页进行预测,将该网页的信息作为该主题模型的输入,得到输出:该网页的主题的标识(identity document,id)、该id对应的词分布(例如指示表征该主题的前10个词语)。然后基于该主题的id,对应的词分布和该网页的具体内容生成该主题的详细信息,即识别出该网页的主题标签。例如,查询模块可以将网页1的具体内容作为主题模型的输入,得到输出:网页1的主题的id(假设为111)、该id对应的词分布(假设包括“影视”的概率0.5、“游戏”的概率0.3和“明星”的概率0.2),然后基于该id、该词分布和网页1的具体内容生成网页1的主题“娱乐”,其中“娱乐”可以通过主题id111来唯一标识。In some embodiments, the query module can call the topic model to predict the webpage, use the information of the webpage as the input of the topic model, and obtain the output: the identification (identity document, id) of the topic of the webpage, the word corresponding to the id Distribution (e.g. indicating the top 10 words characterizing the topic). Then based on the id of the topic, the corresponding word distribution and the specific content of the webpage, the detailed information of the topic is generated, that is, the topic tag of the webpage is identified. For example, the query module can use the specific content of webpage 1 as the input of the topic model, and obtain the output: the id of the topic of webpage 1 (assumed to be 111), the word distribution corresponding to the id (assumed to include the probability of "video" 0.5, "game" The probability of "0.3 and the probability of "star" is 0.2), and then based on the id, the word distribution and the specific content of webpage 1, the topic "entertainment" of webpage 1 is generated, wherein "entertainment" can be uniquely identified by topic id111.
在另一些实施例中,电子设备接收用户手动输入的多个主题id分别对应的主题的详细信息,例如,电子设备接收用户手动输入的id为111的主题为“娱乐”。In some other embodiments, the electronic device receives the detailed information of the topics corresponding to the multiple topic ids manually input by the user, for example, the electronic device receives the topic "entertainment" with the id 111 manually input by the user.
在一些实施例中,第一网页集合为召回模块基于查询语句的分析结果“人物A”和第二主题分布召回得到的,可以理解地,结合上述召回的说明,第一网页集合可以包括主题为第二主题分布指示的主题的网页,也可以包括主题为第二主题分布未指示的主题的网页,因此第一网页集合对应的第三主题分布指示的主题和第二主题分布指示的主题可以相同,也可以不同。In some embodiments, the first set of webpages is recalled by the recall module based on the analysis result "person A" of the query statement and the distribution of the second topic. It can be understood that, in combination with the description of the above recall, the first set of webpages may include the subject of The webpages of the topics indicated by the second topic distribution may also include webpages whose topics are not indicated by the second topic distribution, so the topics indicated by the third topic distribution corresponding to the first webpage set and the topics indicated by the second topic distribution may be the same , can also be different.
例如,假设第一网页集合包括一千个网页,其中五百个网页的主题标签为“历史人物”,三百个网页的主题标签为“游戏1”,其余两百个网页的主题标签不明确,则基于第一网页集合确定的第三主题分布包括:主题为“历史人物”的概率500/1000=0.5,主题为“游戏1”的概率300/1000=0.3,主题为这两个主题以外的其他主题的概率200/1000=0.2。For example, suppose the first collection of web pages includes one thousand web pages, five hundred of which have the hashtag "Historical Figures", three hundred of which have the hashtag "Game 1", and the remaining two hundred webpages have ambiguous hashtags , then the third topic distribution determined based on the first web page collection includes: the probability of the topic being "historical figures" is 500/1000=0.5, the probability of the topic being "Game 1" is 300/1000=0.3, and the topics are other than these two topics The probability 200/1000=0.2 for the other subjects.
8.网络设备的查询模块融合第二主题分布和第三主题分布得到第一主题分布(也可称为查询语句的主题分布)。8. The query module of the network device fuses the second topic distribution and the third topic distribution to obtain the first topic distribution (also called the topic distribution of the query statement).
在一些实施例中,查询模块可以对第二主题分布和第三主题分布进行加权求和,以得到第一主题分布。In some embodiments, the query module may perform weighted summation of the second topic distribution and the third topic distribution to obtain the first topic distribution.
例如,假设第二主题分布为步骤3示例的第二主题分布:主题为“明星”的概率0.4,主题为“历史人物”的概率0.3,主题为这两个主题以外的其他主题的概率0.3。假设第三主题分布为步骤7示例的第三主题分布:主题为“历史人物”的概率0.5,主题为“游戏1”的概率0.3,主题为这两个主题以外的其他主题的概率0.2。则第一主题分布包括:主题为“历史人物的”概率(0.3+0.5)/2=0.4,主题为“明星”的概率(0.4+0)/2=0.2,主题为“游戏1”的概率(0+0.3)/2=0.15,主题为这三个主题以外的其他主题的概率(0.3+0.2)/2=0.25。可以理解地,此处只是示例融合第二主题分布和第三主题分布得到第一主题分布的计算方式,在另一些示例中,还可以设置计 算第一主题分布时第二主题分布和第三主题分布的权重,第二主题分布和第三主题分布的权重可以不同,可以根据实际情况确定,本申请对具体计算方式不作限定。For example, assume that the second topic distribution is the second topic distribution of the example in step 3: the probability that the topic is "star" is 0.4, the probability that the topic is "historical figure" is 0.3, and the probability that the topic is other topics other than these two topics is 0.3. Assume that the third topic distribution is the third topic distribution of the example in step 7: the probability that the topic is "historical figure" is 0.5, the probability that the topic is "Game 1" is 0.3, and the probability that the topic is other topics other than these two topics is 0.2. Then the first topic distribution includes: the probability (0.3+0.5)/2=0.4 that the topic is "historical figure", the probability (0.4+0)/2=0.2 that the topic is "star", and the probability that the topic is "game 1" (0+0.3)/2=0.15, the probability that the subject is other than these three subjects (0.3+0.2)/2=0.25. Understandably, this is just an example of the calculation method of fusing the second topic distribution and the third topic distribution to obtain the first topic distribution. In other examples, it is also possible to set the second topic distribution and the third topic distribution when calculating the first topic distribution. The weight of the distribution, the weight of the second topic distribution and the third topic distribution can be different, and can be determined according to the actual situation, and this application does not limit the specific calculation method.
9.网络设备的查询模块向网络设备的召回模块发送第一主题分布。9. The query module of the network device sends the first topic distribution to the recall module of the network device.
10.网络设备的召回模块基于分析结果和第一主题分布召回第二网页集合。10. The recall module of the network device recalls the second set of web pages based on the analysis results and the first topic distribution.
在一些实施例中,召回模块可以基于网页和对查询语句分析得到的关键词“人物A”的相关度,以及网页和第一主题分布的相关度,可选地以及网页和用户的信息(例如兴趣特点和网页行为日志)的相关度,召回相关度排列较前的多个网页。结合用户的信息召回网页的示例可参见步骤5中基于用户的信息召回第一网页集合的说明。In some embodiments, the recall module may be based on the correlation between the webpage and the keyword "person A" obtained by analyzing the query statement, and the correlation between the webpage and the first topic distribution, optionally as well as the information of the webpage and the user (such as interest characteristics and webpage behavior log), and recall multiple webpages ranked higher in relevance. For an example of recalling webpages in combination with user information, refer to the description of recalling the first set of webpages based on user information in step 5.
例如,第二网页集合包括上图4的(B)所示的用户界面330中的网页:网页331、网页333和网页332,这些网页和查询语句的分析结果“人物A”的相关度较高,并且网页331和第一主题分布(假设为步骤8示例的第一主题分布)指示的主题“游戏1”的相关度较高,网页333和第一主题分布指示的主题“明星”的相关度较高,网页332和第一主题分布指示的主题“历史人物”的相关度较高。For example, the second set of webpages includes the webpages in the user interface 330 shown in (B) of FIG. 4 above: webpage 331, webpage 333, and webpage 332, and these webpages have a high degree of correlation with the analysis result "person A" of the query statement , and the relevance degree of the topic "game 1" indicated by the web page 331 and the first topic distribution (assumed to be the first topic distribution example in step 8) is relatively high, and the correlation degree of the topic "star" indicated by the web page 333 and the first topic distribution Higher, the correlation between the web page 332 and the topic "historical figures" indicated by the first topic distribution is high.
在上述示例的第二网页集合的基础上,假设第一网页集合包括上图3的(B)所示的用户界面320中的网页,第二主题分布、第三主题分布和第一主题分布为步骤8示例的第二主题分布、第三主题分布和第一主题分布。相比上图3的(B)所示的用户界面320中的网页(第一网页集合),上图4的(B)所示的用户界面330中的网页(第二网页集合)是结合了第一主题分布和其他参数召回得到的,而第一主题分布是融合第二主题分布和第三主题分布得到的,因此上图4的(B)所示的用户界面330中的网页(即第二网页集合)可以还包括主题标签为“明星”的网页333,“明星”为第二主题分布包括的主题标签,且为第三主题分布未包括的主题标签。On the basis of the second web page collection of the above example, assuming that the first web page collection includes the web pages in the user interface 320 shown in (B) of FIG. 3 above, the second topic distribution, the third topic distribution and the first topic distribution are The second topic distribution, the third topic distribution and the first topic distribution illustrated in step 8. Compared with the webpages (first webpage set) in the user interface 320 shown in (B) of FIG. 3 above, the webpages (second webpage set) in the user interface 330 shown in (B) of FIG. 4 above are combined The first topic distribution and other parameters are recalled, and the first topic distribution is obtained by fusing the second topic distribution and the third topic distribution. Therefore, the webpage in the user interface 330 shown in (B) of FIG. The second set of webpages) may further include a webpage 333 with a topic tag of "star", which is a topic tag included in the second topic distribution and not included in the third topic distribution.
11a.网络设备的召回模块向网络设备的排序模块发送第二网页集合。11a. The recall module of the network device sends the second set of webpages to the ranking module of the network device.
12a.网络设备的排序模块对第二网页集合进行排序得到第一排序结果。12a. The sorting module of the network device sorts the second webpage set to obtain the first sorting result.
在一些实施例中,排序模块可以基于每个网页的相关参数来进行打分,相关参数包括以下至少一项:网页间的相关度、网页内容、网页质量、站点权威性、和查询语句的分析结果“人物A”的相关度、和第一主题分布的相关度、和用户的信息(例如兴趣特点和网页行为日志)的相关度。然后对打分后的网页进行排序,分数越高排列顺序越靠前,例如排列在前N位的N个网页即为第一排序结果,N为正整数。In some embodiments, the ranking module can score based on the relevant parameters of each webpage, and the relevant parameters include at least one of the following: correlation between webpages, webpage content, webpage quality, site authority, and analysis results of query sentences The correlation degree of "person A", the correlation degree with the first topic distribution, and the correlation degree with the user's information (such as interest characteristics and web page behavior logs). Then sort the scored webpages, the higher the score, the higher the ranking order, for example, the N webpages ranked in the top N positions are the first sorting results, and N is a positive integer.
例如,第一排序结果包括上图4的(B)所示的用户界面330中的网页(排列在前3位的网页),按照排列顺序依次为网页331(主题为“游戏1”)、网页333(主题为“明星”)和网页332(主题为“历史人物”)。假设对第一网页集合排序后的结果为上图3的(B)所示的用户界面320中的网页,按照排列顺序依次为网页321(主题为“游戏1”)、网页322(主题为“历史人物”)和网页323(主题为“历史人物”)。相比上图3的(B)所示的用户界面320中的网页(对第一网页集合排序后的结果),上图4的(B)所示的用户界面330中的网页(第一排序结果)是结合了和第一主题分布的相关度和其他相关参数排序得到的,在结合和第一主题分布的相关度进行排序的情况下,由于上图4的(B)所示的用户界面330中的网页333的内容和第一主题分布指示的主题“明星”的相关度较高,网页332的内容和第一主题分布指示的主题“历史人物”的相关度较低,因此网页333的排列顺序高于网页332。For example, the first sorting result includes the webpages in the user interface 330 shown in (B) of FIG. 333 (theme is "star") and page 332 (theme is "historical figure"). Assuming that the result of sorting the first set of webpages is the webpages in the user interface 320 shown in (B) of FIG. Historical Figures") and page 323 (subjected to "Historical Figures"). Compared with the webpage in the user interface 320 shown in (B) of FIG. 3 above (the result after sorting the first webpage collection), the webpage in the user interface 330 shown in (B) of FIG. 4 above (the first sorting result) Result) is obtained by combining the correlation with the first topic distribution and other related parameters. In the case of sorting with the correlation with the first topic distribution, due to the user interface shown in (B) of Figure 4 above The content of the webpage 333 in 330 has a high degree of correlation with the topic "star" indicated by the first topic distribution, and the content of the webpage 332 has a low correlation with the topic "historical figure" indicated by the first topic distribution. Therefore, the content of the webpage 333 The sorting order is higher than page 332.
13a.网络设备的排序模块向电子设备的应用程序发送第一排序结果和第一排序结果中至少一个网页的主题标签。13a. The ranking module of the network device sends the first ranking result and the theme tag of at least one webpage in the first ranking result to the application program of the electronic device.
在一些实施例中,排序模块可以判断是否向应用程序发送第一排序结果的主题标签,例 如,排序模块可以判断第一排序结果中排在前N位的N个网页是否有明确的主题标签,如果这N个网页中至少一个网页有明确的主题标签,排序模块可以向应用程序发送这至少一个网页的主题标签,N为正整数。In some embodiments, the ranking module can determine whether to send the subject tags of the first ranking result to the application program, for example, the ranking module can determine whether the top N webpages in the first ranking result have clear subject tags, If at least one of the N web pages has a definite theme tag, the sorting module may send the theme tag of the at least one web page to the application program, where N is a positive integer.
14a.电子设备的应用程序显示第一排序结果和第一排序结果中至少一个网页的主题标签。14a. The application program of the electronic device displays the first sorted result and a topic tag of at least one webpage in the first sorted result.
在一些实施例中,应用程序显示的第一排序结果和步骤1中用户通过应用程序输入的搜索请求相关,可选地具体包括:应用程序显示的第一排序结果和查询语句的分析结果相关,查询语句是根据该搜索请求获取到的(具体示例可参见图7的步骤2)。例如,假设查询语句的分析结果为关键词“人物A”,图4的(B)所示的用户界面330用于显示第一排序结果:按照排列顺序依次为网页331、网页333和网页332,这些网页的标题和简介均包括关键词“人物A”,可以理解为是第一排序结果和关键词“人物A”相关。In some embodiments, the first sorting result displayed by the application program is related to the search request input by the user through the application program in step 1, and may specifically include: the first sorting result displayed by the application program is related to the analysis result of the query statement, The query statement is obtained according to the search request (see step 2 in FIG. 7 for a specific example). For example, assuming that the analysis result of the query statement is the keyword "character A", the user interface 330 shown in (B) of FIG. The titles and introductions of these webpages both include the keyword "person A", which can be understood as being related to the first ranking result and the keyword "person A".
在一些实施例中,应用程序显示第一排序结果时,可以一起显示这至少一个网页的主题标签,可选地,显示这至少一个网页中任意一个网页时,可以对应显示该网页的主题标签。例如,上图4的(B)所示的用户界面330中,排在前3位的网页均有明确的主题标签,上述N大于或等于3,网页331包括主题331E,指示主题为“游戏1”,网页332包括主题332E,指示主题为“历史人物”,网页333包括主题333E,指示主题为“明星”。In some embodiments, when the application program displays the first sorting result, it may display the theme tag of the at least one webpage together. Optionally, when displaying any one of the at least one webpage, it may correspondingly display the theme label of the webpage. For example, in the user interface 330 shown in (B) of FIG. 4 above, the top three web pages all have clear theme tags, and the above-mentioned N is greater than or equal to 3, and the web page 331 includes a theme 331E, indicating that the theme is "Game 1 ", the web page 332 includes a subject 332E, indicating that the subject is "historical figure", and the web page 333 includes a subject 333E, indicating that the subject is "star".
在以上实施例中,步骤3和步骤4的顺序不作限定。In the above embodiments, the order of Step 3 and Step 4 is not limited.
请参见图8,图8是本申请实施例提供的又一种搜索方法的流程示意图。Please refer to FIG. 8 . FIG. 8 is a schematic flowchart of another search method provided by the embodiment of the present application.
该方法可以包括图7实施例中的步骤1-10,具体可参见图7的步骤1-10的说明。在一些实施例中,该方法还包括:The method may include steps 1-10 in the embodiment in FIG. 7 , and for details, refer to the description of steps 1-10 in FIG. 7 . In some embodiments, the method also includes:
11b.网络设备的召回模块向网络设备的排序模块发送第一主题分布和第二网页集合。11b. The recall module of the network device sends the first topic distribution and the second set of web pages to the ranking module of the network device.
12b.网络设备的排序模块对第二网页集合和第一主题分布进行排序得到第二排序结果。12b. The sorting module of the network device sorts the second webpage collection and the first topic distribution to obtain a second sorting result.
在一些实施例中,排序模块对第二网页集合中的每个网页进行打分,并对第一主题分布进行打分,然后对打分后的网页和第一主题分布进行排序,分数越高排列顺序越靠前,排列在前N位的N个网页即为第二排序结果,N为正整数。例如,第二排序结果包括上图5的(B)所示的用户界面340中的网页和主题卡片(对应第一主题分布),由于网页341的分数高于网页342的分数,主题卡片343的分数低于网页342的分数且高于网页344的分数,因此用户界面340中的网页和主题卡片按照排列顺序依次为:网页341、网页342、主题卡片343和网页344。In some embodiments, the ranking module scores each webpage in the second webpage collection, and scores the first topic distribution, and then sorts the scored webpages and the first topic distribution, the higher the score, the higher the ranking order. In the front, the N webpages ranked in the top N positions are the second sorting results, and N is a positive integer. For example, the second sorting result includes webpages and topic cards (corresponding to the first topic distribution) in the user interface 340 shown in (B) of FIG. The score is lower than that of the webpage 342 and higher than that of the webpage 344, so the webpages and topic cards in the user interface 340 are arranged in sequence: webpage 341, webpage 342, topic card 343 and webpage 344.
其中,排序模块对网页打分的示例可参见图7的步骤12a的说明。排序模块对第一主题分布打分的示例如下所示:For an example of the ranking module scoring web pages, refer to the description of step 12a in FIG. 7 . An example of the ranking module scoring the first topic distribution is shown below:
例如,假设第一主题分布为上图7的步骤8示例的第一主题分布:主题为“历史人物的”概率0.4,主题为“明星”的概率0.2,主题为“游戏1”的概率0.15,主题为这三个主题以外的其他主题的概率0.25。排序模块可以基于第一主题分布指示的明确的主题的概率确定第一主题分布的分数:0.4+0.2+0.15=0.75。For example, assume that the first topic distribution is the first topic distribution in the example of step 8 in Figure 7 above: the probability of the topic being "historical figures" is 0.4, the probability of the topic being "star" is 0.2, and the probability of the topic being "Game 1" is 0.15, The probability that the topic is other than these three topics is 0.25. The ranking module may determine a score for the first topic distribution based on the probability of an unambiguous topic indicated by the first topic distribution: 0.4+0.2+0.15=0.75.
13b.网络设备的排序模块向应用程序发送第二排序结果。13b. The ranking module of the network device sends the second ranking result to the application program.
在一些实施例中,排序模块可以判断是否向应用程序发送包括第一主题分布的第二排序结果,例如,排序模块可以判断第二排序结果中第一主题分布是否排在前N位,若是,排序模块可以向应用程序发送第二排序结果,否则可以执行图7的步骤12a和步骤13a,N为正整数。In some embodiments, the ranking module can determine whether to send the second ranking result including the first topic distribution to the application program, for example, the ranking module can judge whether the first topic distribution ranks in the top N positions in the second ranking result, and if so, The sorting module can send the second sorting result to the application program, otherwise step 12a and step 13a in FIG. 7 can be executed, and N is a positive integer.
14b.电子设备的应用程序显示第二排序结果。14b. The application program of the electronic device displays the second ranking result.
在一些实施例中,应用程序显示的第二排序结果包括主题卡片和多个网页,主题卡片包括至少一个主题标签,其中:In some embodiments, the second sorting result displayed by the application program includes a theme card and a plurality of web pages, and the theme card includes at least one theme label, wherein:
在一些实施例中,第二排序结果包括的多个网页和步骤1中用户通过应用程序输入的搜索请求相关,可选地具体包括:上述多个网页和查询语句的分析结果相关,查询语句是根据该搜索请求获取到的(具体过程示例可参见图7的步骤2)。例如,假设查询语句的分析结果为关键词“人物A”,图5的(B)所示的用户界面340用于显示第二排序结果:按照排列顺序依次为网页341、网页342、主题卡片343和网页344,其中网页341、网页342和网页344的标题和/或简介均包括关键词“人物A”,可以理解为是第二排序结果包括的多个网页和关键词“人物A”相关。In some embodiments, the multiple webpages included in the second sorting result are related to the search request input by the user through the application program in Step 1, and may specifically include: the above-mentioned multiple webpages are related to the analysis results of the query statement, and the query statement is Obtained according to the search request (see step 2 in FIG. 7 for a specific process example). For example, assuming that the analysis result of the query statement is the keyword "character A", the user interface 340 shown in (B) of FIG. And webpage 344, wherein the titles and/or introductions of webpage 341, webpage 342 and webpage 344 all include the keyword "person A", it can be understood that the plurality of webpages included in the second sorting result are related to the keyword "person A".
在一些实施例中,第二排序结果包括的主题卡片和步骤1所述的用户通过应用程序输入的搜索请求相关,可选地具体包括:主题卡片和第一主题分布相关,第一主题分布是基于查询语句的分析结果获取到的(具体过程示例可参见图7的步骤3-8),查询语句是根据该搜索请求获取到的(具体过程示例可参见图7的步骤2)。例如,主题卡片和第一主题分布相关,具体为:主题卡片包括的至少一个主题标签为第一主题分布包括的至少一个明确的主题标签。假设第一主题分布为上图7的步骤8示例的第一主题分布:主题为“历史人物的”概率0.4,主题为“明星”的概率0.2,主题为“游戏1”的概率0.15,主题为这三个主题以外的其他主题的概率0.25。上图5的(B)所示的用户界面340用于显示第二排序结果:按照排列顺序依次为网页341、网页342、主题卡片343和网页344,其中主题卡片343包括主题343A(包括字符“历史人物”),主题343B(包括字符“明星”),主题343C(包括字符“游戏1”),可以指示主题卡片包括三个主题标签“历史人物”、“明星”和“游戏1”,即第一主题分布包括的三个明确的主题标签。In some embodiments, the topic cards included in the second sorting result are related to the search request input by the user through the application program in step 1, and may specifically include: the topic cards are related to the first topic distribution, and the first topic distribution is It is obtained based on the analysis result of the query statement (see steps 3-8 in FIG. 7 for a specific process example), and the query statement is obtained according to the search request (see step 2 in FIG. 7 for a specific process example). For example, the topic card is related to the first topic distribution, specifically: at least one topic tag included in the topic card is at least one definite topic tag included in the first topic distribution. Assume that the first topic distribution is the first topic distribution in the example of step 8 in Figure 7 above: the probability of the topic being "historical figure" is 0.4, the probability of the topic being "star" is 0.2, the probability of the topic being "Game 1" is 0.15, and the topic is The probability of other topics than these three topics is 0.25. The user interface 340 shown in (B) of FIG. 5 above is used to display the second sorting result: according to the order of arrangement, it is a webpage 341, a webpage 342, a theme card 343 and a webpage 344, wherein the theme card 343 includes a theme 343A (including the characters " historical figure"), theme 343B (comprising character "star"), theme 343C (comprising character "game 1"), can indicate that the theme card includes three theme tags "historical figure", "star" and "game 1", namely The first topic distribution includes three explicit topic tags.
在一些实施例中,应用程序显示的主题卡片和第一主题分布相关,具体包括:主题卡片包括的至少一个主题标签的显示位置和第一主题分布包括的主题标签对应的概率相关,例如,第一主题分布中主题标签对应的概率越高,显示位置越优先。假设第一主题分布为上图7的步骤8示例的第一主题分布:主题为“历史人物的”概率0.4,主题为“明星”的概率0.2,主题为“游戏1”的概率0.15,主题为这三个主题以外的其他主题的概率0.25。上图5的(B)所示的用户界面340用于显示第二排序结果,第二排序结果中的主题卡片343包括的三个主题标签的显示位置是按照第一主题分布中主题的概率大小来确定的,假设按照概率从大到小排列,显示位置的先后顺序依次为:指示“历史人物”的主题343A,指示“明星”的主题343B和指示“游戏1”的主题343C。In some embodiments, the theme card displayed by the application program is related to the first theme distribution, which specifically includes: the display position of at least one theme label included in the theme card is related to the probability corresponding to the theme label included in the first theme distribution, for example, the first The higher the probability corresponding to the topic label in a topic distribution, the higher the priority of the display position. Assume that the first topic distribution is the first topic distribution in the example of step 8 in Figure 7 above: the probability of the topic being "historical figure" is 0.4, the probability of the topic being "star" is 0.2, the probability of the topic being "Game 1" is 0.15, and the topic is The probability of other topics than these three topics is 0.25. The user interface 340 shown in (B) of Figure 5 above is used to display the second sorting result, and the display positions of the three topic labels included in the topic card 343 in the second sorting result are according to the probability of the topic in the first topic distribution Assuming that they are arranged in descending order of probability, the sequence of display positions is: theme 343A indicating "historical figure", theme 343B indicating "star" and theme 343C indicating "Game 1".
可选地,排序模块可以基于第一主题分布包括的主题标签对应的概率,确定主题卡片包括的多个主题标签的显示位置,可以理解为是对主题卡片包括的多个主题标签进行排序,应用程序可以按照确定的显示位置显示主题卡片包括的多个主题标签。Optionally, the sorting module can determine the display positions of the multiple topic tags included in the topic card based on the probability corresponding to the topic tags included in the first topic distribution, which can be understood as sorting the multiple topic tags included in the topic card, and the application The program can display multiple topic tags included in the topic card according to the determined display position.
不限于上述列举的示例,在另一些实施例中,排序模块可以先对第二网页集合进行排序得到第一排序结果,具体可参见图7的步骤12a,然后排序模块再对第一排序结果和第一主题分布重新进行排序得到第二排序结果,可选地,可以理解为是基于第一排序结果(包括已打分的网页),对新增的主题卡片(表征第一主题分布)进行打分,以计算出该主题卡片插入第一排序结果中的位置。Not limited to the examples listed above, in some other embodiments, the sorting module can first sort the second web page collection to obtain the first sorting result, see step 12a in Figure 7 for details, and then the sorting module sorts the first sorting result and The first topic distribution is re-sorted to obtain the second ranking result. Optionally, it can be understood as scoring the newly added topic cards (representing the first topic distribution) based on the first ranking result (including the scored web pages), to calculate the insertion position of the theme card in the first sorting result.
请参见图9,图9是本申请实施例提供的又一种搜索方法的流程示意图。该方法可以包括但不限于如下流程:Please refer to FIG. 9 . FIG. 9 is a schematic flowchart of another search method provided by the embodiment of the present application. This method may include, but is not limited to, the following procedures:
15.电子设备的应用程序向网络设备的召回模块发送基于第一主题标签的查询请求。15. The application program of the electronic device sends a query request based on the first topic tag to the recall module of the network device.
在一些实施例中,电子设备可以接收用户通过应用程序输入的用于选择第一主题标签的用户操作,此时可以理解为是接收到基于第一主题标签的搜索请求。In some embodiments, the electronic device may receive a user operation for selecting a first topic tag input by the user through an application program, and at this time, it may be understood as receiving a search request based on the first topic tag.
在一些实施例中,步骤15之前电子设备执行图7所示流程。电子设备可以接收基于第一排序结果中至少一个网页的主题标签中的第一主题标签的搜索请求,例如电子设备显示图4的(B)所示的用户界面330时,电子设备可以接收作用于指示网页331的主题“游戏1”的主题331E的触摸操作,此时第一主题标签为“游戏1”,或者,电子设备可以接收作用于指示网页332的主题“历史人物”的主题332E的触摸操作,此时第一主题标签为“历史人物”,或者电子设备可以接收作用于指示网页333的主题“明星”的主题333E的触摸操作,此时第一主题标签为“明星”。In some embodiments, before step 15, the electronic device executes the process shown in FIG. 7 . The electronic device may receive a search request based on the first topic tag in the topic tags of at least one web page in the first sorting result, for example, when the electronic device displays the user interface 330 shown in (B) of FIG. Indicate the touch operation of the theme 331E of the theme "game 1" of the webpage 331, and the first theme label is "game 1" at this time, or the electronic device can receive a touch acting on the theme 332E of the theme "historical figures" of the indicated webpage 332 Operation, at this time the first topic label is "historical figure", or the electronic device can receive a touch operation acting on the topic 333E indicating the topic "star" of the webpage 333, at this time the first topic label is "star".
在另一些实施例中,步骤15之前电子设备执行图8所示流程。电子设备可以接收基于第二排序结果包括的主题卡片中的第一主题标签的搜索请求,例如电子设备显示图5的(B)所示的用户界面340时,电子设备可以接收作用于主题卡片343中的主题343A的触摸操作,此时第一主题标签为主题343A指示的主题“历史人物”,或者,电子设备可以接收作用于主题卡片343中的主题343B的触摸操作,此时第一主题标签为主题343B指示的主题“明星”,或者,电子设备可以接收作用于主题卡片343中的主题343C的触摸操作,此时第一主题标签为主题343C指示的主题“游戏1”。In some other embodiments, before step 15, the electronic device executes the process shown in FIG. 8 . The electronic device can receive a search request based on the first topic tag in the topic cards included in the second sorting result. For example, when the electronic device displays the user interface 340 shown in (B) of FIG. A touch operation on the theme 343A in the theme card 343, at this time the first theme label is the theme "historical figure" indicated by the theme 343A, or the electronic device can receive a touch operation on the theme 343B in the theme card 343, at this time the first theme label is the theme "star" indicated by theme 343B, or the electronic device can receive a touch operation acting on theme 343C in theme card 343, and at this time the first theme label is the theme "Game 1" indicated by theme 343C.
在一些实施例中,应用程序可以基于接收到的用户输入的搜索请求,向查询模块发送查询请求,该查询请求用于请求获取第一主题标签相关的搜索结果,第一主题标签可以是应用程序基于搜索请求获取到的。In some embodiments, the application program may send a query request to the query module based on the received search request input by the user, and the query request is used to request to obtain search results related to the first topic tag, and the first topic tag may be the application program Obtained based on a search request.
16.网络设备的召回模块基于查询语句的分析结果和第一主题标签从优质库中召回第三网页集合。16. The recall module of the network device recalls the third set of webpages from the high-quality library based on the analysis result of the query statement and the first subject tag.
在一些实施例中,召回模块基于网页和对查询语句分析得到的关键词“人物A”的相关度,网页和第一主题标签的相关度,可选地以及网页和用户的信息(例如兴趣特点和网页行为日志)的相关度,从优质库中召回相关度排列较前的多个网页。结合用户的信息召回网页的示例可参见图7的步骤5中基于用户的信息召回第一网页集合的说明。可选地,召回模块基于网页和第一主题标签的相关度从优质库中召回第三网页集合,可以包括:召回模块从优质库中召回网页的主题标签为第一主题标签的多个网页,也就是说,第三网页集合包括的网页的主题标签为第一主题标签。In some embodiments, the recall module is based on the correlation between the webpage and the keyword "character A" obtained by analyzing the query statement, the correlation between the webpage and the first theme tag, and optionally the information (such as interest characteristics) of the webpage and the user. and webpage behavior log), and recall multiple webpages with higher relevance rankings from the high-quality library. For an example of recalling webpages in combination with user information, refer to the description of recalling the first set of webpages based on user information in step 5 of FIG. 7 . Optionally, the recall module recalls the third webpage collection from the high-quality library based on the correlation between the webpage and the first theme tag, which may include: the recall module recalls multiple webpages whose theme labels are the first theme label from the high-quality library, That is to say, the theme tag of the webpage included in the third webpage set is the first theme label.
17.网络设备的召回模块基于查询语句的分析结果和第一主题标签从第二网页集合中获取第四网页集合。17. The recall module of the network device obtains a fourth webpage collection from the second webpage collection based on the analysis result of the query statement and the first theme tag.
在一些实施例中,第二网页集合是从网页库中召回的,在一些实施例中,召回模块可以基于网页和对查询语句分析得到的关键词“人物A”结果的相关度,网页和第一主题标签的相关度,可选地以及网页和用户的信息(例如兴趣特点和网页行为日志)的相关度,从第二网页集合中确定出第四网页集合。结合用户的信息召回网页的示例可参见图7的步骤5中基于用户的信息召回第一网页集合的说明。可选地,召回模块基于网页和第一主题标签的相关度从第二网页集合中获取第四网页集合,包括:召回模块从第二网页集合中确定出网页的主题标签为第一主题标签的多个网页,也就是说,第四网页集合包括的网页的主题标签为第一主题标签。In some embodiments, the second set of webpages is recalled from the webpage library. In some embodiments, the recall module can be based on the correlation between the webpage and the keyword "person A" result obtained by analyzing the query statement, and the webpage and the first A correlation degree of a theme tag, optionally, and a correlation degree of webpages and user information (such as interest characteristics and webpage behavior logs), determine a fourth webpage collection from the second webpage collection. For an example of recalling webpages in combination with user information, refer to the description of recalling the first set of webpages based on user information in step 5 of FIG. 7 . Optionally, the recall module obtains the fourth webpage collection from the second webpage collection based on the correlation between the webpage and the first theme tag, including: the recall module determines from the second webpage collection that the theme label of the webpage is the first theme label The plurality of webpages, that is to say, the theme tag of the webpages included in the fourth webpage set is the first theme label.
不限于上述示例的情况,在另一些示例中,召回模块可以基于查询语句的分析结果“人物A”和第一主题标签从网页库中召回第四网页集合。Not limited to the above examples, in some other examples, the recall module may recall the fourth webpage set from the webpage library based on the analysis result "person A" of the query statement and the first theme tag.
其中,步骤16和步骤17的顺序不作限定。Wherein, the sequence of step 16 and step 17 is not limited.
18.网络设备的召回模块融合第三网页集合和第四网页集合以得到第五网页集合。18. The recall module of the network device fuses the third webpage set and the fourth webpage set to obtain a fifth webpage set.
在一些实施例中,召回模块可以融合从优质库召回的第三网页集合和从网页库召回的第四网页集合,以得到第五网页集合。也就是说,最终得到的第五网页集合融合了从范围较广的网页库召回的第四网页集合,以及经过多模态优质网页筛选得到的优质库召回的第三网页集合,实现了搜索系统和推荐系统的融合,这样既可以为用户推荐质量更高的网页,也能保证网页的多样性和相关性。In some embodiments, the recall module may fuse the third set of webpages recalled from the high-quality library and the fourth set of webpages recalled from the webpage library to obtain a fifth set of webpages. That is to say, the finally obtained fifth webpage collection combines the fourth webpage collection recalled from a wider webpage library and the third webpage collection recalled from the high-quality library obtained through multi-modal high-quality webpage screening, realizing the search system The integration with the recommendation system can not only recommend higher-quality web pages for users, but also ensure the diversity and relevance of web pages.
19.网络设备的召回模块向网络设备的排序模块发送第五网页集合。19. The recall module of the network device sends the fifth set of web pages to the ranking module of the network device.
20.网络设备的排序模块对第五网页集合进行排序得到第三排序结果。20. The sorting module of the network device sorts the fifth webpage set to obtain a third sorting result.
具体示例和图7的步骤12a类似,不再赘述。The specific example is similar to step 12a in FIG. 7 and will not be repeated here.
21.网络设备的排序模块向电子设备的应用程序发送第三排序结果。21. The ranking module of the network device sends the third ranking result to the application program of the electronic device.
22.电子设备的应用程序显示第三排序结果。22. The application program of the electronic device displays the third sorting result.
在一些实施例中,应用程序显示的第三排序结果和步骤1中用户通过应用程序输入的搜索请求相关,可选地具体包括:应用程序显示的第三排序结果和查询语句的分析结果相关,查询语句是根据该搜索请求获取到的(具体示例可参见图7的步骤2)。并且,应用程序显示的第三排序结果和用户选择的第一主题标签相关,可选地具体包括:第三排序结果包括的网页对应的主题标签为第一主题标签。In some embodiments, the third sorting result displayed by the application program is related to the search request input by the user through the application program in step 1, and may specifically include: the third sorting result displayed by the application program is related to the analysis result of the query statement, The query statement is obtained according to the search request (see step 2 in FIG. 7 for a specific example). In addition, the third sorting result displayed by the application program is related to the first topic tag selected by the user, and may specifically include: the topic tag corresponding to the webpage included in the third sorting result is the first topic tag.
例如,假设查询语句的分析结果为关键词“人物A”,第一主题标签为“历史人物”,第一主题标签的相关词包括“历史”和“朝代H”,上图6的(A)所示的用户界面410用于显示第三排序结果:按照排序的先后顺序依次为网页411、网页412、网页413和网页414,这些网页的标题和/或简介包括以下至少一项:关键词“人物A”、第一主题标签“历史人物”和第一主题标签的相关词(“历史”、“朝代H”),可以理解为是第三排序结果和关键词、第一主题标签相关。For example, suppose the analysis result of the query sentence is the keyword "person A", the first topic tag is "historical person", and the related words of the first topic tag include "history" and "dynasty H", (A) in Figure 6 above The shown user interface 410 is used to display the third sorting result: webpage 411, webpage 412, webpage 413 and webpage 414 in order of sorting, and the title and/or introduction of these webpages include at least one of the following: keyword " Character A", the first topic tag "historical person" and related words ("history", "dynasty H") of the first topic tag can be understood as the third sorting result is related to the keyword and the first topic tag.
又例如,假设查询语句的分析结果为关键词“人物A”,第一主题标签为“游戏1”,第一主题标签的相关词包括“技能”、“角色”、“装备”,上图6的(B)所示的用户界面420用于显示第三排序结果:按照排序的先后顺序依次为网页421、网页422、网页423和网页424,这些网页的标题和/或简介包括以下至少一项:关键词“人物A”、第一主题标签“游戏1”和第一主题标签的相关词(“技能”、“角色”、“装备”),可以理解为是第三排序结果和关键词、第一主题标签相关。For another example, assume that the analysis result of the query statement is the keyword "character A", the first topic tag is "game 1", and the related words of the first topic tag include "skills", "role" and "equipment", as shown in Figure 6 above The user interface 420 shown in (B) is used to display the third sorting result: according to the order of sorting, it is webpage 421, webpage 422, webpage 423 and webpage 424, and the title and/or introduction of these webpages include at least one of the following : keyword "Character A", the first topic tag "Game 1" and related words ("skills", "role", "equipment") of the first topic tag, which can be understood as the third sorting result and keywords, The first hashtag is relevant.
在一些实施例中,应用程序显示第三排序结果时,可以命中显示以下至少一项:查询语句的分析结果、用户选择的第一主题标签和第一主题标签的相关词,其中,命中显示可以理解为是显示方式和其他显示方式不同。例如,上图6的(A)所示的用户界面410中,查询语句的分析结果“人物A”、用户选择的第一主题标签“历史人物”和第一主题标签的相关词“历史”和“朝代H”,均局部灰色显示,即命中显示,其他字符并未局部灰色显示。In some embodiments, when the application program displays the third sorting result, at least one of the following items may be displayed by hit: the analysis result of the query statement, the first topic tag selected by the user, and related words of the first topic tag, wherein the hit display may be It is understood that the display method is different from other display methods. For example, in the user interface 410 shown in (A) of Figure 6 above, the analysis result of the query statement "person A", the first topic tag "historical person" selected by the user and the related words "history" and "Dynasty H" is partially grayed out, that is, hit display, and other characters are not partially grayed out.
在一些实施例中,上图7-图8中的召回是从网页库中召回的,在另一些实施例中,上图7-图8中的召回是从优质库中召回的。In some embodiments, the recalls in the above Figures 7-8 are recalled from the web library, and in other embodiments, the recalls in the above Figures 7-8 are recalled from the high-quality library.
不限于上图9示例的情况,在另一些实施例中,召回模块可以在召回了第三网页集合后,直接向排序模块发送第三网页集合,排序模块对第三网页集合进行排序后将排序结果返回给应用程序显示。在另一些实施例中,召回模块可以在召回了第四网页集合后,直接向排序结果发送第四网页集合,排序模块对第四网页集合进行排序后将排序结果返回给应用程序显示。It is not limited to the example in Figure 9 above. In other embodiments, after recalling the third set of webpages, the recall module can directly send the third set of webpages to the sorting module, and the sorting module sorts the third set of webpages. The results are returned to the application for display. In other embodiments, the recall module may directly send the fourth webpage set to the sorting result after recalling the fourth webpage set, and the sorting module sorts the fourth webpage set and returns the sorting result to the application program for display.
以上实施例的示例中,网页集合和对该网页集合进行排序得到的排序结果包括的搜索结 果相同,只是排序结果是对这些搜索结果进行了排序后得到的,例如第二网页集合和第一排序结果的示例均为上图4的(B)所示的用户界面330包括的三个网页,在另一些示例中,排序结果可以为网页集合的子集,即排序后的搜索结果少于排序前的搜索结果。In the example of the above embodiment, the search results included in the webpage collection and the sorting result obtained by sorting the webpage collection are the same, but the sorting result is obtained after sorting these search results, for example, the second webpage collection and the first sorting result The examples of the results are all three webpages included in the user interface 330 shown in (B) of FIG. search results.
在上述方法中,电子设备可以展示搜索结果和搜索结果相关的主题标签,以供用户交互,例如图7所示方法中,可以展示基于查询语句得到的至少一个搜索结果分别对应的主题,可以理解为是主题被注入到不同的网页中。又例如图8所示的方法中,可以将包括至少一个主题标签的主题卡片和至少一个搜索结果一起排序并展示,可以理解为是将主题聚合后注入到搜索结果列表中。In the above method, the electronic device may display search results and topic tags related to the search results for user interaction. For example, in the method shown in FIG. 7 , the topics corresponding to at least one search result obtained based on the query statement may be displayed. Because the theme is injected into different web pages. As another example, in the method shown in FIG. 8 , topic cards including at least one topic tag and at least one search result can be sorted and displayed together, which can be understood as injecting the topics into the search result list after aggregation.
基于这样的意图澄清交互方式,当用户选择某一个主题标签后,可以结合查询语句和用户选择的主题标签进行更为精准地召回和排序,例如图9所示方法中,可以展示主题标签为用户选择的主题标签的至少一个搜索结果,也就是为用户提供满足用户实际意图的搜索结果,方便用户快速获取所需的信息,减小设备的处理压力。并且相比基于用户输入的查询语句召回的网页集合(仅包括查询语句相关的网页),结合用户澄清的主题标签(可以表征用户查询的实际意图)召回的网页集合,同时融合了查询语句相关和用户选择的主题标签相关的网页,从而扩展了用户的阅读,进一步提升了网页的相关性和多样性。Based on this intention to clarify the interaction mode, when the user selects a certain hashtag, the query statement and the hashtag selected by the user can be combined for more precise recall and sorting. For example, in the method shown in Figure 9, the hashtag can be displayed as the user At least one search result of the selected topic tag is to provide the user with a search result that meets the user's actual intention, so that the user can quickly obtain the required information and reduce the processing pressure of the device. And compared to the web page set recalled based on the query sentence entered by the user (only including the web pages related to the query sentence), combined with the user clarified topic label (which can represent the actual intention of the user's query), the recalled web page collection combines query sentence related and Web pages related to the topic tags selected by the user, thereby expanding the user's reading and further improving the relevance and diversity of the web page.
在一些实施例中,电子设备可以对网页库包括的网页进行处理和筛选,以得到优质库包括的网页,接下来以网页库包括的任意一个网页(称为第一网页)为例说明处理过程,如下图10所示:In some embodiments, the electronic device can process and screen the webpages included in the webpage library to obtain the webpages included in the high-quality library, and then take any webpage included in the webpage library (referred to as the first webpage) as an example to illustrate the processing process , as shown in Figure 10 below:
首先,电子设备可以提取第一网页中的图片信息和文本信息,图片信息可以输入到卷积神经网络(convolutional neural networks,CNN)中,文本信息可以输入到网页文本编码器(transformer encoder)中。First, the electronic device can extract picture information and text information in the first web page, the picture information can be input into a convolutional neural network (CNN), and the text information can be input into a webpage text encoder (transformer encoder).
电子设备可以利用卷积神经网络提取图片的特征并将提取出的特征转换为图片向量(例如emb格式),例如使用多层CNN提取图片的特征,多层CNN按照处理的先后顺序可以依次包括卷积层(convolution laye,Conv)、分批归一化(batch normalization,BN)、线性整流函数(rectified linear unit,ReLU)、Cnonv、BN、ReLU、…、Cnonv、BN、ReLU,可以理解为是按照Cnonv、BN、ReLU为一个大层,构建多个大层。Electronic devices can use convolutional neural networks to extract features of pictures and convert the extracted features into picture vectors (such as emb format). For example, multi-layer CNNs are used to extract features of pictures. Multi-layer CNNs can include volume Convolution layer (Conv), batch normalization (BN), linear rectification function (rectified linear unit, ReLU), Cnonv, BN, ReLU, ..., Cnonv, BN, ReLU, can be understood as According to Cnonv, BN, and ReLU as a large layer, multiple large layers are constructed.
网页文本编码器可以融合文本信息的传统特征和深度特征,并将提取出的特征转换为文本向量(例如emb格式)。传统特征例如但不限于包括:站点值(site value)、网页值(page value)、站点排序分类(site rank category)和网页分类(page category)。深度特征例如但不限于包括:词向量(word to vector,word2vec)、神经网络(neural network)、编码器(encoders)、双向编码器(bidirectional encoder representations from transformers,BERT)。示例性地,电子设备可以对传统特征和深度特征进行加权,然后经过激活函数,以得到文本向量。The webpage text encoder can fuse traditional features and deep features of text information, and convert the extracted features into text vectors (such as emb format). Traditional features include, but are not limited to: site value, page value, site rank category, and page category. For example but not limited to, deep features include: word vector (word to vector, word2vec), neural network (neural network), encoder (encoders), bidirectional encoder (bidirectional encoder representations from transformers, BERT). Exemplarily, the electronic device may weight traditional features and deep features, and then pass an activation function to obtain a text vector.
电子设备可以将卷积神经网络输出的图片向量和网页文本编码器输出的文本向量输入到图片融合模块(Image Fuse Backbone)和文本融合模块(Text Fuse Backbone)中,图片融合模块和文本融合模块可以对图片向量和文本向量进行交互操作,图片融合模块输出的向量和文本融合模块输入的向量可以进行拼接,拼接得到的向量(例如emb格式)可以输入给网页质量解码器(page quality decoder)(例如通过全连接神经网络实现)。The electronic device can input the image vector output by the convolutional neural network and the text vector output by the webpage text encoder into the image fusion module (Image Fuse Backbone) and the text fusion module (Text Fuse Backbone), and the image fusion module and the text fusion module can The image vector and the text vector are interactively operated, the vector output by the image fusion module and the vector input by the text fusion module can be spliced, and the spliced vector (such as emb format) can be input to a page quality decoder (such as realized by a fully connected neural network).
在一些实施例中,电子设备可以将网页库划分为N个等级的数据库,N为正整数,例如为5。可选地,级别越高的数据库包括的网页质量越高。在一些实施例中,上述拼接得到的向量输入给网页质量解码器时,得到的输出可以为第一网页分别属于这N个等级的数据库的 概率,电子设备可以基于这些概率判断第一网页所属的数据库,例如网页库还包括这N个等级的数据库以外的数据,若第一网页分别属于N个等级的数据库的概率均小于预设概率值,则确定第一网页不属于这A个等级的数据库。又例如,第一网页属于N个等级的数据库中M等级的数据库的概率大于或等于预设概率值,并且大于属于N个等级的数据库中除M等级以外的其他等级的数据库的概率,则可以确定第一网页属于M等级的数据库,M为正整数,M小于或等于N。In some embodiments, the electronic device may divide the webpage library into N levels of databases, where N is a positive integer, such as 5. Optionally, the higher-level database includes higher-quality webpages. In some embodiments, when the above concatenated vectors are input to the webpage quality decoder, the obtained output can be the probability that the first webpage belongs to the databases of the N levels, and the electronic device can judge the first webpage according to these probabilities. The database, such as the webpage database, also includes data other than the databases of these N levels. If the probability that the first webpage belongs to the databases of the N levels respectively is less than the preset probability value, then it is determined that the first webpage does not belong to the database of the A levels. . For another example, the probability that the first webpage belongs to the M-level database among the N-level databases is greater than or equal to the preset probability value, and is greater than the probability of belonging to other levels of databases except the M-level database among the N-level databases, then it can be It is determined that the first web page belongs to the M-level database, M is a positive integer, and M is less than or equal to N.
电子设备可以对网页库中的每个网页执行上述处理过程,从而确定出N个等级的数据库分别包括的网页。The electronic device may execute the above-mentioned processing procedure on each webpage in the webpage database, so as to determine the webpages respectively included in the N levels of databases.
在一些实施例中,电子设备可以直接将这N个等级的数据库确定为是优质库。在另一些实施例中,电子设备可以从N个等级的数据库中选择出排在前X位的X个等级的数据库,将这X个等级的数据库确定为是优质库,X为正整数,X小于或等于N。In some embodiments, the electronic device may directly determine the N levels of databases as high-quality databases. In some other embodiments, the electronic device may select the databases of the top X ranks X from the databases of the N ranks, and determine the databases of the X ranks as high-quality databases, where X is a positive integer, and X less than or equal to N.
示例性地,电子设备可以包括推荐优质库模块,推荐优质库模块可以用于实现上述处理过程,如通过优质库筛选模型对网页库包括的网页进行处理和筛选,以得到优质库。Exemplarily, the electronic device may include a recommended high-quality library module, and the recommended high-quality library module may be used to realize the above-mentioned processing process, such as processing and screening the webpages included in the webpage library through a high-quality library screening model to obtain a high-quality library.
上图10所示实施例中,可以理解为是通过划分的数据库的等级来体现网页的质量,即优质库的等级越高,该优质库包括的网页的质量越高。不限于上述示例的情况,在另一些实施例中,电子设备也可以基于网页内容的重要程度、网页的权威性等参数来确定网页的质量,并将质量较高的网页构成的集合确定为是优质库。In the embodiment shown in FIG. 10 above, it can be understood that the quality of the web pages is reflected by the level of the divided database, that is, the higher the level of the high-quality database, the higher the quality of the web pages included in the high-quality database. Not limited to the above examples, in some other embodiments, the electronic device may also determine the quality of the webpage based on parameters such as the importance of the webpage content and the authority of the webpage, and determine the set of webpages with higher quality as the Premium library.
在一些实施例中,电子设备可以自行确定优质库,在另一些实施例中,电子设备可以向网络设备获取优质库,优质库是网络设备获取的,获取方式的示例和上述示例类似,不再赘述。In some embodiments, the electronic device can determine the high-quality library by itself. In other embodiments, the electronic device can obtain the high-quality library from the network device. The high-quality library is obtained by the network device. repeat.
请参见图11,图11是本申请实施例提供的又一种搜索方法的流程示意图。该方法包括但不限于如下流程:Please refer to FIG. 11 . FIG. 11 is a schematic flowchart of another search method provided by the embodiment of the present application. This method includes but is not limited to the following procedures:
S101:电子设备接收第一搜索请求。S101: The electronic device receives a first search request.
在一些实施例中,电子设备接收用户输入的第一搜索请求,第一搜索请求用于请求搜索用户输入的查询语句。In some embodiments, the electronic device receives a first search request input by the user, and the first search request is used to request to search the query statement input by the user.
在一些实施例中,电子设备可以接收用户输入的查询语句和用户操作,此时可以理解为是接收到第一搜索请求,例如,上图3-图5所示实施例中,电子设备可以接收用户基于搜索框311A输入的查询语句“人物A”,然后可以接收作用于搜索控件311B的触摸操作(例如点击操作),此时可以理解为是接收到用于请求查询“人物A”的第一搜索请求。In some embodiments, the electronic device can receive the query statement and user operation input by the user. At this time, it can be understood as receiving the first search request. For example, in the embodiments shown in FIGS. 3-5 above, the electronic device can receive Based on the query sentence "person A" entered by the user in the search box 311A, the user may then receive a touch operation (for example, a click operation) acting on the search control 311B, which can be understood as receiving the first request for querying "person A". Search request.
在一些实施例中,用户基于电子设备输入的查询语句的形式可以但不限于包括文字、图片、语音、视频、运动姿态等。用户基于电子设备输入查询语句的方式例如但不限于包括:用户通过触摸电子设备的显示屏输入文字、图片或者视频形式的查询语句,用户通过电子设备连接的键盘输入文字形式的查询语句,用户通过电子设备连接或内置的麦克风输入语音形式的查询语句,用户通过电子设备连接或者内置的摄像头输入图片、视频或者运动姿态形式的查询语句。In some embodiments, the form of the query statement input by the user based on the electronic device may include, but is not limited to, text, picture, voice, video, motion gesture and the like. The ways for users to input query statements based on electronic devices include, but are not limited to: the user inputs query statements in the form of text, pictures or videos by touching the display screen of the electronic device, the user inputs query statements in the form of text through the keyboard connected to the electronic device, and The electronic device is connected or the built-in microphone inputs the query statement in the form of voice, and the user inputs the query statement in the form of picture, video or motion gesture through the electronic device connection or the built-in camera.
在一些实施例中,电子设备接收的用户操作可以用于触发电子设备获取查询语句相关的搜索结果,例如电子设备可以响应于该用户操作,使用爬虫技术去互联网上爬取和查询语句相关的大量的网页结果。该用户操作的形式可以但不限于包括作用于显示屏的触摸操作(例如点击操作)、语音、运动姿态(如手势)、脑电波等。In some embodiments, the user operation received by the electronic device can be used to trigger the electronic device to obtain search results related to the query statement. web page results. The form of the user operation may include, but is not limited to, a touch operation (such as a click operation) acting on the display screen, a voice, a motion gesture (such as a gesture), brain waves, and the like.
S102:电子设备显示第一界面,第一界面包括第一搜索集合,第一搜索集合包括至少一 个网页卡片和至少一个主题标签。S102: The electronic device displays a first interface, where the first interface includes a first search set, and the first search set includes at least one webpage card and at least one theme tag.
在一些实施例中,电子设备接收到第一搜索请求时,可以向网络设备发送第一查询请求,第一查询请求用于请求获取第一搜索请求对应的搜索结果,具体示例可参见图7的步骤1。在一些实施例中,电子设备可以接收网络设备基于第一查询请求发送的第一搜索集合,并显示第一界面,具体示例可参见图7的步骤13a和14a,或者图8的步骤13b和步骤14b。In some embodiments, when the electronic device receives the first search request, it may send the first query request to the network device, and the first query request is used to request to obtain the search result corresponding to the first search request. For a specific example, refer to FIG. 7 step 1. In some embodiments, the electronic device may receive the first search set sent by the network device based on the first query request, and display the first interface. For specific examples, refer to steps 13a and 14a in FIG. 7, or steps 13b and 14 in FIG. 8 14b.
其中,主题标签用于指示网页卡片对应的网页内容所属的分类,例如为游戏、影视、历史、明星、农业、科技、军事等。Wherein, the subject tag is used to indicate the category to which the webpage content corresponding to the webpage card belongs, for example, games, movies, history, stars, agriculture, science and technology, military and so on.
在一些实施例中,网络设备接收到第一查询请求后,可以先对用户输入的查询语句进行分析理解,例如将查询语句分解为至少一个关键词(可称为分词),纠正查询语句的语法、语序等错误(可称为纠错),对查询语句进行扩展以得到同义词(可称为扩展),识别查询语句中的实体词等。例如通过自然语言处理技术实现。可选地,分析理解的结果可以包括至少一个关键词,例如查询语句包括的关键词或相近的关键词。可选地,分析理解的结果可以包括向量。具体示例可参见图7的步骤2。以下实施例将分析理解的结果称为第一关键词,第一关键词可以用于进行搜索以得到上述至少一个网页卡片。In some embodiments, after the network device receives the first query request, it can first analyze and understand the query sentence input by the user, for example, decompose the query sentence into at least one keyword (which can be called word segmentation), and correct the grammar of the query sentence , Word order and other errors (can be called error correction), expand the query statement to obtain synonyms (can be called extension), identify entity words in the query statement, etc. For example, through natural language processing technology. Optionally, the result of analysis and understanding may include at least one keyword, for example, the keyword included in the query statement or a similar keyword. Optionally, the results of the analysis comprehension may include vectors. For a specific example, refer to step 2 in FIG. 7 . In the following embodiments, the result of the analysis and understanding is referred to as the first keyword, and the first keyword can be used for searching to obtain the at least one webpage card.
在一些实施例中,网络设备可以基于查询语句进行主题识别,以得到查询语句的主题分布(即以上实施例中的第一主题分布),可选地,第一主题分布可以用于进行搜索以得到上述至少一个网页卡片,可选地,第一主题分布可以用于确定主题卡片。在一种示例中,网络设备可以对查询语句进行主题识别,以得到第二主题分布,可简称为对查询语句进行意图(如隐式意图)分析,具体说明可参见图7的步骤3。网络设备可以基于查询语句召回第三搜索集合,并对第三搜索集合进行主题识别,以得到第三主题分布,具体说明可参见图7的步骤4-7。网络设备可以融合第二主题分布和第三主题分布并得到第一主题分布,具体说明可参见图7的步骤8。In some embodiments, the network device can perform topic identification based on the query statement to obtain the topic distribution of the query statement (that is, the first topic distribution in the above embodiments). Optionally, the first topic distribution can be used to search for The above at least one web page card is obtained, and optionally, the first theme distribution may be used to determine the theme card. In an example, the network device may perform topic identification on the query statement to obtain the second topic distribution, which may be referred to simply as performing intent (eg, implicit intent) analysis on the query statement. For details, refer to step 3 in FIG. 7 . The network device may recall the third search set based on the query statement, and perform topic identification on the third search set to obtain a third topic distribution. For details, refer to steps 4-7 in FIG. 7 . The network device may fuse the second topic distribution and the third topic distribution to obtain the first topic distribution. For details, refer to step 8 in FIG. 7 .
在一些实施例中,网络设备可以基于查询语句的分析结果(即第一关键词,例如“人物A”)和第一主题分布获取上述至少一个网页卡片,上述至少一个网页卡片和第一关键词和第一主题分布相关,具体说明可参见图7的步骤9-10。示例性地,召回网页集合时,可以基于第一关键词和相关的信息(例如第一主题分布、用户兴趣特点和行为日志等信息)生成查询命令,例如领域专用语言(domain specific language,DSL)等形式的查询命令,基于查询命令从网页库中召回网页集合。In some embodiments, the network device can obtain the at least one webpage card based on the analysis result of the query sentence (ie, the first keyword, such as "person A") and the first topic distribution, and the at least one webpage card and the first keyword Related to the first topic distribution, see steps 9-10 in FIG. 7 for specific description. Exemplarily, when recalling a collection of web pages, a query command, such as a domain specific language (domain specific language, DSL) can be generated based on the first keyword and related information (such as the first topic distribution, user interest characteristics, and behavior logs, etc.) and other forms of query commands, based on the query command to recall the web page collection from the web page library.
在一些实施例中,网络设备可以对上述召回的网页集合进行排序,并将排序结果发送给电子设备,上述排序结果包括排序后的上述至少一个网页卡片,网络设备还可以将上述至少一个网页卡片分别对应的主题标签发送给电子设备,具体示例可参见图7的步骤12a和步骤13a,上述排序结果为第一排序结果。在一些实施例中,电子设备显示的第一搜索集合可以包括排序后的至少一个网页卡片和这至少一个网页卡片分别对应的主题标签,可选地,电子设备显示的至少一个网页卡片中任意一个网页卡片包括对应的主题标签,具体示例可参见图7的步骤14a。In some embodiments, the network device may sort the recalled webpage set, and send the sorting result to the electronic device, the sorting result includes the sorted at least one webpage card, and the network device may also sort the at least one webpage card The corresponding subject tags are sent to the electronic device. For a specific example, refer to step 12a and step 13a in FIG. 7 , and the above sorting result is the first sorting result. In some embodiments, the first search set displayed by the electronic device may include sorted at least one web card and the subject tags corresponding to the at least one web card, optionally, any one of the at least one web card displayed by the electronic device The webpage card includes a corresponding theme tag, for a specific example, refer to step 14a in FIG. 7 .
例如,电子设备可以显示图4的(B)所示的用户界面330(可以理解为是第一界面),用户界面330包括排序后的网页,按照排列顺序依次为网页331、网页333和网页332(可以理解为是排序后的至少一个网页卡片),这三个网页均有明确的主题,网页331包括主题331E,指示主题为“游戏1”,网页332包括主题332E,指示主题为“历史人物”,网页333包括主题333E,指示主题为“明星”,可以理解为是任意一个网页卡片包括对应的主题标签。For example, the electronic device can display the user interface 330 (which can be understood as the first interface) shown in (B) of FIG. (Can be understood as at least one webpage card after sorting), these three webpages all have definite theme, and webpage 331 comprises theme 331E, and indication theme is " game 1 ", and webpage 332 comprises theme 332E, and indication theme is " historical figure ", the webpage 333 includes a theme 333E, indicating that the theme is "star", which can be understood as any webpage card includes a corresponding theme tag.
在另一些实施例中,网络设备可以对上述召回的网页集合和主题卡片一起进行排序,并 向排序结果发送给电子设备,上述排序结果包括排序后的上述至少一个网页卡片和主题卡片,例如,可以将主题卡片看做一个整体来进行打分,按照主题卡片的分数和至少一个网页分别对应的分数的高低来进行排序(如分数越高排列越靠前),具体示例可参见图8的步骤12b和步骤13b,上述排序结果为第二排序结果。在一些实施例中,电子设备显示的第一搜索集合可以包括排序后的至少一个网页卡片和主题卡片,主题卡片包括至少一个主题标签,具体示例可参见图8的步骤14b。In some other embodiments, the network device may sort the recalled web page set and the theme card together, and send the sorting result to the electronic device, and the sorting result includes the sorted at least one web page card and the theme card, for example, The theme cards can be regarded as a whole to be scored, and sorted according to the scores of the theme cards and the scores corresponding to at least one web page (for example, the higher the score, the higher the ranking). For a specific example, see step 12b in Figure 8 And step 13b, the above sorting result is the second sorting result. In some embodiments, the first search set displayed by the electronic device may include sorted at least one web card and topic card, and the topic card includes at least one topic tag. For a specific example, refer to step 14b of FIG. 8 .
例如,电子设备可以显示图5的(B)所示的用户界面340(可以理解为是第一界面),用户界面340包括排序后的网页和主题卡片,按照排列顺序依次为网页341、网页342、主题卡片343和网页344(可以理解为是排序后的至少一个网页卡片和主题卡片),假设查询语句的主题分布包括三个明确的主题:“历史人物”、“明星”和“游戏1”,则指示查询语句的主题分布的主题卡片343可以包括三个主题标签:主题343A(包括字符“历史人物”),主题343B(包括字符“明星”),主题343C(包括字符“游戏1”),可以理解为是主题卡片包括至少一个主题标签。For example, the electronic device can display the user interface 340 (which can be understood as the first interface) shown in (B) of FIG. , topic card 343 and webpage 344 (can be understood as at least one webpage card and topic card after sorting), assuming that the topic distribution of the query statement includes three clear topics: "historical figure", "star" and "game 1" , then the topic card 343 indicating the topic distribution of the query statement may include three topic tags: topic 343A (including the characters "historical figure"), topic 343B (including the characters "star"), and topic 343C (including the characters "game 1") , it can be understood that the topic card includes at least one topic tag.
在一些实施例中,网络设备可以根据第一主题分布确定主题卡片,主题卡片包括的至少一个主题标签为第一主题分布包括的主题标签。例如第一主题分布包括:主题标签“历史人物的”,主题标签“明星”,以及主题标签“游戏1”,则主题卡片为图5的(B)所示的用户界面340中的主题卡片343,包括三个主题标签:主题343A(包括字符“历史人物”),主题343B(包括字符“明星”),主题343C(包括字符“游戏1”)。In some embodiments, the network device may determine a topic card according to the first topic distribution, and at least one topic tag included in the topic card is a topic tag included in the first topic distribution. For example, the first topic distribution includes: topic tag "historical figure", topic tag "star", and topic tag "game 1", then the topic card is the topic card 343 in the user interface 340 shown in (B) of Fig. 5 , including three hashtags: Topic 343A (including the character "historical figure"), topic 343B (including the character "Star"), and topic 343C (including the character "Game 1").
在一些实施例中,网络设备可以根据第一主题分布包括的主题标签对应的概率,对主题卡片包括的至少一个主题标签进行排序,例如第一主题分布包括的主题标签对应的概率越大,该主题标签的排列顺序越靠前。在一些实施例中,网络设备向电子设备发送的主题卡片可以是经过排序的,电子设备可以按照排序结果显示主题卡片中的至少一个主题标签,可选地,排列顺序越靠前,显示位置越靠前。例如,第一主题分布包括的主题标签对应的概率按照从大到小依次为:主题标签“历史人物的”对应的概率0.4,主题标签“明星”对应的概率0.2,主题标签“游戏1”对应的概率0.15,其他主题标签对应的概率0.25,则主题卡片为图5的(B)所示的用户界面340中的主题卡片343,主题卡片343包括的主题标签按照从前往后的顺序依次为:主题343A(包括字符“历史人物”),主题343B(包括字符“明星”),主题343C(包括字符“游戏1”)。In some embodiments, the network device may sort at least one topic tag included in the topic card according to the probability corresponding to the topic tag included in the first topic distribution, for example, the higher the probability corresponding to the topic tag included in the first topic distribution, the Hashtags are sorted higher. In some embodiments, the theme cards sent by the network device to the electronic device may be sorted, and the electronic device may display at least one theme tag in the theme cards according to the sorting result. forward. For example, the probabilities corresponding to the topic tags included in the first topic distribution are, in descending order: the probability corresponding to the topic tag "historical figure" is 0.4, the probability corresponding to the topic tag "star" is 0.2, and the probability corresponding to the topic tag "Game 1" is The probability of 0.15, the corresponding probability of other topic tags is 0.25, then the topic card is the topic card 343 in the user interface 340 shown in (B) of Figure 5, and the topic tags included in the topic card 343 are in order from front to back: Topic 343A (including the characters "Historical Person"), topic 343B (including the characters "Star"), and topic 343C (including the characters "Game 1").
S103:响应于作用于第一主题标签的第一用户操作,电子设备显示第二界面,第二界面包括第二搜索集合,第二搜索集合包括的网页卡片对应的主题标签为第一主题标签。S103: In response to the first user operation acting on the first topic tag, the electronic device displays a second interface, the second interface includes a second search set, and the topic tag corresponding to the web page card included in the second search set is the first topic tag.
S103为可选的步骤。S103 is an optional step.
在一些实施例中,电子设备可以接收作用于第一主题标签的第一用户操作,第一主题标签为第一搜索集合包括的至少一个主题标签中任意一个主题标签,第一用户操作的形式不做限定,具体示例可参见S101中的用户操作。In some embodiments, the electronic device may receive a first user operation acting on a first topic tag, where the first topic tag is any one of at least one topic tag included in the first search set, and the form of the first user operation is not For limitation, refer to the user operation in S101 for a specific example.
在一些实施例中,电子设备可以响应于第一用户操作,向网络设备发送第二查询请求,第二查询请求用于请求获取第一主题标签相关的搜索结果,具体示例可参见图9的步骤15。在一些实施例中,电子设备可以接收网络设备基于第二查询请求发送的第二搜索集合,并显示第二界面,具体示例可参见图9的步骤21-22。In some embodiments, the electronic device may send a second query request to the network device in response to the first user operation, and the second query request is used to request to obtain search results related to the first topic tag. For a specific example, refer to the steps in FIG. 9 15. In some embodiments, the electronic device may receive the second search set sent by the network device based on the second query request, and display the second interface. For a specific example, refer to steps 21-22 in FIG. 9 .
在一些实施例中,网络设备接收到第二查询请求后,可以基于查询语句的分析结果(即第一关键词,例如“人物A”)和第一主题标签召回网页集合,可选地,网络设备可以基于第一关键词和第一主题标签从网页库或者第一搜索集合中召回第四搜索集合,以及从优质库中 召回第五搜索集合,并融合第四搜索集合和第五搜索集合,上述召回的网页集合为融合第四搜索集合和第五搜索集合得到的,具体示例可参见图9的步骤16-18。然后,网络设备可以对上述召回的网页集合进行排序,并将排序结果发送给电子设备,具体示例可参见图9的步骤19-21,上述排序结果为第三排序结果。在一些实施例中,电子设备显示的第二搜索集合可以包括上述排序结果,具体示例可参见图9的步骤22。In some embodiments, after the network device receives the second query request, it can recall the set of webpages based on the analysis result of the query statement (that is, the first keyword, such as "person A") and the first theme tag. Optionally, the network The device may recall a fourth search set from the webpage library or the first search set based on the first keyword and the first topic tag, and recall a fifth search set from the high-quality library, and fuse the fourth search set and the fifth search set, The recalled web page set is obtained by fusing the fourth search set and the fifth search set. For a specific example, refer to steps 16-18 in FIG. 9 . Then, the network device may sort the recalled web page set, and send the sorting result to the electronic device. For a specific example, refer to steps 19-21 in FIG. 9 , and the above sorting result is the third sorting result. In some embodiments, the second search set displayed by the electronic device may include the above sorting results, and for a specific example, refer to step 22 in FIG. 9 .
在一些实施例中,电子设备显示的上述至少一个网页卡片中的第一网页卡片包括第一主题标签,可以理解为是用户选择的第一主题标签为电子设备显示的第一网页卡片对应的主题标签。In some embodiments, the first webpage card among the at least one webpage card displayed by the electronic device includes a first theme tag, which can be understood as the first theme label selected by the user is the theme corresponding to the first webpage card displayed by the electronic device Label.
例如,第一用户操作为作用于图4的(B)所示的用户界面330中网页332的主题332E的触摸操作,网页332可以理解为是第一网页卡片,第一主题标签为网页332的主题332E指示的“历史人物”。响应于第一用户操作,电子设备可以显示图6的(A)所示的用户界面410(可以理解为是第二界面),用户界面410包括和第一关键词“人物A”相关以及和第一主题标签“历史人物”相关的搜索结果(即第二搜索集合)。For example, the first user operation is a touch operation acting on the theme 332E of the webpage 332 in the user interface 330 shown in (B) of FIG. "Historical Figures" indicated by Topic 332E. In response to the first user operation, the electronic device may display a user interface 410 (which can be understood as a second interface) shown in (A) of FIG. A search result related to the topic tag "historical figure" (ie, the second search set).
又例如,第一用户操作为作用于图4的(B)所示的用户界面330中网页331的主题331E的触摸操作,网页331可以理解为是第一网页卡片,第一主题标签为网页331的主题331E指示的“游戏1”。响应于第一用户操作,电子设备可以显示图6的(B)所示的用户界面420(可以理解为是第二界面),用户界面420包括和第一关键词“人物A”相关以及和第一主题标签“游戏1”相关的搜索结果(即第二搜索集合)。For another example, the first user operation is a touch operation acting on the theme 331E of the webpage 331 in the user interface 330 shown in (B) of FIG. The topic 331E indicates "Game 1". In response to the first user operation, the electronic device may display a user interface 420 (which can be understood as a second interface) shown in (B) of FIG. A search result related to the topic tag "Game 1" (ie, the second search set).
在另一些实施例中,电子设备的显示的主题卡片包括第一主题标签。In some other embodiments, the displayed theme card of the electronic device includes a first theme label.
例如,第一用户操作为作用于图5的(B)所示的用户界面340中主题卡片343的主题343A的触摸操作,第一主题标签为主题343A指示的“历史人物”。响应于第一用户操作,电子设备可以显示图6的(A)所示的用户界面410(可以理解为是第二界面),用户界面410包括和第一关键词“人物A”相关以及和第一主题标签“历史人物”相关的搜索结果(即第二搜索集合)。For example, the first user operation is a touch operation on the theme 343A of the theme card 343 in the user interface 340 shown in (B) of FIG. 5 , and the first theme label is "historical figure" indicated by the theme 343A. In response to the first user operation, the electronic device may display a user interface 410 (which can be understood as a second interface) shown in (A) of FIG. A search result related to the topic tag "historical figure" (ie, the second search set).
又例如,第一用户操作为作用于图5的(B)所示的用户界面340中主题卡片343的主题343C的触摸操作,第一主题标签为主题343C指示的“游戏1”。响应于第一用户操作,电子设备可以显示图6的(B)所示的用户界面420(可以理解为是第二界面),用户界面420包括和第一关键词“人物A”相关以及和第一主题标签“游戏1”相关的搜索结果(即第二搜索集合)。For another example, the first user operation is a touch operation on the theme 343C of the theme card 343 in the user interface 340 shown in (B) of FIG. 5 , and the first theme label is "Game 1" indicated by the theme 343C. In response to the first user operation, the electronic device may display a user interface 420 (which can be understood as a second interface) shown in (B) of FIG. A search result related to the topic tag "Game 1" (ie, the second search set).
在一些实施例中,电子设备可以在第一界面中按照第一显示方式显示第二网页卡片中的第一关键词,按照第二显示方式显示第二网页卡片中排除第一关键词以外的信息,第二网页卡片为上述至少一个网页卡片中任意一个网页卡片,可以理解为是命中显示第二网页卡片中的第一关键词。例如,第一关键词为“人物A”,图4的(B)所示的用户界面330(可以理解为是第一界面)中,网页331(可以理解为是第一网页卡片)的标题331A和简介331B中的“人物A”局部灰色显示(可以理解为是第一显示方式),其他字符并未局部灰色显示。In some embodiments, the electronic device may display the first keyword in the second webpage card in the first display manner in the first interface, and display information in the second webpage card other than the first keyword in the second display manner , the second webpage card is any one of the above at least one webpage card, which can be understood as hitting and displaying the first keyword in the second webpage card. For example, the first keyword is "character A", in the user interface 330 (which can be understood as the first interface) shown in (B) of Fig. 4 , the title 331A of the webpage 331 (which can be understood as the first web page card) The "character A" in the profile 331B is partially grayed out (it can be understood as the first display mode), and other characters are not partially grayed out.
在一些实施例中,电子设备可以在第二界面中按照第三显示方式显示第三网页卡片中的第一关键词和第二关键词,按照第四显示方式显示第三网页卡片中排除第一关键词和第二关键词以外的信息,第二关键词为第一主题标签和/或第一主题标签的相关词,第三网页卡片为第二搜索集合中任意一个网页卡片,可以理解为是命中显示第三网页卡片中的第一关键词和第二关键词。例如,第一关键词为“人物A”,第二关键词为用户选择的第一主题标签“历史人物”和第一主题标签的相关词“历史”和“朝代H”,图6的(A)所示的用户界面410(可以理 解为是第二界面)中,网页411(可以理解为是第二网页卡片)的标题411A中“历史人物A”、简介411B中“人物A”和“朝代H”局部灰色显示(可以理解为是第三显示方式),其他字符并未局部灰色显示。In some embodiments, the electronic device may display the first keyword and the second keyword in the third webpage card according to the third display manner in the second interface, and display the first keyword and the second keyword in the third webpage card according to the fourth display manner. Information other than the keyword and the second keyword, the second keyword is the first topic tag and/or related words of the first topic tag, and the third webpage card is any webpage card in the second search set, which can be understood as A hit displays the first keyword and the second keyword in the third web page card. For example, the first keyword is "character A", the second keyword is the first topic tag "historical person" selected by the user and the related words "history" and "dynasty H" of the first topic tag, (A ) shown in the user interface 410 (can be understood as the second interface), the title 411A of the webpage 411 (can be understood as the second webpage card), "historical figure A", "character A" and "dynasties" in the introduction 411B H" is partially grayed out (can be understood as the third display mode), and other characters are not partially grayed out.
在图11所示的方法中,电子设备可以结合查询语句的主题分布(即上述第一主题分布)来实现搜索功能,进行用户多意图的识别,并显示搜索结果和搜索结果对应的主题标签,可以理解为是将查询语句和/或网页的主题标签注入到前端中,还可以理解为是提供了意图澄清交互方式。电子设备可以基于用户澄清的意图(即用户选择的第一主题标签)进行更为精准的搜索和排序,为用户推荐主题标签为第一主题标签的至少一个网页,更符合用户实际意图,并且,搜索结果不再受限于查询语句,可以和第一主题标签相关,因此也扩展了用户的阅读。In the method shown in FIG. 11 , the electronic device can combine the topic distribution of the query statement (that is, the first topic distribution above) to realize the search function, identify the user's multiple intentions, and display the search results and the topic labels corresponding to the search results. It can be understood as injecting query statements and/or theme tags of web pages into the front end, and it can also be understood as providing an interaction method for clarifying intentions. The electronic device can perform more precise search and sorting based on the user's clarified intention (that is, the first topic tag selected by the user), and recommend to the user at least one webpage whose topic tag is the first topic tag, which is more in line with the user's actual intention, and, Search results are no longer limited to query terms, and can be related to the first hashtag, thus extending the user's reading.
以上模块或单元执行的步骤可以分成多个模块或单元来实现。以上模块或单元的一个或多个可以软件、硬件或二者结合来实现。例如,召回模块可以包括搜索模块(Searcher)、推荐模块(Recommend)和融合搜索模块(Fusion Search),其中搜索模块用于基于网页库召回网页,推荐模块用于基于优质库召回网页,融合搜索模块用于融合搜索模块和推荐模块召回的网页。查询模块可以包括查询(Query)理解模块和主题预测模块,查询理解模块用于对查询语句进行分析理解,主题预测模块用于进行主题识别和融合主题分布等。The steps performed by the above modules or units can be divided into multiple modules or units for implementation. One or more of the above modules or units may be realized by software, hardware or a combination of both. For example, the recall module can include a search module (Searcher), a recommendation module (Recommend) and a fusion search module (Fusion Search), wherein the search module is used to recall webpages based on the webpage library, the recommendation module is used to recall webpages based on the high-quality library, and the fusion search module Web page recalled for fused search module and recommendation module. The query module may include a query comprehension module and a topic prediction module. The query comprehension module is used for analyzing and understanding query statements, and the topic prediction module is used for topic identification and topic distribution integration.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来计算机程序相关的硬件完成,该计算机程序可存储于计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储计算机程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs or hardware related to the computer programs. The computer programs can be stored in computer-readable storage media. The computer programs During execution, it may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: various media capable of storing computer program codes such as read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk.
Claims (13)
- 一种搜索方法,其特征在于,应用于电子设备,所述方法包括:A search method, characterized in that it is applied to electronic equipment, the method comprising:接收用户输入的第一搜索请求;receiving a first search request input by a user;显示第一界面,所述第一界面包括第一搜索集合,所述第一搜索集合包括至少一个网页卡片以及所述至少一个网页卡片分别对应的主题标签,其中,所述主题标签用于指示所述网页卡片对应的网页内容所属的分类,所述至少一个网页卡片和所述第一搜索请求相关。Displaying a first interface, the first interface includes a first search set, the first search set includes at least one webpage card and a topic tag corresponding to the at least one web page card, wherein the topic tag is used to indicate the The category to which the webpage content corresponding to the webpage card belongs, and the at least one webpage card is related to the first search request.
- 如权利要求1所述的方法,其特征在于,所述第一搜索集合包括主题卡片,所述主题卡片包括至少一个所述主题标签,所述主题卡片和所述第一搜索请求相关。The method of claim 1, wherein the first search set includes a topic card, the topic card includes at least one of the topic tags, and the topic card is related to the first search request.
- 如权利要求1或2所述的方法,其特征在于,所述主题标签包括第一主题标签;所述显示第一界面之后,所述方法还包括:The method according to claim 1 or 2, wherein the subject label comprises a first subject label; after the first interface is displayed, the method further comprises:接收作用于所述第一主题标签的第一用户操作;receiving a first user action acting on the first hashtag;响应于所述第一用户操作,显示第二界面,所述第二界面包括第二搜索集合,所述第二搜索集合包括的所述网页卡片对应的所述主题标签为所述第一主题标签。In response to the first user operation, a second interface is displayed, the second interface includes a second search set, and the subject tag corresponding to the web page card included in the second search set is the first subject tag .
- 如权利要求3所述的方法,其特征在于,所述至少一个网页卡片包括第一网页卡片,所述第一网页卡片包括所述第一网页卡片对应的所述第一主题标签;或者,所述主题卡片包括所述第一主题标签。The method according to claim 3, wherein the at least one webpage card comprises a first webpage card, and the first webpage card comprises the first theme tag corresponding to the first webpage card; or, the The topic card includes the first topic tag.
- 如权利要求1-4任一项所述的方法,其特征在于,所述至少一个网页卡片包括第二网页卡片,所述第二网页卡片包括第一关键词,所述第一关键词是根据所述第一搜索请求获取的;The method according to any one of claims 1-4, wherein the at least one webpage card includes a second webpage card, and the second webpage card includes a first keyword, and the first keyword is based on obtained by the first search request;所述显示第一界面,包括:The displaying the first interface includes:在所述第一界面中按照第一显示方式显示所述第一关键词,按照第二显示方式显示所述第二网页卡片中排除所述第一关键词以外的信息,所述第一显示方式和所述第二显示方式不同。In the first interface, the first keyword is displayed according to the first display mode, and the information in the second webpage card except the first keyword is displayed according to the second display mode, and the first display mode It is different from the second display mode.
- 如权利要求4或5所述的方法,其特征在于,所述第二搜索集合包括第三网页卡片,所述第三网页卡片包括第一关键词和第二关键词,所述第一关键词是根据所述第一搜索请求获取的,所述第二关键词是根据所述第一主题标签获取的;The method according to claim 4 or 5, wherein the second search set includes a third webpage card, and the third webpage card includes a first keyword and a second keyword, and the first keyword is obtained according to the first search request, and the second keyword is obtained according to the first topic tag;所述显示第二界面,包括:The displaying the second interface includes:在所述第二界面中按照第三显示方式显示所述第一关键词和所述第二关键词,按照第四显示方式显示所述第三网页卡片中排除所述第一关键词和所述第二关键词以外的信息,所述第三显示方式和所述第四显示方式不同。The first keyword and the second keyword are displayed in the second interface according to the third display mode, and the first keyword and the second keyword are excluded from the third webpage card displayed in the fourth display mode. For information other than the second keyword, the third display manner is different from the fourth display manner.
- 如权利要求2所述的方法,其特征在于,所述主题卡片位于所述至少一个网页卡片中排列在第一个的所述网页卡片之前,或者,所述主题卡片位于所述至少一个网页卡片中的两个所述网页卡片之间。The method according to claim 2, wherein the theme card is located before the first webpage card arranged in the at least one webpage card, or the theme card is located in the at least one webpage card between two of the said page cards in the .
- 如权利要求2或7所述的方法,其特征在于,所述显示第一界面,包括:The method according to claim 2 or 7, wherein the displaying the first interface comprises:在第一位置显示第二主题标签,在第二位置显示第三主题标签,所述第二主题标签和所 述第三主题标签为所述主题卡片包括的任意两个所述主题标签,所述主题卡片和第一主题分布相关,所述第一主题分布是根据第一关键词获取的,所述第一关键词是根据所述第一搜索请求获取的,所述第一主题分布包括的所述第二主题标签对应的概率大于所述第一主题分布包括的所述第三主题标签对应的概率,所述第一位置在所述第二位置之前。A second theme label is displayed at the first position, and a third theme label is displayed at the second position, the second theme label and the third theme label are any two of the theme labels included in the theme card, and the The topic card is related to the first topic distribution, the first topic distribution is obtained according to the first keyword, the first keyword is obtained according to the first search request, and the first topic distribution includes all The probability corresponding to the second topic label is greater than the probability corresponding to the third topic label included in the first topic distribution, and the first position is before the second position.
- 如权利要求1-8任一项所述的方法,其特征在于,所述第一搜索集合包括的所述网页卡片与第一关键词和第一主题分布相关,所述第一关键词是根据所述第一搜索请求获取的,所述第一主题分布是根据所述第一关键词获取的。The method according to any one of claims 1-8, wherein the webpage cards included in the first search set are related to a first keyword and a first topic distribution, and the first keyword is based on The first search request is obtained, and the first topic distribution is obtained according to the first keyword.
- 如权利要求1-9任一项所述的方法,其特征在于,所述显示第一界面之前,所述方法还包括:The method according to any one of claims 1-9, wherein before displaying the first interface, the method further comprises:向网络设备发送第一查询请求,所述第一查询请求用于请求获取所述第一搜索请求相关的搜索结果;Sending a first query request to the network device, where the first query request is used to request to obtain search results related to the first search request;获取所述网络设备发送的所述第一搜索集合。Acquire the first search set sent by the network device.
- 如权利要求3或4所述的方法,其特征在于,所述显示第二界面之前,所述方法还包括:The method according to claim 3 or 4, wherein, before displaying the second interface, the method further comprises:响应于所述第一用户操作,向网络设备发送第二查询请求,所述第二查询请求用于请求获取所述第一主题标签及所述第一搜索请求相关的搜索结果;In response to the first user operation, sending a second query request to the network device, where the second query request is used to request to obtain search results related to the first topic tag and the first search request;获取所述网络设备发送的所述第二搜索集合。Acquire the second search set sent by the network device.
- 一种电子设备,其特征在于,包括收发器、处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用所述计算机程序,用于执行如权利要求1-11任一项所述的方法。An electronic device, characterized in that it includes a transceiver, a processor, and a memory, the memory is used to store a computer program, and the processor invokes the computer program to execute the computer program described in any one of claims 1-11. described method.
- 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行时,实现权利要求1-11任一项所述的方法。A computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1-11 is realized.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111669800.9 | 2021-12-30 | ||
CN202111669800.9A CN116415081A (en) | 2021-12-30 | 2021-12-30 | Searching method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023125284A1 true WO2023125284A1 (en) | 2023-07-06 |
Family
ID=86997833
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/141403 WO2023125284A1 (en) | 2021-12-30 | 2022-12-23 | Search method and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116415081A (en) |
WO (1) | WO2023125284A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100121842A1 (en) * | 2008-11-13 | 2010-05-13 | Dennis Klinkott | Method, apparatus and computer program product for presenting categorized search results |
CN102567530A (en) * | 2011-12-31 | 2012-07-11 | 凤凰在线(北京)信息技术有限公司 | Intelligent extraction system and intelligent extraction method for article type web pages |
US20130110628A1 (en) * | 2011-10-28 | 2013-05-02 | Google Inc. | Advertisement determination system and method for clustered search results |
CN105138703A (en) * | 2015-09-30 | 2015-12-09 | 北京奇虎科技有限公司 | Web search method based on search engines and electronic equipment |
CN111382339A (en) * | 2020-03-10 | 2020-07-07 | 北京搜狗科技发展有限公司 | Search processing method and device and search processing device |
-
2021
- 2021-12-30 CN CN202111669800.9A patent/CN116415081A/en active Pending
-
2022
- 2022-12-23 WO PCT/CN2022/141403 patent/WO2023125284A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100121842A1 (en) * | 2008-11-13 | 2010-05-13 | Dennis Klinkott | Method, apparatus and computer program product for presenting categorized search results |
US20130110628A1 (en) * | 2011-10-28 | 2013-05-02 | Google Inc. | Advertisement determination system and method for clustered search results |
CN102567530A (en) * | 2011-12-31 | 2012-07-11 | 凤凰在线(北京)信息技术有限公司 | Intelligent extraction system and intelligent extraction method for article type web pages |
CN105138703A (en) * | 2015-09-30 | 2015-12-09 | 北京奇虎科技有限公司 | Web search method based on search engines and electronic equipment |
CN111382339A (en) * | 2020-03-10 | 2020-07-07 | 北京搜狗科技发展有限公司 | Search processing method and device and search processing device |
Also Published As
Publication number | Publication date |
---|---|
CN116415081A (en) | 2023-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9524714B2 (en) | Speech recognition apparatus and method thereof | |
US20150169710A1 (en) | Method and apparatus for providing search results | |
EP3164847B1 (en) | Electronic device and method for providing content on electronic device | |
WO2022100221A1 (en) | Retrieval processing method and apparatus, and storage medium | |
CN111708943B (en) | Search result display method and device for displaying search result | |
US20130268485A1 (en) | Methods, Apparatus and Computer Program Products for Providing Automatic and Incremental Mobile Application Recognition | |
US20120296746A1 (en) | Techniques to automatically search selected content | |
WO2022111726A1 (en) | Information sorting method, and electronic device | |
CN112685578B (en) | Method and device for providing multimedia information content | |
WO2024036616A1 (en) | Terminal-based question and answer method and apparatus | |
KR20190031536A (en) | Application Information Triggering | |
CN112052297B (en) | Information generation method, apparatus, electronic device and computer readable medium | |
WO2023196044A1 (en) | Method and system of retrieving assets from personalized asset libraries | |
US10579630B2 (en) | Content creation from extracted content | |
CN110196833A (en) | Searching method, device, terminal and the storage medium of application program | |
CN112307198B (en) | Method and related device for determining abstract of single text | |
CN112925878B (en) | Data processing method and device | |
CN116758362A (en) | Image processing method, device, computer equipment and storage medium | |
WO2023125284A1 (en) | Search method and electronic device | |
CN105981006B (en) | Electronic device and method for extracting and using semantic entities in text messages of electronic device | |
US20150052155A1 (en) | Method and system for ranking multimedia content elements | |
CN111859240A (en) | Picture exporting method, related device and storage medium | |
WO2022228073A1 (en) | Image search method, terminal, and server | |
KR20150008566A (en) | System and method for providing search service | |
CN113158046B (en) | Method, device, electronic equipment and storage medium for searching information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22914538 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |