CN110807124A - Song searching method, device, equipment and computer readable storage medium - Google Patents

Song searching method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110807124A
CN110807124A CN201911073121.8A CN201911073121A CN110807124A CN 110807124 A CN110807124 A CN 110807124A CN 201911073121 A CN201911073121 A CN 201911073121A CN 110807124 A CN110807124 A CN 110807124A
Authority
CN
China
Prior art keywords
song
words
search
group
groups
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911073121.8A
Other languages
Chinese (zh)
Other versions
CN110807124B (en
Inventor
陈金源
陈琳琳
邓一雷
吴娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911073121.8A priority Critical patent/CN110807124B/en
Priority claimed from CN201911073121.8A external-priority patent/CN110807124B/en
Publication of CN110807124A publication Critical patent/CN110807124A/en
Application granted granted Critical
Publication of CN110807124B publication Critical patent/CN110807124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a song searching method, a song searching device, song searching equipment and a computer readable storage medium, and belongs to the technical field of internet. The method comprises the following steps: when receiving search information sent by a terminal, performing word segmentation processing on the search information to obtain a group of search words; matching a group of search words with each group of song words in a plurality of groups of song words, wherein the plurality of groups of song words correspond to a plurality of songs one by one, and each group of song words is obtained by performing word segmentation processing on song information of the corresponding song; generating a search result according to the matching result of the group of search words and the plurality of groups of song words; and sending the search result to the terminal. According to the method and the device, the search information is firstly split into a group of search words, the song information of each song is split into a group of song words in advance, and then the search words are matched with the song words to realize song search, so that even if the search information is disordered, the related songs can be searched, and the identification rate and the accuracy rate of song search can be greatly improved.

Description

Song searching method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a song search method, apparatus, device, and computer-readable storage medium.
Background
The songs can help people to relieve fatigue and relax mood, and people can use the terminal to search favorite songs and play the favorite songs. Currently, a user may input an image in a terminal, and the terminal may extract characters from the image and transmit the characters to a server. The server may search for a song whose name of the song, the name of the singer, or the name of the album is the same as the character from the song library, and return the searched song to the terminal.
However, the characters extracted from the image by the terminal are often disarrayed. For example, if the layout of characters in an image is portrait and the terminal extracts the characters in a landscape orientation, the characters extracted by the terminal from the image will be confusing. In this case, the server directly searches for the same name of a song, singer's name, or album name as the character, which results in a low recognition rate and accuracy of the song search.
Disclosure of Invention
The embodiment of the application provides a song searching method, a song searching device, song searching equipment and a computer readable storage medium, and can solve the problem that the recognition rate and the accuracy rate of song searching in the related technology are low. The technical scheme is as follows:
in one aspect, a song searching method is provided, and the method includes:
when receiving search information sent by a terminal, performing word segmentation processing on the search information to obtain a group of search words;
matching the group of search words with each group of song words in a plurality of groups of song words, wherein the plurality of groups of song words correspond to a plurality of songs one by one, and each group of song words is obtained by performing word segmentation processing on song information of the corresponding song;
generating a search result according to the matching result of the group of search words and the plurality of groups of song words;
and sending the search result to the terminal.
Optionally, the search information is characters extracted from an input image by the terminal.
Optionally, the matching the group of search terms with each group of song words in the plurality of groups of song words includes:
for any group of song words in the plurality of groups of song words, determining the number of the same words existing in the group of song words and the group of search words;
and dividing the number of the same words by the number of the group of search words to obtain the matching degree of the group of song words and the group of search words.
Optionally, the generating a search result according to a matching result of the group of search terms and the plurality of groups of song terms includes:
when the matching degrees of the group of search words and the plurality of groups of song words are both 0, generating search failure prompt information as a search result;
when the matching degree of the group of search words and the plurality of groups of song words is not uniform to be 0, at least one group of song words of the plurality of groups of song words, the matching degree of which is not 0, with the group of search words is obtained, and song resources of songs corresponding to each group of song words of the at least one group of song words are used as search results.
Optionally, the taking the song resource of the song corresponding to each group of song words in the at least one group of song words as a search result includes:
acquiring a song identifier corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song identifiers as a target song identifier; acquiring song resources corresponding to each target song identification in at least one target song identification from the corresponding relation between the song identifications and the song resources as a search result; or
And acquiring the song resources corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song resources as a search result.
In one aspect, a song search apparatus is provided, the apparatus including:
the word segmentation module is used for carrying out word segmentation processing on the search information to obtain a group of search words when the search information sent by the terminal is received;
the matching module is used for matching the group of search words with each group of song words in a plurality of groups of song words, the plurality of groups of song words correspond to a plurality of songs one by one, and each group of song words is obtained by performing word segmentation processing on song information of the corresponding song;
the generating module is used for generating a search result according to the matching result of the group of search words and the plurality of groups of song words;
and the sending module is used for sending the search result to the terminal.
Optionally, the search information is characters extracted from an input image by the terminal.
Optionally, the matching module is configured to:
for any group of song words in the plurality of groups of song words, determining the number of the same words existing in the group of song words and the group of search words;
and dividing the number of the same words by the number of the group of search words to obtain the matching degree of the group of song words and the group of search words.
Optionally, the generating module includes:
the first generating unit is used for generating search failure prompt information as a search result when the matching degrees of the group of search words and the plurality of groups of song words are both 0;
and the second generating unit is used for acquiring at least one group of song words of the plurality of groups of song words, the matching degree of which is not 0, when the matching degree of the group of search words and the plurality of groups of song words is not uniform to be 0, and taking the song resources of the songs corresponding to each group of song words of the at least one group of song words as the search results.
Optionally, the second generating unit is configured to:
acquiring a song identifier corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song identifiers as a target song identifier; acquiring song resources corresponding to each target song identification in at least one target song identification from the corresponding relation between the song identifications and the song resources as a search result; or
And acquiring the song resources corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song resources as a search result.
In one aspect, a computer device is provided, and the computer device includes a processor and a memory, the memory is used for storing a computer program, and the processor is used for loading and executing the computer program stored in the memory to realize the steps of the song search method.
In one aspect, a computer-readable storage medium is provided, which has instructions stored thereon, which when executed by a processor implement the steps of the song search method described above.
In one aspect, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform the steps of the song search method described above.
The technical scheme provided by the embodiment of the application can at least bring the following beneficial effects:
when the server receives the search information sent by the terminal, word segmentation processing can be carried out on the search information to obtain a group of search words. The server may then match the set of search terms with each of the plurality of sets of song terms, generate a search result based on the matching result, and send the search result to the terminal. The server divides the search information into a group of search words, divides the song information of each song into a group of song words in advance, and then matches the search words with the song words to realize song search, so that even if the search information is disordered, the related songs can be ensured to be searched, and the identification rate and the accuracy rate of song search can be greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a song searching method provided in an embodiment of the present application;
FIG. 3 is a flow chart of another song searching method provided by the embodiment of the application;
fig. 4 is a schematic structural diagram of a song search apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference to "a plurality" in this application means two or more. In the description of the present application, "/" indicates an OR meaning, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, for the convenience of clearly describing the technical solutions of the present application, the terms "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Before explaining the embodiments of the present application in detail, an implementation environment related to the embodiments of the present application will be described.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes: a terminal 101 and a server 102. The terminal 101 and the server 102 may communicate through a wired network or a wireless network.
The terminal 101 may be any electronic product capable of performing human-Computer interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction, or handwriting equipment, for example, the terminal 101 may be a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a palmtop Computer, a tablet Computer, a smart car, a smart television, a smart sound box, and the like. The server 102 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.
Specifically, the terminal 101 may acquire search information input by the user, and the search information may be characters directly input by the user in the search box or characters extracted from an image input by the user. After acquiring the search information, the terminal 101 may send the search information to the server 102 to perform a song search. When the server 102 receives the search information transmitted by the terminal 101, it may search for a corresponding song through a song search method provided in the embodiment of fig. 2 below.
Fig. 2 is a flowchart of a song search method provided in an embodiment of the present application, and the method is applied to a server. Referring to fig. 2, the method includes:
step 201: when receiving search information sent by a terminal, performing word segmentation processing on the search information to obtain a group of search words.
Step 202: and matching a group of search words with each group of song words in a plurality of groups of song words, wherein the plurality of groups of song words correspond to a plurality of songs one by one, and each group of song words is obtained by performing word segmentation processing on song information of the corresponding song.
Step 203: and generating a search result according to the matching result of the group of search words and the plurality of groups of song words, and sending the search result to the terminal.
In the embodiment of the application, when the server receives the search information sent by the terminal, the word segmentation processing can be performed on the search information to obtain a group of search words. The server may then match the set of search terms with each of the plurality of sets of song terms, generate a search result based on the matching result, and send the search result to the terminal. The server divides the search information into a group of search words, divides the song information of each song into a group of song words in advance, and then matches the search words with the song words to realize song search, so that even if the search information is disordered, the related songs can be ensured to be searched, and the identification rate and the accuracy rate of song search can be greatly improved.
Alternatively, the search information is characters extracted from the input image by the terminal.
Optionally, matching a group of search terms with each group of song words in the plurality of groups of song words includes:
for any group of song words in the plurality of groups of song words, determining the number of the same words existing in the group of song words and the group of search words;
and dividing the number of the same words by the number of a group of search words to obtain the matching degree of a group of song words and a group of search words.
Optionally, generating a search result according to a matching result of the group of search words and the plurality of groups of song words includes:
when the matching degree of a group of search words and a plurality of groups of song words is 0, generating search failure prompt information as a search result;
when the matching degree of a group of search words and a plurality of groups of song words is not uniform to be 0, at least one group of song words of the plurality of groups of song words, the matching degree of which is not 0, with the group of search words is obtained, and song resources of songs corresponding to each group of song words in the at least one group of song words are used as search results.
Optionally, taking a song resource of a song corresponding to each group of song words in the at least one group of song words as a search result, including:
acquiring a song identifier corresponding to each group of song words in at least one group of song words as a target song identifier from the corresponding relation between the song words and the song identifiers; acquiring song resources corresponding to each target song identification in at least one target song identification from the corresponding relation between the song identifications and the song resources as a search result; or
And acquiring the song resources corresponding to each group of song words in at least one group of song words from the corresponding relation between the song words and the song resources as a search result.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present application, and the present application embodiment is not described in detail again.
Fig. 3 is a flowchart of a song search method according to an embodiment of the present application. Referring to fig. 3, the method includes:
step 301: the terminal acquires the search information.
It should be noted that the search information is information for searching for songs, and the search information may be generally input by the user.
In one possible case, the terminal may directly use the character entered in the search box by the user as the search information. In another possible case, the terminal may perform character extraction on an image input by the user, and use the extracted characters from the image as search information. Of course, the terminal may also obtain the search information in other manners, which is not limited in this embodiment of the application.
It should be noted that the operation of extracting characters from an image input by a user is similar to the operation of extracting characters from an image in the related art, and this is not described in detail in the embodiments of the present application. For example, the terminal may perform Character extraction on an image input by the user using an OCR (Optical Character Recognition) technique.
Step 302: the terminal transmits the search information to the server.
After the terminal acquires the search information, the terminal can send the search information to the server so as to search song resources of corresponding songs from the server.
It should be noted that the song resource may include song information, song content, and the like. The song information may include characters, for example, the song information may be at least one of a name of a song, a name of a singer, or a name of an album. The song content may include specific content related to the playing of the song, for example, the song content may be at least one of album art, lyrics, audio files, or video files.
Step 303: and when the server receives the search information sent by the terminal, performing word segmentation processing on the search information to obtain a group of search words.
It should be noted that the word segmentation processing is performed on the search information, that is, the search information is segmented into individual words, and each word obtained by the segmentation can be used as a search word, so that a group of search words can be obtained. For example, if the search information is "you see a gray alien" and the search information is subjected to word segmentation, a group of search words "you", "see", "gray" and "alien" can be obtained.
In addition, the operation of performing word segmentation processing on the search information is similar to the operation of performing word segmentation processing on certain information in the related art, and this is not described in detail in the embodiments of the present application. For example, the server may use a dictionary-based method, a statistical-based method, or a rule-based method to perform word segmentation processing on the search information.
Step 304: the server matches the set of search terms to each of a plurality of sets of song terms.
It should be noted that the multiple groups of song words correspond to multiple songs one by one, and each group of song words is obtained by performing word segmentation processing on song information of the corresponding song. The word segmentation processing is performed on the song information of a song, namely, the song information of the song is segmented into individual words, each word obtained through segmentation can be used as a song word, and therefore a group of song words corresponding to the song can be obtained.
That is, before step 304, the server may perform word segmentation on song information of any one of the songs in the song library to obtain a group of song words corresponding to the song. For example, the song information includes a name of a song, a name of a singer, and a name of an album, and it is assumed that song information of one song in the song library is: still (song name), florist band (singer name), and happy side (album name), the song information of the song can be segmented to obtain a group of song words "still", "florist", "band", "happy" and "side" corresponding to the song.
In addition, in order to facilitate song search, in a possible manner, the server may store all the obtained groups of song words in the semantic word library, and further, may store each group of song words and the song identifiers of the corresponding songs correspondingly, so as to obtain a corresponding relationship between the song words and the song identifiers, where the corresponding relationship may be as shown in table 1 below. In addition, the server may store the song resource of each song in the plurality of songs in the song library, and further, may store the song identifier of each song and the song resource correspondingly, so that a corresponding relationship between the song identifier and the song resource may be obtained, which may be as shown in table 2 below. The song identifier of the song is used to identify the song, and may be a song number, for example.
In another possible manner, the server may store all the obtained groups of song words in a song library, and further, may store each group of song words and song resources of the corresponding song correspondingly, so as to obtain a corresponding relationship between the song words and the song resources, where the corresponding relationship may be as shown in table 3 below.
TABLE 1
Song word Song identification
Rest, flower, band, happy, next door Song identification 1
Seeing, grey and relieving the drugs Song identification 2
…… ……
It should be noted that, in the embodiment of the present application, the correspondence between the song words and the song identifiers is described only by taking the above table 1 as an example, and the above table 1 does not limit the embodiment of the present application.
TABLE 2
Song identification Song resources
Song identification 1 Song resource 1
Song identification 2 Song resource 2
…… ……
It should be noted that, in the embodiment of the present application, the above table 2 is only used as an example to describe the correspondence between the song identifier and the song resource, and the above table 2 does not limit the embodiment of the present application.
TABLE 3
Song word Song resources
Rest, flower, band, happy, next door Song resource 1
Seeing, grey and relieving the drugs Song resource 2
…… ……
It should be noted that, in the embodiment of the present application, table 3 is only used as an example to describe the correspondence between the song words and the song resources, and table 3 does not limit the embodiment of the present application.
It should be noted that the process of matching the group of search terms with each of the plurality of groups of song terms by the server in step 304 is a process of obtaining a matching degree of the group of search terms with each of the plurality of groups of song terms, so as to determine which songs of the plurality of songs the group of search terms match with based on the matching degree.
Specifically, the operation of the server for matching the group of search terms with each group of song terms in the plurality of groups of song terms may be: for any group of song words in the plurality of groups of song words, determining the number of the same words existing in the group of song words and the group of search words; and dividing the number of the same words by the number of the group of search words to obtain the matching degree of the group of song words and the group of search words.
It should be noted that the matching degree of the group of song words and the group of search words may indicate how many search words in the group of search words are included in the group of song words.
For example, if the group of song words is "see", "gray", "drug-solving", and the group of search words is "you", "see", "gray", "alien", then the same words in the group of song words as the group of search words may be determined to be "see", "gray", i.e., the number of the same words in the group of song words as the group of search words may be determined to be 2. Then, dividing the number 2 of the same word by the number 4 of the group of search words, the matching degree of the group of song words and the group of search words is 50%.
Step 305: the server generates a search result according to the matching result of the group of search words and the plurality of groups of song words.
After the server matches the group of search terms with each group of song words in the plurality of groups of song words, a matching result can be obtained, and the matching result can include the matching degree of the group of search terms and each group of song words in the plurality of groups of song words.
Specifically, the server may generate a search failure prompt message as the search result when the matching degrees of the group of search terms and the groups of song terms are both 0. The server may obtain at least one group of song words of the plurality of groups of song words, of which the matching degree with the group of search words is not 0, when the matching degree between the group of search words and the plurality of groups of song words is not uniform to be 0, and then use song resources of songs corresponding to each group of song words of the at least one group of song words as search results.
It should be noted that the search information sent by the terminal to the server is often messy. For example, when the user cannot remember the specific information of the song, the characters directly input in the search box of the terminal by the user will be confused, and the search information sent to the server by the terminal is also confused. For another example, when the character layout in the image input by the user in the terminal is vertical and the terminal extracts the characters in the horizontal direction, the characters extracted from the image by the terminal will be disordered, and the search information sent by the terminal to the server will be disordered. In the embodiment of the application, the server does not directly search the name of a song, the name of a singer or the name of an album which is the same as the search information, but divides the search information into a group of search words, divides the song information of each song into a group of song words in advance, and then matches the search words with the song words to realize song search. Therefore, even if the search information is messy, the related songs can be searched, and the identification rate and the accuracy rate of song search can be greatly improved.
For example, a user inputs an image in a terminal, the image contains characters of a poem, and the poem contains words capable of forming a song name, a singer name or an album name, the terminal extracts the characters from the image as search information, and after the search information is sent to a server, the server can search for a song corresponding to the song name, the singer name or the album name, and the recognition rate and the accuracy rate of song search are both high.
The operation of the server using the song resource of the song corresponding to each group of song words in the at least one group of song words as the search result may be: acquiring a song identifier corresponding to each group of song words in the at least one group of song words as a target song identifier from the corresponding relationship between the song words and the song identifiers, and acquiring a song resource corresponding to each target song identifier in the at least one target song identifier as a search result from the corresponding relationship between the song identifiers and the song resources; or acquiring the song resources corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song resources as the search result.
It should be noted that, when the server uses the song resources of the songs corresponding to each group of song words in the at least one group of song words as the search results, the song resources of the at least one song corresponding to the at least one group of song words one by one may be sorted first, and then the song resources of the at least one song may be used as the search results. After the song resources of the at least one song are sequenced, the sequence of the song resources of the at least one song is the sequence of the song resources of the at least one song displayed by the subsequent terminal.
For example, the server may rank the song resources of the at least one song in one-to-one correspondence with the at least one group of song words in an order from high to low matching degrees of the group of search words and the at least one group of song words. Therefore, the follow-up terminal displays the song resources of the at least one song according to the sequence from high matching degree to low matching degree, so that the display accuracy of the song resources is improved, and a user can browse the required songs more quickly.
Step 306: the server transmits the search result to the terminal.
It should be noted that, after the server sends the search result to the terminal, the terminal can receive and display the search result. For example, when the search result is a search failure prompt message, the terminal may directly display the search failure prompt message. Alternatively, when the search information is a song resource of at least one song, the terminal may display the song resources of the at least one song in an order of the song resources of the at least one song.
In the embodiment of the application, when the server receives the search information sent by the terminal, the word segmentation processing can be performed on the search information to obtain a group of search words. The server may then match the set of search terms with each of the plurality of sets of song terms, generate a search result based on the matching result, and send the search result to the terminal. The server divides the search information into a group of search words, divides the song information of each song into a group of song words in advance, and then matches the search words with the song words to realize song search, so that even if the search information is disordered, the related songs can be ensured to be searched, and the identification rate and the accuracy rate of song search can be greatly improved.
Fig. 4 is a schematic structural diagram of a song search apparatus according to an embodiment of the present application. Referring to fig. 4, the apparatus includes: a word segmentation module 401, a matching module 402, a generation module 403 and a sending module 404.
The word segmentation module 401 is configured to, when receiving search information sent by a terminal, perform word segmentation processing on the search information to obtain a group of search words;
a matching module 402, configured to match a group of search terms with each group of song words in multiple groups of song words, where the multiple groups of song words correspond to multiple songs one to one, and each group of song words is obtained by performing word segmentation processing on song information of a corresponding song;
a generating module 403, configured to generate a search result according to a matching result between a group of search terms and a plurality of groups of song terms;
a sending module 404, configured to send the search result to the terminal.
Alternatively, the search information is characters extracted from the input image by the terminal.
Optionally, the matching module 402 is configured to:
for any group of song words in the plurality of groups of song words, determining the number of the same words existing in the group of song words and the group of search words;
and dividing the number of the same words by the number of a group of search words to obtain the matching degree of a group of song words and a group of search words.
Optionally, the generating module 403 includes:
the first generating unit is used for generating search failure prompt information as a search result when the matching degree of a group of search words and a plurality of groups of song words is 0;
and the second generation unit is used for acquiring at least one group of song words with the matching degree not being 0 in the plurality of groups of song words when the matching degree of the group of search words and the plurality of groups of song words is not uniform to be 0, and taking the song resources of the songs corresponding to each group of song words in the at least one group of song words as the search results.
Optionally, the second generating unit is configured to:
acquiring a song identifier corresponding to each group of song words in at least one group of song words as a target song identifier from the corresponding relation between the song words and the song identifiers; acquiring song resources corresponding to each target song identification in at least one target song identification from the corresponding relation between the song identifications and the song resources as a search result; or
And acquiring the song resources corresponding to each group of song words in at least one group of song words from the corresponding relation between the song words and the song resources as a search result.
In the embodiment of the application, when the server receives the search information sent by the terminal, the word segmentation processing can be performed on the search information to obtain a group of search words. The server may then match the set of search terms with each of the plurality of sets of song terms, generate a search result based on the matching result, and send the search result to the terminal. The server divides the search information into a group of search words, divides the song information of each song into a group of song words in advance, and then matches the search words with the song words to realize song search, so that even if the search information is disordered, the related songs can be ensured to be searched, and the identification rate and the accuracy rate of song search can be greatly improved.
It should be noted that: in the song searching apparatus provided in the above embodiment, only the division of the above functional modules is taken as an example for the case of searching songs, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above described functions. In addition, the song search apparatus and the song search method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 5, the computer device may be a server 500, and the server 500 may be a server in a background server cluster.
The server 500 includes a CPU (Central Processing Unit) 501, a system memory 504, and a system bus 505 that connects the system memory 504 and the Central Processing Unit 501. The system Memory 504 includes a RAM (Random Access Memory) 502 and a ROM (Read-Only Memory) 503. The server 500 also includes a basic I/O (Input/Output) system 506, which facilitates the transfer of information between devices within the computer, and a mass storage device 507 for storing an operating system 513, application programs 514, and other program modules 515.
The basic input/output system 506 includes a display 508 for displaying information and an input device 509, such as a mouse, keyboard, etc., for user input of information. Wherein a display 508 and an input device 509 are connected to the central processing unit 501 through an input/output controller 510 connected to the system bus 505. The basic input/output system 506 may also include an input/output controller 510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, an input/output controller 510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 507 is connected to the central processing unit 501 through a mass storage controller (not shown) connected to the system bus 505. The mass storage device 507 and its associated computer-readable media provide non-volatile storage for the server 500. That is, the mass storage device 507 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM (Compact disk-read-Only Memory) drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EPROM (Electrically Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, and CD-ROM, DVD (Digital versatile disk) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 504 and mass storage device 507 may be collectively referred to as memory.
According to various embodiments of the present application, server 500 may also operate as a remote computer connected to a network through a network, such as the Internet. That is, the server 500 may be connected to the network 512 through the network interface unit 511 connected to the system bus 505, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 511.
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU. The one or more programs contain instructions for performing the song search method provided by the embodiment of fig. 2.
In some embodiments, a computer-readable storage medium is also provided, in which a computer program is stored, which when executed by a processor implements the steps of the song search method provided in the embodiment of fig. 2 above. For example, the computer readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is noted that the computer-readable storage medium referred to in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps for implementing the above embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
In some embodiments, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the song search method provided in the embodiment of fig. 2 above.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. A song search method, the method comprising:
when receiving search information sent by a terminal, performing word segmentation processing on the search information to obtain a group of search words;
matching the group of search words with each group of song words in a plurality of groups of song words, wherein the plurality of groups of song words correspond to a plurality of songs one by one, and each group of song words is obtained by performing word segmentation processing on song information of the corresponding song;
generating a search result according to the matching result of the group of search words and the plurality of groups of song words;
and sending the search result to the terminal.
2. The method of claim 1, wherein the search information is characters extracted from an input image by the terminal.
3. The method of claim 1, wherein matching the set of search terms to each of a plurality of sets of song terms comprises:
for any group of song words in the plurality of groups of song words, determining the number of the same words existing in the group of song words and the group of search words;
and dividing the number of the same words by the number of the group of search words to obtain the matching degree of the group of song words and the group of search words.
4. The method of any of claims 1-3, wherein generating search results based on matching results of the set of search terms to the plurality of sets of song terms, comprises:
when the matching degrees of the group of search words and the plurality of groups of song words are both 0, generating search failure prompt information as a search result;
when the matching degree of the group of search words and the plurality of groups of song words is not uniform to be 0, at least one group of song words of the plurality of groups of song words, the matching degree of which is not 0, with the group of search words is obtained, and song resources of songs corresponding to each group of song words of the at least one group of song words are used as search results.
5. The method of claim 4, wherein using the song resources of the songs corresponding to each of the at least one group of song words as search results comprises:
acquiring a song identifier corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song identifiers as a target song identifier; acquiring song resources corresponding to each target song identification in at least one target song identification from the corresponding relation between the song identifications and the song resources as a search result; or
And acquiring the song resources corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song resources as a search result.
6. A song search apparatus, characterized in that the apparatus comprises:
the word segmentation module is used for carrying out word segmentation processing on the search information to obtain a group of search words when the search information sent by the terminal is received;
the matching module is used for matching the group of search words with each group of song words in a plurality of groups of song words, the plurality of groups of song words correspond to a plurality of songs one by one, and each group of song words is obtained by performing word segmentation processing on song information of the corresponding song;
the generating module is used for generating a search result according to the matching result of the group of search words and the plurality of groups of song words;
and the sending module is used for sending the search result to the terminal.
7. The apparatus of claim 6, wherein the search information is a character extracted from an input image by the terminal.
8. The apparatus of claim 6, wherein the matching module is to:
for any group of song words in the plurality of groups of song words, determining the number of the same words existing in the group of song words and the group of search words;
and dividing the number of the same words by the number of the group of search words to obtain the matching degree of the group of song words and the group of search words.
9. The apparatus of any of claims 6-8, wherein the generating module comprises:
the first generating unit is used for generating search failure prompt information as a search result when the matching degrees of the group of search words and the plurality of groups of song words are both 0;
and the second generating unit is used for acquiring at least one group of song words of the plurality of groups of song words, the matching degree of which is not 0, when the matching degree of the group of search words and the plurality of groups of song words is not uniform to be 0, and taking the song resources of the songs corresponding to each group of song words of the at least one group of song words as the search results.
10. The apparatus of claim 9, wherein the second generating unit is to:
acquiring a song identifier corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song identifiers as a target song identifier; acquiring song resources corresponding to each target song identification in at least one target song identification from the corresponding relation between the song identifications and the song resources as a search result; or
And acquiring the song resources corresponding to each group of song words in the at least one group of song words from the corresponding relation between the song words and the song resources as a search result.
11. A computer device, characterized in that the computer device comprises a processor and a memory for storing a computer program, the processor being adapted to load and execute the computer program stored on the memory to implement the steps of the method according to any of the claims 1-5.
12. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any one of claims 1-5.
CN201911073121.8A 2019-11-05 Song search method, apparatus, device and computer readable storage medium Active CN110807124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911073121.8A CN110807124B (en) 2019-11-05 Song search method, apparatus, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911073121.8A CN110807124B (en) 2019-11-05 Song search method, apparatus, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110807124A true CN110807124A (en) 2020-02-18
CN110807124B CN110807124B (en) 2024-05-24

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113658594A (en) * 2021-08-16 2021-11-16 北京百度网讯科技有限公司 Lyric recognition method, device, equipment, storage medium and product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324897A (en) * 2008-07-28 2008-12-17 北京搜狗科技发展有限公司 Method and apparatus for looking up lyric
CN102314464A (en) * 2010-07-07 2012-01-11 北京亮点时间科技有限公司 Lyrics searching method and lyrics searching engine
CN107239547A (en) * 2017-06-05 2017-10-10 北京智能管家科技有限公司 Voice error correction method, terminal and storage medium for ordering song by voice
WO2018121368A1 (en) * 2016-12-30 2018-07-05 阿里巴巴集团控股有限公司 Method for generating music to accompany lyrics and related apparatus
CN108268642A (en) * 2018-01-19 2018-07-10 腾讯音乐娱乐科技(深圳)有限公司 List of songs generation method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324897A (en) * 2008-07-28 2008-12-17 北京搜狗科技发展有限公司 Method and apparatus for looking up lyric
CN102314464A (en) * 2010-07-07 2012-01-11 北京亮点时间科技有限公司 Lyrics searching method and lyrics searching engine
WO2018121368A1 (en) * 2016-12-30 2018-07-05 阿里巴巴集团控股有限公司 Method for generating music to accompany lyrics and related apparatus
CN107239547A (en) * 2017-06-05 2017-10-10 北京智能管家科技有限公司 Voice error correction method, terminal and storage medium for ordering song by voice
CN108268642A (en) * 2018-01-19 2018-07-10 腾讯音乐娱乐科技(深圳)有限公司 List of songs generation method, device, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑亚斌 等: "中文歌词的统计特征及其检索应用", 中文信息学报, vol. 5, no. 05, 15 September 2007 (2007-09-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113658594A (en) * 2021-08-16 2021-11-16 北京百度网讯科技有限公司 Lyric recognition method, device, equipment, storage medium and product

Similar Documents

Publication Publication Date Title
US20160283575A1 (en) Internal Linking Co-Convergence Using Clustering With Hierarchy
US9411859B2 (en) External linking based on hierarchical level weightings
WO2022105005A1 (en) Smart classroom information exchange method, apparatus, and electronic device
CN110866491A (en) Target retrieval method, device, computer readable storage medium and computer equipment
CN112818224B (en) Information recommendation method and device, electronic equipment and readable storage medium
CN102567423B (en) Method and system for associated search of poetry
WO2022099868A1 (en) Method and apparatus for analyzing writing behavior feature of smart pen, and electronic device
CN114625918A (en) Video recommendation method, device, equipment, storage medium and program product
CN112825089A (en) Article recommendation method, article recommendation device, article recommendation equipment and storage medium
WO2022099872A1 (en) Smart pen character recognition method, apparatus, and electronic device
CN112487871B (en) Handwriting data processing method and device and electronic equipment
CN108345699B (en) Method, device and storage medium for acquiring multimedia data
CN111382262A (en) Method and apparatus for outputting information
CN111488450A (en) Method and device for generating keyword library and electronic equipment
CN110807124B (en) Song search method, apparatus, device and computer readable storage medium
CN110807124A (en) Song searching method, device, equipment and computer readable storage medium
CN102629208A (en) Method, device and equipment for determining system interface
WO2022105004A1 (en) Method and apparatus for electronizing written form, and electronic device
CN111597441B (en) Information processing method and device and electronic equipment
CN114239501A (en) Contract generation method, apparatus, device and medium
WO2022104998A1 (en) Handwriting content evaluation method and apparatus, and electronic device
CN113901244A (en) Label construction method and device for multimedia resource, electronic equipment and storage medium
CN111641690B (en) Session message processing method and device and electronic equipment
CN105991400B (en) Group searching method and device
CN113343069A (en) User information processing method, device, medium and electronic equipment

Legal Events

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