CN107133308A - The single generation method of one kind song and mobile terminal - Google Patents
The single generation method of one kind song and mobile terminal Download PDFInfo
- Publication number
- CN107133308A CN107133308A CN201710295590.9A CN201710295590A CN107133308A CN 107133308 A CN107133308 A CN 107133308A CN 201710295590 A CN201710295590 A CN 201710295590A CN 107133308 A CN107133308 A CN 107133308A
- Authority
- CN
- China
- Prior art keywords
- word
- song
- word frequency
- words
- lyrics
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/635—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/638—Presentation of query results
- G06F16/639—Presentation of query results using playlists
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/68—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/686—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Telephone Function (AREA)
Abstract
The invention provides the single generation method of one kind song and mobile terminal.This method includes:The lyrics of all songs in preset range are analyzed, total word frequency list is obtained;The word in total word frequency list is screened according to preparatory condition;If detecting the newly-built song single operation of user's triggering, multiple words after screening are shown according to the order of word frequency from high to low;If the selection operation of at least one word in detecting multiple words to displaying that user triggers, the new song list named with least one word is created, and target song of the lyrics in all songs comprising at least one word is added to new song list.The present invention can name the new song single using the word of user's selection, the song of word of the lyrics in the preset range comprising the selection is added into the new song list, reduce the single name difficulty of song, and the automatic addition of song in song list is realized, simplify addition song single purpose step and reduce operation complexity.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of single generation method of song and mobile terminal.
Background technology
Song is singly a kind of common function in music player.Song is single, it can be understood as the list of song.User can be by
All songs in this list are played according to certain order (single circulation, shuffle, played in order).
So for the single establishment of song, the scheme of prior art is mainly artificial operation, specifically, and user can be with
Newly-built song single button is clicked on, at this moment system generates an empty song list, then user is singly named to this sky song, then, uses
Family needs to manually select some target songs from some existing songs of music player to be added to the empty song of the new establishment
Dan Zhong, so that it is single to generate a song.
As can be seen here, in song list generation scheme in the prior art, on the one hand, the title of the song list newly created needs to use
Family oneself is defined, then user is accomplished by the substantially style or type (such as love, parent of song in the created song list of thinking
Feelings, sentiment etc.), and name song single with the style or type, be so not in just to see the song single-character given name when listening to music
The problem of claiming without knowing the song type in the song list.It is very time-consuming to take and style, the type of song then need user to think deeply
Power.On the other hand, the song in the song list newly created needs to be added manually by user oneself, and this obviously increases the operation of user
Step, is unfavorable for quickly generating for song list.
Therefore, when needing to make song single-character given name claim similar with song single wind, song list of the prior art generates scheme, generally deposits
The single name difficulty of song it is big and sing in antiphonal style single addition song the step of cumbersome, complex operation the problem of.
The content of the invention
The embodiment of the present invention provides a kind of single generation method of song and mobile terminal, to solve when needs make song single-character given name claim and sing
When single wind is similar, single name difficulty is big and list of singing in antiphonal style adds bent for singing present in song list generation scheme of the prior art
The problem of purpose complex steps, complex operation.
In a first aspect, the embodiments of the invention provide the single generation method of one kind song, applied to mobile terminal, methods described bag
Include:
The lyrics of all songs in preset range are analyzed, total word frequency list is obtained, wherein, total word frequency list includes
The word frequency of each word in the lyrics of all songs, the word frequency is that each word goes out in the lyrics of all songs
Existing total degree;
The word in total word frequency list is screened according to preparatory condition;
If detecting the newly-built song single operation of user's triggering, by multiple words after screening according to word frequency from high to low
Order is shown;
If detecting the selection operation of at least one word in the multiple word to displaying of user's triggering,
The new song list named with least one described word is then created, and the lyrics in all songs are included at least one described word
The target song of language adds single to the new song.
Second aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, and the mobile terminal includes:
Analysis module, analyzes for the lyrics to all songs in preset range, obtains total word frequency list, wherein, institute
The word frequency of each word in the lyrics of total word frequency list including all songs is stated, the word frequency is each word described all
The total degree occurred in the lyrics of song;
Screening module, for being screened according to preparatory condition to the word in total word frequency list;
Display module, if for detect user triggering newly-built song single operation, by multiple words after screening according to
The order of word frequency from high to low is shown;
Creation module, if for detecting at least one word in the multiple word to displaying that the user triggers
The selection operation of language, then create the new song list named with least one described word, and the lyrics in all songs are included
The target song of at least one word adds single to the new song.
So, the embodiment of the present invention is by building total word frequency list of the word of song in preset range, and is needed in user
When newly-built song is single, the higher word of word frequency in total word frequency list after screening is recommended into user and preferentially shown, so when user from
It has selected in the word of displaying after suitable word, the present invention just can name the new song single using the word of user's selection,
And add the song of word of the lyrics in the preset range comprising the selection into the new song list so that the single title of newly-built song
All automatically generated with song, and make the title of song list consistent with the style of song for the song that song is single, it is to avoid user's singing in antiphonal style single-character given name claims
Name, reduce the single name difficulty of song, and realize the automatic addition of song in song list, simplify addition song single purpose
Step simultaneously reduces operation complexity.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the flow chart of the single generation method of song of one embodiment of the invention;
Fig. 2 is the flow chart of the generation method of total word frequency list of one embodiment of the invention;
Fig. 3 is the block diagram of the mobile terminal of one embodiment of the invention;
Fig. 4 is the block diagram of the mobile terminal of another embodiment of the present invention;
Fig. 5 is the block diagram of the mobile terminal of another embodiment of the invention;
Fig. 6 is the structural representation of the mobile terminal of one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Reference picture 1, shows the flow chart of the single generation method of song of one embodiment of the invention, applied to mobile terminal,
Methods described specifically may include steps of:
Step 101, the lyrics of all songs in preset range are analyzed, obtains total word frequency list;
Wherein, the song in newly-generated song list can be selected from a range of song, here the embodiment of the present invention
Sing the song of song then in preset range in list.And the song that can be user like of the song in preset range, use
A class or a few class songs in the song of family collection, the song of user's purchase, the song downloaded of user etc. classification it is total
With.
Song in the preset range can be pre-defined by system, can also be specified by user, the present invention to this not
Do concrete restriction.
Here, analyzed by the lyrics to the song in the preset range, it is possible to obtain total word frequency list.
Wherein, in the lyrics of total word frequency list including all songs each word word frequency, and the word frequency is
The total degree that each word occurs in the lyrics of all songs.
For example, the word of all songs (including song 1, song 2 and song 3) is respectively word in the preset range
1st, word 2 and word 3, wherein, the number of times that word 1 occurs in the song 1 is 1 time, is occurred respectively in song 2 and song 3
Number of times be 2 times;Word 2 occurs 1 time respectively in song 1 and song 2, occurs 0 time in song 3;Word 3 is in song 1
Occur 3 times, occur 0 time in song 2 and song 3, then the word frequency of word 1 is then 5 (that is, 1+2+2), and the word frequency of word 2 is 2
(i.e. 1+1), the word frequency of word 3 is 3.
Step 102, the word in total word frequency list is screened according to preparatory condition;
Wherein, although relate to the word frequency of all words of all songs in total word frequency list, but in order to economize on resources with
And the single efficiency of the newly-built song of lifting, the part for only recommending user the song style of song in and song list single to name song related here
Word, therefore, needs exist for screening the word in total word frequency list according to preparatory condition, recommends to want so as to obtain meeting
Total word frequency list after the screening asked.
Step 103, if detect user triggering newly-built song single operation, by multiple words after screening according to word frequency from
High to Low order is shown;
Wherein, if detect it is newly-built song single operation (such as user clicks newly-built song single button), then can will always
Obtained multiple words are shown according to the order of word frequency from high to low after being screened in word frequency list, so that user is from these words
It is middle to select for naming the single word of song.
Step 104, if at least one word in detecting the multiple word to displaying of user triggering
Selection operation, then create the new song list named with least one described word, and by the lyrics in all songs comprising described
The target song of at least one word adds single to the new song.
Wherein, if detecting user to the selection operation of at least one word in these words of displaying (i.e. user
One or more words can be selected from multiple words of displaying to name song single), then the embodiment of the present invention can just be created
A new song list named with least one word is built, and fills the song list, concrete mode is:By in above-mentioned preset range
Target song of the lyrics comprising at least one word is all added into the new song list in all songs so that the song in song list
Bent lyrics style of song is consistent with the title of the song list.
Wherein, if user have selected multiple words to name song single, then the title of the song list can use the plurality of
Any combinations form of word realizes, such as between multiple words using space, branch, whippletree punctuation mark separates.
So, the embodiment of the present invention is by building total word frequency list of the word of song in preset range, and is needed in user
When newly-built song is single, the higher word of word frequency in total word frequency list after screening is recommended into user and preferentially shown, so when user from
It has selected in the word of displaying after suitable word, the present invention just can name the new song single using the word of user's selection,
And add the song of word of the lyrics in the preset range comprising the selection into the new song list so that the single title of newly-built song
All automatically generated with song, and make the title of song list consistent with the style of song for the song that song is single, it is to avoid user's singing in antiphonal style single-character given name claims
Name, reduce the single name difficulty of song, and realize the automatic addition of song in song list, simplify addition song single purpose
Step simultaneously reduces operation complexity.
Wherein, in one embodiment, when performing step 101, method according to embodiments of the present invention can be using such as
Under type is realized:
All lyrics files of all songs in preset range are converted into multiple texts, wherein, each lyrics text
Part one text of correspondence;
Word segmentation processing is made to the lyrics in the multiple text, the first set of words is obtained;
Default nonsense words in first set of words are filtered, the second set of words is obtained;
Total number to each word in second set of words is counted, and generates total word frequency list.
Specifically, first, the lyrics file per song in the preset range is respectively converted into text,
That is, then, reuse participle technique to that there should be a text per the lyrics file of first song and come in multiple texts
The lyrics make word segmentation processing and (such as have one " I like sing ", then the word bag obtained after word segmentation processing in the lyrics
Include:I, like, sing.That is, the word after word segmentation processing of the present invention can be word, word and phrase), obtain all songs
All words of all lyrics files, generate the first set of words, wherein, it is included in same song in first set of words
Or there is multiple dittograph in different songs, i.e. there is dittograph language in set.And the definition specific to the word comes
Say, different division results can be produced, such as the word after dividing can be word, word, phrase according to the difference of participle technique
Deng.The present invention is not particularly limited for participle technique, as long as the technology of word processing can be carried out in the prior art,
Likewise, the form of the word to being obtained after institute's word is equally not particularly limited.
Then, due to that can have the insignificant words unrelated with style of song such as many preposition, article, modal particles in the lyrics
Language, their word frequency is also higher, therefore, in order to avoid the life of song in these insignificant single names of words singing in antiphonal style and song list
Into interference, here can to the default nonsense words in first set of words (word i.e. unrelated with style of song, for example
Above-mentioned preposition, article, modal particle etc.) filtered, so as to obtain the second set of words.Certainly, this presets nonsense words simultaneously
Above-mentioned preposition, article, modal particle are not limited to, other words unrelated with style of song can also be included, be will not be repeated here.
Finally, the total number to each word in second set of words is counted, and generates total word frequency list, wherein,
For dittograph language, their total number is naturally larger than 1, can thus generate total word frequency list.
So, the embodiment of the present invention is unified by the text to all lyrics files of all songs in preset range
Make word, filtration treatment, and a total word frequency list uniformly is generated to the set of words after filtering, reduce individually for different songs
The bent operation complexity for generating word frequency list respectively.
In addition, in another embodiment, when performing step 101, method according to embodiments of the present invention can also be adopted
Realized with following manner:
All lyrics files of all songs in preset range are converted into multiple texts, wherein, each lyrics text
Part one text of correspondence;
Word segmentation processing is made respectively to the lyrics in each text, multiple first set of words are obtained;
Default nonsense words in each first set of words are filtered respectively, multiple second word collection are obtained
Close;
Multiple word frequency lists are generated to the multiple second set of words, each word frequency list is included in each second set of words
The total number of each word;
Total number of the identical word in each word frequency list in the multiple word frequency list is overlapped, identical word is obtained
Word frequency;
According to total number of the different terms in each word frequency list in the multiple word frequency list, and the identical word
Word frequency, generates total word frequency list.
Specifically, the song in reference picture 2, such as preset range is n, can be by the n lyrics text of n songs
Part is respectively converted into n lyrics text (i.e. n text), then, the lyrics in n lyrics text are made respectively word with
And filtration treatment, so as to obtain n word frequency list;
Specifically the process of n word frequency list of generation is:Word segmentation processing is made respectively to the lyrics of n lyrics text, n the is obtained
One set of words;Then, the default nonsense words (referring in particular to above-described embodiment) in n the first set of words are entered respectively
Row filtering, obtains n the second set of words;Finally, n word frequency list, each word frequency list are generated to the n the second set of words
Include the total number of each word in each second set of words;
Finally, the word frequency result of n word frequency list is collected, generates total word frequency list.
Wherein, integration process is:Total number of the identical word in each word frequency list in the n word frequency list is folded
Plus, obtain the word frequency of identical word;Then, according to total number of the different terms in each word frequency list in the n word frequency list,
And the word frequency of the identical word, generate total word frequency list.
So, the embodiment of the present invention per song in preset range by being individually created a word frequency list, finally, by this
A little word frequency lists are collected to generate total word frequency list, then when the user's next time of newly-built song list again, if newly-built song is single selected
Preset range in preset range of song when newly-built song is single comprising before at least one song, i.e., newly-built song it is single 1 when,
Song in preset range includes the song 1 downloaded, after the completion of newly-built song single 1, then during newly-built song list 2, in preset range
Song still include the song 1 downloaded, then carry out repeating establishment without the word frequency list 1 to song 1, realize word frequency list
Once create, permanent utilization, save newly-built song single time, improve the single establishment efficiency of song.
Alternatively, in one embodiment after total word frequency list is obtained, method according to embodiments of the present invention can will be total
Word in word frequency list is ranked up, even if each word in total word frequency list is arranged according to the order of word frequency from high to low.
Wherein, in one embodiment, if finding that the word frequency of some words is identical after sequence, then can further adopt
Arranged with the spelling order of word, for example, if the song in the preset range is Chinese songs, then herein
Spelling order can be pinyin order;If the song in the preset range is English song, then spelling order herein is then
It is the English alphabet sequence of word initial.
So when performing above-mentioned steps 102, method according to embodiments of the present invention can be selected from total word frequency list
Take that word frequency is more than or equal to default word frequency threshold value and ranking is more than or equal to multiple first words of default rank threshold to realize
To the word screening in total word frequency list.
For example, word frequency can be chosen from total word frequency list more than or equal to 20 and come preceding 15 multiple words and carry out user
The recommendation displaying of subsequent step 103.
, wherein it is desired to which it is noted that the default word frequency threshold value and the default rank threshold can be according in preset ranges
The total quantity of song be adjusted flexibly, such as when the total quantity of song is more, then two threshold value values can be made slightly larger, if
When the total quantity of song is less, then two threshold value values can be made smaller.
So, the embodiment of the present invention can carry out follow-up to the word that word frequency is higher in total word frequency list and word frequency ranking is higher
Recommendation displaying, be easy to user to select.
Accordingly, in another embodiment, the total word frequency list for performing last embodiment screening step basis
On, step 102 according to embodiments of the present invention can also include:Filter semantic with having created song list in the multiple first word
Song single-character given name claim similar word, multiple words after being screened.
That is, multiple first words that word frequency is higher and word frequency ranking is higher are have chosen from total word frequency list in above-mentioned steps
After language, in addition it is also necessary to some are filtered from the plurality of first word and claims semanteme similar or close to the existing single song single-character given name of song that created
Word so that multiple words after finally being screened, recommend for follow-up displaying.
Such as having created song single-character given name and claimed to include Chinese feature, Great Britain, love, then if the word frequency of screening is more than or equal to 20
And come preceding 15 word include loving, emotional affection, sadness etc., wherein, love and to love semanteme similar needs exist for that this will be loved
Individual word is filtered out, can so avoid recommending the word of the user song single-character given name single with having sung claim it is similar, and further
Avoid newly-built song single similar with having sung single style of song, and the single song of newly-built song is repeated in the presence of with having sung the song in list
Situation.
Reference picture 3, shows the block diagram of the mobile terminal of one embodiment of the invention.The mobile terminal of the embodiment of the present invention
The details of the single generation method of song in above-described embodiment can be realized, and reaches identical effect.Mobile terminal includes shown in Fig. 3:
Analysis module 31, analyzes for the lyrics to all songs in preset range, obtains total word frequency list, wherein,
The word frequency of total word frequency list each word in the lyrics including all songs, the word frequency is each word in the institute
The total degree occurred in the lyrics for having song;
Screening module 32, for being screened according to preparatory condition to the word in total word frequency list;
Display module 33, if the newly-built song single operation for detecting user's triggering, multiple words after screening are pressed
It is shown according to the order of word frequency from high to low;
Creation module 34, if for detecting at least one in the multiple word to displaying that the user triggers
The selection operation of word, then create the new song list named with least one described word, and by lyrics bag in all songs
Target song containing at least one word adds single to the new song.
Alternatively, reference picture 4, the analysis module 31 includes:
First transform subblock 311, for all lyrics files of all songs in preset range to be converted into multiple texts
This document, wherein, one text of each lyrics file correspondence;
First participle submodule 312, for making word segmentation processing to the lyrics in the multiple text, obtains the first word
Language set;
First filter submodule 313, for being filtered to the default nonsense words in first set of words, is obtained
To the second set of words;
Statistic submodule 314, is counted for the total number to each word in second set of words, and generation is total
Word frequency list.
Alternatively, reference picture 4, the analysis module 31 includes:
Second transform subblock 315, for all lyrics files of all songs in preset range to be converted into multiple texts
This document, wherein, one text of each lyrics file correspondence;
Second participle submodule 316, for making word segmentation processing respectively to the lyrics in each text, obtains multiple
One set of words;
Second filter submodule 317, for being carried out respectively to the default nonsense words in each first set of words
Filter, obtains multiple second set of words;
First generation submodule 318, for generating multiple word frequency lists, each word frequency list to the multiple second set of words
Include the total number of each word in each second set of words;
Submodule 319 is superimposed, for entering to total number of the identical word in each word frequency list in the multiple word frequency list
Row superposition, obtains the word frequency of identical word;
Second generation submodule 320, for total in each word frequency list according to different terms in the multiple word frequency list
Number, and the identical word word frequency, generate total word frequency list.
Alternatively, reference picture 4, the screening module 32 includes:
Submodule 321 is chosen, is more than or equal to default word frequency threshold value and row for choosing word frequency from total word frequency list
Name is more than or equal to multiple first words of default rank threshold.
Alternatively, reference picture 4, the screening module 32 also includes:
3rd filter submodule 322, for filtering the semantic song single-character given name single with having created song in the multiple first word
Claim similar word, multiple words after being screened.
Mobile terminal can realize each process that the method in previous embodiment is realized, to avoid repeating, here no longer
Repeat.
Fig. 5 is the block diagram of the mobile terminal of another embodiment of the invention.Mobile terminal 500 shown in Fig. 5 includes:At least
One processor 501, memory 502, at least one network interface 504 and user interface 503.Each in mobile terminal 500
Component is coupled by bus system 505.It is understood that bus system 505 is used to realize that the connection between these components to be led to
Letter.Bus system 505 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But be
For the sake of clear explanation, in Figure 5 various buses are all designated as bus system 505.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 502 be intended to including but not limited to these
With the memory of any other suitable type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for
Realize various basic businesses and handle hardware based task.Application program 5022, includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 5022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 502, specifically, can be application
The program stored in program 5022 or instruction, processor 501 are used to analyze the lyrics of all songs in preset range, obtain
To total word frequency list, wherein, the word frequency of each word in the lyrics of total word frequency list including all songs, the word frequency is
The total degree that each word occurs in the lyrics of all songs;According to preparatory condition to the word in total word frequency list
Screened;If detect user triggering newly-built song single operation, by multiple words after screening according to word frequency from high to low
Order be shown;If detecting the choosing of at least one word in the multiple word to displaying of user's triggering
Extract operation, then create with least one described word name new song list, and will the lyrics in all songs comprising described in extremely
The target song of a few word adds single to the new song.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501.
Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing
Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 502, processor 501 reads the information in memory 502, the step of completing the above method with reference to its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits
(Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal
Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place
Manage in device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software realize, can by perform the module (such as process, function) of function described in the embodiment of the present invention come
Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can
To realize within a processor or outside processor.
Alternatively, processor 501 is additionally operable to:All lyrics files of all songs in preset range are converted into multiple texts
This document, wherein, one text of each lyrics file correspondence;The lyrics in the multiple text are made at participle
Reason, obtains the first set of words;Default nonsense words in first set of words are filtered, the second word is obtained
Set;Total number to each word in second set of words is counted, and generates total word frequency list.
Alternatively, processor 501 is additionally operable to:All lyrics files of all songs in preset range are converted into multiple texts
This document, wherein, one text of each lyrics file correspondence;The lyrics in each text are made at participle respectively
Reason, obtains multiple first set of words;Default nonsense words in each first set of words are filtered respectively, obtained
Multiple second set of words;Multiple word frequency lists are generated to the multiple second set of words, each word frequency list includes each second
The total number of the word of each in set of words;Total number of the identical word in each word frequency list in the multiple word frequency list is entered
Row superposition, obtains the word frequency of identical word;According to total number of the different terms in each word frequency list in the multiple word frequency list,
And the word frequency of the identical word, generate total word frequency list.
Alternatively, processor 501 is additionally operable to:Word frequency is chosen from total word frequency list and is more than or equal to default word frequency threshold
It is worth and ranking is more than or equal to multiple first words for presetting rank threshold.
Alternatively, processor 501 is additionally operable to:Filter the semantic song single-character given name single with having created song in the multiple first word
Claim similar word, multiple words after being screened.
It can be seen that, the mobile terminal 500 of the embodiment of the present invention can realize each that mobile terminal in previous embodiment realizes
Process, to avoid repeating, is repeated no more here.
Fig. 6 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6
600 can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 600 in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input
Unit 630, display unit 640, processor 660, voicefrequency circuit 670, WiFi (Wireless Fidelity) modules 680 and electricity
Source 690.
Wherein, input block 630 can be used for receive mobile terminal user input numeral or character information, and produce with
The signal input that the mobile terminal user of mobile terminal 600 is set and function control is relevant.Specifically, the embodiment of the present invention
In, the input block 630 can include contact panel 631.Contact panel 631, also referred to as touch-screen, collect mobile terminal and use
(such as mobile terminal user uses any suitable objects or annex such as finger, stylus for touch operation of the family on or near it
Operation on contact panel 631), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel
631 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects mobile terminal user's
Touch orientation, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch detection
Touch information is received on device, and is converted into contact coordinate, then gives the processor 660, and energy reception processing device 660 is sent out
Come order and performed.Furthermore, it is possible to real using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Existing contact panel 631.Except contact panel 631, input block 630 can also include other input equipments 632, and other inputs are set
Standby 632 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse
One or more in mark, action bars etc..
Wherein, display unit 640 can be used for showing the information inputted by mobile terminal user or be supplied to mobile terminal to use
The information at family and the various menu interfaces of mobile terminal 600.Display unit 640 may include display panel 641, optionally, can
To configure display using the form such as LCD or Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
Panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection
Measure after the touch operation on or near it, processor 660 is sent to determine the type of touch event, with preprocessor
660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of mobile terminal 600, utilizes various interfaces and connection whole mobile phone
Various pieces, software program and/or module in first memory 621 are stored in by operation or execution, and call storage
Data in second memory 622, perform the various functions and processing data of mobile terminal 600, so as to mobile terminal 600
Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/
Or the data in the second memory 622, processor 660 is used to analyze the lyrics of all songs in preset range, obtains
To total word frequency list, wherein, the word frequency of each word in the lyrics of total word frequency list including all songs, the word frequency is
The total degree that each word occurs in the lyrics of all songs;According to preparatory condition to the word in total word frequency list
Screened;If detect user triggering newly-built song single operation, by multiple words after screening according to word frequency from high to low
Order be shown;If detecting the choosing of at least one word in the multiple word to displaying of user's triggering
Extract operation, then create with least one described word name new song list, and will the lyrics in all songs comprising described in extremely
The target song of a few word adds single to the new song.
Alternatively, processor 660 is additionally operable to:All lyrics files of all songs in preset range are converted into multiple texts
This document, wherein, one text of each lyrics file correspondence;The lyrics in the multiple text are made at participle
Reason, obtains the first set of words;Default nonsense words in first set of words are filtered, the second word is obtained
Set;Total number to each word in second set of words is counted, and generates total word frequency list.
Alternatively, processor 660 is additionally operable to:All lyrics files of all songs in preset range are converted into multiple texts
This document, wherein, one text of each lyrics file correspondence;The lyrics in each text are made at participle respectively
Reason, obtains multiple first set of words;Default nonsense words in each first set of words are filtered respectively, obtained
Multiple second set of words;Multiple word frequency lists are generated to the multiple second set of words, each word frequency list includes each second
The total number of the word of each in set of words;Total number of the identical word in each word frequency list in the multiple word frequency list is entered
Row superposition, obtains the word frequency of identical word;According to total number of the different terms in each word frequency list in the multiple word frequency list,
And the word frequency of the identical word, generate total word frequency list.
Alternatively, processor 660 is additionally operable to:Word frequency is chosen from total word frequency list and is more than or equal to default word frequency threshold
It is worth and ranking is more than or equal to multiple first words for presetting rank threshold.
Alternatively, processor 660 is additionally operable to:Filter the semantic song single-character given name single with having created song in the multiple first word
Claim similar word, multiple words after being screened.
It can be seen that, the mobile terminal 600 of the embodiment of the present invention can realize each that mobile terminal in previous embodiment realizes
Process, to avoid repeating, is repeated no more here.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each
The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (10)
1. the single generation method of one kind song, applied to mobile terminal, it is characterised in that methods described includes:
The lyrics of all songs in preset range are analyzed, total word frequency list is obtained, wherein, total word frequency list includes described
The word frequency of each word in the lyrics of all songs, the word frequency is what each word occurred in the lyrics of all songs
Total degree;
The word in total word frequency list is screened according to preparatory condition;
If the newly-built song single operation of user's triggering is detected, by order of multiple words according to word frequency from high to low after screening
It is shown;
If detecting the selection operation of at least one word in the multiple word to displaying of user's triggering, create
The new song list named with least one described word is built, and the lyrics in all songs are included at least one word
Target song adds single to the new song.
2. according to the method described in claim 1, it is characterised in that the lyrics to all songs in preset range are divided
Analysis, the step of obtaining total word frequency list, including:
All lyrics files of all songs in preset range are converted into multiple texts, wherein, each lyrics file pair
Answer a text;
Word segmentation processing is made to the lyrics in the multiple text, the first set of words is obtained;
Default nonsense words in first set of words are filtered, the second set of words is obtained;
Total number to each word in second set of words is counted, and generates total word frequency list.
3. according to the method described in claim 1, it is characterised in that the lyrics to all songs in preset range are divided
Analysis, the step of obtaining total word frequency list, including:
All lyrics files of all songs in preset range are converted into multiple texts, wherein, each lyrics file pair
Answer a text;
Word segmentation processing is made respectively to the lyrics in each text, multiple first set of words are obtained;
Default nonsense words in each first set of words are filtered respectively, multiple second set of words are obtained;
Multiple word frequency lists are generated to the multiple second set of words, each word frequency list includes each in each second set of words
The total number of word;
Total number of the identical word in each word frequency list in the multiple word frequency list is overlapped, the word of identical word is obtained
Frequently;
Word according to total number of the different terms in each word frequency list in the multiple word frequency list, and the identical word
Frequently, total word frequency list is generated.
4. according to the method described in claim 1, it is characterised in that each word in total word frequency list is according to word frequency from height
Arranged to low order, it is described the step of screened according to preparatory condition to the word in total word frequency list, including:
Word frequency is chosen from total word frequency list more than or equal to default word frequency threshold value and ranking is more than or equal to default ranking threshold
Multiple first words of value.
5. method according to claim 4, it is characterised in that it is described according to preparatory condition to the word in total word frequency list
The step of language is screened, in addition to:
Filter the semantic song single-character given name single to having created song in the multiple first word and claim similar word, it is many after being screened
Individual word.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Analysis module, analyzes for the lyrics to all songs in preset range, obtains total word frequency list, wherein, it is described total
The word frequency of word frequency list each word in the lyrics including all songs, the word frequency is each word in all songs
The lyrics in the total degree that occurs;
Screening module, for being screened according to preparatory condition to the word in total word frequency list;
Display module, if the newly-built song single operation for detecting user's triggering, by multiple words after screening according to word frequency
Order from high to low is shown;
Creation module, if for detecting at least one word in the multiple word to displaying that the user triggers
Selection operation, then create the new song list named with least one described word, and by the lyrics in all songs comprising described
The target song of at least one word adds single to the new song.
7. mobile terminal according to claim 6, it is characterised in that the analysis module includes:
First transform subblock, for all lyrics files of all songs in preset range to be converted into multiple texts,
Wherein, one text of each lyrics file correspondence;
First participle submodule, for making word segmentation processing to the lyrics in the multiple text, obtains the first set of words;
First filter submodule, for being filtered to the default nonsense words in first set of words, obtains second
Set of words;
Statistic submodule, is counted for the total number to each word in second set of words, generates total word frequency list.
8. mobile terminal according to claim 6, it is characterised in that the analysis module includes:
Second transform subblock, for all lyrics files of all songs in preset range to be converted into multiple texts,
Wherein, one text of each lyrics file correspondence;
Second participle submodule, for making word segmentation processing respectively to the lyrics in each text, obtains multiple first words
Set;
Second filter submodule, for being filtered respectively to the default nonsense words in each first set of words, is obtained
Multiple second set of words;
First generation submodule, for generating multiple word frequency lists to the multiple second set of words, each word frequency list includes every
The total number of each word in individual second set of words;
Submodule is superimposed, for being overlapped to total number of the identical word in each word frequency list in the multiple word frequency list,
Obtain the word frequency of identical word;
Second generation submodule, for according to total number of the different terms in each word frequency list in the multiple word frequency list, with
And the word frequency of the identical word, generate total word frequency list.
9. mobile terminal according to claim 6, it is characterised in that the screening module includes:
Submodule is chosen, word frequency is more than or equal to default word frequency threshold value and ranking is more than for being chosen from total word frequency list
Or equal to multiple first words of default rank threshold.
10. mobile terminal according to claim 9, it is characterised in that the screening module also includes:
3rd filter submodule, for filter in the multiple first word the semantic song single-character given name with having created song list claim it is similar
Word, multiple words after being screened.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710295590.9A CN107133308B (en) | 2017-04-28 | 2017-04-28 | Singing list generation method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710295590.9A CN107133308B (en) | 2017-04-28 | 2017-04-28 | Singing list generation method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107133308A true CN107133308A (en) | 2017-09-05 |
CN107133308B CN107133308B (en) | 2020-01-14 |
Family
ID=59715067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710295590.9A Active CN107133308B (en) | 2017-04-28 | 2017-04-28 | Singing list generation method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133308B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111339350A (en) * | 2020-03-27 | 2020-06-26 | 腾讯音乐娱乐科技(深圳)有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
WO2024067129A1 (en) * | 2022-09-30 | 2024-04-04 | 华为技术有限公司 | System, song list generation method, and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101576928A (en) * | 2009-06-11 | 2009-11-11 | 腾讯科技(深圳)有限公司 | Method and device for selecting related article |
CN102667766A (en) * | 2009-10-14 | 2012-09-12 | 索尼移动通讯有限公司 | Method for setting up a list of audio files for a mobile device |
CN105138670A (en) * | 2015-09-06 | 2015-12-09 | 天翼爱音乐文化科技有限公司 | Audio file label generation method and system |
CN105930485A (en) * | 2016-04-28 | 2016-09-07 | 深圳市金立通信设备有限公司 | Audio media playing method, communication device and network system |
US20160267177A1 (en) * | 2008-03-03 | 2016-09-15 | Microsoft Technology Licensing, Llc | Music steering with automatically detected musical attributes |
-
2017
- 2017-04-28 CN CN201710295590.9A patent/CN107133308B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160267177A1 (en) * | 2008-03-03 | 2016-09-15 | Microsoft Technology Licensing, Llc | Music steering with automatically detected musical attributes |
CN101576928A (en) * | 2009-06-11 | 2009-11-11 | 腾讯科技(深圳)有限公司 | Method and device for selecting related article |
CN102667766A (en) * | 2009-10-14 | 2012-09-12 | 索尼移动通讯有限公司 | Method for setting up a list of audio files for a mobile device |
CN105138670A (en) * | 2015-09-06 | 2015-12-09 | 天翼爱音乐文化科技有限公司 | Audio file label generation method and system |
CN105930485A (en) * | 2016-04-28 | 2016-09-07 | 深圳市金立通信设备有限公司 | Audio media playing method, communication device and network system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111339350A (en) * | 2020-03-27 | 2020-06-26 | 腾讯音乐娱乐科技(深圳)有限公司 | Data processing method, data processing device, storage medium and electronic equipment |
CN111339350B (en) * | 2020-03-27 | 2023-11-28 | 腾讯音乐娱乐科技(深圳)有限公司 | Data processing method and device, storage medium and electronic equipment |
WO2024067129A1 (en) * | 2022-09-30 | 2024-04-04 | 华为技术有限公司 | System, song list generation method, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN107133308B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106951141B (en) | A kind of processing method and mobile terminal of icon | |
CN107145348A (en) | A kind of application program split screen processing method and mobile terminal | |
CN106681711A (en) | Method for content sharing under split screen mode and mobile terminal | |
CN106201321A (en) | A kind of application control method and mobile terminal | |
CN106775252A (en) | The message treatment method and mobile terminal of a kind of mobile terminal | |
CN105302442A (en) | Image information processing method and terminal | |
CN106293705A (en) | A kind of collecting method and mobile terminal | |
CN106354520A (en) | Interface background switching method and mobile terminal | |
CN107203624A (en) | The single generation method of one kind song and mobile terminal | |
CN106446180A (en) | Song recognition method and mobile terminal | |
CN106527906A (en) | Picture capture method and mobile terminal | |
CN107491278A (en) | A kind of split screen processing method and terminal | |
CN106648329A (en) | Application icon display method and mobile terminal | |
CN107566917A (en) | A kind of video marker method and video playback apparatus | |
CN107221347A (en) | Method and terminal that a kind of audio is played | |
CN107357484A (en) | One kind prompting mark adding method, terminal and computer-readable recording medium | |
CN107729420A (en) | A kind of update method and mobile terminal of input method dictionary | |
CN107632854A (en) | A kind of screenshotss processing method and mobile terminal | |
CN106776871A (en) | The storage method and mobile terminal of a kind of multimedia file | |
CN106534200A (en) | Identity authentication method and mobile terminal | |
CN105824459A (en) | Text reproducing and pasting method and mobile terminal | |
CN106250020A (en) | The input of a kind of font and display packing and mobile terminal | |
CN106231113A (en) | A kind of Dialing Method and mobile terminal | |
CN106126662A (en) | A kind of electronic book displaying method and mobile terminal | |
CN107025295A (en) | A kind of photo film making method and mobile terminal |
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 |