CN109299314A - Music retrieval and the method, apparatus of recommendation, storage medium and terminal device - Google Patents
Music retrieval and the method, apparatus of recommendation, storage medium and terminal device Download PDFInfo
- Publication number
- CN109299314A CN109299314A CN201811348100.8A CN201811348100A CN109299314A CN 109299314 A CN109299314 A CN 109299314A CN 201811348100 A CN201811348100 A CN 201811348100A CN 109299314 A CN109299314 A CN 109299314A
- Authority
- CN
- China
- Prior art keywords
- music
- retrieval
- version
- movement
- user
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
The present invention proposes method, apparatus, storage medium and the terminal device of a kind of music retrieval and recommendation, wherein the described method includes: obtaining the music retrieval sentence of user's input;According to the music retrieval sentence, the user demand of retrieval music is determined;According to the user demand, the retrieval mode of retrieval music is determined;Music retrieval is carried out according to the retrieval mode, obtains the search result being consistent with the user demand;According to the search result, recommend music to the user.Using the present invention, recall precision and retrieval accuracy can be improved.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of music retrievals and the method, apparatus of recommendation, storage to be situated between
Matter and terminal device.
Background technique
With the development of mobile internet, mobile subscriber can pass through music APP in mobile device (Application, meter
Calculation machine application program) carry out Music Appreciation or interaction.Mobile subscriber uses the technical ability of music APP, usually are as follows: search for and push away
It recommends.Song expected from user can be quickly and accurately found by search, the resource and retrieval frame of server offer are provided
Structure.But music recommends general relative complex, no specific standard, is a relatively open demand.Wherein, shifting is recommended
The recommendation quality for employing the music at family, can influence user listens song duration, user to be deposited in interaction duration on music APP etc.
Key index.
It is (happy that single is normally based on when carrying out retrieval recommendation to the music in music storehouse for the personalized recommendation of music
Chapter) works information retrieved or recommended.Wherein, storage music data is stored as unit of single, storing data
Record the works informations such as mark, composer, version, the alias of each single in library.In recommendation process, the works according to single are believed
Breath is matched with the Search Requirement of user, obtains corresponding single.
Above-mentioned music retrieval and recommendation process, suitable for only having the pop music for playing version or performance version,
Retrieval is simply and conveniently.But for the music that same musical works has multiple and different performances or performance version, not
It is applicable in.Such as classical music.If the scheme of above-mentioned music retrieval and recommendation retrieves classical music, can exist following
Defect:
1, it needs first to retrieve a certain single, then reversely finds the corresponding all musical works for playing version of single, with
And selection conforms to the performance version of the Search Requirement of user and obtains corresponding single search result, recall precision is low.
2, recommendation process is recommended according only to the hot value of single, may cause user and does not feel emerging to the music of recommendation
Interest.
3, according to works informations such as each single mark, composer, version, alias, come safeguard single information mode,
Maintenance mode complexity and redundancy.
4, storage organization is safeguarded due to the unit (dimension) with single, it will usually so that search result sequence entanglement or pleasure
Chapter missing, retrieval accuracy are low.
Summary of the invention
The embodiment of the present invention provides method, apparatus, storage medium and the terminal device of a kind of music retrieval and recommendation, with solution
Certainly or alleviate the above one or more technical problems in the prior art.
In a first aspect, the embodiment of the invention provides a kind of methods of music retrieval and recommendation, comprising:
Obtain the music retrieval sentence of user's input;
According to the music retrieval sentence, the user demand of retrieval music is determined;
According to the user demand, the retrieval mode of retrieval music is determined;
Music retrieval is carried out according to the retrieval mode, obtains the search result being consistent with the user demand;
According to the search result, recommend music to the user.
In one embodiment, according to the user demand, the retrieval mode of retrieval music is determined, comprising:
If the user demand includes the works information of musical works, music retrieval is carried out according to the works information;
Wherein, the works information includes at least work title;The musical works includes at least one with multiple performance versions
Movement.
In one embodiment, music retrieval is carried out according to the works information, comprising:
If the works information includes work title and plays version, according to the work title, the performance version
Indexed sequential, retrieval be consistent with the work title and it is described play version under all movements.
In one embodiment, music retrieval is carried out according to the works information, comprising:
If the works information includes work title and movement title, according to the temperature and the user for playing version
Interest in music portrait, determines performance version to be retrieved;
According to the work title, it is described play version indexed sequential, retrieval be consistent with the work title and
All movements under the performance version;And
From the movement retrieved, the movement being consistent with the movement title is extracted.
In one embodiment, music retrieval is carried out according to the works information, comprising:
If the works information includes work title, plays version and movement title, according to the work title, described
The indexed sequential of version is played, retrieval is consistent with the work title and all movements under the performance version;And
From the movement retrieved, the movement being consistent with the movement title is extracted.
In one embodiment, according to the user demand, the retrieval mode of retrieval music is determined, comprising:
If the user demand includes music type, drawn according to the interest in music of the music type and the user
As determining search condition;And
Music retrieval is carried out according to determining search condition.
In one embodiment, according to the user demand, the retrieval mode of retrieval music is determined, comprising:
If the user demand includes music type and the screening conditions for limiting the music type, according to the sound
Happy type and the interest in music of the user, which are drawn a portrait, determines search condition;And
Music retrieval is carried out according to determining search condition and the screening conditions.
Second aspect, the embodiment of the present invention provide the device of a kind of music retrieval and recommendation, comprising:
It retrieves sentence and obtains module, for obtaining the music retrieval sentence of user's input;
User demand determining module, for determining the user demand of retrieval music according to the music retrieval sentence;
Retrieval mode determining module, for determining the retrieval mode of retrieval music according to the user demand;
Music retrieval module, for carrying out music retrieval according to the retrieval mode, acquisition is consistent with the user demand
The search result of conjunction;And
Music recommending module, for recommending music to the user according to the search result.
In one embodiment, the retrieval mode determining module includes:
Works information retrieval unit, if including the works information of musical works for the user demand, according to described
Works information carries out music retrieval;Wherein, the works information includes at least work title.
In one embodiment, the works information retrieval unit includes:
Opus One retrieves subelement, if including work title and performance version for the works information, according to institute
Work title, the indexed sequential for playing version are stated, retrieval is consistent and under the performance version with the work title
All movements.
In one embodiment, the works information retrieval unit includes:
It plays version and determines subelement, if including work title and movement title for the works information, according to drilling
The temperature of version and the interest in music portrait of the user are played, determines performance version to be retrieved;
Second movement retrieve subelement, for according to the work title, it is described play version indexed sequential, retrieval with
The work title is consistent and all movements under the performance version;And
Movement chooses subelement, for extracting the movement being consistent with the movement title from the movement retrieved.
In one embodiment, the works information retrieval unit includes:
Third movement retrieves subelement, if including work title for the works information, playing version and movement name
Claim, according to the work title, the indexed sequential for playing version, retrieval is consistent with the work title and drills described
Play all movements under version;And
Movement chooses subelement, for extracting the movement being consistent with the movement title from the movement retrieved.
In one embodiment, the retrieval mode determining module includes:
First search condition determination unit, if including music type for the user demand, according to the music
Type and the interest in music of the user, which are drawn a portrait, determines search condition;And
Condition retrieval unit, for carrying out music retrieval according to determining search condition.
In one embodiment, the retrieval mode determining module includes:
Second search condition determination unit, if including music type and the limitation music class for the user demand
The screening conditions of type then draw a portrait according to the interest in music of the music type and the user and determine search condition;And
Conditional filtering retrieval unit, for carrying out music retrieval according to determining search condition and the screening conditions.
The third aspect, the embodiment of the invention provides the device of a kind of music retrieval and recommendation, the function of described device can
Corresponding software realization can also be executed by hardware by hardware realization.The hardware or software include one or more
Module corresponding with above-mentioned function.
It include processor and memory, the storage in the structure of music retrieval and recommendation in a possible design
Device executes the program of above-mentioned music retrieval and recommendation for music retrieval and the device of recommendation, the processor is configured to being used for
Execute the program stored in the memory.The music retrieval and the device of recommendation can also include communication interface, be used for sound
Happy retrieval and the device and other equipment or communication recommended.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, for music retrieval and recommend
Device used in computer software instructions, including journey involved in the method for executing above-mentioned music retrieval and recommendation
Sequence.
One of technical solution in above-mentioned technical proposal have the following advantages that or the utility model has the advantages that
The music retrieval sentence of foundation of the embodiment of the present invention determines user demand, neatly adopts according to different Search Requirements
Music retrieval is carried out with different retrieval modes, recall precision can be improved.
One of technical solution in above-mentioned technical proposal have the following advantages that or the utility model has the advantages that
The embodiment of the present invention includes the work title of musical works in user demand and the musical works includes at least one
When a movement with multiple performance versions, it can be the first sequence of index with work title and combine others works
Information is indexed, and is avoided the works information according to movement from carrying out reverse indexing, is improved recall precision and retrieval accuracy.This
Outside, it is indexed with the first sequence and the other works informations of combination that work title is index, the institute in corresponding music storehouse
It is the first sequence indexed that the index relative of foundation, which is also with work title, indexes the multiple of its corresponding multiple performance version
Movement, index structure is clear, easy to maintain simple.
Above-mentioned general introduction is merely to illustrate that the purpose of book, it is not intended to be limited in any way.Except foregoing description
Schematical aspect, except embodiment and feature, by reference to attached drawing and the following detailed description, the present invention is further
Aspect, embodiment and feature, which will be, to be readily apparent that.
Detailed description of the invention
In the accompanying drawings, unless specified otherwise herein, otherwise indicate the same or similar through the identical appended drawing reference of multiple attached drawings
Component or element.What these attached drawings were not necessarily to scale.It should be understood that these attached drawings depict only according to the present invention
Disclosed some embodiments, and should not serve to limit the scope of the present invention.
Fig. 1 is the flow diagram of one embodiment of the method for music retrieval provided by the invention and recommendation.
Fig. 2 is the flow diagram of one embodiment of the process of retrieval music provided by the invention.
Fig. 3 is the flow diagram of another embodiment of the process of retrieval music provided by the invention.
Fig. 4 is the flow diagram of one embodiment of the process of determining retrieval mode provided by the invention.
Fig. 5 is the flow diagram of another embodiment of the process of determining retrieval mode provided by the invention.
Fig. 6 is that one of the storage index structure of pop music provided by the invention applies exemplary schematic diagram.
Fig. 7, which is that an application provided by the invention with the storage index structure that musical works is index first place is exemplary, to be shown
It is intended to.
Fig. 8 is the structural schematic diagram of one embodiment of the device of music retrieval provided by the invention and recommendation.
Fig. 9 is the structural schematic diagram of one embodiment of terminal device provided by the invention.
Specific embodiment
Hereinafter, certain exemplary embodiments are simply just described.As one skilled in the art will recognize that
Like that, without departing from the spirit or scope of the present invention, described embodiment can be modified by various different modes.
Therefore, attached drawing and description are considered essentially illustrative rather than restrictive.
Referring to Fig. 1, the embodiment of the invention provides a kind of methods of music retrieval and recommendation.The present embodiment can be applied
In audio player or audio website.For example, the audio players such as KuGoo, Netease's cloud music, dried shrimp.It can also apply and regard
In frequency player or video website, for example, recommending the MV (Music Video, music short-movie) of musical works.Video player can
To include youku.com, iqiyi.com, trill etc..Wherein, audio player or video player can be application program, be loaded in user
Terminal.Such as: smart phone, computer, plate etc..The present embodiment may include step S100 to step S500, as follows:
S100 obtains the music retrieval sentence of user's input.
Wherein, input mode may include text input or voice input etc..Text input is to pass through keyboard or touch screen
Carry out text writing.Voice input is that user issues voice and passes through microphone input.It can be as the input scene of voice
Under: the music application of user and user terminal loading carries out interactive voice.User issues voice, can pass through user terminal
The microphone of offer sends voice messaging to music application.Music application can identify entrained by voice messaging
Control instruction, music application work is controlled by control instruction, to be searched for, be collected accordingly, play music etc.
Operation.
Illustratively, music retrieval sentence can be exemplified as follows: " play classical music ", " classical music that broadcasting rouses oneself,
The works of broadcasting barpque ", " I wants to listen Beethoven's Ninth " etc..
S200 determines the user demand of retrieval music according to music retrieval sentence.
In some embodiments, music retrieval sentence can be segmented, then, word is identified, therefrom to mention
Take the keyword that can be used for retrieving.For example, " playing classical music ", word segmentation result may include: " broadcasting ", " allusion ", " sound
It is happy " and " classical music ".Therefrom, the keyword of " classical music " as retrieval can be extracted.All keywords of retrieval, can
The Search Requirement of user, i.e. user demand has been determined.
In some embodiments, music retrieval sentence is identified by Search Requirement identification model, use can be obtained
Family Search Requirement.Wherein, Search Requirement identification model can advance with a large amount of training data training and generate.Training data can
To include sample music retrieval sentence and sample searching demand.
S300 determines the retrieval mode of retrieval music according to user demand.
In some embodiments, the keyword for being included according to user demand can determine the retrieval mode of retrieval music.
For example, if keyword includes the work title of the musical works with multiple multiple movements for playing version, for example, classic
Music can be indexed dimension, the i.e. first place of indexed sequential with musical works, and be retrieved in conjunction with other works informations.If
Keyword includes the title of the single of a performance version, for example, pop music, it can direct retrieval by window.But for movement
For, can not direct retrieval by window, need to carry out condition index or retrieval by aforementioned index mode, to improve recall precision.
In some embodiments, if retrieved using the keyword that user demand includes, can not determine to music to make
Some in product plays version or some movement.At this point it is possible to carry out extensive processing to user demand, acquisition can be used as rope
The keyword drawn, these keywords that can be used as index, which can be included in user demand, to be retrieved.
S400 carries out music retrieval according to retrieval mode, obtains the search result being consistent with user demand.
S500 recommends music to user according to search result.
The music retrieval sentence of foundation of the embodiment of the present invention determines user demand, neatly adopts according to different Search Requirements
Music retrieval is carried out with different retrieval modes, recall precision can be improved.
In some embodiments, if keyword includes the musical works with multiple multiple movements for playing version
Work title, for example, classical music, can be the dimension of index, the i.e. first place of indexed sequential with musical works, and combine other
Works information is retrieved.Therefore, the process of the determination retrieval mode of above-mentioned steps S300, if may include: user demand
Works information including musical works carries out music retrieval according to works information;Wherein, works information, which includes at least, makees the name of an article
Claim;Musical works includes at least one with multiple movements for playing version.
The present embodiment can index relevant movement according only to work title.It is of course also possible to according to work title with
And other works informations provided are retrieved.That is " work title+other additional works informations (can be default) ".Works information
It can also include: composer, play the information such as version (i.e. player), movement title.Music retrieval is carried out according to works information,
Available keyword can be exemplified as follows: " work title ", " work title+performance version ", " work title+composer ",
" work title+performance version+movement ", " work title+movement " etc..
The present embodiment is retrieval main body, and the temperature information of musical works, alias, simple name, Chinese name with musical works
Title etc. is also associated with storage.
In some embodiments, it if works information only includes work title, is indexed, can be obtained according to work title
Obtain each movement that all performance versions of this musical works are included.Music according to the temperature or user of playing version is emerging
Interest portrait, can determine most suitable performance version.All movements of most suitable performance version are extracted, it can be by movement
Default put in order and be arranged in list, recommend user.It can also be by the temperature or user of movement to the fancy grade of movement
Movement is arranged, and user is recommended into the list arranged.Wherein, interest in music portrait is for describing user to performance version
Like degree, the music type liked, degree etc. liked to movement.
In some embodiments, if works information includes work title and plays version this two, retrieval mode can
To include: according to the indexed sequential of work title, performance version, retrieval is consistent with work title and the institute in the case where playing version
There is movement.
In the present embodiment, can first retrieve performance version all under corresponding works each of is included one happy
Chapter.Then, matching is corresponding plays version, and all movements for the performance version that will match to recommend user.It can be by movement
Temperature or user movement is arranged to the fancy grade of movement, and user is recommended into the list arranged.
In some embodiments, if works information includes work title and movement title this two, as shown in Fig. 2,
The process for retrieving music may include including step S610 to step S630, as follows:
S610, if works information includes work title and movement title, according to the sound for the temperature and user for playing version
Happy interest portrait, determines performance version to be retrieved.
S620, according to work title, the indexed sequential of performance version, retrieval is consistent with work title and is playing version
Under all movements.
S630 extracts the movement being consistent with movement title from the movement retrieved.
Illustratively, works information includes: the movement title of the work title of Beethoven's Ninth, third movement.
All movements under all performance versions of Beethoven's Ninth are indexed by " Beethoven's Ninth ".Then, root
All temperatures for playing each of version performance version are ranked up accordingly, extract the performance version of corresponding temperature.And
It is drawn a portrait according to the interest in music of user, for example, user is to playing the fancy grade of version, user to preference of music type etc.,
Performance version to be retrieved is determined from the performance version of the corresponding temperature of extraction.
In some embodiments, according to this all temperature played in version, performance version to be retrieved can be determined.Or
Person draws a portrait according to the interest in music of user, can also determine performance version to be retrieved.
In some embodiments, if works information includes work title, plays version and movement title, the side of retrieval
Formula directly can be indexed or be retrieved by preset index structure.As shown in figure 3, retrieval music provided in this embodiment
Process may include step S710 and step S720, as follows:
S710 according to work title, plays version if works information includes work title, plays version and movement title
This indexed sequential, retrieval is consistent with work title and all movements in the case where playing version.
S720 extracts the movement being consistent with movement title from the movement retrieved.
In the present embodiment, it is first indexed by work title, then finds and match this performance version under the musical works
Corresponding performance version, all movements under the performance version are recommended into user.It in some embodiments, can be by movement
Temperature or user arrange movement to the fancy grade of movement, and user is recommended in the list arranged.It can also be by movement
Default, which puts in order, arranges movement.
In some embodiments, if user demand includes music type, user demand can be carried out extensive.Such as
Shown in Fig. 4, the process of the determination retrieval mode of above-mentioned steps S300 may include step S310 and step S320, as follows:
S310 draws a portrait according to the interest in music of music type and user and determines if user demand includes music type
Search condition.The interest in music portrait of user may include composer, music style, movement, the performance version etc. that user likes
Information.
S320 carries out music retrieval according to determining search condition.
Illustratively, the music retrieval sentence of user's input are as follows: play classical music.User is without special retrieval mesh at this time
, it is only intended at will listen some pleasing to the ear classical music.Then can be under the restrictive condition of classical music, and the music based on user is emerging
Interesting image, such as composer, this composer classical music works, this classical music for creating of the classical music liked of user are made
The temperature of product, user (play the performance version for works of performing music the fancy grade of this classical music works and user
Philharmonic society is played by family) the information such as fancy grade, to determine classical music that user finally likes.The search condition finally obtained
It may include: the information such as the performance version of work title and each work title.Then, it is indexed by these retrieval information.
For example, for determining that user may like the musical works of " Beethoven's Ninth ", according under this works
The temperature of version and the interest in music image of user are played, determines the performance version of the musical works of this " Beethoven's Ninth "
This, such as: New York Philharmonic.Then, all movements for the Beethoven's Ninth played by New York Philharmonic are extracted.
The movement of extraction can recommend user.It can be dimension to determining musical works, by the works of musical works when recommending
Title is ranked up, such as the information such as temperature of works.One by one version will be played accordingly under the musical works of each determination
All movements play to user.
In some embodiments, if user demand includes music type, user demand can be carried out extensive.So
In addition to music type, user demand further comprises the screening conditions of limitation music type.Screening conditions may include that limitation is such
The works informations such as style, composer, creative time, the player of the musical works of music type.Therefore, above-mentioned steps S300 is mentioned
The determination process of the retrieval mode of confession, as shown in figure 5, may include step S330 and step S340, it is as follows:
S330, if user demand includes the screening conditions of music type and limitation music type, according to music type
It draws a portrait with the interest in music of user and determines search condition.The purpose of this step is general to user demand progress based on music type
Change, obtains corresponding search condition.Its extensive effect is consistent with the effect of above mentioned step S3 10, and details are not described herein.
S340 carries out music retrieval according to determining search condition and screening conditions.
The music retrieval process of the present embodiment, based on the basis of extensive demand, the works letter provided dependent on screening conditions
Breath, and be consistent with the interest in music image of user.The present embodiment can be single based on the corresponding recommendation song of screening conditions maintenance.
For example, music retrieval sentence is " classical music that broadcasting rouses oneself, the works for being sown into barpque ", then music class can be determined
Type is " classical music rouse oneself ", and screening conditions are " barpque ".For the demand of experience retrieval, for example, often occurring
Search key, different search keys (Search Requirement) can be directed to, establishing different search keys respectively, (retrieval needs
Ask) under recommendation song it is single.For example, with the Search Requirement that " classical music of barpque creation rouse oneself " includes, foundation bar
The recommendation of the classical music rouse oneself in Lip river gram period is sung single.Recommend in song list, is indexed using musical works as first term, arrange Ba Luo
The classical music rouse oneself in gram period, and safeguard in secondary entry index the respective version of each classical music.
Therefore, single according to the corresponding recommendation song of search condition and screening conditions hit determined, this is directly recommended into song list
User is recommended, by each movement under the single different editions for playing classical music one by one that put in order of song.
Fig. 6 and Fig. 7 are please referred to, Fig. 6 is the schematic diagram of the storage index structure of pop music provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram provided in an embodiment of the present invention with the storage index structure that musical works is index first place.The scheme of Fig. 6 can
To be described by taking pop music as an example.The scheme of Fig. 7 can be described by taking classical music as an example.Prevalence sound explained below
The different designs of storing data structure (storage index structure) between happy and classical music.
As shown in fig. 6, the conventional each single of pop music usually has a performance version, therefore its storing data knot
Structure is simple and flat, can be formed according to " singer-album-single " and clearly inquire chain.In retrieval, the unit of user's concern
Usually single, usual " singer+song title " can navigate to specific single.It therefore, is that retrieval main body is examined with single
Rope and recommend, be currently used music retrieval side, corresponding to storage index structure be also currently used Index Design
Method.
But for multiple classical music for playing version, each performance version has multiple movements, number
It is increasingly complex compared to conventional pop music according to structure.
Illustratively, by taking composer Beethovan as an example, create musical works include it is multiple, each works have it is multiple
Version is played, i.e., is deduced by multiple such as concert performers or philharmonic society.For example, the C ditty the 5th that the sound of reading aloud/New York Philharmonic plays is handed over
It rings bent.Such classical music has very many and diverse version, and each version can correspond to arrangement determination in certain sequence
Single, such as Opus One, the second movement etc..Wherein, the quantity for the single for being included under the different editions of same works is different
Fixed identical, the part movement because part version can only deduce in this works.
In addition, the difference of classical music and conventional music is: classical music is largely external works, and the English of works
Literary fame claims usually longer, and the English name that user is difficult to directly input works carries out program request.Therefore most of works all correspond to
Chinese, so that user identifies and inquires.Meanwhile there is also alias for part works, and these alias are compared in its works
Literary fame claims more to be recognized by users, for example, " the 5th symphony of C ditty " of Beethovan is the Chinese of works, but wide
It is general to be recognized by its alias " destiny symphony ".
Based on the above analysis, the present embodiment breaks through its conventional method retrieved and recommended " with single entity ", establishes
" work title " this pseudo-entity forms " using work title as the storage index structure of the classical music of dimension " and with this
Carry out the retrieval and recommendation of music.
As described in Figure 7, it by the indexed sequential of composer, works, version and movement (single), establishes each classical music and makees
The storage index structure of product can be used when being retrieved based on this storage index structure according to different types of user demand
Corresponding retrieval mode is retrieved, as follows:
(1) retrieval of works is specified
Firstly, retrieving the works being consistent with it according to work title.Then, according to the performance version temperature of works, use
The dimensions such as family hobby, find most suitable performance version, this is recommended to play all movements under version to user, and user can be by
Whole movements under the played in order version.
(2) retrieval of works, concert performer is specified
Firstly, retrieving the works being consistent with it according to work title.Then, the performance can be matched by retrieving under this works
The performance version of family.Finally, this is played all movements under version to user, user can be played in order under the version
Whole movements.
(3) retrieval of works, movement is specified
Firstly, retrieving the works being consistent with it according to work title.Then, according to the temperature of the performance version of this works
Or the dimensions such as hobby of user, find most suitable performance version.Phase is extracted finally, playing in all single under version from this
This corresponding movement is supplied to user by the movement answered.User can play this corresponding movement.
(4) retrieval of works, concert performer, movement is specified
Firstly, retrieving the works being consistent with it according to work title.Then, according to retrieve under this works can under this works
To match the performance version of the concert performer.Corresponding movement is extracted finally, playing in all single under version from this, by this phase
The movement answered is supplied to user.User can play this corresponding movement.
Based on above-mentioned data structure and search method, the main retrieval mode of target user that classical music will be analyzed below,
To carry out carrying out the retrieval and recommendation of classical music using different retrieval modes.
(1) retrieval and recommendation of extensive demand
If user without specific purposes, is only intended at will listen some pleasing to the ear classical music, then can by the demand of user into
Row is extensive, obtains determining search condition.Then it carries out music retrieval and recommends.
Illustratively, query (query statement) are as follows: play classical music.
It is drawn a portrait according to the interest in music of user, such as: user likes which composer, the music of which style, which list
The information such as song, which concert performer, conjecture user may favorite musical works.Then, according to music temperature and user preferences etc.
Dimension filters out the favorite version of user's most probable, and putting in order according to row by musical works from the musical works of conjecture
List whole movements under the version of each musical works.Filtered list is finally recommended into user.
It in recommendation process, using musical works as dimension, is ranked up in certain sequence, and plays each music in order
The movement of respective version under works.
(2) song single retrieval and recommendation
If user on the basis of extensive demand, gives certain screening conditions, then can be determined based on extensive demand
Search condition and screening conditions, carry out music retrieval and recommend.The mode of usual screening conditions is works information.
Illustratively, query are as follows: the works for playing the classical music rouse oneself, playing barpque.
For such demand, search result depends on works information and the interest with the expression of user.Allow to protect
Card search result meets requirements above, but since data volume is excessive, is also difficult to accurately be pushed away in a large amount of works recalled
Recommend screening.Therefore, for such demand, classical music editor expert can be directed to user demand label, safeguard under different labels
Recommendation sing it is single.User demand can be determined according to the keyword that user often retrieves.In song list, it will add by dimension of works
Plus music, and screen corresponding version.In practical application, it is single to hit corresponding song according to the query statement of user.Then will
This song is singly supplied to user, and by the movement under each works of works played in order.
(3) retrieval and recommendation of precision demand
Compared to pop music, the classical music precision demand of user is more complicated, but is regarded as " work title+additional
Condition (can be default) ".
Illustratively, if query statement is " I wants to listen Beethoven's Ninth ", for the retrieval of specified works.Such as
Fruit query statement is " playing Beethoven's Ninth third movement ", for the retrieval of specified works, movement.If inquiring language
Sentence is " playing most hot Beethoven's Ninth version ", for the retrieval specified works, play version.If query statement
It is specified works, the retrieval for playing version for " Beethoven's Ninth for playing New York Philharmonic's performance ".
The implementation process of the present embodiment, which has been fully demonstrated, to be retrieved and is recommended excellent for dimension with work title (works)
Gesture, it is only necessary to lock the musical works of user's program request, then screen the specified dimension information of user in musical works, for example, drilling
Version is played, can be quickly found out and recommends to be best suitable for movement expected from user.Greatly improve recall precision and retrieval accuracy.
Referring to Fig. 8, the embodiment of the present invention provides the device of a kind of music retrieval and recommendation, comprising:
It retrieves sentence and obtains module 100, for obtaining the music retrieval sentence of user's input;
User demand determining module 200, for determining the user demand of retrieval music according to the music retrieval sentence;
Retrieval mode determining module 300, for determining the retrieval mode of retrieval music according to the user demand;
Music retrieval module 400 obtains and the user demand phase for carrying out music retrieval according to the retrieval mode
The search result met;And
Music recommending module 500, for recommending music to the user according to the search result.
In one embodiment, the retrieval mode determining module includes:
Works information retrieval unit, if including the works information of musical works for the user demand, according to described
Works information carries out music retrieval;Wherein, the works information includes at least work title;The musical works includes at least one
A movements with multiple performance versions.
In one embodiment, the works information retrieval unit includes:
Opus One retrieves subelement, if including work title and performance version for the works information, according to institute
Work title, the indexed sequential for playing version are stated, retrieval is consistent and under the performance version with the work title
All movements.
In one embodiment, the works information retrieval unit includes:
It plays version and determines subelement, if including work title and movement title for the works information, according to drilling
The temperature of version and the interest in music portrait of the user are played, determines performance version to be retrieved;
Second movement retrieve subelement, for according to the work title, it is described play version indexed sequential, retrieval with
The work title is consistent and all movements under the performance version;And
Movement chooses subelement, for extracting the movement being consistent with the movement title from the movement retrieved.
In one embodiment, the works information retrieval unit includes:
Third movement retrieves subelement, if including work title for the works information, playing version and movement name
Claim, according to the work title, the indexed sequential for playing version, retrieval is consistent with the work title and drills described
Play all movements under version;And
Movement chooses subelement, for extracting the movement being consistent with the movement title from the movement retrieved.
In one embodiment, the retrieval mode determining module includes:
First search condition determination unit, if including music type for the user demand, according to the music
Type and the interest in music of the user, which are drawn a portrait, determines search condition;And
Condition retrieval unit, for carrying out music retrieval according to determining search condition.
In one embodiment, the retrieval mode determining module includes:
Second search condition determination unit, if including music type and the limitation music class for the user demand
The screening conditions of type then draw a portrait according to the interest in music of the music type and the user and determine search condition;And
Conditional filtering retrieval unit, for carrying out music retrieval according to determining search condition and the screening conditions.
The function of described device can also execute corresponding software realization by hardware realization by hardware.It is described
Hardware or software include one or more modules corresponding with above-mentioned function.
It include processor and memory, the storage in the structure of music retrieval and recommendation in a possible design
Device executes the program of music retrieval and recommendation in above-mentioned first aspect, the processor quilt for the device of music retrieval and recommendation
It is configured for executing the program stored in the memory.The music retrieval can also include communicating to connect with the device of recommendation
Mouthful, for music retrieval and the device of recommendation and other equipment or communication.
The embodiment of the present invention also provides the terminal device of a kind of music retrieval and recommendation, as shown in figure 9, the equipment includes:
Memory 21 and processor 22, being stored in memory 21 can be in the computer program on processor 22.Processor 22 executes meter
The method for realizing the music retrieval in above-described embodiment and recommendation when calculation machine program.The quantity of memory 21 and processor 22 can be with
For one or more.
The equipment further include:
Communication interface 23, for the communication between processor 22 and external equipment.
Memory 21 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile
Memory), a for example, at least magnetic disk storage.
If memory 21, processor 22 and the independent realization of communication interface 23, memory 21, processor 22 and communication are connect
Mouth 23 can be connected with each other by bus and complete mutual communication.Bus can be industry standard architecture (ISA,
Industry Standard Architecture) bus, external equipment interconnection (PCI, Peripheral Component) be total
Line or extended industry-standard architecture (EISA, Extended Industry Standard Component) bus etc..Always
Line can be divided into address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Fig. 9, but simultaneously convenient for indicating
Only a bus or a type of bus are not indicated.
Optionally, in specific implementation, if memory 21, processor 22 and communication interface 23 are integrated in chip piece
On, then memory 21, processor 22 and communication interface 23 can complete mutual communication by internal interface.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment of the present invention or example.Moreover, particular features, structures, materials, or characteristics described
It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this
The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples
Sign is combined.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or hidden
It include at least one this feature containing ground.In the description of the present invention, the meaning of " plurality " is two or more, unless otherwise
Clear specific restriction.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.
The computer-readable medium of the embodiment of the present invention can be computer-readable signal media or computer-readable deposit
Storage media either the two any combination.The more specific example at least (non-exclusive of computer readable storage medium
List) include the following: there is the electrical connection section (electronic device) of one or more wirings, portable computer diskette box (magnetic dress
Set), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (deposit by EPROM or flash
Reservoir), fiber device and portable read-only memory (CDROM).In addition, computer readable storage medium can even is that
Can the paper of print routine or other suitable media on it because can for example be swept by carrying out optics to paper or other media
It retouches, is then edited, interprets or handled when necessary with other suitable methods electronically to obtain program, then will
It is stored in computer storage.
In embodiments of the present invention, computer-readable signal media may include in a base band or as carrier wave a part
The data-signal of propagation, wherein carrying computer-readable program code.The data-signal of this propagation can use a variety of
Form, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media is also
It can be any computer-readable medium other than computer readable storage medium, which can send, pass
It broadcasts or transmits for instruction execution system, input method or device use or program in connection.Computer can
The program code for reading to include on medium can transmit with any suitable medium, including but not limited to: wirelessly, electric wire, optical cable, penetrate
Frequently (Radio Frequency, RF) etc. or above-mentioned any appropriate combination.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is the program that relevant hardware can be instructed to complete by program, which can store in a kind of computer-readable storage
In medium, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with
The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one
In storage medium.Storage medium can be read-only memory, disk or CD etc..
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in its various change or replacement, these
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims
It is quasi-.
Claims (16)
1. a kind of method of music retrieval and recommendation characterized by comprising
Obtain the music retrieval sentence of user's input;
According to the music retrieval sentence, the user demand of retrieval music is determined;
According to the user demand, the retrieval mode of retrieval music is determined;
Music retrieval is carried out according to the retrieval mode, obtains the search result being consistent with the user demand;
According to the search result, recommend music to the user.
2. the method as described in claim 1, which is characterized in that according to the user demand, determine the retrieval side of retrieval music
Formula, comprising:
If the user demand includes the works information of musical works, music retrieval is carried out according to the works information;Wherein,
The works information includes at least work title;The musical works includes at least one with multiple movements for playing version.
3. method according to claim 2, which is characterized in that carry out music retrieval according to the works information, comprising:
If the works information includes work title and plays version, according to the work title, the rope for playing version
Draw sequence, retrieval is consistent with the work title and all movements under the performance version.
4. method according to claim 2, which is characterized in that carry out music retrieval according to the works information, comprising:
If the works information includes work title and movement title, according to the music for the temperature and the user for playing version
Interest portrait, determines performance version to be retrieved;
According to the work title, the indexed sequential for playing version, retrieval is consistent and described with the work title
Play all movements under version;And
From the movement retrieved, the movement being consistent with the movement title is extracted.
5. method according to claim 2, which is characterized in that carry out music retrieval according to the works information, comprising:
If the works information includes work title, plays version and movement title, according to the work title, the performance
The indexed sequential of version, retrieval is consistent with the work title and all movements under the performance version;And
From the movement retrieved, the movement being consistent with the movement title is extracted.
6. such as method described in any one of claim 1 to 5, which is characterized in that according to the user demand, determine retrieval music
Retrieval mode, comprising:
If the user demand includes music type, drawn a portrait according to the interest in music of the music type and the user true
Determine search condition;And
Music retrieval is carried out according to determining search condition.
7. such as method described in any one of claim 1 to 5, which is characterized in that according to the user demand, determine retrieval music
Retrieval mode, comprising:
If the user demand includes music type and the screening conditions for limiting the music type, according to the music class
Type and the interest in music of the user, which are drawn a portrait, determines search condition;And
Music retrieval is carried out according to determining search condition and the screening conditions.
8. the device of a kind of music retrieval and recommendation characterized by comprising
It retrieves sentence and obtains module, for obtaining the music retrieval sentence of user's input;
User demand determining module, for determining the user demand of retrieval music according to the music retrieval sentence;
Retrieval mode determining module, for determining the retrieval mode of retrieval music according to the user demand;
Music retrieval module, for carrying out music retrieval according to the retrieval mode, what acquisition was consistent with the user demand
Search result;And
Music recommending module, for recommending music to the user according to the search result.
9. device as claimed in claim 8, which is characterized in that the retrieval mode determining module includes:
Works information retrieval unit, if including the works information of musical works for the user demand, according to the works
Information carries out music retrieval;Wherein, the works information includes at least work title;The musical works includes at least one tool
There are multiple movements for playing version.
10. device as claimed in claim 9, which is characterized in that the works information retrieval unit includes:
Opus One retrieves subelement, if including work title and performance version for the works information, according to the work
The name of an article claims, the indexed sequential for playing version, and retrieval is consistent with the work title and in the institute played under version
There is movement.
11. device as claimed in claim 9, which is characterized in that the works information retrieval unit includes:
It plays version and determines subelement, if including work title and movement title for the works information, according to performance version
This temperature and the interest in music of the user are drawn a portrait, and determine performance version to be retrieved;
Second movement retrieve subelement, for according to the work title, it is described play version indexed sequential, retrieval with it is described
Work title is consistent and all movements under the performance version;And
Movement chooses subelement, for extracting the movement being consistent with the movement title from the movement retrieved.
12. device as claimed in claim 9, which is characterized in that the works information retrieval unit includes:
Third movement retrieves subelement, if including work title for the works information, playing version and movement title, according to
According to the work title, the indexed sequential for playing version, retrieval is consistent and in the performance version with the work title
All movements under this;And
Movement chooses subelement, for extracting the movement being consistent with the movement title from the movement retrieved.
13. such as the described in any item devices of claim 8 to 12, which is characterized in that the retrieval mode determining module includes:
First search condition determination unit, if including music type for the user demand, according to the music type
It draws a portrait with the interest in music of the user and determines search condition;And
Condition retrieval unit, for carrying out music retrieval according to determining search condition.
14. such as the described in any item devices of claim 8 to 12, which is characterized in that the retrieval mode determining module includes:
Second search condition determination unit, if including music type and the limitation music type for the user demand
Screening conditions then draw a portrait according to the interest in music of the music type and the user and determine search condition;And
Conditional filtering retrieval unit, for carrying out music retrieval according to determining search condition and the screening conditions.
15. the terminal device of a kind of music retrieval and recommendation, which is characterized in that the terminal device includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors
Realize the method as described in any in claim 1-7.
16. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor
The method as described in any in claim 1-7 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811348100.8A CN109299314B (en) | 2018-11-13 | 2018-11-13 | Music retrieval and recommendation method, device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811348100.8A CN109299314B (en) | 2018-11-13 | 2018-11-13 | Music retrieval and recommendation method, device, storage medium and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109299314A true CN109299314A (en) | 2019-02-01 |
CN109299314B CN109299314B (en) | 2019-12-27 |
Family
ID=65145895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811348100.8A Active CN109299314B (en) | 2018-11-13 | 2018-11-13 | Music retrieval and recommendation method, device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109299314B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532419A (en) * | 2019-08-29 | 2019-12-03 | 腾讯科技(深圳)有限公司 | A kind of processing method and processing device of audio |
CN112333596A (en) * | 2020-11-05 | 2021-02-05 | 江苏紫米电子技术有限公司 | Earphone equalizer adjusting method, device, server and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991943A (en) * | 2015-07-10 | 2015-10-21 | 百度在线网络技术(北京)有限公司 | Music searching method and apparatus |
CN105550217A (en) * | 2015-12-03 | 2016-05-04 | 腾讯科技(深圳)有限公司 | Scene music searching method and scene music searching apparatus |
CN105930429A (en) * | 2016-04-19 | 2016-09-07 | 乐视控股(北京)有限公司 | Music recommendation method and apparatus |
CN107885801A (en) * | 2017-10-31 | 2018-04-06 | 上海博泰悦臻网络技术服务有限公司 | Multi-level method for information retrieval, navigation terminal and storage medium |
CN108304441A (en) * | 2017-11-14 | 2018-07-20 | 腾讯科技(深圳)有限公司 | Network resource recommended method, device, electronic equipment, server and storage medium |
-
2018
- 2018-11-13 CN CN201811348100.8A patent/CN109299314B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991943A (en) * | 2015-07-10 | 2015-10-21 | 百度在线网络技术(北京)有限公司 | Music searching method and apparatus |
CN105550217A (en) * | 2015-12-03 | 2016-05-04 | 腾讯科技(深圳)有限公司 | Scene music searching method and scene music searching apparatus |
CN105930429A (en) * | 2016-04-19 | 2016-09-07 | 乐视控股(北京)有限公司 | Music recommendation method and apparatus |
CN107885801A (en) * | 2017-10-31 | 2018-04-06 | 上海博泰悦臻网络技术服务有限公司 | Multi-level method for information retrieval, navigation terminal and storage medium |
CN108304441A (en) * | 2017-11-14 | 2018-07-20 | 腾讯科技(深圳)有限公司 | Network resource recommended method, device, electronic equipment, server and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532419A (en) * | 2019-08-29 | 2019-12-03 | 腾讯科技(深圳)有限公司 | A kind of processing method and processing device of audio |
CN112333596A (en) * | 2020-11-05 | 2021-02-05 | 江苏紫米电子技术有限公司 | Earphone equalizer adjusting method, device, server and medium |
CN112333596B (en) * | 2020-11-05 | 2024-06-04 | 江苏紫米电子技术有限公司 | Earphone equalizer adjustment method, device, server and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109299314B (en) | 2019-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10417278B2 (en) | Systems and methods to facilitate media search | |
CN101243428B (en) | Single action media playlist generation | |
KR101648204B1 (en) | Generating metadata for association with a collection of content items | |
US7930329B2 (en) | System, method and medium browsing media content using meta data | |
EP1734457A2 (en) | Browsing method and apparatus using metadata | |
CN109299318A (en) | Method, apparatus, storage medium and the terminal device that music is recommended | |
US20080215624A1 (en) | Apparatus and method for producing play list | |
EP1855216A2 (en) | System, device, method, and program for segmenting radio broadcast audio data | |
US20100217755A1 (en) | Classifying a set of content items | |
US11093544B2 (en) | Analyzing captured sound and seeking a match for temporal and geographic presentation and navigation of linked cultural, artistic, and historic content | |
US20070193437A1 (en) | Apparatus, method, and medium retrieving a highlighted section of audio data using song lyrics | |
CN111723289B (en) | Information recommendation method and device | |
CN109299314A (en) | Music retrieval and the method, apparatus of recommendation, storage medium and terminal device | |
US20220147558A1 (en) | Methods and systems for automatically matching audio content with visual input | |
JP2012239058A (en) | Reproducer, reproduction method, and computer program | |
KR100975127B1 (en) | Method and system for music grouping service based emotional similarity | |
US20220350838A1 (en) | Methods and systems for organizing music tracks | |
JP2010165160A (en) | Musical piece classification device, musical piece retrieval system and computer program | |
JP2008225584A (en) | Article recommendation apparatus, article recommendation system, article recommendation method, and article recommendation program | |
Schönfuß | Content-based music discovery | |
CN109447763A (en) | Method, apparatus, storage medium and the terminal device that musical works is recommended | |
CN105070306B (en) | One kind adds multimedia method and device into multimedia play list | |
JP5521094B2 (en) | Music classification device and music search system | |
AU2021250903A1 (en) | Methods and systems for automatically matching audio content with visual input | |
Dusanowskyj | Tags and tunes: Last. fm, folksonomy and new'types of music' |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210510 Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing Patentee after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd. Patentee after: Shanghai Xiaodu Technology Co.,Ltd. Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing Patentee before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |