Disclosure of Invention
In order to solve the problem of low efficiency in determining a sight spot, embodiments of the present invention provide a method and an apparatus for sending a sight spot identifier. The technical scheme is as follows:
in a first aspect, a method for sending sight information is provided, where the method includes:
determining a song identifier of at least one song corresponding to the target terminal;
determining the scenery spot identifier of the target scenery spot corresponding to the target terminal according to the pre-stored corresponding relationship between the song identifier of each song and the scenery spot identifier and the song identifier of at least one song corresponding to the target terminal;
and sending the determined sight spot identification of the target sight spot to the target terminal.
Optionally, the method further comprises:
and determining the scenic spot identifier corresponding to each song according to the prestored song information of each song to obtain the corresponding relation between the song identifier and the scenic spot identifier.
Optionally, determining the scenic spot identifier corresponding to each song according to the pre-stored song information of each song, and obtaining a corresponding relationship between the song identifier and the scenic spot identifier, including:
acquiring song information of a preset information item of each pre-stored song;
determining a sight spot identifier corresponding to song information of a preset information item of each song;
and determining the scenery spot identification corresponding to each song according to the scenery spot identification corresponding to the song information of the preset information item of each song to obtain the corresponding relation between the song identification and the scenery spot identification.
Optionally, determining the sight spot identifier corresponding to each song according to the sight spot identifier corresponding to the song information of the preset information item of each song, to obtain a corresponding relationship between the song identifier and the sight spot identifier, including:
obtaining a sight spot contribution degree corresponding to each prestored preset information item;
determining the sight spot contribution degree of each sight spot identifier corresponding to each song according to the sight spot contribution degree corresponding to each preset information item and the sight spot identifier corresponding to the song information of the preset information item of each song;
determining a first preset number of sight spot identifications with the largest corresponding sight spot contribution degree in each sight spot identification corresponding to each song as a sight spot identification finally corresponding to each song to obtain a corresponding relation among the song identification, the sight spot identification and the sight spot contribution degree;
determining the scenery spot identifier of the target scenery spot corresponding to the target terminal according to the pre-stored corresponding relationship between the song identifier of each song and the scenery spot identifier and the song identifier of at least one song corresponding to the target terminal, wherein the method comprises the following steps:
according to the corresponding relation among the song identification, the scenery spot identification and the scenery spot contribution degree corresponding to the song identification of each song in at least one song are determined;
adding the sight spot contribution degrees corresponding to the same sight spot identification according to the sight spot identification and the sight spot contribution degree corresponding to the song identification of each song in at least one song to obtain the accumulated sight spot contribution degree corresponding to each different sight spot identification;
and determining the second preset number of target sight spot identifications with the maximum contribution degree of the corresponding accumulated sight spots as the sight spot identifications of the target sight spots corresponding to the target terminal.
Optionally, the preset information item includes one or more of the following information items:
song name information, lyric information, genre information, rhythm speed information, region information, singer information, composer information and word maker information.
Optionally, determining a song identifier of at least one song corresponding to the target terminal includes:
when a sight spot recommendation request sent by a target terminal is received, a song identifier of at least one song corresponding to the target terminal is determined.
Optionally, determining a song identifier of at least one song corresponding to the target terminal includes:
when a sight spot recommendation request sent by a target terminal is received, determining the song identifier of the song currently played by the target terminal as the song identifier of at least one song corresponding to the target terminal.
Optionally, determining a song identifier of at least one song corresponding to the target terminal includes:
acquiring user operation information of each song corresponding to a target terminal;
selecting target songs meeting favorite selection conditions from the songs according to user operation information of the songs corresponding to the target terminal;
and determining the song identification of the target song as the song identification of at least one song corresponding to the target terminal.
In a second aspect, an apparatus for transmitting attraction identification is provided, the apparatus comprising:
the first determining module is used for determining the song identification of at least one song corresponding to the target terminal;
the second determining module is used for determining the scenery spot identifier of the target scenery spot corresponding to the target terminal according to the pre-stored corresponding relationship between the song identifier of each song and the scenery spot identifier and the song identifier of at least one song corresponding to the target terminal;
and the sending module is used for sending the determined sight spot identification of the target sight spot to the target terminal.
Optionally, the apparatus further comprises:
and the third determining module is used for determining the scenery spot identifier corresponding to each song according to the prestored song information of each song to obtain the corresponding relation between the song identifier and the scenery spot identifier.
Optionally, the third determining module is configured to:
acquiring song information of a preset information item of each pre-stored song;
determining a sight spot identifier corresponding to song information of a preset information item of each song;
and determining the scenery spot identification corresponding to each song according to the scenery spot identification corresponding to the song information of the preset information item of each song to obtain the corresponding relation between the song identification and the scenery spot identification.
Optionally, the third determining module is configured to:
obtaining a sight spot contribution degree corresponding to each prestored preset information item;
determining the sight spot contribution degree of each sight spot identifier corresponding to each song according to the sight spot contribution degree corresponding to each preset information item and the sight spot identifier corresponding to the song information of the preset information item of each song;
determining a first preset number of sight spot identifications with the largest corresponding sight spot contribution degree in each sight spot identification corresponding to each song as a sight spot identification finally corresponding to each song to obtain a corresponding relation among the song identification, the sight spot identification and the sight spot contribution degree;
the second determining module is configured to:
according to the corresponding relation among the song identification, the scenery spot identification and the scenery spot contribution degree corresponding to the song identification of each song in at least one song are determined;
adding the sight spot contribution degrees corresponding to the same sight spot identification according to the sight spot identification and the sight spot contribution degree corresponding to the song identification of each song in at least one song to obtain the accumulated sight spot contribution degree corresponding to each different sight spot identification;
and determining the second preset number of target sight spot identifications with the maximum contribution degree of the corresponding accumulated sight spots as the sight spot identifications of the target sight spots corresponding to the target terminal.
Optionally, the preset information item includes one or more of the following information items:
song name information, lyric information, genre information, rhythm speed information, region information, singer information, composer information and word maker information.
Optionally, the first determining module is configured to:
when a sight spot recommendation request sent by a target terminal is received, a song identifier of at least one song corresponding to the target terminal is determined.
Optionally, the first determining module is configured to:
when a sight spot recommendation request sent by a target terminal is received, determining the song identifier of the song currently played by the target terminal as the song identifier of at least one song corresponding to the target terminal.
Optionally, the first determining module is configured to:
acquiring user operation information of each song corresponding to a target terminal;
selecting target songs meeting favorite selection conditions from the songs according to user operation information of the songs corresponding to the target terminal;
and determining the song identification of the target song as the song identification of at least one song corresponding to the target terminal.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the song identification of at least one song corresponding to the target terminal is determined, the scenery spot identification of the target scenery spot corresponding to the target terminal is determined according to the pre-stored corresponding relationship between the song identification of each song and the scenery spot identification and the song identification of at least one song corresponding to the target terminal, and the scenery spot identification of the determined target scenery spot is sent to the target terminal. Therefore, the user can select the favorite scenic spots in the scenic spots which are pushed by the server and are probably favored by the user, and does not need to select from all current scenic spots, so that the efficiency of determining the scenic spots can be improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for sending a scenic spot identifier, wherein an execution main body of the method is a server, the server can be a server with a scenic spot recommendation function, for example, the server can be a background server of a song playing application program with the scenic spot recommendation function.
The server may include a processor, memory, transceiver, etc. The processor may be a CPU (central processing Unit), and may be configured to determine a sight spot identifier of a target sight spot corresponding to the target terminal. The Memory may be a RAM (Random Access Memory), a Flash (Flash Memory), or the like, and may be configured to store received data, data required by a processing procedure, data generated in the processing procedure, or the like, such as a correspondence between a sight spot identifier and a song identifier, a song identifier of at least one song, or the like. The transceiver may be used for data transmission with the terminal, for example, to send the target attraction identification of the target attraction to the terminal, and may include an antenna, a matching circuit, a modem, and so on.
The embodiment of the invention provides a method for obtaining scenic spot information, as shown in fig. 1, a processing flow of the method may include the following steps:
step 101, determining a song identifier of at least one song corresponding to the target terminal.
The song identifier may be information such as a song name, key lyrics, and the like, and the key lyrics may be a climax part of the lyrics, for example.
In implementation, a trigger mechanism for recommending the scenic spots may be preset in the server, for example, a scenic spot recommendation trigger event may be preset, and whenever the server detects that the scenic spot recommendation trigger event occurs, the server may determine a song identifier of at least one song corresponding to the target terminal.
Optionally, the scenic spot recommendation triggering event may be that a scenic spot recommendation request sent by the target terminal is received, and correspondingly, the processing procedure in step 101 may be as follows: when a sight spot recommendation request sent by a target terminal is received, a song identifier of at least one song corresponding to the target terminal is determined.
In implementation, a song playing application program may be installed in the target terminal, and the song playing application program may provide a scenic spot recommendation function. Specifically, the song playing application program may be provided with a scenery spot recommendation option, and when the target terminal detects a selection instruction of the scenery spot recommendation option, the target terminal may send a scenery spot recommendation request to the server, as shown in fig. 2. Correspondingly, after receiving the sight spot recommendation request sent by the target terminal (i.e. detecting that the sight spot recommendation trigger event occurs), the server may determine the song identifier of at least one song corresponding to the target terminal.
Optionally, based on different manners of determining the song identifier of the at least one song corresponding to the target terminal, the processing manner of step 101 may be various, and several feasible processing manners are given below:
in the first mode, when a scenic spot recommendation request sent by a target terminal is received, a song identifier of a currently played song of the target terminal is determined as a song identifier of at least one song corresponding to the target terminal.
In implementation, after receiving a selection instruction of a song recommendation option, the target terminal may obtain a song identifier of a currently played song of the target terminal, and further may send a scenic spot recommendation request carrying the song identifier of the currently played song of the target terminal to the server. Correspondingly, the server can receive the scenic spot recommendation request sent by the target terminal, analyze the scenic spot recommendation request, acquire the song identifier of the currently played song of the target terminal carried in the scenic spot recommendation request, and further determine the song identifier of the currently played song of the target terminal as the target volume value corresponding to the target terminal.
The processing method is suitable for the situation that the scenic spot recommendation triggering event is the situation that the scenic spot recommendation request sent by the target terminal is received.
And secondly, acquiring user operation information of each song corresponding to the target terminal, selecting a target song meeting favorite selection conditions from the songs according to the song operation information of the target terminal on each song in a historical period, and determining the song identifier of the target song as the song identifier of at least one song corresponding to the target terminal.
The favorite selection condition may be a condition for judging whether the song is a favorite song according to the user operation information of each song corresponding to the target terminal.
In implementation, for each song, a download key, a collection key and a favorite song adding key may be further provided in the song playing application. In the process of using the song playing application program, a user can operate a certain song according to own preference, and correspondingly, the target terminal can record the user operation information of the song. For example, when a user triggers a target terminal to play a certain song through operation, the target terminal may record the playing frequency of the song corresponding to the target terminal, and when the user clicks a collection key corresponding to the certain song, the target terminal may record that the song is in a collection state (for example, a song identifier of the song may be added to a collection song list corresponding to the target terminal). After the target terminal determines the user operation information of each song, the user operation information can be sent to the server, and correspondingly, the server can store the user operation information of each song corresponding to the target terminal.
The favorite selection conditions can be preset in the server, and when the server detects that the scenic spot recommendation trigger event occurs, the server can acquire user operation information of each song corresponding to the target terminal, and further, the song (which can be called a target song) of which the user operation information meets the preset favorite selection conditions can be selected from the songs. For example, according to the acquired user operation information such as the playing times of each song and a favorite song list, a song whose playing times reach a preset number and a song in the favorite song list are determined as a target song. After determining the target song, the server may determine a song identification of the target song as a song identification of at least one song.
And step 102, determining the scenery spot identification of the target scenery spot corresponding to the target terminal according to the pre-stored corresponding relationship between the song identification of each song and the scenery spot identification and the song identification of at least one song corresponding to the target terminal.
In implementation, the server may pre-store a corresponding relationship between the song identifiers and the scenery spot identifiers, where the number of the scenery spot identifiers corresponding to one song identifier is not limited, and one song identifier may correspond to one scenery spot identifier or to multiple scenery spot identifiers. After the server determines the song identifier of at least one song corresponding to the target terminal, the server may determine the sight spot identifier corresponding to the song identifier of each song in the at least one song in the correspondence, and further may determine the sight spot identifier corresponding to each song identifier as the sight spot identifier of the target sight spot corresponding to the target terminal. Or after the server determines the sight spot identifier corresponding to each song identifier, a part of sight spot identifiers can be selected from the sight spot identifiers, and the selected part of sight spot identifiers are determined as the sight spot identifiers of the target sight spots corresponding to the target terminals.
Optionally, the server may obtain a corresponding relationship between the song identifier and the attraction identifier according to the song information of each song, and accordingly, the processing procedure in step 102 may be as follows: and determining the scenic spot identifier corresponding to each song according to the prestored song information of each song to obtain the corresponding relation between the song identifier and the scenic spot identifier.
In an implementation, the server may store song information of each song in the song library in advance, for example, song name information of each song in advance. When the server wants to obtain the corresponding relation between the song identification and the scenery spot identification, the server can obtain the prestored song information of the song for each song, and further determine the scenery spot identification corresponding to the song according to the obtained song information to obtain the corresponding relation between the song identification and the scenery identification of the song. For example, the server obtains that the song name information of the song "beijing welcome you" is "beijing welcome you", and can determine scenic spots such as an olympic park, a bird nest, a water cube and the like according to the song name information, and further can obtain the corresponding relation between the song identifier of "beijing welcome you" and the scenic spot identifiers of the scenic spots such as the olympic park, the bird nest, the water cube and the like.
Optionally, the server may obtain a corresponding relationship between the song identifier and the attraction identifier according to the song information of the preset information item of each song, and accordingly, the processing procedure may be as follows: acquiring song information of a preset information item of each pre-stored song; determining a sight spot identifier corresponding to song information of a preset information item of each song; and determining the scenery spot identification corresponding to each song according to the scenery spot identification corresponding to the song information of the preset information item of each song to obtain the corresponding relation between the song identification and the scenery spot identification.
In implementation, the server may be preset with information items, so that the server may determine the identifier of the scenery spot corresponding to each song according to the song information of each preset information item of each song, where the preset information item may be song name information, lyric information, or the like. Specifically, for each song, the server may obtain song information of each preset information item corresponding to the song, respectively. After the server acquires the song information of the preset information item of the song, for each preset information item, the server can determine the sight spot identifier corresponding to the song information of the preset information item corresponding to the song. The server can determine the sight spot identification corresponding to the song information of different preset information items of each song according to the above mode. After the sight spot identifiers corresponding to the song information of the different preset information items of each song are obtained, for each song, the server may determine the sight spot identifiers corresponding to the song information of the different preset information items of the song as the sight spot identifiers corresponding to the song, obtain a correspondence between the song identifier of the song and the sight spot identifiers, or may determine a part of the sight spot identifiers corresponding to the song information of the different preset information items of the song as the sight spot identifiers corresponding to the song (for example, the sight spot identifier with the largest occurrence number may be determined as the sight spot identifier corresponding to the song), and obtain a correspondence between the song identifier of the song and the sight spot identifiers.
Optionally, the server may determine the corresponding relationship between the song identifier, the scenery spot identifier, and the scenery spot contribution degree according to the scenery spot contribution degree corresponding to the preset information item, and specifically, the processing procedure may be as follows: the scenic spot contribution degree corresponding to each pre-stored preset information item is obtained, and the scenic spot contribution degree of each scenic spot identification corresponding to each song is determined according to the scenic spot contribution degree corresponding to each preset information item and the scenic spot identification corresponding to the song information of the preset information item of each song. And determining the first preset number of sight spot identifications with the maximum corresponding sight spot contribution degree in each sight spot identification corresponding to each song as the sight spot identification finally corresponding to each song to obtain the corresponding relation among the song identification, the sight spot identification and the sight spot contribution degree. Accordingly, the process of step 102 may be as follows: and determining the sight spot identification and the sight spot contribution degree corresponding to the song identification of each song in the at least one song according to the corresponding relation among the song identification, the sight spot identification and the sight spot contribution degree. And adding the sight spot contribution degrees corresponding to the same sight spot identification according to the sight spot identification and the sight spot contribution degree corresponding to the song identification of each song in at least one song to obtain the accumulated sight spot contribution degree corresponding to each different sight spot identification. And determining the second preset number of target sight spot identifications with the maximum contribution degree of the corresponding accumulated sight spots as the sight spot identifications of the target sight spots corresponding to the target terminal.
In implementation, the server may be preset with a weight value (i.e., a scene contribution degree) corresponding to each preset information item. After the server determines the sight spot identifier corresponding to the song information of the preset information item of each song, the server may obtain a previously stored sight spot contribution degree corresponding to each preset information item, and further, for the sight spot identifier corresponding to the song information of each preset information item in each song, the server may determine the sight spot contribution degree corresponding to the preset information item as the sight spot contribution degree of the sight spot identifier corresponding to the song information of the preset information item of the song, for example, the preset information item is X, Y, the sight spot contribution degrees 20 and 30 respectively correspond to the sight spot contribution degrees, for the song a, the sight spot identifier corresponding to the song information of X is a and b, and the sight spot identifier corresponding to the song information of Y is c and d, the server may determine the sight spot contribution degree corresponding to a and b is 20, and the sight spot contribution degree corresponding to c and d is 30. For each song, after the sight spot contribution degree of the sight spot identifier corresponding to the song information of the preset information item of the song is obtained, the server may add the sight spot contribution degrees of the same sight spot identifier appearing in the sight spot identifiers corresponding to different preset information items to obtain the accumulated sight spot contribution degree of each different sight spot identifier, and further, may determine the accumulated sight spot contribution degree corresponding to each determined different sight spot identifier as the sight spot contribution degree of the sight spot identifier corresponding to the song. That is, for each song, the server may determine the sight contribution degrees corresponding to all the different sight identifications corresponding to the song information of each preset information item of the song. For example, the preset information item is X, Y, the sight contribution degrees 20 and 30 correspond to each other, for song a, the sight identifications corresponding to the song information of X are a and b, and the sight identifications corresponding to the song information of Y are a and d, the server may determine that the sight contribution degree of a and b corresponding to X is 20, and the sight contribution degree of a and d corresponding to Y is 30, and further, the server may add the sight contribution degrees of a in X, Y to obtain that the sight contribution degree of sight identification a corresponding to song a is 50, the sight contribution degree of b is 20, and the sight contribution degree of d is 30.
For each song, after determining the sight spot contribution degree of each sight spot identifier corresponding to the song, the server may determine, in each sight spot identifier corresponding to the song, a first preset number (where the first preset number may be a numerical value preset by a technician, for example, may be 5) of sight spot identifiers having a maximum corresponding sight spot contribution degree, and may determine the obtained sight spot identifiers having the maximum first preset number of sight spot contribution degrees as the sight spot identifiers finally corresponding to the song, thereby obtaining a corresponding relationship between the song identifier of the song, the sight spot identifiers, and the sight spot contribution degrees. As shown in fig. 3, for example, the scenery spot contribution degree of the song name information is 50, the scenery spot contribution degree of the lyric information is 40, the scenery spot contribution degree of the genre information is 30, and for the song "beijing welcomes you", the scenery spots corresponding to the song name information are identified as a bird nest, a water cube and an olympic park, the scenery spots corresponding to the lyric information are identified as a bird nest and a water cube, the scenery spots corresponding to the genre information are identified as a bird nest, a water cube and an olympic park, the server can determine that the scenery spot contribution degrees of the bird nest, the water cube and the olympic park corresponding to the song name information are 50, the scenery spot contribution degrees of the bird nest and the water cube corresponding to the lyric information are 40, the scenery contribution degrees of the bird nest, the water cube and the olympic park corresponding to the genre information are 30, finally, the server can obtain that the scenery spot contribution degrees of the bird nest and the water cube are 120, and the scenery contribution degree of the olympic park, if the first preset number is 2, the corresponding sight spot identifier of the song "Beijing welcome you" can be obtained as a bird nest and a water cube.
According to the situation that the server stores the corresponding relation among the song identification, the scenery spot identification and the scenery spot contribution degree, after the server obtains the song identification of at least one song corresponding to the target terminal, the scenery identification corresponding to the song identification of each song of the at least one song and the scenery contribution degree corresponding to the song identification of each song can be determined from the corresponding relation, and then the server adds the scenery contribution degrees corresponding to the same scenery identification appearing in the scenery identification corresponding to each song identification to obtain the accumulated scenery contribution degree corresponding to each different scenery identification. After the cumulative sight contribution degree corresponding to each different sight spot identifier is obtained, the server may determine a second preset number of target sight spot identifiers with the largest cumulative sight contribution degree as sight spot identifiers of target sight spots corresponding to the target terminals. For example, the sight spot identifiers corresponding to the song "beijing welcome you" are a bird nest and a water cube, the sight spot contribution degrees of the two sight spot identifiers are 120, the sight spot identifiers corresponding to the song "olympic beijing" are a bird nest and a beijing university gym, the sight spot contribution degree of the bird nest is 100, the sight spot contribution degree of the beijing university gym is 110, and the server may obtain the accumulated sight spot contribution degree of the sight spot identifier corresponding to at least one song as follows: the bird nest 220, the water cube 120 and the Beijing university gym 110 can obtain target scenic spots corresponding to the target terminal as the bird nest and the water cube if the second preset number is 2.
Optionally, the preset information items may include one or more of the following information items: song name information, lyric information, genre information, rhythm speed information, region information, singer information, composer information and word maker information.
The region information may be a region where the song is issued, for example, a region where the song is first performed or a region where an album where the song is first sold.
In implementation, the server may use at least one of song name information, lyric information, genre information, rhythm speed information, region information, singer information, composer information, and word writer information as the preset information item. In addition, for each preset information item except for the song name information and the lyric information, the server may pre-store a corresponding relationship between different song information of the preset information item and the sight spot identifier, and further, when determining the sight spot identifier corresponding to the song information of each preset information item of each song, the server may determine the sight spot identifier corresponding to the song information of the preset information item of each song in the corresponding relationship. For each preset information item in the song name information and the lyric information, when determining the scenery spot identifier corresponding to the song information of the preset information item of each song, the server may perform text analysis on the song information to determine the area name where the song information appears, and further, may directly determine the area name as the scenery spot identifier corresponding to the song information of the preset information item, or the server may pre-store the corresponding relationship between the area name and the scenery spot identifier associated with the scenery spot, and after determining the area name, the server may determine the scenery spot identifier corresponding to the area name as the scenery spot identifier corresponding to the song information of the preset information item in the corresponding relationship, for example, the area name corresponding to the song name information is beijing, and the server pre-stores the corresponding relationship between beijing, the bird nest and the water cube, so that the server may determine the scenery identifier corresponding to the song information of the song name information as the bird nest identifier, the water cube, And (4) water cube.
And 103, sending the determined sight spot identification of the target sight spot to the target terminal.
In implementation, after the sight spot identifier of the target sight spot is determined, the server may send the sight spot identifier of the target sight spot to the target terminal. In addition, the server may also store introduction information of each sight spot, and correspondingly, when the server sends the sight spot identifier of the target sight spot to the target terminal, the server may also send the introduction information of the target sight spot to the target terminal. For the situation that the scenic spot recommendation trigger event reaches the preset determination period, the server may obtain the scenic spot identifier of the target scenic spot determined in step 102 when receiving the scenic spot recommendation request sent by the terminal, and then send the scenic spot identifier to the target terminal.
According to the embodiment of the invention, the song identification of at least one song corresponding to the target terminal is determined, the scenery spot identification of the target scenery spot corresponding to the target terminal is determined according to the pre-stored corresponding relationship between the song identification of each song and the scenery spot identification and the song identification of at least one song corresponding to the target terminal, and the scenery spot identification of the determined target scenery spot is sent to the target terminal. Therefore, the user can select the favorite scenic spots in the scenic spots which are pushed by the server and are probably favored by the user, and does not need to select from all current scenic spots, so that the efficiency of determining the scenic spots can be improved.
Based on the same technical concept, an embodiment of the present invention further provides a device for sending a scenic spot identifier, as shown in fig. 4, the device includes:
a first determining module 410, configured to determine a song identifier of at least one song corresponding to the target terminal;
a second determining module 420, configured to determine, according to a correspondence between a song identifier of each pre-stored song and a sight spot identifier, and a song identifier of at least one song corresponding to the target terminal, a sight spot identifier of the target sight spot corresponding to the target terminal;
the sending module 430 is configured to send the determined sight spot identifier of the target sight spot to the target terminal.
Optionally, as shown in fig. 5, the apparatus further includes:
the third determining module 440 is configured to determine the scenery spot identifier corresponding to each song according to the pre-stored song information of each song, so as to obtain a corresponding relationship between the song identifier and the scenery spot identifier.
Optionally, the third determining module 440 is configured to:
acquiring song information of a preset information item of each pre-stored song;
determining a sight spot identifier corresponding to song information of a preset information item of each song;
and determining the scenery spot identification corresponding to each song according to the scenery spot identification corresponding to the song information of the preset information item of each song to obtain the corresponding relation between the song identification and the scenery spot identification.
Optionally, the third determining module 440 is configured to:
obtaining a sight spot contribution degree corresponding to each prestored preset information item;
determining the sight spot contribution degree of each sight spot identifier corresponding to each song according to the sight spot contribution degree corresponding to each preset information item and the sight spot identifier corresponding to the song information of the preset information item of each song;
determining a first preset number of sight spot identifications with the largest corresponding sight spot contribution degree in each sight spot identification corresponding to each song as a sight spot identification finally corresponding to each song to obtain a corresponding relation among the song identification, the sight spot identification and the sight spot contribution degree;
a second determining module 420 for:
according to the corresponding relation among the song identification, the scenery spot identification and the scenery spot contribution degree corresponding to the song identification of each song in at least one song are determined;
adding the sight spot contribution degrees corresponding to the same sight spot identification according to the sight spot identification and the sight spot contribution degree corresponding to the song identification of each song in at least one song to obtain the accumulated sight spot contribution degree corresponding to each different sight spot identification;
and determining the second preset number of target sight spot identifications with the maximum contribution degree of the corresponding accumulated sight spots as the sight spot identifications of the target sight spots corresponding to the target terminal.
Optionally, the preset information item includes one or more of the following information items:
song name information, lyric information, genre information, rhythm speed information, region information, singer information, composer information and word maker information.
Optionally, the first determining module 410 is configured to:
when a sight spot recommendation request sent by a target terminal is received, a song identifier of at least one song corresponding to the target terminal is determined.
Optionally, the first determining module 410 is configured to:
when a sight spot recommendation request sent by a target terminal is received, determining the song identifier of the song currently played by the target terminal as the song identifier of at least one song corresponding to the target terminal.
Optionally, the first determining module 410 is configured to:
acquiring user operation information of each song corresponding to a target terminal;
selecting target songs meeting favorite selection conditions from the songs according to user operation information of the songs corresponding to the target terminal;
and determining the song identification of the target song as the song identification of at least one song corresponding to the target terminal.
According to the embodiment of the invention, the song identification of at least one song corresponding to the target terminal is determined, the scenery spot identification of the target scenery spot corresponding to the target terminal is determined according to the pre-stored corresponding relationship between the song identification of each song and the scenery spot identification and the song identification of at least one song corresponding to the target terminal, and the scenery spot identification of the determined target scenery spot is sent to the target terminal. Therefore, the user can select the favorite scenic spots in the scenic spots which are pushed by the server and are probably favored by the user, and does not need to select from all current scenic spots, so that the efficiency of determining the scenic spots can be improved.
It should be noted that: the device for sending a scenic spot identifier according to the above embodiment is exemplified by only dividing the functional modules when sending the scenic spot identifier, and in practical applications, the function distribution may be completed by different functional modules as needed, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for sending a scenic spot identifier and the method embodiment for sending a scenic spot identifier provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1900, which may vary widely in configuration or performance, may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Server 1900 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors include instructions for:
determining a song identifier of at least one song corresponding to the target terminal;
determining the scenery spot identifier of the target scenery spot corresponding to the target terminal according to the pre-stored corresponding relationship between the song identifier of each song and the scenery spot identifier and the song identifier of at least one song corresponding to the target terminal;
and sending the determined sight spot identification of the target sight spot to the target terminal.
Optionally, the method further comprises:
and determining the scenic spot identifier corresponding to each song according to the prestored song information of each song to obtain the corresponding relation between the song identifier and the scenic spot identifier.
Optionally, determining the scenic spot identifier corresponding to each song according to the pre-stored song information of each song, and obtaining a corresponding relationship between the song identifier and the scenic spot identifier, including:
acquiring song information of a preset information item of each pre-stored song;
determining a sight spot identifier corresponding to song information of a preset information item of each song;
and determining the scenery spot identification corresponding to each song according to the scenery spot identification corresponding to the song information of the preset information item of each song to obtain the corresponding relation between the song identification and the scenery spot identification.
Optionally, determining the sight spot identifier corresponding to each song according to the sight spot identifier corresponding to the song information of the preset information item of each song, to obtain a corresponding relationship between the song identifier and the sight spot identifier, including:
obtaining a sight spot contribution degree corresponding to each prestored preset information item;
determining the sight spot contribution degree of each sight spot identifier corresponding to each song according to the sight spot contribution degree corresponding to each preset information item and the sight spot identifier corresponding to the song information of the preset information item of each song;
determining a first preset number of sight spot identifications with the largest corresponding sight spot contribution degree in each sight spot identification corresponding to each song as a sight spot identification finally corresponding to each song to obtain a corresponding relation among the song identification, the sight spot identification and the sight spot contribution degree;
determining the scenery spot identifier of the target scenery spot corresponding to the target terminal according to the pre-stored corresponding relationship between the song identifier of each song and the scenery spot identifier and the song identifier of at least one song corresponding to the target terminal, wherein the method comprises the following steps:
according to the corresponding relation among the song identification, the scenery spot identification and the scenery spot contribution degree corresponding to the song identification of each song in at least one song are determined;
adding the sight spot contribution degrees corresponding to the same sight spot identification according to the sight spot identification and the sight spot contribution degree corresponding to the song identification of each song in at least one song to obtain the accumulated sight spot contribution degree corresponding to each different sight spot identification;
and determining the second preset number of target sight spot identifications with the maximum contribution degree of the corresponding accumulated sight spots as the sight spot identifications of the target sight spots corresponding to the target terminal.
Optionally, the preset information item includes one or more of the following information items:
song name information, lyric information, genre information, rhythm speed information, region information, singer information, composer information and word maker information.
Optionally, determining a song identifier of at least one song corresponding to the target terminal includes:
when a sight spot recommendation request sent by a target terminal is received, a song identifier of at least one song corresponding to the target terminal is determined.
Optionally, determining a song identifier of at least one song corresponding to the target terminal includes:
when a sight spot recommendation request sent by a target terminal is received, determining the song identifier of the song currently played by the target terminal as the song identifier of at least one song corresponding to the target terminal.
Optionally, determining a song identifier of at least one song corresponding to the target terminal includes:
acquiring user operation information of each song corresponding to a target terminal;
selecting target songs meeting favorite selection conditions from the songs according to user operation information of the songs corresponding to the target terminal;
and determining the song identification of the target song as the song identification of at least one song corresponding to the target terminal.
According to the embodiment of the invention, the song identification of at least one song corresponding to the target terminal is determined, the scenery spot identification of the target scenery spot corresponding to the target terminal is determined according to the pre-stored corresponding relationship between the song identification of each song and the scenery spot identification and the song identification of at least one song corresponding to the target terminal, and the scenery spot identification of the determined target scenery spot is sent to the target terminal. Therefore, the user can select the favorite scenic spots in the scenic spots which are pushed by the server and are probably favored by the user, and does not need to select from all current scenic spots, so that the efficiency of determining the scenic spots can be improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.