Content display method, apparatus and device
By determining whether the user's search input is the first time, performing word segmentation and classification, and using a local server for content matching and sorting, the problem of low search efficiency in existing technologies is solved, and accurate matching is achieved even when the user inputs short content is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2026-03-17
AI Technical Summary
In existing technologies, dropdown word recommendation methods based on popularity and trie ranking cannot accurately match the words needed by users when the user's search input is short, resulting in low search efficiency.
By determining whether the user's input is the first search result, word segmentation and categorization are performed. The local server is then used to match and sort the target word groups, and finally, the content is displayed in a drop-down list format.
It improves search efficiency, ensuring that it can accurately match the content that users need when they enter short search terms.
Smart Images

Figure CN116089707B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information search technology, and in particular to a content display method, apparatus, and device. Background Technology
[0002] Drop-down suggestions refer to terms recommended by the system when a user enters a search term in the search box. While browsing search results, the drop-down area of the search box can recommend terms based on the user's search behavior. Current recommendation methods primarily rely on matching based on popularity and trie ranking. However, this method is too generalized and fails to match the user's specific needs when the search query is short, resulting in low search efficiency.
[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide a content display method, apparatus, and device, which aims to solve the technical problem that existing recommendation methods match based on popularity and trie sorting. This method is too generalized and cannot match the words needed by the user when the user's search content is short, resulting in low search efficiency.
[0005] To achieve the above objectives, the present invention provides a content display method, which includes the following steps:
[0006] Obtain the search content entered by the user and determine whether the search content is the first time the user has entered it;
[0007] If this is the user's first input, the search content is segmented into words, and the words obtained from the segmentation are classified to obtain the target word group;
[0008] The target word segment is sent to a local server, which performs content matching on the target word segment and sorts the matched content.
[0009] The content sorting results are obtained from the local server and displayed in a drop-down list format.
[0010] Optionally, the step of obtaining the search content input by the user and determining whether the search content is the first time the user has entered it includes:
[0011] Obtain the search content input by the user and query the local server to see if there are any word segments that match the search content;
[0012] If no word group matches the search content, the search content is determined to be the user's first input.
[0013] If a word segmentation group matching the search content exists, it is determined that the search content is not the first input by the user.
[0014] Optionally, the step of segmenting the search content into words and classifying the segmented words to obtain the target word group if this is the user's first input includes:
[0015] If this is the user's first input, then determine whether the word type of the search content matches the preset word type;
[0016] If the search term matches the preset vocabulary type, then select the splitting strategy corresponding to the vocabulary type of the search content.
[0017] The search content is segmented into words according to the segmentation strategy, and the words obtained from the segmentation are classified to obtain the target word group.
[0018] Optionally, the step of classifying the words obtained from word segmentation to obtain the target word group includes:
[0019] Based on the preset segmentation type, each word obtained from word segmentation is segmented into the same type;
[0020] The words obtained from each segment are combined to obtain the target word group.
[0021] Optionally, after the step of sending the target word segment to a local server, whereby the local server performs content matching on the target word segment and sorts the matched content, the method further includes:
[0022] Establish a mapping relationship between the search content and the target word segmentation;
[0023] The mapping relationship is stored on the local server.
[0024] Optionally, after the step of determining that the search content is not the first input by the user if a word segmentation group matching the search content exists, the method further includes:
[0025] If this is not the user's first input, then obtain the word segmentation group that matches the search content from the local server;
[0026] The matched word segmentation group is used as the target word segmentation group.
[0027] Furthermore, to achieve the above objectives, the present invention also proposes a content display method, which includes the following steps:
[0028] Receive the target word segmentation group input from the target terminal;
[0029] The target word group is matched with a preset music library, and the content of the successfully matched music library is extracted. The preset music library includes song name data, singer name data, and lyrics data.
[0030] The content of the successfully matched music library is sorted based on the popularity of on-demand playback to obtain the content sorting result;
[0031] The sorting results of the content are sent to the target terminal for display.
[0032] Furthermore, to achieve the above objectives, the present invention also proposes a content display device, which is applied to a local server, and the device includes:
[0033] The search content determination module is used to obtain the search content input by the user and determine whether the search content is the first time the user has entered it.
[0034] The word segmentation and classification module is used to segment the search content into words if it is the user's first input, and to classify the words obtained by word segmentation to obtain the target word group.
[0035] The target word segmentation module is used to send the target word segmentation to a local server, and the local server is used to perform content matching on the target word segmentation and sort the matched content.
[0036] The dropdown keyword display module is used to obtain the content sorting results from the local server and display the content sorting results as dropdown keywords to the user.
[0037] Furthermore, to achieve the above objectives, the present invention also proposes a content display device, the device comprising:
[0038] The word segment receiving module is used to receive the target word segments input by the target terminal;
[0039] The content matching module is used to perform content matching on the target word group through a preset music library and extract the content of the successfully matched music library. The preset music library includes song name data, singer name data and lyrics data.
[0040] The content sorting module is used to sort the successfully matched music library content based on the popularity of on-demand playback, and obtain the content sorting result;
[0041] The result sending module is used to send the content sorting results to the target terminal for display.
[0042] Furthermore, to achieve the above objectives, the present invention also proposes a content display device, the device comprising: a memory, a processor, and a content display program stored in the memory and executable on the processor, the content display program being configured to implement the steps of the content display method described above.
[0043] This invention obtains user-input search content and determines whether it is the user's first input. If it is, the search content is segmented into words, and the resulting words are categorized to obtain target word groups. These target word groups are sent to a local server, which performs content matching and sorts the matched content. The sorted results are then retrieved from the local server and displayed as dropdown suggestions. Because this invention first segments and categorizes the search content, then uses a local server to match and sort the target word groups, and finally displays the sorted results as dropdown suggestions, it avoids the overly generalized matching of existing recommendation methods, effectively improving user search efficiency. Attached Figure Description
[0044] Figure 1 This is a schematic diagram of the structure of the content display device of the hardware operating environment involved in the embodiments of the present invention;
[0045] Figure 2 This is a flowchart illustrating the first embodiment of the method for demonstrating the content of this invention;
[0046] Figure 3 This is a flowchart illustrating the second embodiment of the method for demonstrating the content of this invention;
[0047] Figure 4 This is a flowchart illustrating the third embodiment of the method for demonstrating the content of this invention;
[0048] Figure 5 This is a flowchart illustrating the first embodiment of the content display method of the present invention applied to a local server;
[0049] Figure 6 This is a structural block diagram of the first embodiment of the device for displaying the contents of the present invention;
[0050] Figure 7 This is a structural block diagram of the first embodiment of the content display device of the present invention applied to a local server.
[0051] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0052] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0053] Reference Figure 1 , Figure 1 This is a schematic diagram of the hardware operating environment of the embodiment of the present invention.
[0054] like Figure 1 As shown, the content display device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the content display device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0056] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a content display program.
[0057] exist Figure 1 In the content display device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the content display device of the present invention can be set in the content display device, and the content display device calls the content display program stored in the memory 1005 through the processor 1001 and executes the content display method provided in the embodiment of the present invention.
[0058] This invention provides a content display method, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the method for demonstrating the content of this invention.
[0059] In this embodiment, the content display method includes the following steps:
[0060] Step S10: Obtain the search content input by the user, and determine whether the search content is the first input by the user.
[0061] It should be noted that the execution subject of the method in this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a mobile phone, a tablet computer, a personal computer, etc., or other electronic devices that implement the same or similar functions, such as a jukebox. Hereinafter, the above content display device (hereinafter referred to as the display device) will be used to illustrate this embodiment and the following embodiments.
[0062] It can be understood that the search content can be the retrieval content currently input by the user, such as content related to the name of the singer or the song, such as "zhoujielun", "ZJL", and "周".
[0063] In a specific implementation, the user can input keywords related to the information to be displayed on the display device. For example, if the user wants to listen to the songs sung by a certain singer, the user can input the full pinyin of the singer's name, so as to expect the display device to display the songs sung by the singer. After the display device obtains the above search content input by the user, that is, the keyword, it can determine whether the keyword is the first input, and select a corresponding display strategy according to the judgment result.
[0064] Further, in order to improve the efficiency of determining whether the above search content is the first input, in this embodiment, step S10 includes:
[0065] Step S101: Obtain the search content input by the user, and query whether there is a word segmentation group matching the search content in the local server.
[0066] It should be noted that the local server can be a server set locally and associated with the display device.
[0067] It can be understood that the word segmentation group can be a word segmentation phrase displayed in a preset type, such as "jie", "ZJ", and "周", and the preset type can be set by technical personnel according to requirements.
[0068] In a specific implementation, after the display device obtains the search content input by the user, it can connect to the above local server through the local local area network, and then query whether there is a word segmentation group matching the above search content recorded in the local server.
[0069] Step S1C2: If there is no word segmentation group matching the search content, it is determined that the search content is the first input by the user.
[0070] In a specific implementation, if the display device does not find any records related to the search content on the aforementioned local server, that is, if there is no word segmentation group matching the aforementioned search content, then it can be determined that the search content is the user's first input.
[0071] Step S102': If there is a word segmentation group that matches the search content, then it is determined that the search content is not the first input by the user.
[0072] In a specific implementation, after the display device finds a word segmentation group that matches the search content on the local server, it indicates that the local server has a record related to the search content. It can be determined that the search content is the first input by the user. For example, if the user inputs the search content "ZJlun", and the local server has a corresponding "ZJ", the display device can find a corresponding "ZJ" based on "ZJlun". At this time, it can be determined that the search content is not the first input by the user.
[0073] It should be understood that when the search content is entered for the first time, processing the search content and displaying related content based on the processed word segments allows the search content and the processed word segments to be associated on the local server. When the same search content is entered again, word segments associated with the search content can be found on the local server, indicating that the search content is not the first time it has been entered. Conversely, if it is the first time it has been entered, no word segments matching the search content can be found, indicating that the search content is the first time it has been entered. This effectively improves the efficiency of determining whether the search content is the first time it has been entered.
[0074] Step S20: If this is the user's first input, the search content is segmented into words, and the words obtained from the segmentation are classified to obtain the target word group.
[0075] It should be noted that word segmentation can split the user's search content according to a pre-set strategy to obtain words of a preset type. For example, when the user enters the search content "ZJlun", the content will be split into three forms: "ZJ", "lun", and "ZJlun". The above-mentioned pre-set strategy can be set by technical personnel according to their needs or the frequency of use of the current search content.
[0076] Understandably, the classification can be done by categorizing the words obtained from the above split according to their type, that is, grouping words of the same type together as a single segment. For example, if the search content is split into "ZJ", "lun", "MB" and "buyi", then "ZJ" and "MB" will be grouped together as a single segment, and "lun" and "buyi" will be grouped together as a single segment.
[0077] It should be noted that the target word group can be a word group composed of the word segments after the above classification.
[0078] In practice, the display device can segment and categorize the search content entered by the user to obtain a vocabulary segment with uniform type, thereby improving the efficiency of subsequent content matching.
[0079] Step S30: Send the target word segment to the local server, whereby the local server performs content matching on the target word segment and sorts the matched content.
[0080] It should be noted that content matching may include song title matching, song singer name matching, and lyrics matching, in order to extract song data or singer name data that completely matches or contains the target word groups mentioned above.
[0081] Understandably, after extracting the aforementioned song data or singer name data, it is possible to sort the data according to the search popularity within a preset time period, such as the search popularity within a month, and then sort them according to the search popularity, with the more popular data appearing first.
[0082] It should be noted that if the extracted data includes both song title data and singer name data, after being sorted by search popularity as described above, the data will be displayed in an alternating manner, such as song-singer-song-singer.
[0083] Understandably, after performing the above content matching and sorting on the target word groups, the local server can generate a content sorting result containing the above singer's name or song content.
[0084] It should be noted that if no song data or singer name data related to the above target word group is found on the local server, a sorting result of the failed match will be generated to prompt the user that the match failed.
[0085] Step S40: Obtain the content sorting results from the local server and display the content sorting results in a drop-down list format.
[0086] It should be noted that the content sorting results can be the sorted song data or singer name data that have been successfully matched on the local server.
[0087] In the specific implementation, a preset number of song data and singer name data can be set for the content sorting results. That is, if the number of singer name data and song data in the content sorting results exceeds the preset number, it will be truncated to display the preset number of song data or singer name data, so as to avoid reducing the user's viewing experience due to the excessive number of songs or singer names.
[0088] This embodiment obtains the user's search input and determines whether it is the user's first input. If it is, the search content is segmented into words, and the resulting words are categorized to obtain target word groups. These target word groups are sent to a local server, which performs content matching and sorts the matched content. The sorted results are then retrieved from the local server and displayed as dropdown suggestions. Because this embodiment first segments and categorizes the search content, then the local server performs content matching and sorting on the target word groups obtained from the segmentation and categorization, and finally displays the sorted results as dropdown suggestions, it avoids the overly generalized matching of existing recommendation methods, effectively improving the user's search efficiency.
[0089] refer to Figure 3 , Figure 3 This is a flowchart illustrating the second embodiment of the method for demonstrating the content of this invention.
[0090] Based on the first embodiment described above, in this embodiment, step S20 includes:
[0091] Step S201: If this is the user's first input, determine whether the word type of the search content matches the preset word type.
[0092] It should be noted that during the process of word segmentation and classification of search content, due to the large number of vocabulary types in the search content, it is impossible to accurately obtain word groups that are convenient for subsequent content matching. Therefore, this embodiment is proposed to improve the accuracy of word segmentation and classification, obtain word groups that are convenient for subsequent content matching, and thus improve the efficiency of content matching.
[0093] Understandably, the preset vocabulary type can be a pre-set type used to determine whether word segmentation can be performed, and can be set according to the frequency of the search content.
[0094] In practice, when the user does not generate input for the search content, the display device can compare the word type of the search content with the preset word type to determine whether the search content can be segmented into words.
[0095] It should be understood that if the lexical type of the above search content does not conform to the preset lexical type, word segmentation cannot be performed, and subsequent content matching cannot be carried out. At this time, a prompt message indicating an input error can be displayed to the user. For example, the preset lexical type is "ZJlun", and the search content is "11111". The lexical type of this search content does not conform to the above preset lexical type. At this time, word segmentation cannot be performed. In this case, the search content can be directly used for subsequent content matching. If a corresponding result is matched, the result is returned, and the search content is used as the preset vocabulary. If no corresponding result is matched, a prompt message indicating a matching failure, such as "No relevant results were retrieved", is displayed to the user.
[0096] It should be noted that when no corresponding result is matched, an information feedback interface can be displayed to the user, and the user can feedback their demands through this information feedback interface, so that technicians can make corresponding adjustments.
[0097] Step S202: If it conforms to the preset lexical type, select a splitting strategy corresponding to the lexical type of the search content.
[0098] It should be noted that the splitting strategy can be a strategy corresponding to the above preset lexical type and used for splitting words. That is, one lexical type corresponds to one splitting strategy, so that the search content that conforms to the above lexical type can be split.
[0099] In specific implementation, when the lexical type of the above search content conforms to the preset lexical type, it indicates that the search content can be split. At this time, the corresponding splitting strategy can be selected according to the lexical type of the search content. For example, when the content input by the user is "zhoujielun" and conforms to the above preset lexical type, the corresponding splitting strategy is to split the search content "zhoujielun" into five word segments: "zhou", "jie", "lun", "zhoujie", "jielun", and "zhoujielun"; when the content input by the user is "周jielun" and conforms to the above preset lexical type, the corresponding splitting strategy is to split the search content "周jielun" into four word segments: "周", "jie", "lun", "jielun"; when the content input by the user is "ZJlun" and conforms to the above preset lexical type, the corresponding splitting strategy is to split the search content "ZJlun" into three word segments: "ZJ", "lun", "ZJlun".
[0100] It should be understood that the above examples are for easy understanding, but do not limit this solution. In specific applications, more preset lexical types and corresponding splitting strategies can be set according to requirements.
[0101] Step S203: Segment the search content according to the segmentation strategy, and classify the words obtained from the segmentation to obtain the target word group.
[0102] In practical implementation, the display device can split the search content according to the above splitting strategy, that is, word segmentation, to obtain each segmented word. Then, each segmented word is classified by type to obtain target word groups that are convenient for subsequent content matching, thereby improving the efficiency of content matching.
[0103] Furthermore, to improve the efficiency of classifying the words obtained from word segmentation, in this embodiment, the step of classifying the words obtained from word segmentation to obtain the target word group includes:
[0104] Step S2031: Based on the preset segmentation type, segment each word obtained from word segmentation into the same type.
[0105] It should be noted that the preset segmentation type can be a pre-set type used for vocabulary segmentation. It can be set according to the frequency of vocabulary usage. This type can include pinyin initial letter type, full pinyin type, Chinese type, and English type, etc.
[0106] In a specific implementation, the display device can segment the words obtained from the above splitting according to the same type based on the preset segmentation type. For example, words belonging to the first letter of pinyin are grouped into one category, words belonging to the full pinyin type are grouped into another category, words belonging to the Chinese type are grouped into another category, and words belonging to the English type are grouped into another category, etc.
[0107] Step S2032: Combine the words obtained from each segment to obtain the target word group.
[0108] In practice, after obtaining the words in each segment through the above segmentation, the display device combines them together and groups the words into a single word segment group, which is the target word segment group.
[0109] It should be understood that the above-mentioned preset segmentation types can quickly classify and segment words according to the same type, effectively improving the efficiency of obtaining target word groups.
[0110] Furthermore, to improve the efficiency of displaying duplicate search results, in this embodiment, after step S30, the following step is also included:
[0111] Step S31: Establish a mapping relationship between the search content and the target word group.
[0112] In practical implementation, after the display device obtains the content sorting results from the local server, it indicates that the above search content can obtain the content sorting results, that is, it can be displayed in the form of drop-down keywords. At this time, a mapping relationship between the above search content and the above target word group can be established, so that when the user enters the same search content again, the target word group corresponding to the search content can be obtained, without having to perform the above word segmentation and classification operations again. This effectively improves the content display efficiency for repeated search content and also improves the user experience.
[0113] Step S32: Store the mapping relationship in the local server.
[0114] In a practical implementation, the display device can create a word segmentation cache on the aforementioned local server and store the established mapping relationship in the local cache to improve the efficiency of querying the mapping relationship.
[0115] refer to Figure 4 , Figure 4 This is a flowchart illustrating the third embodiment of the method for demonstrating the content of this invention.
[0116] Based on the above embodiments, in this embodiment, after step S102', the method further includes:
[0117] Step S201': If this is not the user's first input, then obtain the word segmentation group that matches the search content from the local server.
[0118] It should be noted that when the search content is not entered by the user for the first time, the word segmentation and classification operations will be repeated to obtain the target word group, which increases the time cost. Therefore, this embodiment is proposed to avoid repeated processing, reduce time costs, and improve the efficiency of content display.
[0119] In the specific implementation, if the above search content is not the first time entered by the user, it means that the target word group corresponding to the search content has been obtained at this time. That is, there is a mapping relationship between the search content and the target word group. The word group under the mapping relationship can be obtained through the mapping relationship corresponding to the search content to reduce repeated operations.
[0120] Step S202': Use the matched word segmentation group as the target word segmentation group.
[0121] In practical implementation, the display device can use the word segmentation group under the above mapping relationship as the target word segmentation group corresponding to the search content input this time, so as to reduce repetitive operations and improve the efficiency of content display.
[0122] Furthermore, to achieve the above objectives, embodiments of the present invention provide a content display method, which is applied to a local server, as described above. Figure 5, Figure 5 This is a flowchart illustrating the first embodiment of the content display method of the present invention applied to a local server.
[0123] In this embodiment, the content display method includes the following steps:
[0124] Step S10': Receive the target word segmentation group input from the target terminal.
[0125] It should be noted that the execution subject of the method in this embodiment can be a computing service device applied to a local server, which has data processing, network communication, and program execution functions, or it can be other electronic devices that implement the same or similar functions. The following description uses a content display device (hereinafter referred to as the display device) to illustrate this embodiment and the subsequent embodiments.
[0126] It should be noted that the target terminal can be a terminal where the user inputs search content, such as a karaoke machine, music player, or video player.
[0127] It is understandable that the target word segment can be the word segment obtained after segmenting and classifying the search content input by the user on the aforementioned target terminal.
[0128] In practice, the display device located on the local server can communicate with the target terminal via a local area network to receive the target word segmentation input by the target terminal. This allows for content display without relying on the Internet, effectively improving the efficiency of content display.
[0129] Step S20': Perform content matching on the target word group using a preset music library, and extract the successfully matched music library content. The preset music library includes song name data, singer name data, and lyrics data.
[0130] In a specific implementation, the display device can perform content matching on the target word segmentation group by using song name data, singer name data, and lyrics data from a preset music library. When the target word segmentation group is matched or the song name data, singer name data, or lyrics data that completely contain the target word segmentation group are matched, the corresponding song name data or singer name data is extracted. The extracted song name data or singer name data is the successfully matched music library content.
[0131] It should be understood that when the matched data is lyrics, directly extracting the lyrics data would be lengthy and not conducive to user viewing. Therefore, it is necessary to extract the song title data or singer's name data corresponding to the lyrics to improve the user experience.
[0132] It should be noted that if no relevant music library content is found, a matching failure message will be sent to the target terminal to improve the matching experience for users using the target terminal.
[0133] Step S30': Sort the successfully matched music library content based on the popularity of on-demand playback to obtain the content sorting result.
[0134] It should be noted that the content sorting results can be a preset number of song title data, a preset number of singer name data, or a preset number of alternating song title data and singer name data.
[0135] Understandably, the above preset quantities can be set by technical personnel according to their needs, such as a maximum of 10 song titles, a maximum of 4 singer names, and a maximum of 15 song titles and singer names in total, in order to avoid an excessive number of songs or singer names that would negatively impact the user experience.
[0136] In practice, the display device can sort the search popularity within a preset time period, such as within a month, and sort them according to the search popularity, with higher search popularity appearing first. If the matched music library content contains both song titles and singer names, it can be displayed in an alternating manner, such as 2 song titles - 1 singer name - 2 song titles - 1 singer name - 2 song titles - 1 singer name.
[0137] Step S40': Send the sorting results of the content to the target terminal for display.
[0138] In practice, the display device can send the sorting results of the above content to the target terminal via a local area network, so that the target terminal can display the results to the user in a drop-down list format.
[0139] This embodiment first receives the target word segmentation group input by the target terminal; then, it performs content matching on the target word segmentation group using a preset music library and extracts the successfully matched music library content. The preset music library includes song title data, singer name data, and lyrics data; then, it sorts the successfully matched music library content based on the popularity of on-demand playback, obtaining the content sorting result; finally, it sends the content sorting result to the target terminal for display. Since this embodiment performs content matching on the target word segmentation group using song title data, singer name data, and lyrics data on a local server, it can more accurately match the content that the user wants to search for, improving the user experience.
[0140] Reference Figure 6 , Figure 6 This is a structural block diagram of the first embodiment of the device for illustrating the content of this invention.
[0141] like Figure 6 As shown, the content display device proposed in this embodiment of the invention includes:
[0142] The search content judgment module 501 is used to obtain the search content input by the user and determine whether the search content is the first time the user has entered it.
[0143] The word segmentation and classification module 502 is used to segment the search content into words if it is the user's first input, and to classify the words obtained by word segmentation to obtain the target word group.
[0144] The target word segmentation module 503 is used to send the target word segmentation to a local server, whereby the local server performs content matching on the target word segmentation and sorts the matched content.
[0145] The dropdown keyword display module 504 is used to obtain the content sorting result from the local server and display the content sorting result as dropdown keywords to the user.
[0146] This embodiment obtains the user's search input and determines whether it is the user's first input. If it is, the search content is segmented into words, and the resulting words are categorized to obtain target word groups. These target word groups are sent to a local server, which performs content matching and sorts the matched content. The sorted results are then retrieved from the local server and displayed as dropdown suggestions. Because this embodiment first segments and categorizes the search content, then the local server performs content matching and sorting on the target word groups obtained from the segmentation and categorization, and finally displays the sorted results as dropdown suggestions, it avoids the overly generalized matching of existing recommendation methods, effectively improving the user's search efficiency.
[0147] Reference Figure 7 , Figure 7 This is a structural block diagram of the first embodiment of the content display device of the present invention applied to a local server.
[0148] like Figure 7 As shown, the content display device proposed in this embodiment of the invention includes:
[0149] The word segment receiving module 501' is used to receive the target word segment input from the target terminal;
[0150] The content matching module 502' is used to perform content matching on the target word group through a preset music library and extract the successfully matched music library content. The preset music library includes song name data, singer name data and lyrics data.
[0151] The content sorting module 503' is used to sort the successfully matched music library content based on the popularity of on-demand playback, and obtain the content sorting result;
[0152] The result sending module 504' is used to send the content sorting result to the target terminal for display.
[0153] This embodiment first receives the target word segmentation group input by the target terminal; then, it performs content matching on the target word segmentation group using a preset music library and extracts the successfully matched music library content. The preset music library includes song title data, singer name data, and lyrics data; then, it sorts the successfully matched music library content based on the popularity of on-demand playback, obtaining the content sorting result; finally, it sends the content sorting result to the target terminal for display. Since this embodiment performs content matching on the target word segmentation group using song title data, singer name data, and lyrics data on a local server, it can more accurately match the content that the user wants to search for, improving the user experience.
[0154] Other embodiments or specific implementations of the present invention's content display device can be found in the above-described method embodiments, and will not be repeated here.
[0155] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0156] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0158] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A content presentation method, characterized by, The content display method comprises the following steps: obtaining search content input by a user, and determining whether the search content is input by the user for the first time; if the search content is input by the user for the first time, performing word segmentation on the search content, classifying each word obtained by the word segmentation, and obtaining a target word segmentation group; sending the target word segmentation group to a local server, the local server being configured to perform content matching on the target word segmentation group, and sorting content obtained by the matching; obtaining a content sorting result from the local server, and displaying the content sorting result in a drop-down word manner; if the names of singers and song data in the content sorting result exceed a preset number, the names of singers and song data are truncated to display a preset number of song data or singer names; the step of obtaining the target word segmentation group if the search content is input by the user for the first time, comprises: if the search content is input by the user for the first time, determining whether the word type of the search content conforms to a preset word type; if the word type of the search content conforms to the preset word type, selecting a splitting strategy corresponding to the word type of the search content; performing word segmentation on the search content according to the splitting strategy, and classifying each word obtained by the word segmentation to obtain a target word segmentation group; the step of classifying each word obtained by the word segmentation to obtain a target word segmentation group, comprises: segmenting each word obtained by the word segmentation into the same type based on a preset segmentation type; combining each segmented word to obtain a target word segmentation group.
2. The content presentation method of claim 1, wherein, the step of obtaining search content input by a user, and determining whether the search content is input by the user for the first time, comprises: obtaining search content input by a user, and querying whether a word segmentation group matching the search content exists in a local server; if a word segmentation group matching the search content does not exist, determining that the search content is input by the user for the first time; if a word segmentation group matching the search content exists, determining that the search content is not input by the user for the first time.
3. The content presentation method of claim 2, wherein, after the step of sending the target word segmentation group to a local server, the local server being configured to perform content matching on the target word segmentation group, and sorting content obtained by the matching, further comprising: establishing a mapping relationship between the search content and the target word segmentation group; storing the mapping relationship in the local server.
4. The content presentation method according to any one of claims 2 to 3, wherein, after the step of determining that the search content is not input by the user for the first time if a word segmentation group matching the search content exists, further comprising: if the search content is not input by the user for the first time, obtaining a word segmentation group matching the search content in the local server; taking the matching word segmentation group as a target word segmentation group.
5. A content presentation device, characterized by, the device comprises: a search content determination module configured to obtain search content input by a user, and determine whether the search content is input by the user for the first time; The word segmentation and classification module is configured to, if the search content is input for the first time, segment the search content, classify each word obtained by the segmentation, and obtain a target word segmentation group. In the case where the search content is input for the first time, the word segmentation and classification module determines whether the word type of the search content conforms to a preset word type. In the case where the word type of the search content conforms to the preset word type, the word segmentation and classification module selects a splitting strategy corresponding to the word type of the search content, segments the search content, classifies each word obtained by the segmentation based on a preset segmentation type, combines each segmented word, and obtains a target word segmentation group. The target word segmentation group module is configured to send the target word segmentation group to a local server. The local server is configured to perform content matching on the target word segmentation group, and sort the matched content. The drop-down word display module is configured to obtain a content sorting result from the local server, and display the content sorting result as a drop-down word to the user. In the case where the number of singer names and song data in the content sorting result exceeds a preset number, the drop-down word display module is configured to cut off the content sorting result to display a preset number of song data or singer names.
6. A content presentation device, characterized by, The device comprises a memory, a processor, and a content display program stored in the memory and executable on the processor. The content display program is configured to implement the steps of the content display method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Music search method and apparatus
CN106407286A
Associational word recommendation method and apparatus, electronic device, and storage medium
CN108446316A
Associated word determination method and device, storage medium and electronic equipment
CN112083812A
Search word recommendation method, device and equipment and computer readable storage medium
CN114036371A