CN107292109B - Diet planning method and device - Google Patents

Diet planning method and device Download PDF

Info

Publication number
CN107292109B
CN107292109B CN201710503046.9A CN201710503046A CN107292109B CN 107292109 B CN107292109 B CN 107292109B CN 201710503046 A CN201710503046 A CN 201710503046A CN 107292109 B CN107292109 B CN 107292109B
Authority
CN
China
Prior art keywords
information
demand
matched
dialogue
scene
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.)
Active
Application number
CN201710503046.9A
Other languages
Chinese (zh)
Other versions
CN107292109A (en
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.)
Midea Group Co Ltd
Original Assignee
Midea Group 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 Midea Group Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710503046.9A priority Critical patent/CN107292109B/en
Publication of CN107292109A publication Critical patent/CN107292109A/en
Application granted granted Critical
Publication of CN107292109B publication Critical patent/CN107292109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a diet planning method and a device, wherein the method comprises the steps of receiving dialogue information input by a user and acquiring context information of the dialogue information; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information. By the aid of the method and the device, the diet planning information can be well matched with the requirements of the dialogue information, and diet planning effect is improved.

Description

Diet planning method and device
Technical Field
The invention relates to the technical field of computers, in particular to a diet planning method and a diet planning device.
Background
When using the related services of the diet planning application, the user may input the widely required dialogue information, which may include a plurality of fuzzy requirements, that is, the widely required dialogue information includes not only explicit information of food, food materials, and recipes.
In the related art, when a user inputs general-demand dialogue information, the diet planning effect is not good.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a diet planning method, so that diet planning information can be well matched with the requirement of session information, and the diet planning effect is improved.
Another object of the present invention is to provide a diet planning device.
It is another object of the invention to propose a non-transitory computer-readable storage medium.
It is a further object of the invention to propose a computer program product.
In order to achieve the above object, a diet planning method according to an embodiment of the first aspect of the present invention includes: receiving dialog information input by a user, and acquiring context information of the dialog information; performing demand analysis on the dialogue information based on the context information to obtain demand information matched with the dialogue information; determining a plurality of items of diet planning information based on the matched demand information; and displaying the plurality of items of diet planning information.
According to the diet planning method provided by the embodiment of the first aspect of the invention, the dialogue information input by the user is received, and the context information of the dialogue information is obtained; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
In order to achieve the above object, a diet planning device according to an embodiment of the second aspect of the present invention includes: the receiving module is used for receiving the dialogue information input by the user and acquiring the context information of the dialogue information; the requirement analysis module is used for carrying out requirement analysis on the conversation information based on the context information to obtain requirement information matched with the conversation information; a determination module for determining a plurality of items of dietary plan information based on the matched demand information; and the display module is used for displaying the plurality of items of diet planning information.
The diet planning device provided by the embodiment of the second aspect of the invention receives the dialogue information input by the user and obtains the context information of the dialogue information; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
To achieve the above object, a third aspect of the present invention provides a diet planning device, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to: receiving dialog information input by a user, and acquiring context information of the dialog information; performing demand analysis on the dialogue information based on the context information to obtain demand information matched with the dialogue information; determining a plurality of items of diet planning information based on the matched demand information; and displaying the plurality of items of diet planning information.
The diet planning device provided by the embodiment of the third aspect of the invention receives the dialogue information input by the user and obtains the context information of the dialogue information; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
In order to achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor on a server side, enable the server side to execute a diet planning method, the method comprising: receiving dialog information input by a user, and acquiring context information of the dialog information; performing demand analysis on the dialogue information based on the context information to obtain demand information matched with the dialogue information; determining a plurality of items of diet planning information based on the matched demand information; and displaying the plurality of items of diet planning information.
The non-transitory computer readable storage medium according to the fourth aspect of the present invention receives the dialog information input by the user, and obtains context information of the dialog information; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
To achieve the above object, a fifth aspect of the present invention provides a computer program product, wherein when executed by an instruction processor of the computer program product, the computer program product performs a diet planning method, and the method includes: receiving dialog information input by a user, and acquiring context information of the dialog information; performing demand analysis on the dialogue information based on the context information to obtain demand information matched with the dialogue information; determining a plurality of items of diet planning information based on the matched demand information; and displaying the plurality of items of diet planning information.
The computer program product provided by the embodiment of the fifth aspect of the present invention receives the dialog information input by the user, and obtains the context information of the dialog information; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a diet planning method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a diet planning method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a diet planning device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a diet planning device according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flow chart of a diet planning method according to an embodiment of the present invention.
The embodiment is exemplified by the diet planning method being configured as a diet planning device.
The diet planning device in this embodiment may be disposed in the server, or may be disposed in the electronic device, which is not limited thereto.
The embodiment takes the example that the diet planning device is configured in the electronic device.
A diet planning class application in the electronic device may plan a diet of the user.
Among them, electronic devices such as smart phones, tablet computers, personal digital assistants, electronic books, and other hardware devices having various operating systems. An application may refer to a software program running on an electronic device.
The execution main body of the embodiment of the present invention may be, for example, a Central Processing Unit (CPU) of the electronic device on hardware, and may be, for example, a service related to a diet planning application in the electronic device on software, without limitation.
Referring to fig. 1, the method includes:
s11: and receiving dialog information input by a user, and acquiring context information of the dialog information.
The diet planning method in the embodiment of the invention is particularly applied to planning the diet of the user based on the dialogue information in the multi-turn dialogue interaction process with the user.
The dialog information input by the user can be the dialog information input by the user in the current round of interaction.
The dialog information may be input by the user in the form of text, or may be input by the user in the form of voice, which is not limited.
It can be understood that when the user uses the related services of the diet planning application, the user may input the dialog information of the global demand, and the dialog information of the global demand may include a plurality of fuzzy demands, that is, the dialog information of the global demand includes more than explicit information such as food, food material and recipe.
In the embodiment of the invention, in order to match the requirements of the user diet planning class as much as possible, a mode of combining the contextual information of the dialogue information is adopted, so that the requirement matching accuracy is improved.
S12: and performing requirement analysis on the conversation information based on the context information to obtain requirement information matched with the conversation information.
Wherein, the demand information includes: scene labels and/or degrees of matching for multiple rounds of conversation.
Specifically, the dialog information is subjected to demand analysis based on the context information determined in the previous step, and specifically, natural language processing technology may be adopted to perform demand analysis on the dialog information based on the context information.
Optionally, a scenario tag matched with the dialogue information can be determined based on the context information, and the scenario tag is used for marking the classification of the scenario generating the multi-turn dialogue interaction, for example, the classification of the scenario can be a cooking scenario, a diet suggestion scenario, or a daily consultation scenario; extracting a plurality of keywords corresponding to the scene tags from the dialogue information; and calculating the matching degree of each keyword and the scene label to obtain the demand information matched with the conversation information.
Specifically, a natural language processing technique may be adopted to perform word segmentation and syntax analysis on the dialog information, extract a plurality of keywords from the dialog information, determine keywords corresponding to the scene tags determined based on the context information from the extracted plurality of keywords, and further calculate the matching degree between each corresponding keyword and the scene tag.
Generally, a user has some commonly used keywords under each scene tag, so that each scene corresponds to a plurality of commonly used keywords. Under the scene corresponding to the dialogue information, the matched keywords are determined from the keywords, so that the keywords can be matched with the context information to a greater extent, namely, the matched keywords can more accurately indicate the user requirements which can be met by the dialogue information.
S13: a plurality of items of diet planning information are determined based on the matched demand information.
Wherein, still include in the demand information: user characteristic information.
The user characteristic information may be, for example, characteristics of gender, occupation, age, and the like.
Generally, users with different user characteristics may have different needs for food planning, for example, young users may prefer a spicy cooking taste, while older users may prefer a light cooking taste. Therefore, the user characteristic information can be analyzed based on the dialog information and the context information input by the user in the embodiment of the invention.
Specifically, multiple items of diet planning information can be determined from the preset index library according to the preset indexes and the scene labels and/or the matching degree of the matched requirements of the dialogue information, and the selected multiple items of diet planning information should be diversified as much as possible, so that the requirements of the user can be covered to the maximum degree, and the matching degree with the requirements of the user is improved.
Alternatively, in order to further diversify the determined diet planning information, a plurality of items of diet planning information may be searched from a search engine. Namely, the search engine searches diet planning information matched with scene labels and/or matching degrees of multiple rounds of conversations and multiple items of diet planning information of the user characteristic information, and the diet planning information is used as multiple items of diet planning information required by the embodiment of the invention.
S14: and displaying a plurality of items of diet planning information.
For example, the plurality of items of diet planning information may be played to the user in a voice playing mode, or the plurality of items of diet planning information may be displayed to the user in an output text mode, which is not limited.
In the embodiment, the dialog information input by the user is received, and the context information of the dialog information is obtained; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
Fig. 2 is a schematic flow chart of a diet planning method according to another embodiment of the present invention.
Referring to fig. 2, the method includes:
s21: and classifying the keywords adopted in the historical multi-turn conversations according to the conversation scenes to obtain the keywords corresponding to each scene.
S22: and analyzing the keywords corresponding to the scenes aiming at each scene to obtain scene labels corresponding to the scenes.
The scenario tag is used to mark a classification of the scenario that produces the multi-turn dialog interaction, which may be, for example, a cooking scenario, a diet advice scenario, or a daily consultation scenario.
Generally, a user has some commonly used keywords under each scene tag, so that each scene corresponds to a plurality of commonly used keywords.
In the embodiment of the invention, an offline system can be adopted to mine keywords adopted in offline historical multi-turn conversations, namely, the keyword distribution characteristics in the user conversation information are respectively analyzed in advance for a specific scene, so that when a user adopts multi-turn conversation information to plan diet, the efficiency of matching the user requirements can be improved.
In the embodiment of the invention, scene variables of some scenes can be established in advance, wherein the scene variables can comprise a start flag bit, a user demand information list, a set conversation overtime timer, conversation overtime detection and an end flag bit, and then the scene variables are extracted from each turn of conversation in historical multi-turn conversations so as to identify the scenes of each turn of conversation and improve the scene identification accuracy.
S23: and receiving dialog information input by a user, and acquiring context information of the dialog information.
S24: and performing requirement analysis on the conversation information based on the context information to obtain requirement information matched with the conversation information.
S25: a plurality of items of diet planning information are determined based on the matched demand information.
S26: and displaying a plurality of items of diet planning information.
The execution process of S23-S26 can be referred to the above embodiments, and will not be described herein.
In the embodiment, the dialog information input by the user is received, and the context information of the dialog information is obtained; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved. Classifying keywords adopted in historical multi-turn conversations according to conversation scenes to obtain keywords corresponding to each scene; and analyzing the keywords corresponding to the scenes to obtain scene labels corresponding to the scenes, and improving the efficiency of matching the user requirements when the user adopts multi-turn dialogue information to plan diet.
Fig. 3 is a schematic structural diagram of a diet planning device according to an embodiment of the present invention.
Referring to fig. 3, the apparatus 300 includes: a receiving module 301, a requirement analysis module 302, a determination module 303, and a presentation module 304, wherein,
the receiving module 301 is configured to receive dialog information input by a user and obtain context information of the dialog information.
And the requirement analysis module 302 is configured to perform requirement analysis on the session information based on the context information to obtain requirement information matched with the session information.
Optionally, the demand analysis module 302 is specifically configured to:
and performing demand analysis on the dialogue information based on the context information by adopting a natural language processing technology.
A determining module 303 for determining a plurality of items of diet planning information based on the matched demand information.
And a display module 304 for displaying a plurality of items of diet planning information.
Optionally, in some embodiments, the requirement information includes: scenario tagging and/or matching degree of multiple sessions, see fig. 4, the requirement analysis module 302, comprising:
a determining submodule 3021 configured to determine a scene tag matched with the dialogue information based on the context information.
The extracting submodule 3022 is configured to extract a plurality of keywords corresponding to the scene tag from the dialogue information.
The calculating submodule 3023 is configured to calculate a matching degree between each keyword and the scene tag, and obtain requirement information matched with the dialog information.
Optionally, the requirement information further includes: the user characteristic information determining module 303 is specifically configured to:
and determining a plurality of items of diet planning information from a preset index library according to the user characteristic information, the plurality of keywords and the matching degree of each keyword and the scene label.
Optionally, the determining module 303 is further specifically configured to:
and searching a plurality of items of diet planning information from a search engine according to the user characteristic information, the plurality of keywords and the matching degree of each keyword and the scene label.
Optionally, in some embodiments, referring to fig. 4, the apparatus 300 further comprises:
the classification module 305 is configured to classify the keywords used in the historical multi-turn conversations according to the conversation scenes to obtain keywords corresponding to each scene.
The scene tag obtaining module 306 is configured to analyze the keyword corresponding to the scene for each scene to obtain a scene tag corresponding to the scene.
It should be noted that the foregoing explanation of the embodiment of the diet planning method in the embodiment of fig. 1-2 also applies to the diet planning device 300 of this embodiment, and the implementation principle is similar and will not be described herein again.
In the embodiment, the dialog information input by the user is received, and the context information of the dialog information is obtained; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
To achieve the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, which when executed by a processor of a terminal, enables the terminal to perform a diet planning method, the method comprising:
receiving dialog information input by a user, and acquiring context information of the dialog information;
performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information;
determining a plurality of items of diet planning information based on the matched demand information;
and displaying a plurality of items of diet planning information.
The non-transitory computer readable storage medium in this embodiment receives the dialog information input by the user and obtains context information of the dialog information; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
To achieve the above embodiments, the present invention further provides a computer program product, wherein when instructions in the computer program product are executed by a processor, the computer program product executes a diet planning method, and the method comprises:
receiving dialog information input by a user, and acquiring context information of the dialog information;
performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information;
determining a plurality of items of diet planning information based on the matched demand information;
and displaying a plurality of items of diet planning information.
The computer program product in the embodiment receives the dialog information input by the user and acquires the context information of the dialog information; performing demand analysis on the conversation information based on the context information to obtain demand information matched with the conversation information; determining a plurality of items of diet planning information based on the matched demand information; and displaying a plurality of items of diet planning information, wherein the plurality of items of diet planning information are determined according to the demand information matched with the dialogue information, and the matched demand information is obtained by carrying out demand analysis on the dialogue information according to the context information, so that the diet planning information can be well matched with the demand of the dialogue information, and the diet planning effect is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (14)

1. A method of dietary planning, comprising the steps of:
receiving dialog information input by a user, and acquiring context information of the dialog information;
performing demand analysis on the dialogue information based on the context information to obtain demand information matched with the dialogue information; the performing requirement analysis on the dialogue information based on the context information to obtain requirement information matched with the dialogue information includes:
determining a scene tag matched with the dialogue information based on the context information;
extracting a plurality of keywords corresponding to the scene tags from the dialogue information;
calculating the matching degree of each keyword and the scene label to obtain the demand information matched with the dialogue information;
determining a plurality of items of diet planning information based on the matched demand information;
and displaying the plurality of items of diet planning information.
2. A method of dietary planning according to claim 1 wherein said performing a demand analysis on said session information based on said contextual information comprises:
and performing demand analysis on the dialogue information based on the context information by adopting a natural language processing technology.
3. A method of dietary planning according to claim 2 wherein said need information includes: scene labels and/or degrees of matching for multiple rounds of conversation.
4. A method of dietary planning according to claim 3 wherein said need information further includes: user characteristic information, said determining a plurality of items of diet planning information based on said matched demand information, comprising:
and determining the plurality of items of diet planning information from a preset index library according to the user characteristic information, the plurality of keywords and the matching degree of each keyword and the scene label.
5. A method of dietary planning according to claim 4 wherein said determining a plurality of items of dietary planning information based on said matched demand information further comprises:
and searching the plurality of items of diet planning information from a search engine according to the user characteristic information, the plurality of keywords and the matching degree of each keyword and the scene label.
6. A diet planning method according to any one of claims 1-5, further comprising, prior to said receiving user-entered dialog information:
classifying keywords adopted in historical multi-turn conversations according to conversation scenes to obtain keywords corresponding to each scene;
and analyzing the keywords corresponding to each scene to obtain a scene label corresponding to the scene.
7. A diet planning apparatus, comprising:
the receiving module is used for receiving the dialogue information input by the user and acquiring the context information of the dialogue information;
the requirement analysis module is used for carrying out requirement analysis on the conversation information based on the context information to obtain requirement information matched with the conversation information; the demand analysis module includes:
a determining submodule for determining a scene tag matched with the dialogue information based on the context information;
the extraction submodule is used for extracting a plurality of keywords corresponding to the scene tags from the dialogue information;
the calculation sub-module is used for calculating the matching degree of each keyword and the scene label to obtain the demand information matched with the dialogue information;
a determination module for determining a plurality of items of dietary plan information based on the matched demand information;
and the display module is used for displaying the plurality of items of diet planning information.
8. A diet planning device as claimed in claim 7, wherein said demand analysis module is specifically adapted to:
and performing demand analysis on the dialogue information based on the context information by adopting a natural language processing technology.
9. A dietary planning device according to claim 8 wherein said demand information includes: scene labels and/or degrees of matching for multiple rounds of conversation.
10. A dietary planning device according to claim 9 wherein said demand information further includes: the determination module is specifically configured to:
and determining the plurality of items of diet planning information from a preset index library according to the user characteristic information, the plurality of keywords and the matching degree of each keyword and the scene label.
11. The dietary planning device of claim 10, wherein the determination module is further specifically configured to:
and searching the plurality of items of diet planning information from a search engine according to the user characteristic information, the plurality of keywords and the matching degree of each keyword and the scene label.
12. A diet planning device as claimed in any one of claims 7 to 11 further including:
the classification module is used for classifying the keywords adopted in the historical multi-turn conversations according to the conversation scenes to obtain the keywords corresponding to each scene;
and the scene label acquisition module is used for analyzing the keywords corresponding to each scene to obtain the scene label corresponding to the scene.
13. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the diet planning method according to any one of claims 1-6.
14. A computer program product in which instructions, when executed by a processor, perform a method of diet planning, the method comprising:
receiving dialog information input by a user, and acquiring context information of the dialog information;
performing demand analysis on the dialogue information based on the context information to obtain demand information matched with the dialogue information; the performing requirement analysis on the dialogue information based on the context information to obtain requirement information matched with the dialogue information includes:
determining a scene tag matched with the dialogue information based on the context information;
extracting a plurality of keywords corresponding to the scene tags from the dialogue information;
calculating the matching degree of each keyword and the scene label to obtain the demand information matched with the dialogue information;
determining a plurality of items of diet planning information based on the matched demand information;
and displaying the plurality of items of diet planning information.
CN201710503046.9A 2017-06-27 2017-06-27 Diet planning method and device Active CN107292109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710503046.9A CN107292109B (en) 2017-06-27 2017-06-27 Diet planning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710503046.9A CN107292109B (en) 2017-06-27 2017-06-27 Diet planning method and device

Publications (2)

Publication Number Publication Date
CN107292109A CN107292109A (en) 2017-10-24
CN107292109B true CN107292109B (en) 2021-04-20

Family

ID=60098199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710503046.9A Active CN107292109B (en) 2017-06-27 2017-06-27 Diet planning method and device

Country Status (1)

Country Link
CN (1) CN107292109B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103413549A (en) * 2013-07-31 2013-11-27 深圳创维-Rgb电子有限公司 Voice interaction method and system and interaction terminal
CN106708802A (en) * 2016-12-20 2017-05-24 西南石油大学 Information recommendation method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014108923A1 (en) * 2013-01-14 2014-07-17 Tewari Kiran Method and system for suggesting at least one edible item to one or more customers
US20150161355A1 (en) * 2013-12-11 2015-06-11 Damodar Karra System and Methods for Generating a Diet Plan
CN104836720B (en) * 2014-02-12 2022-02-25 北京三星通信技术研究有限公司 Method and device for information recommendation in interactive communication
CN105809467A (en) * 2015-04-28 2016-07-27 成都鹏业软件股份有限公司 Instant communication tool-based commodity recommending system
CN105030041A (en) * 2015-06-27 2015-11-11 广东天际电器股份有限公司 Intelligent cooking system capable of autonomously judging user preferences and application thereof
CN105512196A (en) * 2015-11-27 2016-04-20 朱威 Personalized nutritional recipe recommendation method and system based on users' conditions
CN105741212A (en) * 2016-03-28 2016-07-06 美的集团股份有限公司 Health management system, platform and method
CN106228004A (en) * 2016-07-19 2016-12-14 海尔优家智能科技(北京)有限公司 A kind of healthy diet method for pushing and device, Smart Home server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103413549A (en) * 2013-07-31 2013-11-27 深圳创维-Rgb电子有限公司 Voice interaction method and system and interaction terminal
CN106708802A (en) * 2016-12-20 2017-05-24 西南石油大学 Information recommendation method and system

Also Published As

Publication number Publication date
CN107292109A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US20170164049A1 (en) Recommending method and device thereof
CN109299320B (en) Information interaction method and device, computer equipment and storage medium
CN110020009B (en) Online question and answer method, device and system
CN111125435B (en) Video tag determination method and device and computer equipment
CN110543592B (en) Information searching method and device and computer equipment
CN107833082B (en) Commodity picture recommendation method and device
CN109145110B (en) Label query method and device
CN107832338B (en) Method and system for recognizing core product words
CN112559800B (en) Method, apparatus, electronic device, medium and product for processing video
CN104915420B (en) Knowledge base data processing method and system
EP3355204A1 (en) Information search method and device
CN110837581A (en) Method, device and storage medium for video public opinion analysis
CN113806588A (en) Method and device for searching video
CN110059172B (en) Method and device for recommending answers based on natural language understanding
CN110991183A (en) Method, device, equipment and storage medium for determining predicate of problem
CN113220854A (en) Intelligent dialogue method and device for machine reading understanding
CN112417210A (en) Body-building video query method, device, terminal and storage medium
CN112446214A (en) Method, device and equipment for generating advertisement keywords and storage medium
CN107292109B (en) Diet planning method and device
CN106570116B (en) Search result aggregation method and device based on artificial intelligence
CN115759293A (en) Model training method, image retrieval device and electronic equipment
CN111259225A (en) New media information display method and device, electronic equipment and computer readable medium
CN115098729A (en) Video processing method, sample generation method, model training method and device
CN109815312B (en) Document query method and device, computing equipment and computer storage medium
CN113076932A (en) Method for training audio language recognition model, video detection method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant