CN112711674A - Method and device for generating song list - Google Patents

Method and device for generating song list Download PDF

Info

Publication number
CN112711674A
CN112711674A CN202011586059.5A CN202011586059A CN112711674A CN 112711674 A CN112711674 A CN 112711674A CN 202011586059 A CN202011586059 A CN 202011586059A CN 112711674 A CN112711674 A CN 112711674A
Authority
CN
China
Prior art keywords
song
word segmentation
participle
text content
target
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
CN202011586059.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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011586059.5A priority Critical patent/CN112711674A/en
Publication of CN112711674A publication Critical patent/CN112711674A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles
    • G06F16/637Administration of user profiles, e.g. generation, initialization, adaptation or distribution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/685Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using automatically derived transcript of audio data, e.g. lyrics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Library & Information Science (AREA)
  • Computational Linguistics (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The application discloses a song list generation method, and belongs to the technical field of internet. The method comprises the following steps: acquiring text content input by a user; splitting the text content into a plurality of participles, and searching a target song corresponding to each participle; and under the condition that each word segmentation has a corresponding target song, generating a target song list according to the sequence of the word segmentation in the text content on the basis of the target song corresponding to each word segmentation. According to the method and the device, the song list can be generated in an automatic word segmentation mode according to the text content input by the user, the success rate of generating the song list is improved, and the complexity of manually generating the song list is reduced.

Description

Method and device for generating song list
Technical Field
The application belongs to the technical field of internet, and particularly relates to a song list generation method and device.
Background
With the rapid development of the internet, more and more users like to splice the song names into Tibetan poems or scattered poems to form a song list to be shared.
In the prior art, when a Tibetan poem type or Chinese poem type song list is generated, a user opens a song application, keywords are input in a song search interface, selection operation is performed after a song is searched to add the song to a song list, and if the song is not searched, the user re-inputs new keywords to perform song search again. The above processes are repeated for a plurality of times until the song names in the song list can be constructed to have specific meanings, and then the song list is shared.
However, the inventors have found that at least the following problems exist in the prior art: the user inputs the process of searching and adding songs to the song list through the song searching interface applied to the songs for many times, the operation is complicated, and the failure rate is high.
Disclosure of Invention
The embodiment of the application aims to provide a song list generation method and device, and the problems that in the prior art, the manual generation of Tibetan poetry type and scattered poetry type song lists are complex in operation and high in failure rate are solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a song list generation method, where the method includes:
acquiring text content input by a user;
splitting the text content into a plurality of participles in a poetry format, and searching a target song corresponding to each participle;
and under the condition that each word segmentation has a corresponding target song, generating a target song list according to the sequence of the word segmentation in the text content on the basis of the target song corresponding to each word segmentation.
In a second aspect, an embodiment of the present application provides a song list generating apparatus, including:
the acquisition module is used for acquiring text contents input by a user;
the searching module is used for splitting the text content into a plurality of participles in a poetry format and searching a target song corresponding to each participle;
and the generating module is used for generating a target song list according to the sequence of the segmentation in the text content on the basis of the target song corresponding to each segmentation respectively under the condition that each segmentation has the corresponding target song.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the song list generation method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the song list generation method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the song list generating method according to the first aspect.
According to the embodiment of the application, the text content input by a user is obtained, the text content is divided into a plurality of participles in a poetry format, a target song corresponding to each participle is searched, and finally, under the condition that each participle has a corresponding target song, a target song list is generated according to the sequence of the participles in the text content on the basis of the target song corresponding to each participle. In the application, a user only needs to input text content in an input column of the music player, the music player can generate a song list in a Chinese poem type or a Tibetan poem type by utilizing an automatic word segmentation mode, and each word segmentation in the song list can be ensured to have a corresponding song, so that the success rate of generating the song list is improved, and the complexity of manually generating the song list is reduced.
Drawings
FIG. 1 is a flow chart of a song list generation method of the present application;
FIG. 2 is a flow chart of another song list generation method of the present application;
fig. 3 is a block diagram showing the structure of a song list generation apparatus according to the present application;
FIG. 4 is a block diagram of an electronic device of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The song list generation method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flow chart of an audio playing method according to the present application is shown. The method comprises the following steps:
step 101: acquiring text content input by a user;
in the embodiment of the application, the method can be executed in a music player, a corresponding text content input field can be provided in the music player, and after a user inputs text content in the text content input field, the music player can automatically generate a Tibetan poem type or Manchurian poem type song list. For example, a user may enter a text content of "i will accompany you all the time until the skyline haijiao".
Of course, the method may also be executed in a music-related application, where the text content input field is provided, and then the song list is generated in the music-related content, which is not limited by the embodiment of the present application for the specific application.
Step 102: splitting the text content into a plurality of participles, and searching a target song corresponding to each participle;
in the embodiment of the application, a word segmentation device is also configured in the music player. After the text content input by the user is obtained, the word segmentation device divides the text content into a plurality of words in a poetry format. When splitting, splitting is carried out according to a poetry format, namely, the text content is split into a plurality of participles in the poetry format. In the embodiment of the application, the poetry format is as follows: the first character of a plurality of word segments forms a sentence; or, a plurality of participles form the prose poems according to the rows. It should be noted that the embodiment of the present application does not limit the manner in which the word segmenter determines whether each split word satisfies the poetry format.
Specifically, for example, if the text content input by the user is "i will accompany you all the time until the skyline, the word segmenter can split it into the prose-style format:
'I Hui'
Accompany you all the time "
'Fang'
"till"
"Skyline sea horn"
If the text content input by the user is that 'I will accompany you all the time, and you leave where you go', the word segmentation device can be split into the following words according to the form that the first words of a plurality of word segmentations form sentences:
i amWill always "
Accompany personWalk with you "
You areLeave away "
Walking machineTo what direction "
The formed Tibetan poem sentence is 'I accompany you to walk'.
Step 103: under the condition that each word segmentation has a corresponding target song, generating a target song list according to the sequence of the word segmentation in the text content on the basis of the target song corresponding to each word segmentation;
specifically, after the word segmenter splits the text content into a plurality of words, the music player may sequentially search whether each word segmentation has a corresponding target song according to the sequence among the words. Whether the word segmentation can find the corresponding target song or not, namely whether the song with the same name as the word segmentation can be searched in the music player or not. If each word segmentation has a corresponding target song, generating a target song list according to the sequence of the word segmentation in the text content; and if a word segmentation device does not have a corresponding target song, the word segmentation device splits the text content again.
For example, for "i will accompany you all the time, until" i will accompany you all the time "split" and get "i will", "accompany you all the time", "go", "until" career haijiao ", after searching them in turn, if each song that corresponds to them is found, the playing control of the song corresponding to it is configured for each participle, thereby generating the following song list:
'I Hui'
Accompany you all the time "
'Fang'
"till"
"Skyline sea horns".
When the user clicks a word segmentation in the song list, the music player plays the corresponding song. For example, the user clicks "Skyline Seawax", and the music player plays a song named "Skyline Seawax".
According to the embodiment of the application, the text content input by a user is obtained, the text content is divided into a plurality of participles in a poetry format, a target song corresponding to each participle is searched, and finally, under the condition that each participle has a corresponding target song, a target song list is generated according to the sequence of the participles in the text content on the basis of the target song corresponding to each participle. In the application, a user only needs to input text content in an input column of the music player, the music player can generate a song list in a Chinese poem type or a Tibetan poem type by utilizing an automatic word segmentation mode, and each word segmentation in the song list can be ensured to have a corresponding song, so that the success rate of generating the song list is improved, and the complexity of manually generating the song list is reduced.
Referring to fig. 2, a flow chart of another song list generation method of the present application is shown. The method comprises the following steps:
step 201: acquiring text content input by a user;
specifically, step 101 may be referred to for implementation of step 201, and is not described herein again.
Step 202: splitting the text content into a plurality of participles, and searching a target song corresponding to each participle;
in the embodiment of the application, the text content is split in a poetry format, wherein the poetry format is as follows: the first character of a plurality of word segments forms a sentence; or, a plurality of participles form the prose poems according to the rows. For a specific exemplary description, refer to step 102, and will not be described again. In the embodiment of the invention, as long as the song name same as the word segmentation is searched in the music player, the target song corresponding to the word segmentation is considered to be found. For example, the word segmentation is "you go", and whether one song with the song name "you go" or a plurality of songs with the song name "you go" is searched in the music player, the target song corresponding to the word segmentation is considered to be found.
Specifically, step 202 can be implemented in two ways:
optionally, the step 202 may include:
substep 2021: splitting the text content into a plurality of participles according to preset participle lengths;
in the embodiment of the application, a preset word segmentation length L is set for the word segmentation device, the preset word segmentation length represents the maximum word number limit when the text content is split, and the preset word segmentation length is smaller than or equal to the length value of the text content. For example, when the preset segmentation length L is 6, the number of words of each segmented word obtained by splitting the text content is equal to or less than 6.
Specifically, assume that the text content input by the user is "i will accompany you all the time until the skyline, and the preset segmentation length L is 6. At this time, under the condition that the obtained segmented words need to simultaneously satisfy the poetry format and the condition that L is 6, the text content can be segmented into "i will accompany", "you walk", "up to the skyline haijiao".
Substep 2022: searching a corresponding target song according to each word segmentation;
specifically, when searching for a corresponding target song for each participle, the target song is sequentially searched according to the sequence among the participles. For example, first, whether the corresponding target song exists is searched for, and then whether the corresponding target song exists is searched for, and finally whether the corresponding target song exists is searched for, namely whether the target song exists in the step from "i will accompany all the time".
Substep 2023: and under the condition that at least one word segmentation does not have a corresponding target song, adjusting the preset word segmentation length, and continuously executing the step of splitting the text content into a plurality of word segmentations according to the preset word segmentation length until each word segmentation has the corresponding target song or a preset stop condition is reached.
In the embodiment of the present application, when the preset segmentation length is adjusted, the preset segmentation length may be reduced by 1. Those skilled in the art can set other adjustment modes for the preset segmentation according to actual requirements.
Specifically, for example, when the preset word segmentation length L is 6, first, whether a corresponding target song exists is searched for, "i will accompany all the time", and if the corresponding target song exists, then, whether the corresponding target song exists is continuously searched for "you go"; if the corresponding target song does not exist, the preset participle length is adjusted to be L & lt5 & gt, the text content is re-split, under the condition that the poetry format and the L & lt5 & gt are met, the participles can be split into ' I will ', ' accompany you all the time ', ' go ' to ' and ' Skyline horns ', and then whether the newly split participles correspond to the target song or not is sequentially searched. Similarly, when L is 6, when searching whether the corresponding target song exists, if the corresponding target song exists, continuously searching whether the target song exists in the career horns; and if the target song does not correspond to the target song, splitting again by taking L as 5 and searching again. Correspondingly, when L is 6, when searching whether the corresponding target song exists in "up to the career hailing horn", if the corresponding target song exists, the condition that each participle has the corresponding target song is met, and the step 203 is entered; and if the target song does not correspond to the target song, splitting again by taking L as 5 and searching again. When the preset segmentation length L is 5, the search is performed in the same manner as L is 6.
And the above steps are repeated until the corresponding target song is found in each participle, the method can proceed to step 203 to generate the target song list. If the preset word segmentation length is adjusted for a plurality of times until the preset word segmentation length is 1 and the condition that each word segmentation can not find the corresponding target song is not met, the preset stop condition is reached, and at the moment, the music player outputs prompt information to prompt the user to input the text content again.
It should be noted that, when step 2021 is executed, there may be a plurality of cases that may be split. For example, the text content input by the user is "i will accompany you all the time until the skyline haijiao", when the preset word segmentation length L is 6, two cases can be split, and the first case is: "i will accompany all the time", "you go", "go to the skyline haijiao", the second is: "i will", "keep accompanying you" and "go to the skyline hai". And searching for each participle in the first situation, if at least one participle does not have a corresponding target song, continuing to search for the second situation, and if at least one participle still has a situation that at least one participle does not have a corresponding target song in the second situation, adjusting the preset participle length L to be 5 to perform subsequent searching.
In the embodiment of the application, by adopting the execution mode of the substeps 2021-2023, once the situation that the corresponding target song can be found by each participle exists, the target song list can be immediately generated, and the possibility of finding whether other forms of song lists exist by continuously adjusting the preset participle length is avoided, so that the music player can quickly generate the song list without waiting for the user, and the experience degree of the user is improved.
Optionally, the step 202 may include:
substep 2024, splitting the text content according to different preset word segmentation lengths to obtain a plurality of word segmentation lists;
in the embodiment of the application, all the participle lists in various forms, which can be obtained by splitting the text content by using all different preset participle lengths, are considered.
Specifically, assuming that the text content input by the user is "i will accompany you all the time until the skyline, and the initial value of the preset segmentation length is L-6, the text content is split in a form meeting the poetry format by L-6, 5, 4, 3, 2, 1. When L is 6, it can be split into two word-segmentation lists: "i will accompany", "you go", "go up to the skyline haigong" and "i will", "accompany you go" and "go up to the skyline haigong"; when L is 5, the word segmentation can be split into a word segmentation list: "i will", "accompany you all the time", "walk", "straight", "to the skyline haigong"; when L is 4, the word segmentation can be divided into a word segmentation list: "i will", "accompany", "you go", "up", "career hai"; when L is 3, the word segmentation can be split into a word segmentation list: "i will", "always", "accompany you", "walk", "straight", "to skyline", "sea horn".
Substep 2025, searching target songs corresponding to the participles according to the participles in the participle lists;
in the embodiment of the application, aiming at a plurality of word segmentation lists obtained by splitting, searching corresponding songs is carried out on all the word segmentation in each word segmentation list, so that the word segmentation lists capable of being used as the song list are screened out, and the word segmentation lists capable of being used as the song list are used as alternative word segmentation lists for the user to select autonomously.
Specifically, taking the example in sub-step 2024 as an example: for "i will accompany all the time", "you walk", "up to the skyline haigong"; "i will", "accompany you all the time", "up to the Skyline sea horn"; "i will", "accompany you all the time", "walk", "straight", "to the skyline haigong"; "i will", "accompany", "you go", "up", "career hai"; the target songs are searched for in all participle lists of 'me meeting', 'along', 'accompany you', 'walk', 'straight', 'to skyline', 'seaside', and if the target songs are searched for in all participles of 'me meeting', 'along accompany you', 'walk', 'up', 'along skyline' and 'me meeting', 'along', 'accompany you', 'walk', 'straight', 'to skyline', and 'seaside', the two participle lists are used as alternative participle lists if corresponding target songs are found in each participle of the two participle lists. And the music player stores the target songs corresponding to the participles in the alternative participle list in advance.
In the process of searching for the corresponding target song, if a certain word segmentation list has a word segmentation without the corresponding target song, the corresponding target songs of other word segmentations after the word segmentation sequence are not searched for any more, but the next word segmentation list is searched for directly. Therefore, the efficiency of acquiring the alternative word segmentation list can be improved.
Substep 2026, in case there are at least two candidate participle lists, presenting the candidate participle lists;
specifically, taking the example in sub-step 2024 as an example: displaying an alternative word segmentation list on a main interface of the music player:
"i will", "accompany you up", "go" until "skyline haigong";
and, "I will", "always", "accompany you", "walk", "straight", "to skyline", "sea horn"
For the user to select the favorite word segmentation list.
Substep 2027: receiving a first input of a user;
substep 2028: determining a target participle list from the alternative participle list in response to the first input;
specifically, for sub-steps 2027 to 2028, take the example in sub-step 2026 as an example: when the music player displays the alternative list, the selection control is displayed beside each word segmentation list at the same time, so that the user can enable the music player to receive the first input of the user by triggering the selection control. Assuming that the user triggers a selection control beside a word segmentation list, such as "me will", "accompany you all the time", "go to" skyline haijiao ", the music player may determine that the target word segmentation list is: "i will", "accompany you all the time", "go" and "skyline haigong", and the word segmentation list is used as a final word segmentation list for finally generating the song list.
In the embodiment of the application, by adopting the execution mode of the substeps 2024-2028, the multiple participle lists which can meet the conditions of generating the song list are displayed to the user as the alternative participle lists for the user to select, so that the user has the independent option, and the experience degree of the user is improved.
And under the condition that each participle has a corresponding target song, the participle can search a plurality of target songs. At this time, before step 204, the final target song corresponding to each participle can be determined in the following two ways:
optionally, before the step 204, the following sub-steps may be included:
step 2031: under the condition that a plurality of target songs exist in the word segmentation, selecting the song with the highest heat as the target song corresponding to the word segmentation; or
Specifically, under the condition that a plurality of target songs exist corresponding to the word segmentation, the music player sorts according to the heat of each song, and selects the song with the highest heat as the final target song corresponding to the word segmentation. And when the corresponding heat of the song is determined, the heat can be determined according to the historical playing times of the user, and the more the historical playing times of the song is, the higher the heat is. The popularity may also be determined based on the overall historical number of times the song has been played over the internet. The present application is not limited in this regard.
Step 2032: under the condition that a plurality of target songs exist in the word segmentation, selecting a song matched with the preference information as a target song corresponding to the word segmentation according to the preference information of the user; and the preference information of the user is obtained according to the historical song listening record of the user.
Specifically, in the case that the word segmentation corresponds to a plurality of target songs, the music player may also select a corresponding final target song according to the preference information of the user. The user's preference information is the type of music the user likes to listen to, for example, the music type is rock, ballad, electronic dance, etc., and the user's preference information is ballad song if the user likes to listen to the type of music. The preference signal of the user can be analyzed through inquiring the historical song listening records of the user and calculating and analyzing the big data.
When the number of segmented songs determined according to the preference information of the user is still multiple. For example, the user's preference information is ballad songs, and the term corresponds to three ballad songs. At this time, it is further determined which ballad songs the user prefers, for example, plateau mountain song songs are preferred by the user. And the three ballad songs are respectively plateau mountain songs, labor horns and paddy field songs, and the songs with the types of plateau mountain songs are selected as the final corresponding songs of the word segmentation.
Optionally, before the step 204, the following steps may also be included:
under the condition that a plurality of songs exist in the word segmentation, showing song information of the plurality of songs corresponding to the word segmentation;
receiving a second input of the target song information by the user;
and responding to the second input, and taking the song corresponding to the target song information as the song corresponding to the participle.
Specifically, under the condition that the word segmentation has multiple target songs, the music player can display the song information of the multiple songs corresponding to the word segmentation to the user so that the user can select favorite song information from the song information, and then the music player takes the song corresponding to the song information selected by the user as the final target song of the word segmentation.
The technical personnel can also display the song information after sequencing according to the heat degree of the songs or only display the song information which accords with the preference information of the user by combining the preference information of the user when displaying the song information corresponding to the word segmentation for the user according to the actual requirement. The present application is not limited thereto and is within the scope of protection.
In the embodiment of the application, after the final target song corresponding to each participle is determined, the music player updates the target song corresponding to each participle which is stored in advance.
Step 204: generating a target song list according to the sequence of the segmentation in the text content on the basis of the target song corresponding to each segmentation;
in this embodiment of the application, for the execution manner of the foregoing steps 2021 to 2023, once each participle has a corresponding target song, after a final target song corresponding to each participle is determined, step 204 may be executed to directly generate a song list according to the final target song corresponding to each participle and the sequence of the participle in the text content.
As for the execution modes of the foregoing steps 2024 to 2028, after the user selects the target participle list and determines the final target song corresponding to each participle, optionally, the step 204 includes: and generating a target song list according to the target song corresponding to each participle in the target participle list and the sequence of each participle in the text content.
Specifically, after the target word segmentation list is determined, target songs corresponding to all the word segments in the target word segmentation list are not required to be searched again, and the target songs corresponding to all the word segments stored in the music player in advance are inquired, so that the song list is generated conveniently.
Optionally, for step 204, when the target song list is generated according to the sequence of the word segmentation in the text content, a song list tag corresponding to the song list is also generated; wherein, the song list label includes: the song style type and length attribute of the song list.
For example, the song list to be generated is:
'I Hui'
Accompany you all the time "
Go and,
"till"
"Skyline sea horns";
wherein, the songs "I will", "walk" and "until" are ballad type, the song "accompany you all the time" is popular type, the song "Skyline sea horn" is rock type. At this time, the song style of the song list is: balladry. The length attribute may be the number of songs contained in the menu. If the number of songs in the song list is five, the length attribute of the song name can be set as: the length of the song list is moderate. Therefore, the user can know the song style and the length of the song before listening to the song list.
According to the embodiment of the application, the text content input by a user is obtained, the text content is divided into a plurality of participles in a poetry format, a target song corresponding to each participle is searched, and finally, under the condition that each participle has a corresponding target song, a target song list is generated according to the sequence of the participles in the text content on the basis of the target song corresponding to each participle. In the application, a user only needs to input text content in an input column of the music player, the music player can generate a song list in a Chinese poem type or a Tibetan poem type by utilizing an automatic word segmentation mode, and each word segmentation in the song list can be ensured to have a corresponding song, so that the success rate of generating the song list is improved, and the complexity of manually generating the song list is reduced.
It should be noted that, in the song list generation method provided in the embodiment of the present application, the execution subject may be a song list generation apparatus, or a control module in the song list generation apparatus for executing the song list generation method. In the embodiment of the present application, a song list generation method executed by a song list generation device is taken as an example, and the song list generation device provided in the embodiment of the present application is explained.
Referring to fig. 3, a block diagram of a song list generation apparatus 300 according to the present invention is shown. The device includes:
an obtaining module 301, configured to obtain text content input by a user;
the searching module 302 is configured to split the text content into a plurality of segments, and search for a target song corresponding to each segment;
a generating module 303, configured to generate a target song list according to an order of the segments in the text content based on the target song corresponding to each of the segments when each of the segments has a corresponding target song.
Optionally, the lookup module 302 includes:
the first splitting module is used for splitting the text content into a plurality of participles according to a preset participle length;
the first searching module is used for searching a corresponding target song according to each word segmentation;
and the first adjusting module is used for adjusting the preset word segmentation length under the condition that at least one word segmentation does not have a corresponding target song, and continuously executing the step of splitting the text content into a plurality of word segmentations according to the preset word segmentation length until each word segmentation has a corresponding target song or a preset stop condition is reached.
Optionally, the lookup module 302 includes:
the second splitting module is used for splitting the text content according to different preset word segmentation lengths to obtain a plurality of word segmentation lists; each word segmentation list comprises a plurality of words in a poetry format;
the second searching module is used for searching songs corresponding to the participles according to the participles in the participle lists;
the apparatus 300, further comprising:
the first display module is used for displaying the alternative participle list under the condition that at least two alternative participle lists exist;
the first receiving module is used for receiving a first input of a user;
a first response module, configured to determine, in response to the first input, a target participle list from the candidate participle list;
the generating module 303 is specifically configured to generate a target song list according to a target song corresponding to each participle in the target participle list and according to an order of each participle in the text content.
Optionally, the search module 302 is specifically configured to split the text content into multiple segments in a poetry format, where the poetry format is: a plurality of first characters of the participles form a sentence; or, a plurality of the participles form the prose poems according to rows.
Optionally, the apparatus 300 further includes:
the first song selection module is used for selecting the song with the highest heat as the target song corresponding to the word segmentation under the condition that a plurality of target songs exist in the word segmentation; alternatively, the first and second electrodes may be,
the second song selection module is used for selecting a song matched with the preference information as a target song corresponding to the participle according to the preference information of the user under the condition that a plurality of target songs exist in the participle; and the preference information of the user is obtained according to the historical song listening record of the user.
Optionally, the apparatus 300 further includes:
the second display module is used for displaying song information of a plurality of songs corresponding to the participles under the condition that the plurality of songs exist in the participles;
the second receiving module is used for receiving second input of the target song information by the user;
and the second response module is used for responding to the second input and taking the song corresponding to the target song information as the song corresponding to the participle.
According to the embodiment of the application, the text content input by a user is obtained, the text content is divided into a plurality of participles in a poetry format, a target song corresponding to each participle is searched, and finally, under the condition that each participle has a corresponding target song, a target song list is generated according to the sequence of the participles in the text content on the basis of the target song corresponding to each participle. In the application, a user only needs to input text content in an input column of the music player, the music player can generate a song list in a Chinese poem type or a Tibetan poem type by utilizing an automatic word segmentation mode, and each word segmentation in the song list can be ensured to have a corresponding song, so that the success rate of generating the song list is improved, and the complexity of manually generating the song list is reduced.
The song list generation device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The song list generation apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The song list generation device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 2, and is not described here again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the foregoing song list generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 5001, a network module 5002, an audio output unit 5003, an input unit 5004, a sensor 5005, a display unit 5006, a user input unit 5007, an interface unit 5008, a memory 5009, and a processor 5010.
Those skilled in the art will appreciate that the electronic device 500 may also include a power supply (e.g., a battery) for powering the various components, and that the power supply may be logically coupled to the processor 5010 via a power management system to perform the functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 5010 is configured to obtain text content input by a user; splitting the text content into a plurality of participles, and searching a target song corresponding to each participle; and under the condition that each word segmentation has a corresponding target song, generating a target song list according to the sequence of the word segmentation in the text content on the basis of the target song corresponding to each word segmentation.
Optionally, the processor 5010 is further configured to split the text content into a plurality of segments according to a preset segment length; searching a corresponding target song according to each word segmentation; and under the condition that at least one word segmentation does not have a corresponding target song, adjusting the preset word segmentation length, and continuously executing the step of splitting the text content into a plurality of word segmentations according to the preset word segmentation length until each word segmentation has the corresponding target song or a preset stop condition is reached.
Optionally, the processor 5010 is further configured to split the text content according to different preset word segmentation lengths, so as to obtain a plurality of word segmentation lists; searching target songs corresponding to the participles respectively according to the participles in the participle lists;
optionally, the processor 5010, before generating the target song list based on the target song respectively corresponding to each of the segmented words in the order of the segmented words in the text content, is further configured to: displaying the alternative participle list under the condition that at least two alternative participle lists exist; receiving a first input of a user; determining a target participle list from the alternative participle list in response to the first input;
optionally, when generating the target song list according to the sequence of the segments in the text content based on the target song corresponding to each segment, the processor is configured to generate the target song list according to the sequence of the segments in the text content according to the target song corresponding to each segment in the target segment list.
Optionally, when the processor 5010 splits the text content into a plurality of segments, specifically, the text content is split into a plurality of segments in a poetry format, where the poetry format is: a plurality of first characters of the participles form a sentence; or, a plurality of the participles form the prose poems according to rows.
Optionally, the processor 5010 is further configured to select, when there are multiple target songs in the word segmentation, a song with the highest popularity as the target song corresponding to the word segmentation; or under the condition that the word segmentation has a plurality of target songs, selecting the song matched with the preference information as the target song corresponding to the word segmentation according to the preference information of the user; and the preference information of the user is obtained according to the historical song listening record of the user.
According to the embodiment of the application, the text content input by a user is obtained, the text content is divided into a plurality of participles in a poetry format, a target song corresponding to each participle is searched, and finally, under the condition that each participle has a corresponding target song, a target song list is generated according to the sequence of the participles in the text content on the basis of the target song corresponding to each participle. In the application, a user only needs to input text content in an input column of the music player, the music player can generate a song list in a Chinese poem type or a Tibetan poem type by utilizing an automatic word segmentation mode, and each word segmentation in the song list can be ensured to have a corresponding song, so that the success rate of generating the song list is improved, and the complexity of manually generating the song list is reduced.
It should be understood that in the embodiment of the present application, the input unit 5004 may include a Graphics Processing Unit (GPU) 50041 and a microphone 50042, and the graphics processing unit 50041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 5006 may include a display panel 50061, and the display panel 50061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 5007 includes a touch panel 50071 and other input devices 50072. Touch panel 50071 is also referred to as a touch screen. Touch panel 50071 can include two portions, a touch detection device and a touch controller. Other input devices 50072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 5009 can be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 5010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 5010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above song list generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing song list generation method embodiment, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of generating a song list, comprising:
acquiring text content input by a user;
splitting the text content into a plurality of participles, and searching a target song corresponding to each participle;
and under the condition that each word segmentation has a corresponding target song, generating a target song list according to the sequence of the word segmentation in the text content on the basis of the target song corresponding to each word segmentation.
2. The method according to claim 1, wherein the splitting the text content into a plurality of segmentations and searching for a target song corresponding to each segmentation respectively comprises:
splitting the text content into a plurality of participles according to preset participle lengths;
searching a corresponding target song according to each word segmentation;
and under the condition that at least one word segmentation does not have a corresponding target song, adjusting the preset word segmentation length, and continuously executing the step of splitting the text content into a plurality of word segmentations according to the preset word segmentation length until each word segmentation has the corresponding target song or a preset stop condition is reached.
3. The method according to claim 1, wherein the splitting the text content into a plurality of segmentations and searching for a target song corresponding to each segmentation respectively comprises:
splitting the text content according to different preset word segmentation lengths to obtain a plurality of word segmentation lists;
searching target songs corresponding to the participles respectively according to the participles in the participle lists;
before generating the target song list according to the sequence of the segmentation in the text content based on the target song respectively corresponding to each segmentation, the method further comprises:
displaying the alternative participle list under the condition that at least two alternative participle lists exist;
receiving a first input of a user;
determining a target participle list from the alternative participle list in response to the first input;
generating a target song list according to the sequence of the segmentation in the text content based on the target song respectively corresponding to each segmentation, comprising:
and generating a target song list according to the target song corresponding to each participle in the target participle list and the sequence of each participle in the text content.
4. The method of claim 1, wherein the splitting the text content into a plurality of participles comprises:
splitting the text content into a plurality of participles in a poetry format, wherein the poetry format is as follows: a plurality of first characters of the participles form a sentence; or, a plurality of the participles form the prose poems according to rows.
5. The method of claim 1, wherein before generating the target song list based on the target song respectively corresponding to each of the participles in the order of the participles in the text content, the method comprises:
under the condition that a plurality of target songs exist in the word segmentation, selecting the song with the highest heat as the target song corresponding to the word segmentation; alternatively, the first and second electrodes may be,
under the condition that a plurality of target songs exist in the word segmentation, selecting a song matched with the preference information as a target song corresponding to the word segmentation according to the preference information of the user; and the preference information of the user is obtained according to the historical song listening record of the user.
6. A song list generation apparatus, comprising:
the acquisition module is used for acquiring text contents input by a user;
the searching module is used for splitting the text content into a plurality of participles and searching a target song corresponding to each participle;
and the generating module is used for generating a target song list according to the sequence of the segmentation in the text content on the basis of the target song corresponding to each segmentation respectively under the condition that each segmentation has the corresponding target song.
7. The apparatus of claim 7, wherein the lookup module comprises:
the first splitting module is used for splitting the text content into a plurality of participles according to a preset participle length;
the first searching module is used for searching a corresponding target song according to each word segmentation;
and the first adjusting module is used for adjusting the preset word segmentation length under the condition that at least one word segmentation does not have a corresponding target song, and continuously executing the step of splitting the text content into a plurality of word segmentations according to the preset word segmentation length until each word segmentation has a corresponding target song or a preset stop condition is reached.
8. The apparatus of claim 7, wherein the lookup module comprises:
the second splitting module is used for splitting the text content according to different preset word segmentation lengths to obtain a plurality of word segmentation lists;
the second searching module is used for searching target songs corresponding to the participles according to the participles in the participle lists;
the device, still include:
the first display module is used for displaying the alternative participle list under the condition that at least two alternative participle lists exist;
the first receiving module is used for receiving a first input of a user;
a first response module, configured to determine, in response to the first input, a target participle list from the candidate participle list;
the generating module is specifically configured to generate a target song list according to a target song corresponding to each participle in the target participle list and according to an order of each participle in the text content.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the song list generation method of any one of claims 1-5.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the song list generation method according to any one of claims 1 to 5.
CN202011586059.5A 2020-12-28 2020-12-28 Method and device for generating song list Pending CN112711674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011586059.5A CN112711674A (en) 2020-12-28 2020-12-28 Method and device for generating song list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011586059.5A CN112711674A (en) 2020-12-28 2020-12-28 Method and device for generating song list

Publications (1)

Publication Number Publication Date
CN112711674A true CN112711674A (en) 2021-04-27

Family

ID=75545967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011586059.5A Pending CN112711674A (en) 2020-12-28 2020-12-28 Method and device for generating song list

Country Status (1)

Country Link
CN (1) CN112711674A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130198268A1 (en) * 2012-01-30 2013-08-01 David Hyman Generation of a music playlist based on text content accessed by a user
CN106599059A (en) * 2016-11-15 2017-04-26 广州酷狗计算机科技有限公司 Method and device for adding songs
CN106776527A (en) * 2016-12-14 2017-05-31 掌阅科技股份有限公司 The display methods of electronic book data, device and terminal device
CN111950276A (en) * 2020-08-13 2020-11-17 安徽淘云科技有限公司 Word segmentation method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130198268A1 (en) * 2012-01-30 2013-08-01 David Hyman Generation of a music playlist based on text content accessed by a user
CN106599059A (en) * 2016-11-15 2017-04-26 广州酷狗计算机科技有限公司 Method and device for adding songs
CN106776527A (en) * 2016-12-14 2017-05-31 掌阅科技股份有限公司 The display methods of electronic book data, device and terminal device
CN111950276A (en) * 2020-08-13 2020-11-17 安徽淘云科技有限公司 Word segmentation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109857901B (en) Information display method and device, and method and device for information search
CN114374663B (en) Message processing method and message processing device
CN113220393A (en) Display method and device and electronic equipment
CN116017043A (en) Video generation method, device, electronic equipment and storage medium
CN111880668A (en) Input display method and device and electronic equipment
CN113986083A (en) File processing method and electronic equipment
CN111813236B (en) Input method, input device, electronic equipment and readable storage medium
CN111954076A (en) Resource display method and device and electronic equipment
CN115309487A (en) Display method, display device, electronic equipment and readable storage medium
WO2022228294A1 (en) Method and apparatus for carrying out searching, electronic device, and readable storage medium
CN113157966B (en) Display method and device and electronic equipment
CN113362426B (en) Image editing method and image editing device
CN115379136A (en) Special effect prop processing method and device, electronic equipment and storage medium
CN112711674A (en) Method and device for generating song list
CN114422843A (en) Video color egg playing method and device, electronic equipment and medium
CN113905125A (en) Video display method and device and electronic equipment
CN113688260A (en) Video recommendation method and device
CN113268961A (en) Travel note generation method and device
CN113282830A (en) Display method and display device
CN113190365A (en) Information processing method and device and electronic equipment
CN112818094A (en) Chat content processing method and device and electronic equipment
CN113127653A (en) Information display method and device
CN112667880B (en) Search result display method, device, equipment and storage medium
CN116955695A (en) Audio file display method and display device
CN115795089A (en) Information sharing method and device, electronic equipment and readable storage medium

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

Application publication date: 20210427

RJ01 Rejection of invention patent application after publication