Summary of the invention
The present invention is to solve above-mentioned the technical problems existing in the prior art, provides a kind of voice-based recipe processing
Method, this method can be directed to the voice request of user, provide corresponding recipe information for user, make user need not manual operation
Recipe can be screened and cooked according to recipe.Present invention further teaches a kind of voice-based recipe processing systems.
In order to achieve the above objectives, The technical solution adopted by the invention is as follows:
A kind of voice-based recipe processing method, comprising steps of receiving voice request information;Identify voice request information
And voice request information is converted into text information;Word segmentation processing is carried out to text information, target word therein is extracted and carries out
Hot word filtering;Filter result is matched with corresponding hot word set in preset hot word expansion library and obtains matching result, according to
Matching result carries out semantic retrieval and feeds back corresponding recipe information.
Further, word segmentation processing is carried out to text information, extracts the step of target word therein carries out hot word filtering
It include: the target word extracted according to part of speech and the degree of correlation in text information, according to preset priority orders in target word
It is screened in the unisonance dictionary of language and determines filter result.
Further, it includes the hot word set expanded for the attribute tags of recipe that hot word, which expands library,;And/or it is directed to
The hot word set that the content of text of recipe is expanded.
Further, method further include: semantic identification is carried out according to matching result, judges whether to feed back according to identification result
It is detached from the encyclopaedic knowledge in recipe, feeds back corresponding encyclopaedic knowledge when the judgment result is yes.
Further, method further include: obtain automatic cooking program corresponding with recipe, call automatic cooking program control
Kitchen appliance equipment processed is cooked according to recipe.
Further, if failing to obtain corresponding with recipe automatic cooking program, according to the content of text of recipe into
Row is shown or casting.
Further, the attribute tags of recipe include at least following one: style of cooking label, taste label, time tag with
And effect label.
Further, the content of text of recipe includes at least following one: recipe name, food materials auxiliary material, is cooked food materials major ingredient
Step of preparing food and culinary art patch scholar.
Present invention further teaches a kind of voice-based recipe processing systems.
A kind of voice-based recipe processing system, including middle control terminal, speech cloud and recipe cloud further include hot word filter
Dictionary and hot word expand library, and middle control terminal is used to carry out voice request information for receiving voice request information, speech cloud
Speech recognition and semantic understanding, are converted to text information after voice request information is identified, text information is sent into hot word and filters word
Library carries out hot word filtering, and resulting filter result feeding hot word expansion library matches with corresponding hot word set obtains matching knot
Fruit carries out semantic retrieval in recipe cloud according to matching result and feeds back corresponding recipe information.
Further, middle control terminal is kitchen house keeper robot or intelligent kitchen appliance equipment.
Technical solution of the present invention has the beneficial effect that:
Disclosed voice-based recipe processing method can be improved user for recipe and carry out semantic retrieval
Accuracy rate, user, which need not carry out inquiry using fixed words art, can be obtained corresponding recipe content;Meanwhile this method also solves
Compatibility issue between different recipe cloud platforms.The present invention also discloses a kind of voice-based recipe processing system accordingly
System.
Specific embodiment
More detailed description is done to technical solution provided by the present invention below by way of the drawings and specific embodiments:
Attached drawing 1 discloses the specific embodiment of the method for the invention.As shown in Figure 1, it is the method for the invention
Step block diagram discloses in the embodiment:
A kind of voice-based recipe processing method, comprising steps of
Step 101, voice request information is received;
Step 102, it identifies voice request information and voice request information is converted into text information;
Step 103, word segmentation processing is carried out to text information, extracts target word therein and carries out hot word filtering;
Step 104, filter result is matched with corresponding hot word set in preset hot word expansion library and obtains matching knot
Fruit carries out semantic retrieval according to the matching result and feeds back corresponding recipe information.
In the embodiment, by speech recognition technology, after the voice request information of user is converted to text information, lead to
Cross and word segmentation processing carried out to text information, extract target word therein and carry out hot word filtering, thus make originally due to unexpected winner,
The specialized word in the recipe field that field is partially narrow and is rejected is retained and parses, and the filter result remained will further be made
For the basis of subsequent expansion and semantic retrieval.And filter result expands corresponding hot word set in library with preset hot word and matches
Matching result is obtained, filter result can be expanded in semantic and words art, so as to make user need not be using solid
Surely art is talked about, it is diversified to be inquired and obtain desired result;Moreover, the hot word, which expands library, to put down different recipe clouds
The recipe attribute tags of platform are unified and are concluded, and solve the compatibility issue between different recipe cloud platforms, even if user
The recipe attribute tags of art and recipe cloud platform are inconsistent if inquiry, can similarly obtain desired knot after expanding
Fruit.
It is described that word segmentation processing is carried out to the text information in the present invention wherein an embodiment, extract target therein
The step of word progress hot word filtering includes: the target word extracted in text information according to part of speech and the degree of correlation, according to pre-
If priority orders screened in the unisonance dictionary of the target word determine filter result.Due to existing speech recognition skill
Art is to convert voice signals into phonetic and form text in turn according to certain specific corresponding word of determine the probability phonetic institute
Information, and what usual voice cloud platform was taken is the highest word of probability in full field, rather than it is directed to recipe field probability highest
Word, therefore the specialized word in recipe field is easy to be rejected during speech recognition, final so as to cause user
There is very large deviation in the result of acquisition and answer and practical intention.And the method for the invention can according to part of speech and the degree of correlation,
Target word is extracted in text information, and screens determination in the unisonance dictionary of target word according to preset priority orders
Filter result is rejected so as to avoid the specialized word in recipe field since unexpected winner, field are partially narrow, it is ensured that speech recognition
As a result accuracy.Specifically, it by taking jujube cake as an example, when user inquires " how jujube cake is cooked ", is identified by speech recognition technology
The voice request information is simultaneously converted into text information, later according to part of speech and the degree of correlation, " jujube cake " belong to noun and with food
Spectrum is related, therefore extracts as target word, in unisonance dictionary, pronounce comprising " jujube cake " (phonetic of speech recognition are as follows:
Zaogao homonym) includes " bad luck ", " early doing ", " jujube cake " etc., if using probability highest in the full field of voice cloud platform
Word, then the voice request information of user will be identified that " bad luck how to do ", this is clearly to be intended to against user;But
The method of the present invention drains into " jujube cake " in three homonyms due to being provided with unisonance dictionary and having preset corresponding priority orders
Highest priority carries out screening and filtering, therefore the voice request information of user will be identified that " how jujube cake is cooked ", thus really
The intention that resulting filter result meets user is protected.
In the method for the invention wherein an embodiment, the hot word expand library include for recipe attribute tags into
The hot word set that row is expanded;And/or the hot word set expanded of content of text for recipe.The meaning that user is inquired
Figure, it is possible to be desirable to push corresponding recipe for it, it is also possible to be to jump to corresponding position for the recipe selected
Or obtain the corresponding answer in relation to recipe content.Therefore, it both may include needle that the hot word of the method for the invention setting, which expands library,
To the hot word set that the attribute tags of recipe are expanded, the hot word that can also be expanded with treasure-house for the content of text of recipe
Set.Attribute tags due to that can be directed to recipe are expanded, art and recipe cloud platform user's inquiry
Bookmark name not fully corresponds to, user remain on can obtain it is corresponding want to obtain as a result, to meet user carry out it is more
The demand of art inquiry is talked about, while also eliminating the compatibility issue between different recipe cloud platforms.And in the text of recipe
Hold the expansion carried out, the content that can help user that need not record fully according to recipe is inquired, and actual according to user
Semanteme jumps to recipe corresponding position, or is the corresponding recipe content of user feedback.In this embodiment, it is obtaining accurately
Filter result on the basis of, by with hot word expand library in corresponding hot word set matched, can further be user
Semantic retrieval is carried out, recipe required for user, or the corresponding recipe information of feedback are picked out.For example, user wants to food
Spectrum is retrieved, for the content query " recommending the Hunan dish being fond of eating a bit for me " of certain recipe cloud platform, if the recipe cloud is flat
Platform is labeled as " Hunan cuisine " (agreeing to Hunan dish) rather than " Hunan dish " for the attribute tags of recipe, the case where not expanding
Under, then user can not obtain " Hunan dish " relevant recipe;Likewise, if another recipe cloud platform for recipe attribute
Label for labelling is " group Buddhist nunnery Hunan cuisine ", equally can not also be obtained according to " recommending the Hunan dish being fond of eating a bit for me " progress inquiry relevant
Recipe.And the method for the invention is preset with hot word and expands library, by some related foods due to expanding related step comprising hot word
The word of spectrum attribute tags is stored in hot word and expands library for being expanded, such as establishes the hot word collection specifically for style of cooking label
It closes, the different calls of wherein " Hunan cuisine ", local dish even relevant to Hunan cuisine etc. is all classified as one kind, i.e., be by " Hunan cuisine " expansion
" Hunan cuisine ", " Hunan dish ", " group Buddhist nunnery Hunan cuisine ", " western Hunan dish " " Tujia's dish ", " Yueyang dish " etc., in this way, no matter user is with wherein
Any call is inquired that art can all match with the recipe attribute tags of recipe cloud platform if inquiry, thus according to
The true intention of user obtains recipe required for user, and one side user need not art be inquired according to fixation, another
Aspect also solves the compatibility issue between different recipe cloud platforms.
In the method for the invention wherein an embodiment, the attribute tags of the recipe include at least following one: dish
It is label, taste label, time tag and effect label.
The method of the invention wherein the hot word in an embodiment expand library can also be comprising the content of text for recipe
The hot word set expanded.It is as shown in Figure 2, be the method for the invention wherein in an embodiment recipe schematic diagram.Mesh
There are many content for including in preceding most of recipes, for example, would generally comprising recipe name, brief introduction, food materials major ingredient, food materials auxiliary material,
The contents such as cooking step, culinary art patch scholar.Since recipe content is more, user's needs could be in the phase of recipe by pressing or sliding
Information required for finding oneself at position is answered, causes user that can not liberate both hands, is very inconvenient to operate.And institute of the present invention
The method of stating can allow user to retrieve and interact by way of voice, to improve the convenience of operation.Fig. 2 is disclosed
A wherein recipe in the method for the invention, it includes pork (fertilizer that the part content of text of the recipe, which has recorded food materials major ingredient,
It is thin), dried bamboo shoots, agaric it is dry etc..If user when cooking according to the recipe, inquires " pork puts how many ", due to recipe
Content of text in actually record is " pork (girth of a garment) ", and words art used by user is not completely right with content of text
It answers, thus is also required to expand the content of text of recipe, could be obtained required for user later as a result, informing that user needs
Put pork 200g.Likewise, it is dry for agaric, it needs to expand in library in hot word and the title of " agaric is dry " is uniformly returned
Class, such as " agaric is dry, fresh agaric, small agaric, black fungus, agaric, tremella, tremella " is all unified concludes, so no matter user with
" agaric puts how many ", " black fungus puts how many ", " fresh agaric puts how many " etc. any one words art inquired, can
It is found from recipe as a result, informing that user needs to put agaric and does 6g.
In the method for the invention wherein an embodiment, the content of text of the recipe includes at least following one: food
Compose title, food materials major ingredient, food materials auxiliary material, cooking step and culinary art patch scholar.
As shown in Figure 3, it is the step block diagram of the another embodiment of the method for the invention.In this embodiment, the side
Method further include: judge whether that feedback is detached from the encyclopaedic knowledge of recipe according to identification result, feed back phase when the judgment result is yes
The encyclopaedic knowledge answered.As shown in Figure 3, identify step 305 about semanteme: carrying out semanteme in the voice request information to user
After understanding, will do it is corresponding semantic identify, to judge that it is some with the recipe based on recipe content advisories that user is intended at this time
Relevant information, which is also intended to be detached from, inquires some encyclopaedic knowledge contents in relation to cooking in recipe, and can divide situation in this way is user
It is answered, achievees the purpose that carrying out depth with user interacts.For example, user is possible to for the recipe inquiry " auxiliary material in Fig. 2
Bubble green pepper put it is several ", carry out semantic identify at this time and judge that user still seeks advice from being directed to the recipe, then can root
Inform that user needs to put bubble green pepper 2 according to recipe content;And if user proposes the other problems in relation to cooking, such as it inquires
" teaching me, once how ginger should cut ", and pass through semantic identify and have no the teaching content how cut in relation to ginger in discovery recipe, this
When be then detached from the recipe, into relation to cook encyclopaedic knowledge library in retrieved, and feed back and introduction user specifically cut ginger
Method.When being retrieved in encyclopaedic knowledge library, then recipe field might not be sticked to, it can be using probability in full field
Highest word carries out voice recognition processing.
It is as shown in Figure 3, in the method for the invention wherein an embodiment, the method also includes: obtain with it is described
The corresponding automatic cooking program of recipe calls the automatic cooking program control kitchen appliance equipment to be cooked according to the recipe
It prepares food.In the method for the invention wherein an embodiment, if failing to obtain automatic cooking program corresponding with the recipe,
It is shown or broadcasts according to the content of text of the recipe.As shown in Figure 3, about the step for determining whether automatic cooking program
Rapid 307: user is after retrieving corresponding recipe, it is generally desirable to be cooked according to recipe, can attempt at this time from cloud or
Person locally obtains automatic cooking program corresponding with the recipe, then calls automatic cooking program control kitchen appliance equipment according to this
Recipe is cooked, to further realize automatic cooking on the basis of retrieving the recipe that user wants for user.And such as
Fruit finds automatic cooking program corresponding with the recipe, then according to the step 308 for showing or broadcasting, only user shows corresponding
Recipe content, or only user broadcasts specific recipe content, completes cooking process by user oneself.
It is as shown in Figure 4, present invention further teaches a kind of voice-based recipe processing system, including middle control terminal 401,
Speech cloud 402 and recipe cloud 405, the system further include that hot word filter dictionary 403 and hot word expand library 404, middle control terminal 401
For receiving voice request information, speech cloud 402 is used to carry out speech recognition and semantic understanding, voice to voice request information
Text information is converted to after solicited message is identified, text information is sent into hot word filter dictionary 403 and carries out hot word filtering, resulting mistake
Filter result feeding hot word expansion library 404 matches with corresponding hot word set obtains matching result, according to matching result in recipe
Semantic retrieval is carried out in cloud 405 and feeds back corresponding recipe information.As shown in Figure 4, as a wherein embodiment, hot word filters word
Library 403 and hot word are expanded library 404 and are all set in speech cloud 402, but those skilled in the art it will be appreciated that, according to database
Middle data volume number, hot word filter dictionary 403 and/or hot word expand library 404 can also on middle control terminal 401 local disposition.
In a wherein embodiment for system of the present invention, the middle control terminal 401 is kitchen house keeper robot or intelligence
Energy kitchen appliance equipment, control terminal 401 can be interacted by voice mode with user in this.
Above-mentioned specific embodiment is only intended to illustrate design method of the invention, for the purpose of limiting the invention can not protect
Protect range.For the deformation and conversion under the thought guidance of technical solution of the present invention, it should all be attributed to the scope of the present invention
Within.