IP Library Granted Patent US 11,164,579
Granted Patent B2
US 11,164,579 · App. 16/448,319 · Granted Nov 2, 2021

Method and apparatus for generating information

Inventors: Xiajun Luo (Beijing, CN); Shiquan Ye (Beijing, CN); Wenjuan Zhou (Beijing, CN); Yajuan Feng (Beijing, CN); Chenxi Gao (Beijing, CN); Hao Yang (Beijing, CN)
Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.; Shanghai Xiaodu Technology Co. Ltd.
G10L15/22G10L15/05G10L15/1822G10L2015/088G10L2015/223
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,164,579
App. No.
16/448,319
Granted
Nov 2, 2021
Kind
B2
Abstract

A method and an apparatus for generating information are provided. The method includes: determining, in response to receiving a first user sentence, whether a keyword of a preset first category is included in the first user sentence, the first category including at least one subcategory; determining, in response to determining the first category keyword being included in the first user sentence, the first category keyword included in the first user sentence as a first keyword, and determining a subcategory to which the first keyword belongs, to generate a first keyword set and a subcategory set; and selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set, the song list including at least one piece of audio and song list category information.

Claims (44)

1. A method for generating information, comprising:

determining, in response to receiving a first user sentence, whether a first category keyword of a preset first category is included in the first user sentence, the first category including at least one subcategory;

determining, in response to determining the first category keyword being included in the first user sentence, the first category keyword included in the first user sentence as a first keyword, and determining a subcategory to which the first keyword belongs, to generate a first keyword set and a subcategory set; and

selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set, the song list including at least one piece of audio and song list category information, wherein the first category keyword is preset to have a weight value, and the selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set comprises:

determining, in response to at least two first keywords being included in the first keyword set, whether a song list satisfying a preset condition is included in the pre-generated song list set, based on the at least two first keywords and subcategories to which the at least two first keywords belong;

selecting, in response to the song list satisfying the preset condition being included in the pre-generated song list set, the song list satisfying the preset condition as the to-be-played song list, to generate the to-be-played song list set;

determining, in response to the song list satisfying the preset condition being not included in the pre-generated song list set, weight values of the at least two first keywords respectively; and

selecting, based on the first keyword having the maximum weight value and a subcategory to which the first keyword having the maximum weight value belongs, a song list from the pre-generated song list set as the to-be-played song list, to generate the to-be-played song list set.

2. The method according to claim 1 , further comprising:

determining, in response to determining a preset second category keyword being included in the first user sentence, the second category keyword included in the first user sentence as a second keyword; and

determining, based on the second keyword and the first keyword set, a target keyword from the first category keyword, and determining a subcategory to which the target keyword belongs,

wherein the selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set comprises:

selecting, based on the target keyword and the subcategory to which the target keyword belongs, a song list from the pre-generated song list set as the to-be-played song list, to generate the to-be-played song list set.

3. The method according to claim 1 , further comprising:

playing the audio included in the song list in the to-be-played song list set.

4. The method according to claim 3 , further comprising:

performing, in response to determining a preset third category keyword being included in a received second user sentence, a corresponding preset operation based on the third category keyword included in the second user sentence, the preset operation including one of: switching a currently played song list and adding the currently played song list to favourites.

5. An apparatus for generating information, comprising:

at least one processor; and

a memory storing instructions, wherein the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:

determining, in response to receiving a first user sentence, whether a first category keyword of a preset first category is included in the first user sentence, the first category including at least one subcategory;

determining, in response to determining the first category keyword being included in the first user sentence, the first category keyword included in the first user sentence as a first keyword, and determine a subcategory to which the first keyword belongs, to generate a first keyword set and a subcategory set; and

selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set, the song list including at least one piece of audio and song list category information, wherein the first category keyword is preset to have a weight value, and the selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set comprises:

determining, in response to at least two first keywords being included in the first keyword set, whether a song list satisfying a preset condition is included in the pre-generated song list set, based on the at least two first keywords and subcategories to which the at least two first keywords belong;

selecting, in response to the song list satisfying the preset condition being included in the pre-generated song list set, the song list satisfying the preset condition as the to-be-played song list, to generate the to-be-played song list set;

determining, in response to the song list satisfying the preset condition being not included in the pre-generated song list set, weight values of the at least two first keywords respectively; and

selecting, based on the first keyword having the maximum weight value and a subcategory to which the first keyword having the maximum weight value belongs, a song list from the pre-generated song list set as the to-be-played song list, to generate the to-be-played song list set.

6. The apparatus according to claim 5 , wherein the operations further comprise:

determining, in response to determining a preset second category keyword being included in the first user sentence, the second category keyword included in the first user sentence as a second keyword; and

determining, based on the second keyword and the first keyword set, a target keyword from the first category keyword, and determine a subcategory to which the target keyword belongs,

wherein the selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set comprises:

selecting, based on the target keyword and the subcategory to which the target keyword belongs, a song list from the pre-generated song list set as the to-be-played song list, to generate the to-be-played song list set.

7. The apparatus according to claim 5 , wherein the operations further comprise:

playing the audio included in the song list in the to-be-played song list set.

8. The apparatus according to claim 7 , wherein the operations further comprise:

performing, in response to determining a preset third category keyword being included in a received second user sentence, a corresponding preset operation based on the third category keyword included in the second user sentence, the preset operation including one of: switching a currently played song list and adding the currently played song list to favourites.

9. A non-transitory computer readable medium, storing a computer program, wherein the program, when executed by a processor, causes the processor to perform operations, the operations comprising:

determining, in response to receiving a first user sentence, whether a category keyword of a preset first category is included in the first user sentence, the first category including at least one subcategory;

determining, in response to determining the first category keyword being included in the first user sentence, the first category keyword included in the first user sentence as a first keyword, and determining a subcategory to which the first keyword belongs, to generate a first keyword set and a subcategory set; and

selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set, the song list including at least one piece of audio and song list category information, wherein the first category keyword is preset to have a weight value, and the selecting, based on the first keyword set and the subcategory set, a song list from a pre-generated song list set as a to-be-played song list, to generate a to-be-played song list set comprises:

determining, in response to at least two first keywords being included in the first keyword set, whether a song list satisfying a preset condition is included in the pre-generated song list set, based on the at least two first keywords and subcategories to which the at least two first keywords belong;

selecting, in response to the song list satisfying the preset condition being included in the pre-generated song list set, the song list satisfying the preset condition as the to-be-played song list, to generate the to-be-played song list set;

determining, in response to the song list satisfying the preset condition being not included in the pre-generated song list set, weight values of the at least two first keywords respectively; and

selecting, based on the first keyword having the maximum weight value and a subcategory to which the first keyword having the maximum weight value belongs, a song list from the pre-generated song list set as the to-be-played song list, to generate the to-be-played song list set.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 30, 2021
From: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.; SHANGHAI XIAODU TECHNOLOGY CO. LTD.
Reel/Frame 056811/0772 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 21, 2019
From: LUO, XIAJUN; YE, SHIQUAN; ZHOU, WENJUAN; FENG, YAJUAN; GAO, CHENXI; YANG, HAO
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 049558/0972 →
Priority Claims (1)
CN 201810719465.0 · Jul 3, 2018 · national
Continuity (1)
Related Publication 20200013399A1 · Jan 9, 2020