CN109815363A - Generation method, device, terminal and the storage medium of lyrics content - Google Patents

Generation method, device, terminal and the storage medium of lyrics content Download PDF

Info

Publication number
CN109815363A
CN109815363A CN201811518681.5A CN201811518681A CN109815363A CN 109815363 A CN109815363 A CN 109815363A CN 201811518681 A CN201811518681 A CN 201811518681A CN 109815363 A CN109815363 A CN 109815363A
Authority
CN
China
Prior art keywords
lyrics
information
content
key words
text information
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.)
Pending
Application number
CN201811518681.5A
Other languages
Chinese (zh)
Inventor
王杰
庄伯金
王少军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811518681.5A priority Critical patent/CN109815363A/en
Publication of CN109815363A publication Critical patent/CN109815363A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)

Abstract

The present invention relates to natural language processing technique fields, provide generation method, device, terminal and the storage medium of a kind of lyrics content, the generation method of the lyrics content, comprising: the text information for obtaining input extracts subject key words from the text information;By in subject key words input lyrics information model trained in advance, lyrics information corresponding with the subject key words is obtained;The lyrics content to match with the text information is generated according to the lyrics information.To realize the text information inputted according to user, the lyrics content that can express the text information theme is automatically generated, easy to operate, ordinary user can also carry out lyrics creation, and lyrics creation is high-efficient.

Description

Generation method, device, terminal and the storage medium of lyrics content
Technical field
The present invention relates to natural language processing technique field more particularly to a kind of generation methods of lyrics content, device, end End and storage medium.
Background technique
Song is composed of the lyrics and melody, a kind of form of expression of the lyrics as poem, is the original idea place of song. With the continuous development of science and technology, the technology that machine automatically generates the lyrics also graduallys mature.Automatically generating not only for the lyrics has its reason By researching value, even more lives with the daily culture of people close proper, there is the great market demand.
The existing technology that the lyrics are generated based on neural network model, needs first to give the beginning of the lyrics, by the lyrics Beginning generates new words with this as input, this is inconvenient for ordinary user, and the lyrics generated are also difficult It is corresponding with the purport of user's ideal lyrics to guarantee.
Summary of the invention
The present invention provides generation method, device, terminal and the storage medium of a kind of lyrics content, raw to solve the current lyrics It is inconvenient at method, the problem of the purport of the lyrics needed for the lyrics of generation deviate user.
To solve the above problems, the present invention adopts the following technical scheme:
The present invention provides a kind of generation method of lyrics content, includes the following steps:
The text information for obtaining input, extracts subject key words from the text information;
By in subject key words input lyrics information model trained in advance, obtain corresponding to the subject key words Lyrics information;
The lyrics content to match with the text information is generated according to the lyrics information.
Optionally, the text information for obtaining input, before extracting subject key words in the text information, also Include:
Lyrics text in source is obtained from lyrics library;
The removing that punctuation mark and paragraph are carried out to the source lyrics text, obtains lyrics information;
Theme is carried out to each lyrics information using LDA topic model to determine, obtains the corresponding theme of each lyrics information Class label simultaneously saves in the database.
Optionally, the step of acquisition lyrics information corresponding with the subject key words, comprising:
The subject categories label to be matched according to subject key words inquiry with the subject key words;
Obtain the lyrics information under the subject categories label.
Optionally, after the lyrics content to be matched according to lyrics information generation with the text information, also Include:
Duplicate checking is carried out to the lyrics content of generation, when duplicate checking rate is greater than preset threshold, regenerates the lyrics Content, until duplicate checking rate is stopped when being lower than preset threshold.
Optionally, before in the lyrics information model that subject key words input is trained in advance, further includes:
Obtain the number of words range of the lyrics content to be generated of input;
It is described that the lyrics content to match with the text information is generated according to the lyrics information, comprising:
It is generated within the scope of the number of words according to the lyrics information and number of words range and is matched with the text information The lyrics.
Optionally, the generation method of the lyrics content further include:
Create lyrics content evaluation model;Wherein, the lyrics content evaluation model be used for the lyrics content of generation into Row scoring;
The lyrics content of generation is inputted in the lyrics content evaluation model and is scored, by score value lower than pre- If the lyrics content of value is regenerated.
Optionally, before the step in the lyrics information model that subject key words input is trained in advance, also Include:
Establish the neural network model of lyrics information;
Using in database subject key words and its corresponding lyrics information the neural network model is trained, Until obtaining the lyrics information model when neural network model convergence.
A kind of generating means of lyrics content provided by the invention, comprising:
Extraction module extracts subject key words from the text information for obtaining the text information of input;
Obtain module, in subject key words input lyrics information model trained in advance, will obtain with it is described The corresponding lyrics information of subject key words;
Generation module, for generating the lyrics content to match with the text information according to the lyrics information.
The present invention provides a kind of terminal, including memory and processor, is stored with computer-readable finger in the memory It enables, when the computer-readable instruction is executed by the processor, so that the processor executes as above described in any item songs The step of generation method of word content.
The present invention provides a kind of storage medium, is stored thereon with computer program, and the computer program is held by processor When row, the generation method of as above described in any item lyrics contents is realized.
Compared with the existing technology, technical solution of the present invention at least has following advantage:
The generation method of lyrics content provided by the invention is extracted from text information according to the text information of input Subject key words;By in subject key words input lyrics information model trained in advance, to obtain and the theme is crucial The corresponding lyrics information of word;The lyrics content to match with the text information is finally generated according to the lyrics information, is realized According to the text information that user inputs, the lyrics content that can express the text information theme is automatically generated, sing without giving The beginning part of word, easy to operate, ordinary user can also carry out lyrics creation, and lyrics creation is high-efficient.
The generation method of lyrics content provided by the invention can also carry out duplicate checking to the lyrics content of generation, when weight When multiple rate is greater than preset threshold, the lyrics content is regenerated, until repetitive rate is stopped when being lower than preset threshold, to make to generate Lyrics content repetitive rate be lower than preset threshold, to improve the creation quality of lyrics content.
The generation method of lyrics content provided by the invention, can also be by creating lyrics content evaluation model, to generation Lyrics content scores, and the lyrics content to score value lower than preset value regenerates, to guarantee the song generated The quality of word content.
Detailed description of the invention
Fig. 1 is the implementation environment figure of the generation method of the lyrics content provided in one embodiment of the invention;
Fig. 2 is a kind of embodiment flow diagram of generation method of lyrics content of the present invention;
Fig. 3 is a kind of embodiment module frame chart of generating means of lyrics content of the present invention;
Fig. 4 is the internal structure block diagram of terminal in one embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its Sequence is executed or is executed parallel, and the serial number of operation such as S11, S12 etc. be only used for distinguishing each different operation, serial number It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
It will appreciated by the skilled person that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
It will appreciated by the skilled person that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description in which the same or similar labels are throughly indicated same or similar element or has same or like function Element.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on this Embodiment in invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Fig. 1 is the implementation environment figure of the generation method of the lyrics content provided in one embodiment, as shown in Figure 1, at this In implementation environment, including server 110, terminal 120.Terminal 120 is connect by network with server, is pacified in the terminal 120 Equipped with corresponding client, user can upload the text information for lyrics creation by client, and server 110 is according to described Text information generates corresponding lyrics content and is back to client.Wherein, above-mentioned network may include internet, 2G/3G/ 4G, wifi etc..
It should be noted that server 110 can be independent physical server or terminal, it is also possible to multiple physics clothes The server cluster for device composition of being engaged in can be to provide the basic cloud computing service such as Cloud Server, cloud database, cloud storage and CDN Cloud Server.
Terminal 120 can be smart phone, tablet computer, laptop, desktop computer, intelligent sound box, intelligent hand Table etc., however, it is not limited to this.
Referring to Fig. 2, a kind of generation method of lyrics content provided by the present invention, in one of embodiment, packet Include following steps:
S21, the text information for obtaining input, extract subject key words from the text information;
User can upload text information by terminal to server, after server obtains the text information, from described Subject key words are extracted in text information.Wherein, the text information may include it is required generate lyrics content lyrics theme, The information such as lyrics style, lyrics number of words, can be several subject key words of directly characterization lyrics theme, and server therefrom sieves Select at least one subject key words;The subject key words can characterize Chinese classical, nationality, love, patriotic, emotional affection etc. The words of any one type of theme.To be convenient for the user to operate, display text can believe on the interface of the corresponding client of user Library is ceased, covers music style label currently popular in the text information library, and show under every kind of music style label Common text information.
In S22, the lyrics information model for training subject key words input in advance, obtain and the subject key words Corresponding lyrics information;
In the present embodiment, after getting subject key words, lyrics information model is according to the subject key words from song Lyrics information corresponding with the subject key words is filtered out in word information library.Wherein, the lyrics information may include lyrics model The information such as sheet, librettist, lyrics style.
S23, the lyrics content to match with the text information is generated according to the lyrics information.
In the present embodiment, the lyrics information got can be screened, is given birth to automatically using the lyrics information after screening It shows on the interface of user client, uses at the lyrics content to match with the text information, and by the lyrics content Family can be reserved in local terminal by downloading.When generation, it the operation such as can be integrated, be replaced, being deleted, to lyrics information to obtain Obtain qualified lyrics content.
The generation method of lyrics content provided by the invention is extracted from text information according to the text information of input Subject key words;By in subject key words input lyrics information model trained in advance, to obtain and the theme is crucial The corresponding lyrics information of word;The lyrics content to match with the text information is finally generated according to the lyrics information, is realized According to the text information that user inputs, the lyrics content that can express the text information theme is automatically generated, sing without giving The beginning part of word, easy to operate, ordinary user can also carry out lyrics creation, and lyrics creation is high-efficient.
Optionally, in S21 step, the text information for obtaining input extracts theme from the text information Before keyword, can also include:
Lyrics text in source is obtained from lyrics library;
The removing that punctuation mark and paragraph are carried out to the source lyrics text, obtains lyrics information;
Theme is carried out to each lyrics information using LDA topic model to determine, obtains the corresponding theme of each lyrics information Class label simultaneously saves in the database.
Wherein, the source lyrics text from network or can prestore this as the reference model for generating lyrics content It is obtained in ground, such as the pop music lyrics text in current network.The source lyrics text may be classic poetry, article etc.. After getting the source lyrics text, punctuation mark, the paragraph in the source lyrics text are deleted, to be sung Word information, and subject analysis is carried out to each lyrics information using LDA topic model, corresponding subject categories label is assigned, Be stored in lyrics information library, so as to need using when quick obtaining lyrics information.
Wherein, the LDA topic model is a kind of document subject matter generation model, also referred to as three layers of Bayesian probability mould Type includes word, theme and document three-decker.So-called generation model, that is, it is believed that each word of an article is Pass through mistake such a " with some theme of certain probability selection, and with some word of certain probability selection from this theme " Journey obtains.Document obeys multinomial distribution to theme, and theme to word obeys multinomial distribution.
LDA topic model or a kind of non-supervisory machine learning techniques can be used to identify extensive document sets or corpus The subject information hidden in library.Each document is considered as a word frequency vector by the method that it uses bag of words, this method, from And the digital information converted text information for ease of modeling.But bag of words method does not account for the sequence between word and word, This simplifies the complex natures of the problem, while also providing opportunity for the improvement of model.
In one embodiment, in the S22 step, the acquisition lyrics information corresponding with the subject key words Step, it may include:
The subject categories label to be matched according to subject key words inquiry with the subject key words;
Obtain the lyrics information under the subject categories label.
In the present embodiment, after extracting the subject key words from text information, according to the subject key words Subject categories label corresponding with the subject key words is found from the lyrics information library demarcated in advance, and according to the theme Class label is chosen from the lyrics information obtained under the subject categories label in lyrics information library, and to the lyrics information The operations such as choosing, replacement, deletion, integration, finally obtain the lyrics information to match with the subject key words.
Wherein, many lyrics models be may include in the lyrics information library, preferably, when it is implemented, in order to full Lyrics information can be divided into such as classic poetry, name by the actual demand of sufficient different user according to style expressed by lyrics model Write the multiple types such as prose, novel or classical sentence.Further, according to the lyrics model content for including in lyrics information library Lyrics information can divide to different type of theme again, such as love, emotional affection, friendship, pursue a goal with determination.
In one embodiment, it is described generated according to the lyrics information lyrics content that matches with the text information it Afterwards, can also include:
Duplicate checking is carried out to the lyrics content of generation, when duplicate checking rate is greater than preset threshold, regenerates the lyrics Content, until duplicate checking rate is stopped when being lower than preset threshold.
In the present embodiment, can also to the lyrics content of generation carry out duplicate checking, when generation lyrics content with it is a certain When the similarity of the lyrics of first or several head is higher, then the lyrics content is regenerated, until the lyrics content Duplicate checking rate is less than preset threshold, to improve the creativeness of the lyrics.It wherein, can be only in the lyrics when lyrics content regenerates The higher part of similarity is regenerated in appearance, to improve lyrics content formation efficiency.The similarity can be according to generation It is calculated in the lyrics with the ratio of the total lyrics number of words of identical number of words Zhan of the comparison lyrics.
Optionally, it before in the lyrics information model that subject key words input is trained in advance, can also wrap It includes:
Obtain the number of words range of the lyrics content to be generated of input;
It is described that the lyrics content to match with the text information is generated according to the lyrics information, comprising:
It is generated within the scope of the number of words according to the lyrics information and number of words range and is matched with the text information The lyrics.
In the present embodiment, the number of words for the lyrics content that user can also generate expectation is set, to generate in institute The lyrics content within the scope of number of words is stated, personalized designs are improved, to meet the different demands of user.
In one embodiment, the generation method of the lyrics content can also include:
Create lyrics content evaluation model;Wherein, the lyrics content evaluation model be used for the lyrics content of generation into Row scoring;
The lyrics content of generation is inputted in the lyrics content evaluation model and is scored, by score value lower than pre- If the lyrics content of value is regenerated.
Wherein, the lyrics content evaluation model is for assessing the lyrics content of generation, and the content of assessment can be with Whether met the requirements including theme style, lyrics content is with the presence or absence of ambiguity etc., when the scoring of the lyrics content of generation is lower than in advance If then being regenerated to the lyrics content when value;When the scoring of the lyrics content of generation is greater than or equal to preset value, then Each words and phrases of lyrics content are further assessed, the words and phrases of the lyrics are met the requirements.When it is implemented, generating in the lyrics Main principle when appearance is to link up, is smooth, while can also have both the characteristics such as suitable for reading or easy memory rhymed, bright.
In one embodiment, the step in the lyrics information model that subject key words input is trained in advance it Before, can also include:
Establish the neural network model of lyrics information;
Using in database subject key words and its corresponding lyrics information the neural network model is trained, Until obtaining the lyrics information model when neural network model convergence.
In the present embodiment, in availability data library the subject key words of magnanimity and its corresponding lyrics information to nerve net Network model is trained, and when training, the parameter of neural network model can be constantly adjusted according to training result, to obtain training qualification Lyrics information model.Wherein, the lyrics information model can be seq2seq model, and seq2seq model is one The network of Encoder-Decoder structure, its input are a sequences, output be also a sequence, its list entries and The length of output sequence is variable, to generate the lyrics content of different words and phrases length.
Referring to FIG. 3, the embodiment of the present invention also provides a kind of generating means of lyrics content, in a kind of the present embodiment, Including extraction module 31, obtain module 32 and generation module 33.Wherein,
Extraction module 31 extracts subject key words from the text information for obtaining the text information of input;
User can upload text information by terminal to server, after server obtains the text information, from described Subject key words are extracted in text information.Wherein, the text information may include it is required generate lyrics content lyrics theme, The information such as lyrics style, lyrics number of words, can be several subject key words of directly characterization lyrics theme, and server therefrom sieves Select at least one subject key words;The subject key words can characterize Chinese classical, nationality, love, patriotic, emotional affection etc. The words of any one type of theme.To be convenient for the user to operate, display text can believe on the interface of the corresponding client of user Library is ceased, covers music style label currently popular in the text information library, and show under every kind of music style label Common text information.
Module 32 is obtained, in the lyrics information model for training subject key words input in advance, acquisition and institute State the corresponding lyrics information of subject key words;
In the present embodiment, after getting subject key words, lyrics information model is according to the subject key words from song Lyrics information corresponding with the subject key words is filtered out in word information library.Wherein, the lyrics information may include lyrics model The information such as sheet, librettist, lyrics style.
Generation module 33, for generating the lyrics content to match with the text information according to the lyrics information.
In the present embodiment, the lyrics information got can be screened, is given birth to automatically using the lyrics information after screening It shows on the interface of user client, uses at the lyrics content to match with the text information, and by the lyrics content Family can be reserved in local terminal by downloading.When generation, it the operation such as can be integrated, be replaced, being deleted, to lyrics information to obtain Obtain qualified lyrics content.
The generating means of lyrics content provided by the invention are extracted from text information according to the text information of input Subject key words;By in subject key words input lyrics information model trained in advance, to obtain and the theme is crucial The corresponding lyrics information of word;The lyrics content to match with the text information is finally generated according to the lyrics information, is realized According to the text information that user inputs, the lyrics content that can express the text information theme is automatically generated, sing without giving The beginning part of word, easy to operate, ordinary user can also carry out lyrics creation, and lyrics creation is high-efficient.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
The present invention also provides a kind of terminal, including memory and processor, it is stored in the memory computer-readable Instruction, when the computer-readable instruction is executed by the processor, so that processor execution is as above described in any item The step of generation method of lyrics content.
In one embodiment, as shown in figure 4, it shows mobile phone relevant to terminal provided in an embodiment of the present invention The block diagram of part-structure.With reference to Fig. 4, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 610, memory 620, defeated Enter unit 630, display unit 640, sensor 650, voicefrequency circuit 660, Wireless Fidelity (wireless fidelity, WiFi) The components such as module 670, processor 680 and power supply 690.It will be understood by those skilled in the art that mobile phone knot shown in Fig. 4 Structure does not constitute the restriction to mobile phone, may include perhaps combining certain components or not than illustrating more or fewer components Same component layout.
It is specifically introduced below with reference to each component parts of the Fig. 4 to mobile phone:
RF circuit 610 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 680;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 60 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, short message service (Short Messaging Service, SMS) etc..
Memory 620 can be used for storing computer-readable store instruction and module, and processor 680 is stored in by operation The computer-readable store instruction and module of memory 620, thereby executing the various function application and data processing of mobile phone. Memory 620 can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root Created data (such as audio data, phone directory etc.) etc. are used according to mobile phone.In addition, memory 620 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 630 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 600 And the related key signals input of function control.Specifically, input unit 630 may include touch panel 631 and other inputs Equipment 632.Touch panel 631, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch panel 631 or near touch panel 631), and Corresponding attachment device is driven according to preset formula.Optionally, touch panel 631 may include touch detecting apparatus and touching Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 680, and order that processor 680 is sent can be received and executed.Furthermore, it is possible to using The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 631.It is defeated in addition to touch panel 631 Entering unit 630 can also include other input equipments 632.Specifically, other input equipments 632 can include but is not limited to physics One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 640 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 640 may include display panel 641, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 641.Further, touch panel 631 can cover display panel 641, when touch panel 631 detect it is on it or attached After close touch operation, processor 680 is sent to determine the type of touch event, is followed by subsequent processing device 680 according to touch event Type corresponding visual output is provided on display panel 641.Although in Fig. 4, touch panel 631 and display panel 641 It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 631 and display panel 641 are integrated and that realizes mobile phone output and input function.
Mobile phone 600 may also include at least one sensor 650, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 641, and proximity sensor can close display panel when mobile phone is moved in one's ear 641 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 661, be converted to sound by loudspeaker 661 by road 660 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, is turned after being received by voicefrequency circuit 660 It is changed to audio data, then by after the processing of audio data output processor 680, such as another mobile phone is sent to through RF circuit 610, Or audio data is exported to memory 620 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 670 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 4 is shown WiFi module 670, but it is understood that, and it is not belonging to must be configured into for mobile phone 600, it is can according to need completely not Change in the range of the essence of invention and omits.
Processor 680 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes computer-readable store instruction and/or the module being stored in memory 620, and call and be stored in storage Data in device 620 execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, it handles Device 680 may include one or more processing units;Preferably, processor 680 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Mobile phone 600 further includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 680 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Although being not shown, mobile phone 600 can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, when the computer-readable store instruction and module that are stored in memory 620 are processed When device executes, processor 680 may make to realize the generation method of above-mentioned lyrics content, and realize the lyrics in illustrated embodiment The function of corresponding module in the generating means of content.
In one embodiment, the invention also provides a kind of storage medium for being stored with computer-readable instruction, the meters When calculation machine readable instruction is executed by one or more processors, so that one or more processors execute the life of above-mentioned lyrics content At method.For example, the storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light number According to storage equipment etc..
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a storage medium, the program When being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can for magnetic disk, CD, only Read non-volatile memory mediums or random access memory (Random such as storage memory (Read-Only Memory, ROM) Access Memory, RAM) etc..
Based on the above embodiments it is found that the maximum beneficial effect of the present invention is:
Generation method, device, terminal and the storage medium of lyrics content provided by the invention, according to the text envelope of input Breath, extracts subject key words from text information;In the lyrics information model that subject key words input is trained in advance, To obtain lyrics information corresponding with the subject key words;Finally generated and the text envelope manner of breathing according to the lyrics information Matched lyrics content realizes the text information inputted according to user, and the text information theme can be expressed by automatically generating Lyrics content, easy to operate without giving the beginning part of the lyrics, ordinary user can also carry out lyrics creation, and the lyrics are created It is high-efficient.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of generation method of lyrics content, which comprises the steps of:
The text information for obtaining input, extracts subject key words from the text information;
By in subject key words input lyrics information model trained in advance, sing corresponding with the subject key words is obtained Word information;
The lyrics content to match with the text information is generated according to the lyrics information.
2. the generation method of lyrics content according to claim 1, which is characterized in that the text envelope for obtaining input Breath, before extracting subject key words in the text information, further includes:
Lyrics text in source is obtained from lyrics library;
The removing that punctuation mark and paragraph are carried out to the source lyrics text, obtains lyrics information;
Theme is carried out to each lyrics information using LDA topic model to determine, obtains the corresponding subject categories of each lyrics information Label simultaneously saves in the database.
3. the generation method of lyrics content according to claim 2, which is characterized in that the acquisition and the theme are crucial The step of word corresponding lyrics information, comprising:
The subject categories label to be matched according to subject key words inquiry with the subject key words;
Obtain the lyrics information under the subject categories label.
4. the generation method of lyrics content according to claim 1, which is characterized in that described raw according to the lyrics information After the lyrics content to match with the text information, further includes:
Duplicate checking is carried out to the lyrics content of generation, when duplicate checking rate is greater than preset threshold, regenerates the lyrics content, Until duplicate checking rate is stopped when being lower than preset threshold.
5. the generation method of lyrics content according to claim 1, which is characterized in that described that the subject key words are defeated Before entering in lyrics information model trained in advance, further includes:
Obtain the number of words range of the lyrics content to be generated of input;
It is described that the lyrics content to match with the text information is generated according to the lyrics information, comprising:
The song for being generated within the scope of the number of words according to the lyrics information and number of words range and being matched with the text information Word.
6. the generation method of lyrics content according to claim 1, which is characterized in that further include:
Create lyrics content evaluation model;Wherein, the lyrics content evaluation model is for commenting the lyrics content of generation Point;
The lyrics content of generation is inputted in the lyrics content evaluation model and is scored, score value is lower than preset value Lyrics content regenerated.
7. the generation method of lyrics content according to claim 1, which is characterized in that described that the subject key words are defeated Before entering the step in advance trained lyrics information model, further includes:
Establish the neural network model of lyrics information;
Using in database subject key words and its corresponding lyrics information the neural network model is trained, until When the neural network model is restrained, the lyrics information model is obtained.
8. a kind of generating means of lyrics content characterized by comprising
Extraction module extracts subject key words from the text information for obtaining the text information of input;
Module is obtained, for obtaining in subject key words input lyrics information model trained in advance and the theme The corresponding lyrics information of keyword;
Generation module, for generating the lyrics content to match with the text information according to the lyrics information.
9. a kind of terminal, which is characterized in that including memory and processor, computer-readable finger is stored in the memory It enables, when the computer-readable instruction is executed by the processor, so that the processor is executed as appointed in claim 1 to 7 The step of generation method of lyrics content described in one.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is held by processor When row, the generation method of the lyrics content as described in any one of claims 1 to 7 is realized.
CN201811518681.5A 2018-12-12 2018-12-12 Generation method, device, terminal and the storage medium of lyrics content Pending CN109815363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811518681.5A CN109815363A (en) 2018-12-12 2018-12-12 Generation method, device, terminal and the storage medium of lyrics content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811518681.5A CN109815363A (en) 2018-12-12 2018-12-12 Generation method, device, terminal and the storage medium of lyrics content

Publications (1)

Publication Number Publication Date
CN109815363A true CN109815363A (en) 2019-05-28

Family

ID=66601597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811518681.5A Pending CN109815363A (en) 2018-12-12 2018-12-12 Generation method, device, terminal and the storage medium of lyrics content

Country Status (1)

Country Link
CN (1) CN109815363A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321403A (en) * 2019-07-08 2019-10-11 广州艾颂智能科技有限公司 A kind of lyrics generation method
CN111259665A (en) * 2020-01-14 2020-06-09 成都嗨翻屋科技有限公司 Interactive lyric generation method and system based on neural network
CN112184861A (en) * 2020-12-01 2021-01-05 成都极米科技股份有限公司 Lyric editing and displaying method and device and storage medium
CN112487153A (en) * 2020-12-17 2021-03-12 广州华多网络科技有限公司 Lyric content generating method and corresponding device, equipment and medium
CN112632906A (en) * 2020-12-30 2021-04-09 北京达佳互联信息技术有限公司 Lyric generation method, device, electronic equipment and computer readable storage medium
CN113239309A (en) * 2021-06-15 2021-08-10 广州聚焦网络技术有限公司 Content creation method and device suitable for marketing promotion

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874248A (en) * 2017-01-22 2017-06-20 百度在线网络技术(北京)有限公司 article generation method and device based on artificial intelligence
CN107122492A (en) * 2017-05-19 2017-09-01 北京金山安全软件有限公司 Lyric generation method and device based on picture content
WO2018200268A1 (en) * 2017-04-26 2018-11-01 Microsoft Technology Licensing, Llc Automatic song generation
US20180322854A1 (en) * 2017-05-08 2018-11-08 WaveAI Inc. Automated Melody Generation for Songwriting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874248A (en) * 2017-01-22 2017-06-20 百度在线网络技术(北京)有限公司 article generation method and device based on artificial intelligence
WO2018200268A1 (en) * 2017-04-26 2018-11-01 Microsoft Technology Licensing, Llc Automatic song generation
US20180322854A1 (en) * 2017-05-08 2018-11-08 WaveAI Inc. Automated Melody Generation for Songwriting
CN107122492A (en) * 2017-05-19 2017-09-01 北京金山安全软件有限公司 Lyric generation method and device based on picture content

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321403A (en) * 2019-07-08 2019-10-11 广州艾颂智能科技有限公司 A kind of lyrics generation method
CN111259665A (en) * 2020-01-14 2020-06-09 成都嗨翻屋科技有限公司 Interactive lyric generation method and system based on neural network
CN111259665B (en) * 2020-01-14 2023-05-30 成都潜在人工智能科技有限公司 Interactive lyric generation method and system based on neural network
CN112184861A (en) * 2020-12-01 2021-01-05 成都极米科技股份有限公司 Lyric editing and displaying method and device and storage medium
CN112184861B (en) * 2020-12-01 2021-07-30 成都极米科技股份有限公司 Lyric editing and displaying method and device and storage medium
CN112487153A (en) * 2020-12-17 2021-03-12 广州华多网络科技有限公司 Lyric content generating method and corresponding device, equipment and medium
CN112487153B (en) * 2020-12-17 2024-04-05 广州华多网络科技有限公司 Lyric content generation method and corresponding device, equipment and medium thereof
CN112632906A (en) * 2020-12-30 2021-04-09 北京达佳互联信息技术有限公司 Lyric generation method, device, electronic equipment and computer readable storage medium
WO2022142946A1 (en) * 2020-12-30 2022-07-07 北京达佳互联信息技术有限公司 Lyric generation method and apparatus
CN113239309A (en) * 2021-06-15 2021-08-10 广州聚焦网络技术有限公司 Content creation method and device suitable for marketing promotion

Similar Documents

Publication Publication Date Title
CN109783798A (en) Method, apparatus, terminal and the storage medium of text information addition picture
CN109815363A (en) Generation method, device, terminal and the storage medium of lyrics content
CN104239535B (en) A kind of method, server, terminal and system for word figure
CN103390016B (en) The method and electronic equipment of the display text associated with audio file
CN108320742A (en) Voice interactive method, smart machine and storage medium
EP3637283A1 (en) Method and apparatus for generating music
CN103914502B (en) The method and its terminal of the intelligent search service of use situation identification
CN107948740A (en) Video playing control method, device and terminal
CN110286976A (en) Interface display method, device, terminal and storage medium
CN105810194B (en) Speech-controlled information acquisition methods and intelligent terminal under standby mode
CN110197662A (en) Sound control method, wearable device and computer readable storage medium
CN110166828A (en) A kind of method for processing video frequency and device
CN107864353B (en) A kind of video recording method and mobile terminal
CN104123937A (en) Method, device and system for reminding setting
CN107809526A (en) End application sorting technique, mobile terminal and computer-readable recording medium
CN106935253A (en) The method of cutting out of audio file, device and terminal device
CN106875460A (en) A kind of picture countenance synthesis method and terminal
CN109857905A (en) A kind of video editing method and terminal device
CN111597804B (en) Method and related device for training entity recognition model
CN110852109A (en) Corpus generating method, corpus generating device, and storage medium
CN110196646A (en) A kind of data inputting method and mobile terminal
CN109947858A (en) A kind of method and device of data processing
CN107862059A (en) A kind of song recommendations method and mobile terminal
CN109165320A (en) A kind of information collection method and mobile terminal
CN110019919B (en) Method and device for generating rhyme-rhyme lyrics

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528