Method and device for providing search results, electronic device and medium
By associating the page information browsed by the user with the search keywords and storing and generating note content, the problem that users find it difficult to meet generalized search needs in the existing technology is solved, and the search efficiency and user experience are improved.
Patent Information
- Application Number
- CN202111553184.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2041-12-17
AI Technical Summary
Existing search technologies are unable to effectively meet users' needs for generalized search, resulting in users having to search and browse multiple web pages multiple times to obtain relevant results, which is inefficient and provides a poor experience.
By recording the associated storage of the page information browsed by the user and the search keywords, note content is generated, and the associated note content is provided as search results based on the user's search request, and the result sorting is optimized using user review ratings and time information.
It improves user search efficiency and experience, meets generalized search needs, and reduces the number of searches and web page views.
Smart Images

Figure CN114238745B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computers, in particular to the fields of intelligent search and natural language processing technology, and specifically to a method, device, electronic device, computer-readable storage medium, and computer program product for providing search results. Background Art
[0002] With the development of Internet technology, users have a growing demand for Internet information and browse more and more web pages. Given the diversity of search users and the uncertainty of search content, users need to spend more time browsing multiple web pages to finally obtain search results. Summary of the Invention
[0003] The present disclosure provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for providing search results.
[0004] According to one aspect of the present disclosure, a method for providing search results is provided, comprising: determining a corresponding page based on a search keyword of a first user; in response to receiving a note recording request for the page from the first user, generating note content associated with the search keyword and containing first page information of the page; and in response to receiving a search request from a second user that matches the search keyword, providing note content associated with the search keyword as a search result corresponding to the search request.
[0005] According to another aspect of the present disclosure, a method for providing search results is provided, including: determining a corresponding page based on a search keyword of a first user; obtaining first page information of the page in response to a note recording request of the first user for the page; generating note content based on the first page information, and storing the note content in association with the search keyword; and obtaining the note content based on the search keyword as a search result corresponding to the search request in response to receiving a search request from a second user that matches the search keyword.
[0006] According to another aspect of the present disclosure, a device for providing search results is provided, including: a first determination unit, configured to determine a corresponding page based on a search keyword of a first user; a first note generation unit, configured to generate note content associated with the search keyword and containing first page information of the page in response to receiving a note recording request for the page from the first user; and a first providing unit, configured to provide note content associated with the search keyword as a search result corresponding to the search request in response to receiving a search request from a second user that matches the search keyword.
[0007] According to another aspect of the present disclosure, a device for providing search results is provided, including: a second determination unit, configured to determine a corresponding page based on a search keyword of a first user; an acquisition unit, configured to acquire first page information of the page in response to a note recording request of the first user for the page; a second note generation unit, configured to generate note content based on the first page information, and store the note content in association with the search keyword; and a second providing unit, configured to acquire the note content based on the search keyword in response to receiving a search request matching the search keyword from a second user, as a search result corresponding to the search request.
[0008] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the method described in the present disclosure.
[0009] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to cause a computer to execute the method described in the present disclosure.
[0010] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the method described in the present disclosure when executed by a processor.
[0011] According to one or more embodiments of the present disclosure, page information of the page browsed by the user can be associated with the corresponding search keywords and stored according to the user's request, thereby realizing the content production for some generalized search needs, so that in the subsequent user search process, the content can be served to other users, thereby improving the user's search efficiency and user experience.
[0012] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements.
[0014] Figure 1A schematic diagram illustrating an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;
[0015] Figure 2 A flowchart of a method for providing search results according to an embodiment of the present disclosure is shown;
[0016] Figure 3 A flowchart of a method for providing search results according to another embodiment of the present disclosure is shown;
[0017] Figure 4 A flowchart of determining first rating information of a first user based on comment information according to an embodiment of the present disclosure is shown;
[0018] Figure 5 A flowchart of determining second rating information corresponding to note content according to an embodiment of the present disclosure is shown;
[0019] Figure 6 A flowchart of determining search keywords matching a search request according to an embodiment of the present disclosure is shown;
[0020] Figure 7 A structural block diagram of an apparatus for providing search results according to an embodiment of the present disclosure is shown;
[0021] Figure 8 A structural block diagram of an apparatus for providing search results according to another embodiment of the present disclosure is shown; and
[0022] Figure 9 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0023] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0024] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.
[0025] The terms used in the descriptions of the various examples described in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.
[0026] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0027] Figure 1 FIG2 is a schematic diagram of an exemplary system 100 in which the various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 can be configured to execute one or more applications.
[0028] In an embodiment of the present disclosure, the client devices 101 , 102 , 103 , 104 , 105 , and 106 , and the server 120 may run one or more services or software applications that enable the method of providing search results to be performed.
[0029] In some embodiments, server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.
[0030] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may, in turn, utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
[0031] The user can use client devices 101, 102, 103, 104, 105 and / or 106 to record note content, obtain search results, etc. The client device can provide an interface that enables the user of the client device to interact with the client device. The client device can also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure can support any number of client devices.
[0032] Client devices 101, 102, 103, 104, 105, and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as Microsoft Windows, Apple iOS, UNIX-like operating systems, Linux, or Linux-like operating systems (such as Google Chrome OS); or include various mobile operating systems, such as Microsoft Windows Mobile OS, iOS, Windows Phone, and Android. Portable handheld devices may include cellular phones, smartphones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, internet-enabled gaming devices, etc. Client devices are capable of executing a variety of different applications, such as various internet-related applications, communication applications (such as email applications), and short message service (SMS) applications, and may use various communication protocols.
[0033] The network 110 may be any type of network known to those skilled in the art that can support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0034] Server 120 may include one or more general-purpose computers, specialized server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0035] The computing units in the server 120 may run one or more operating systems including any of the operating systems described above as well as any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, and the like.
[0036] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display the data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
[0037] In some embodiments, server 120 may be a distributed system server or a server integrated with blockchain. Server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host equipped with artificial intelligence technology. A cloud server is a host product within the cloud computing service system that addresses the management difficulties and poor scalability of traditional physical hosts and virtual private servers (VPS) services.
[0038] System 100 may also include one or more databases 130. In some embodiments, these databases can be used to store data and other information. For example, one or more of databases 130 can be used to store information such as the contents of a note. Databases 130 can reside in a variety of locations. For example, the database used by server 120 can be local to server 120, or can be remote from server 120 and communicate with server 120 via a network-based or dedicated connection. Databases 130 can be of different types. In some embodiments, the database used by server 120 can be, for example, a relational database. One or more of these databases can store, update, and retrieve data to and from the database in response to commands.
[0039] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.
[0040] Figure 1 The system 100 may be configured and operated in various ways to enable application of the various methods and apparatuses described in accordance with the present disclosure.
[0041] Currently, when searching for search results on internet pages, different content providers (sites) provide instant information for users within their own ecosystems, including trending content, news content, and standard content. This results in a significant amount of duplication of content related to the same event or opinion. Furthermore, the current methods for generating this type of content within existing search interaction processes struggle to meet the needs of specific user groups, due to their limited user base, content, and service offerings.
[0042] Given the diversity of search users and the significant differences in individual search needs, search phrases vary widely. For example, the search phrase "Beijing weather" is relatively easy to understand and easily yields highly matched search results. However, the search phrase "Where can I buy XX in Beijing" is more vague and generally refers to a general question. Its search results are derived from historical content and are also influenced by search strategies and expression formats. This can lead to timeliness issues and incomplete information descriptions, making it difficult to address user needs. For such general questions, users may need to perform multiple searches and browse multiple web pages to ultimately obtain the corresponding search results.
[0043] Therefore, the method according to the present disclosure provides a method for providing search results. Figure 2 2 is a flow chart illustrating a method 200 for providing search results according to an exemplary embodiment. The method 200 may be performed on a client device (e.g., Figure 1101, 102, 103, 104, 105 and / or 106) shown in FIG, that is, the execution body of each step of method 200 may be Figure 1 The client devices 101, 102, 103, 104, 105 and / or 106 shown in FIG. Figure 2 As shown, the method 200 includes: determining the corresponding page based on the search keyword of the first user (step 210); in response to receiving a note recording request for the page from the first user, generating note content associated with the search keyword and containing the first page information of the page (step 220); and in response to receiving a search request from the second user that matches the search keyword, providing the note content associated with the search keyword as a search result corresponding to the search request (step 230).
[0044] According to the embodiments of the present disclosure, the page information of the page browsed by the user can be associated with the corresponding search keywords and stored according to the user's request, thereby realizing the content production for some generalized search needs, so that in the subsequent user search process, the content can be served to other users, thereby improving the user's search efficiency and user experience.
[0045] In some examples, the page may include a web page, for example, a web page that has been browsed in a search result page obtained by the user, or a page created or produced in a preset information platform, which is not limited here.
[0046] Note that the "first user" here refers to the user who records or creates the note content; the "second user" refers to the user who can view the corresponding note content in subsequent searches. The "first user" and "second user" can be the same or different. In other words, the person who records the note content can also subsequently view their own notes or those of others, without limitation.
[0047] In some examples, there can be one or more "first users," meaning that one or more users may have recorded notes with the same search keyword. For example, if first user A records note 1 corresponding to search keyword A, and first user B records note 2 corresponding to search keyword A, when both user A's and user B's notes are retrievable by a second user, note 1 and note 2 associated with search keyword A can be provided to the second user as search results for the search request.
[0048] According to some embodiments, the method 200 according to the present disclosure may further include: after generating the note content containing the first page information, further obtaining the second page information related to the page, so as to use the first page information and the second page information together as the note content corresponding to the page. The second page information is information input by the first user. That is to say, after the first user triggers the note recording function of the current page, the content can be edited on the generated note page to enter the note content related to the current page. By obtaining the information related to the current page input by the first user, user perception information can be added to the note content, accumulating the user's thinking in the process of obtaining needs.
[0049] According to some embodiments, the provided note content is provided based on the search keyword and first rating information, wherein the first rating information is determined by rating the first user based on comment information of the note content corresponding to the first user.
[0050] In some examples, the note content recorded by the first user can be open to other users for retrieval and browsing. Other users can comment on the first user's note content, and the comment information may include but is not limited to likes, dislikes, text descriptions, etc. The first rating information of the first user can be generated based on the comment information of the note content recorded by the first user. The first rating information can be used to characterize the value of the user's note content. The accumulation of note content is the user's thinking in the solution process, as well as the verification of the solution process, and can ultimately serve other users.
[0051] According to some embodiments, the first page information is information automatically generated by the system. The first page information may include but is not limited to a page address, time information, page title, and the like.
[0052] For example, after a first user triggers a note-taking operation on a designated page, such as by clicking a predetermined area or button or performing a predetermined action, the system can automatically obtain information about the page, such as the address, and store this information in association with the search keyword used by the first user to obtain the designated page. As shown in Table 1, the URL and time in the note content may be the first page information automatically generated by the system, while the underlined content may be the second page information entered by the first user.
[0053]
[0054] According to some embodiments, when the first page information includes time information, the note content provided to the second user may be a first amount of note content within a predetermined time period or a recent time associated with the search keyword.
[0055] In some examples, the time information may be the page editing time or the time when the note content corresponding to the page is first generated, which is not limited here.
[0056] For example, after a second user issues a search request, the search keyword matching the search request is determined, and the note content recorded by the first user containing the search keyword is obtained. After obtaining the note content, all the note content can be sorted according to time information to provide the second user with the note content of the most recent time period (e.g., notes within the past year) or the first number of notes in the most recent time period (e.g., the most recent 10 notes).
[0057] According to some embodiments, when the first page information includes time information, the note content associated with the search keyword provided to the second user may include: the provided note content is the note content of the first user whose first rating information is greater than a first threshold. Additionally or alternatively, the note content associated with the search keyword provided to the second user may further include: the provided note content is the second number of notes from the most recent time.
[0058] In some examples, after a second user issues a search request, the search keyword matching the search request is determined, and the notes recorded by the first user containing the search keyword are retrieved. Furthermore, the first rating information of the determined first user is obtained. Therefore, based on the first user's first rating information, the notes recorded by the same first user corresponding to the search keyword can be retrieved as a whole and provided to the second user.
[0059] In some examples, after a second user issues a search request, a search keyword matching the search request is determined, and the notes recorded by the first user containing the search keyword are retrieved. After the notes are retrieved, all the notes can be sorted by time to provide the second user with the notes from the most recent time period or the second number of notes from the most recent time period.
[0060] According to some embodiments, the time information may be the time information when the first user first recorded the note content associated with the search keyword. In other words, the note content associated with the search keyword can be recalled as a whole based on the time when the note content associated with the search keyword was first recorded.
[0061] In some examples, after the second user issues a search request, the search keyword that matches the search request is determined, and the note content recorded by the first user containing the search keyword is obtained. Furthermore, the first rating information of the determined first user is obtained. Therefore, based on the first rating information of the first user, the note content corresponding to the search keyword recorded by the first user whose first rating information is greater than a preset threshold can be obtained. Then, the note content recorded by the first user whose first rating information is greater than the preset threshold can be sorted in chronological order to provide the second user with a predetermined number (in the most recent time) or a predetermined time period of note content. Alternatively, after obtaining the note content recorded by the first user containing the search keyword based on the search request issued by the second user, all the note content can be sorted according to time information to determine the predetermined number (in the most recent time) or a predetermined time period of note content. Then, the determined note content is sorted according to the first rating information of the first user to which it corresponds, and provided to the second user based on the sorting result.
[0062] According to some embodiments, the provided note content may be provided based on the search keyword and the second rating information. The second rating information may be determined by rating the corresponding note content based on the second page information.
[0063] In some examples, the second rating information is used to represent the similarity between the second page information and the page. For example, for each note content associated with the search keyword, the similarity between the second page information and the corresponding page is calculated, for example, based on a text similarity algorithm, to determine the second rating information for the current note content based on the similarity.
[0064] In some examples, after a second user issues a search request, the system determines search keywords that match the search request and retrieves notes recorded by the first user that contain the search keywords. Furthermore, the system retrieves second rating information corresponding to each note, and filters and recalls the retrieved notes based on the second rating information.
[0065] According to some embodiments, before providing the note content associated with the search keyword, the method may further include: receiving search information corresponding to the search request, where the search information is information input by the second user.
[0066] In some examples, after obtaining search information corresponding to the search request, the search information may be processed based on a natural language processing algorithm, including, but not limited to, word segmentation and obtaining semantic vectors. The processed search information is then matched with the search keywords recorded by the first user, for example, by calculating similarity to determine search keywords with a similarity greater than a preset threshold as search keywords that match the search information.
[0067] In some examples, in search engine-based web searches, the preset threshold is generally greater than the matching threshold in the search engine's search logic. Alternatively, in some examples, a search keyword that fully matches the retrieved search information can be directly determined (e.g., a one-to-one correspondence between text). In this way, due to the inclusion of human selection and consideration, the note content retrieved by the second user may be more likely to meet the user's search needs, reducing the number of searches and improving search efficiency and user experience.
[0068] In some embodiments, the search information may include but is not limited to text search information, image search information, voice search information, and the like.
[0069] The method according to the present disclosure also provides a method for providing search results. Figure 3 3 is a flow chart illustrating a method 300 for providing search results according to an exemplary embodiment. The method 300 may be performed on a server (eg, Figure 1 , that is, the execution body of each step of the method 300 may be Figure 1 The server 120 shown in FIG. Figure 3 As shown, the method 300 may include: determining a corresponding page based on a search keyword of a first user (step 310); obtaining first page information of the page in response to a note recording request of the first user for the page (step 320); generating note content based on the first page information, and storing the note content in association with the search keyword (step 330); and obtaining note content based on the search keyword as a search result corresponding to the search request in response to receiving a search request from a second user that matches the search keyword (step 340).
[0070] According to some embodiments, the first page information may include, but is not limited to: page address, time information, and page title.
[0071] According to some embodiments, method 300 according to the present disclosure may further include: after generating note content based on the first page information, further obtaining second page information related to the page, so as to use the first page information and the second page information together as the note content corresponding to the page. The second page information is information input by the first user. The first page information and the second page information have been described above and will not be repeated here.
[0072] According to some embodiments, method 300 of the present disclosure may further include: obtaining comment information for the note content corresponding to the first user; and determining first rating information for the first user based on the comment information. Therefore, obtaining note content based on a search keyword may include: obtaining note content based on the search keyword and the first rating information of the first user.
[0073] According to some embodiments, Figure 4 As shown, determining the first rating information of the first user based on the comment information may include: obtaining the emotional attributes of the comment information, wherein the emotional attributes include positive and negative (step 410); determining the statistical data of each emotional attribute corresponding to the note content (step 420); and determining the first rating information of the first user based on the statistical data of each emotional attribute (step 430).
[0074] In some examples, the content of a note recorded by a first user can be made available to other users, who can comment on the first user's note. The comment information may include, but is not limited to, likes, dislikes, and text comments. The sentiment attribute of the comment information is identified, such as a like being positive and a dislike being negative. For example, the sentiment attribute of the text comment can be obtained using a pre-trained model or an algorithm based on natural language processing.
[0075] In some examples, statistics can be performed on various sentiment attributes, such as the number of likes X, the number of dislikes Y, the number of positive comments Z, and the number of negative comments T in the text reviews. Furthermore, different weight values can be set for different types of comment information, for example, the weight value of likes and dislikes is 40%, and the weight value of text comments is 60%. Based on the statistical data and the corresponding weight values, the first rating information of the first user can be determined, for example, the first rating information = (XY)*40%+(ZT)*60%. The first rating information can be used to characterize the value of the user's note content, so that the note content recorded by higher-quality users can be recalled in the subsequent retrieval process.
[0076] According to some embodiments, when the first page information includes time information, obtaining note content based on the search keyword may include: obtaining a first amount of note content within a predetermined time period or the most recent time associated with the search keyword based on the time information. The details have been described above and are not repeated here.
[0077] According to some embodiments, when the first page information includes time information, obtaining note content based on the search keyword may include: obtaining, based on the search keyword, note content of a first user whose first rating information is greater than a first threshold. Additionally or alternatively, obtaining note content based on the search keyword may also include: obtaining, based on the search keyword, a second number of note contents from a recent time. The details have been described above and will not be repeated here.
[0078] According to some embodiments, the method 300 according to the present disclosure may further include a step 500 of determining second rating information corresponding to the note content. Figure 5 As shown, step 500 may include: obtaining the second page information of each note content associated with the search keyword (step 510); determining the similarity between each second page information obtained and its corresponding page (step 520); and determining the second rating information corresponding to the note content associated with the search keyword based on the similarity (step 530).
[0079] In some examples, the similarity between the second page information and the corresponding page can be determined based on a text similarity algorithm. The second rating information determined based on the similarity represents the quality of the added note content as determined by the first user, and can help the second user quickly filter out note content that meets their search requirements.
[0080] According to some embodiments, when the first page information includes time information, obtaining note content based on the search keyword may include: obtaining note content whose second rating information is greater than a second threshold based on the search keyword. Additionally or alternatively, obtaining the note content based on the search keyword may further include: obtaining a third number of note contents with a recent time based on the search keyword.
[0081] In some examples, after the second user issues a search request, the search keyword that matches the search request is determined, and the note content recorded by the first user containing the search keyword is obtained. Further, the second rating information of each note content is determined. Therefore, based on the second rating information, the note content corresponding to the search keyword whose second rating information is greater than a preset threshold can be obtained. Then, the note content whose second rating information is greater than the preset threshold can be sorted in chronological order to provide the second user with a predetermined number (in the recent time) or a predetermined time period of note content. Alternatively, after the note content recorded by the first user containing the search keyword is obtained based on the search request issued by the second user, all the note content can be sorted according to the time information to determine the predetermined number (in the recent time) or a predetermined time period of note content. Then, the determined note content is sorted according to the corresponding second rating information and provided to the second user based on the sorting result.
[0082] According to some embodiments, the time information may be the time information when the first user first records the note content corresponding to the search keyword, which is not limited here.
[0083] According to some embodiments, before obtaining the note content based on the search keyword, a step 600 of determining the search keyword that matches the search request may also be included. Figure 6 As shown, step 600 may include: receiving search information corresponding to the search request, the search information being information input by the second user (step 610); calculating the similarity between the search information and the search keyword (step 620); and in response to the similarity being greater than a preset threshold, determining that the search request matches the search keyword (step 630).
[0084] The content of determining the search keyword that matches the search request of the second user based on the search information has been described above and will not be repeated here.
[0085] According to some embodiments, the search information may include, but is not limited to: text search information, image search information, and voice search information.
[0086] According to the embodiments of the present disclosure, Figure 7As shown, a device 700 for providing search results is also provided, including: a first determination unit 710, configured to determine the corresponding page based on the search keyword of the first user; a first note generation unit 720, configured to generate note content associated with the search keyword and containing the first page information of the page in response to receiving a note recording request for the page from the first user; and a first providing unit 730, configured to provide note content associated with the search keyword as a search result corresponding to the search request in response to receiving a search request from a second user that matches the search keyword.
[0087] Here, the operations of the above-mentioned units 710 to 730 of the apparatus 700 for providing search results are similar to the operations of steps 210 to 230 described above, and are not described in detail here.
[0088] According to the embodiments of the present disclosure, Figure 8 As shown, a device 800 for providing search results is also provided, including: a second determination unit 810, configured to determine a corresponding page based on a search keyword of a first user; an acquisition unit 820, configured to acquire first page information of the page in response to a note recording request of the first user for the page; a second note generation unit 830, configured to generate note content based on the first page information, and store the note content in association with the search keyword; and a second providing unit 840, configured to acquire the note content based on the search keyword in response to receiving a search request matching the search keyword from a second user, as a search result corresponding to the search request.
[0089] Here, the operations of the above-mentioned units 810 to 840 of the apparatus 800 for providing search results are similar to the operations of steps 310 to 340 described above, and are not described in detail here.
[0090] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0091] According to an embodiment of the present disclosure, an electronic device, a readable storage medium, and a computer program product are also provided.
[0092] refer to Figure 9, a block diagram of an electronic device 900 that can serve as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0093] like Figure 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0094] Multiple components within electronic device 900 are connected to I / O interface 905, including an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. Input unit 906 can be any type of device capable of inputting information into electronic device 900. Input unit 906 can receive input numeric or character information and generate key signal input related to user settings and / or function control of the electronic device. It may include, but is not limited to, a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 907 can be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. Storage unit 908 may include, but is not limited to, a magnetic disk or an optical disk. Communication unit 909 allows electronic device 900 to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks. It may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver and / or chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0095] The computing unit 901 may be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as method 200 or 300. For example, in some embodiments, method 200 or 300 may be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via ROM 902 and / or communication unit 909. When the computer program is loaded into RAM 903 and executed by the computing unit 901, one or more steps of method 200 or 300 described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to execute the method 200 or 300 in any other appropriate manner (eg, by means of firmware).
[0096] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0098] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0100] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0101] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.
[0102] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0103] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. In addition, the steps may be performed in an order different from that described in this disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear after this disclosure.
Claims
1. A method for providing search results, comprising: Determining a corresponding page based on the first user's search keyword; In response to receiving a note-recording request from the first user for the page, generating note content associated with the search keyword and including first page information of the page, wherein the first page information is information automatically generated by the system, and the first page information includes time information, wherein the time information includes time information when the first user first recorded the note content corresponding to the search keyword or time information when the first page information was edited; Acquire second page information related to the page, so as to use the first page information and the second page information together as note content corresponding to the page, wherein the second page information is information input by the first user; and In response to receiving a search request from a second user that matches the search keyword, note content associated with the search keyword is provided as a search result corresponding to the search request, wherein the provided note content is a first amount of note content within a predetermined time period or a recent time associated with the search keyword, and the provided note content is determined based on first rating information and second rating information, wherein the first rating information is determined by rating the first user based on comment information of the note content corresponding to the first user, wherein the first rating information is determined based on statistical data and corresponding weight values of various emotional attributes of the comment information, wherein the comment information includes likes, dislikes and text comments, wherein the emotional attributes of the text comments are obtained through a pre-trained model or an algorithm based on natural language processing, and wherein the second rating information is determined by rating the corresponding note content based on the second page information.
2. The method according to claim 1, wherein Providing note content associated with the search keyword includes at least one of the following: The provided note content is the note content of a first user whose first rating information is greater than a first threshold; and The provided note content is the second amount of note content at the most recent time.
3. The method according to claim 1, before providing the note content associated with the search keyword, further comprising: receiving search information corresponding to the search request, wherein the search information is information input by the second user, and wherein: The search information includes at least one of the following items: text search information, image search information, and voice search information.
4. The method according to claim 1, wherein The first page information includes at least one of the following items: page address, time information, and page title.
5. A method for providing search results, comprising: Determining a corresponding page based on the first user's search keyword; In response to a first user's request to record a note for the page, obtaining first page information of the page, wherein the first page information is automatically generated by the system and includes time information, wherein the time information includes time information when the first user first records the note content corresponding to the search keyword or time information when the first page information is edited; generating note content based on the first page information, and storing the note content in association with the search keyword; Acquire second page information related to the page, so as to use the first page information and the second page information together as note content corresponding to the page, wherein the second page information is information input by the first user; and Obtaining comment information of the note content corresponding to the first user; Determining first rating information of the first user based on the comment information includes: Obtaining sentiment attributes of the comment information, wherein the comment information includes likes, dislikes, and text comments, wherein the sentiment attributes of the text comments are obtained using a pre-trained model or an algorithm based on natural language processing; Determining statistical data and corresponding weight values of various emotional attributes corresponding to the note content; and Determining first rating information of the first user based on the statistical data and corresponding weight values of each emotional attribute; In response to receiving a search request matching the search keyword from a second user, the note content is obtained based on first rating information and second rating information, and the search keyword as a search result corresponding to the search request, wherein the obtained note content is a first amount of note content within a predetermined time period or a recent time associated with the search keyword, and wherein the first rating information is determined by rating the first user based on comment information of the note content corresponding to the first user, and the second rating information is determined by rating the corresponding note content based on the second page information.
6. The method according to claim 5, wherein: The emotional attributes include positive and negative.
7. The method according to claim 5, wherein: The first page information includes time information, and wherein, Acquiring the note content based on the search keyword includes at least one of the following: Acquiring, based on the search keyword, a note content of a first user whose first rating information is greater than a first threshold; and A second amount of note content is obtained most recently based on the search keyword.
8. The method of claim 5, further comprising: Obtaining the second page information of each note content associated with the search keyword; Determining the similarity between each acquired second page information and its corresponding page; as well as Second rating information corresponding to the note content associated with the search keyword is determined based on the similarity.
9. The method of claim 8, wherein: The first page information includes time information, and wherein, Acquiring the note content based on the search keyword includes at least one of the following: Acquire, based on the search keyword, note content whose second rating information is greater than a second threshold; and A third amount of most recent note content is acquired based on the search keyword.
10. The method according to claim 5, before providing the note content associated with the search keyword, further comprising: receiving search information corresponding to the search request, where the search information is information input by the second user; Calculating the similarity between the search information and the search keyword; as well as In response to the similarity being greater than a preset threshold, it is determined that the search request matches the search keyword.
11. The method according to claim 10, wherein: The search information includes at least one of the following items: text search information, image search information, and voice search information.
12. The method of claim 5, wherein: The first page information includes at least one of the following items: page address, time information, and page title.
13. A device for providing search results, comprising: a first determining unit configured to determine a corresponding page based on a search keyword of a first user; A first note generating unit is configured to, in response to receiving a note recording request for the page from the first user, generate note content associated with the search keyword and including first page information of the page, wherein the first page information is information automatically generated by the system, and the first page information includes time information, wherein the time information includes time information when the first user first records the note content corresponding to the search keyword or time information when the first page information is edited; and Acquire second page information related to the page, so as to use the first page information and the second page information together as note content corresponding to the page, wherein the second page information is information input by the first user; A first providing unit is configured to provide note content associated with the search keyword as a search result corresponding to the search request in response to receiving a search request from a second user that matches the search keyword, wherein the provided note content is a first amount of note content within a predetermined time period or a recent time associated with the search keyword, and the provided note content is determined based on first rating information and second rating information, wherein the first rating information is determined by rating the first user based on comment information of the note content corresponding to the first user, wherein the first rating information is determined based on statistical data and corresponding weight values of various emotional attributes of the comment information, wherein the comment information includes likes, dislikes and text comments, wherein the emotional attributes of the text comments are obtained through a pre-trained model or an algorithm based on natural language processing, and wherein the second rating information is determined by rating the corresponding note content based on the second page information.
14. A device for providing search results, comprising: a second determining unit configured to determine a corresponding page based on the search keyword of the first user; an acquiring unit configured to, in response to a note-recording request by a first user for the page, acquire first page information of the page, wherein the first page information is information automatically generated by the system and includes time information, wherein the time information includes time information when the first user first records the note content corresponding to the search keyword or time information when the first page information is edited; a second note generating unit configured to generate note content based on the first page information, and store the note content in association with the search keyword; and obtain second page information related to the page, so as to use the first page information and the second page information together as note content corresponding to the page, wherein the second page information is information input by the first user; a unit for obtaining comment information of the note content corresponding to the first user; The unit for determining first rating information of the first user based on the comment information includes: a unit for obtaining sentiment attributes of the comment information, wherein the comment information includes likes, dislikes, and text comments, wherein the sentiment attributes of the text comments are obtained using a pre-trained model or an algorithm based on natural language processing; a unit for determining statistical data and corresponding weight values of various emotional attributes corresponding to the note content; and a unit for determining first rating information of the first user based on the statistical data and corresponding weight values of each emotional attribute; The second providing unit is configured to obtain the note content based on the first rating information and the second rating information, and the search keyword in response to receiving a search request matching the search keyword from the second user, as a search result corresponding to the search request, wherein the obtained note content is a first amount of note content within a predetermined time period or a recent time associated with the search keyword, and wherein the first rating information is determined by rating the first user based on the comment information of the note content corresponding to the first user, and the second rating information is determined by rating the corresponding note content based on the second page information.
15. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 12.
16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-12.
17. A computer program product comprising a computer program, wherein When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Network access control method, network server and electronic device
CN105205119A