Menu creation method and device, electronic equipment and storage medium

By extracting and converting cooking information in popular languages ​​and generating electronic recipes in standard languages, the problem of the inability to edit electronic recipes in popular languages ​​in the prior art is solved, the creative efficiency and user experience are improved, and the recipes are adapted to cooking equipment.

CN119558274APending Publication Date: 2025-03-04ZHUHAI UNICOOK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311103807.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the prior art, when creating electronic recipes, it is impossible to use popular language or spoken language to edit, resulting in a high threshold and reducing the user experience.

Method used

By obtaining the initial recipe information, extracting key content in the cooking information described in popular language, and using a pre-constructed database containing conversion rules between popular language and standard language, it is converted into the initial cooking content in standard language, and finally generating an electronic recipe.

Benefits of technology

It solves the problem that electronic recipes cannot be edited in popular language in the prior art, improves the efficiency and convenience of recipe creation, improves the user experience, and ensures that electronic recipes are adapted to cooking equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119558274A_ABST
    Figure CN119558274A_ABST
Patent Text Reader

Abstract

The invention provides a menu creation method and device, electronic equipment and a storage medium, and relates to the technical field of intelligent cooking. The method comprises the following steps: acquiring initial menu information, processing cooking information described by a popular language in the initial menu information, and extracting key contents in the cooking information described by the popular language; converting the key content of the popular language into initial cooking content of a standard language according to a pre-constructed database containing conversion rules of the popular language and the standard language; and generating an electronic menu based on the initial cooking content of the standard language. It can be seen that the cooking information described by the popular language in the initial menu information is processed, the initial cooking content of the standard language is obtained, the electronic menu is generated, the problem that in the prior art, the popular language or spoken language cannot be used for editing the electronic menu is solved, menu creation is more efficient and convenient, and the user experience is improved. And the menu creation experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent cooking technology, and in particular to a recipe creation method and device, an electronic device, and a storage medium. Background Art

[0002] With the continuous development of smart kitchens, smart kitchenware has gradually entered people's daily lives. During the working process, smart kitchenware generally cooks by running electronic recipes, so that the cooked dishes can be standardized, which effectively improves the cooking efficiency and saves labor costs.

[0003] Electronic recipes are generally standardized recipes edited by specific creation software. In the prior art, when creating electronic recipes, professional chefs usually need to record the cooking process and steps in a specific language format based on their cooking experience, and cannot record them according to popular spoken habits. Therefore, the threshold for electronic recipe creation is high, which reduces the user experience. This technical problem needs to be solved urgently. Summary of the invention

[0004] In view of the above problems, the present application is proposed to provide a recipe creation method and device, electronic device and storage medium that overcome the above problems or at least partially solve the above problems. The technical solution is as follows:

[0005] In a first aspect, a recipe creation method is provided, comprising:

[0006] Acquiring initial recipe information, wherein the initial recipe information includes cooking information described in colloquial language;

[0007] Processing the cooking information described in colloquial language in the initial recipe information to extract key contents from the cooking information described in colloquial language;

[0008] Converting the key contents in the colloquial language into the initial cooking contents in the standard language according to a pre-built database containing conversion rules between the colloquial language and the standard language;

[0009] Generate electronic recipes based on initial cooking content in a standard language.

[0010] In a possible implementation, the obtaining of initial recipe information includes:

[0011] Receiving initial recipe information including colloquial language inputted by a user through interaction; or

[0012] Get the initial recipe information from the preset storage path.

[0013] In a possible implementation, the cooking information described in colloquial language in the initial recipe information is processed to extract key contents of the cooking information described in colloquial language, including:

[0014] According to the preset word segmentation rules, the cooking information described in colloquial language in the initial recipe is subjected to word segmentation processing, and key contents satisfying the preset word segmentation rules in the cooking information described in colloquial language are extracted.

[0015] In a possible implementation, a database containing conversion rules between colloquial language and standard language is constructed by the following steps:

[0016] Constructing a plurality of colloquial language clusters, wherein each colloquial language cluster includes one or more colloquial language texts, and each colloquial language text in each colloquial language cluster has the same semantics or a semantic similarity greater than a preset threshold;

[0017] Determining the text of the standard language corresponding to each popular language cluster according to the semantics of each popular language text in each popular language cluster;

[0018] A mapping relationship between each colloquial language text in each colloquial language cluster and the corresponding standard language text is constructed to obtain a constructed database.

[0019] In a possible implementation, converting the key content in the colloquial language into the initial cooking content in the standard language according to a pre-built database containing conversion rules between the colloquial language and the standard language includes:

[0020] According to a pre-built database containing conversion rules between colloquial language and standard language, searching the database for text in the standard language that matches key content in the colloquial language;

[0021] If a text in the standard language matching the key content in the colloquial language is found, initial cooking content in the standard language is generated based on the found text in the standard language.

[0022] In a possible implementation, the generating of the electronic recipe based on the initial cooking content in the standard language includes:

[0023] Based on the initial cooking content in the standard language, generate an electronic recipe that displays the initial cooking content in the standard language in text form; or

[0024] Based on the initial cooking content in the standard language, an electronic recipe is generated which displays the initial cooking content in the standard language in the form of information swim lanes;

[0025] The electronic recipe that displays the initial cooking content in the standard language in text form and the electronic recipe that displays the initial cooking content in the standard language in the form of information swim lanes can be switched.

[0026] In a possible implementation, the types of the information lanes include a first information lane and a second information lane; the generating of an electronic recipe that displays the initial cooking content in the standard language in the form of information lanes based on the initial cooking content in the standard language includes:

[0027] Based on the initial cooking content in the standard language, identifying the cooking content belonging to the first information swimming lane and the cooking content belonging to the second information swimming lane in the initial cooking content in the standard language;

[0028] According to the cooking contents belonging to the first information swimming lane and the cooking contents belonging to the second information swimming lane, an electronic recipe is generated to display the corresponding cooking contents in each type of information swimming lane.

[0029] In a possible implementation, after converting the key content in colloquial language into the initial cooking content in standard language, the method further includes:

[0030] The cooking device capability is identified, and cooking content in a standard language adapted to the cooking device capability is output.

[0031] In a possible implementation, before obtaining the initial recipe information, the method further includes: obtaining capability information of the cooking device;

[0032] The step of identifying the cooking device capability and outputting the cooking content in a standard language adapted to the cooking device capability includes:

[0033] The capability information of the cooking device is read, and the cooking content executable by the cooking device is outputted through comparison with the initial cooking content by the capability information of the cooking device, and the cooking content that cannot be executed by the cooking device is adjusted.

[0034] In a possible implementation, after generating the electronic recipe, the method further includes:

[0035] In response to a save operation on the electronic recipe, detecting whether the initial cooking content in the standard language of the electronic recipe meets a preset recipe running condition;

[0036] If it is detected that the initial cooking content in the standard language of the electronic recipe does not meet the preset recipe running conditions, a prompt message indicating that the preset recipe running conditions are not met is generated;

[0037] If it is detected that the initial cooking content in the standard language of the electronic recipe meets the preset recipe running conditions, the electronic recipe is saved.

[0038] In a second aspect, a recipe creation device is provided, comprising:

[0039] An acquisition module, configured to acquire initial recipe information, wherein the initial recipe information includes cooking information described in colloquial language;

[0040] An extraction module, used to process the cooking information described in colloquial language in the initial recipe information, and extract key contents in the cooking information described in colloquial language;

[0041] a conversion module for converting the key content in colloquial language into initial cooking content in standard language according to a pre-built database containing conversion rules between colloquial language and standard language;

[0042] A generation module is used to generate electronic recipes based on initial cooking content in a standard language.

[0043] In a possible implementation, the acquisition module is further used to:

[0044] Receiving initial recipe information including colloquial language inputted by a user through interaction; or

[0045] Get the initial recipe information from the preset storage path.

[0046] In a possible implementation, the extraction module is further used to:

[0047] According to the preset word segmentation rules, the cooking information described in colloquial language in the initial recipe is subjected to word segmentation processing, and key contents satisfying the preset word segmentation rules in the cooking information described in colloquial language are extracted.

[0048] In a possible implementation, the device further includes a building module, which is used to:

[0049] Constructing a plurality of colloquial language clusters, wherein each colloquial language cluster includes one or more colloquial language texts, and each colloquial language text in each colloquial language cluster has the same semantics or a semantic similarity greater than a preset threshold;

[0050] Determining the text of the standard language corresponding to each popular language cluster according to the semantics of each popular language text in each popular language cluster;

[0051] A mapping relationship between each colloquial language text in each colloquial language cluster and the corresponding standard language text is constructed to obtain a constructed database.

[0052] In a possible implementation, the conversion module is further configured to:

[0053] According to a pre-built database containing conversion rules between colloquial language and standard language, searching the database for text in the standard language that matches key content in the colloquial language;

[0054] If a text in the standard language matching the key content in the colloquial language is found, initial cooking content in the standard language is generated based on the found text in the standard language.

[0055] In a possible implementation, the generating module is further used for:

[0056] Based on the initial cooking content in the standard language, generate an electronic recipe that displays the initial cooking content in the standard language in text form; or

[0057] Based on the initial cooking content in the standard language, an electronic recipe is generated which displays the initial cooking content in the standard language in the form of information swim lanes;

[0058] The electronic recipe that displays the initial cooking content in the standard language in text form and the electronic recipe that displays the initial cooking content in the standard language in the form of information swim lanes can be switched.

[0059] In a possible implementation, the types of the information lanes include a first information lane and a second information lane; and the generating module is further configured to:

[0060] Based on the initial cooking content in the standard language, identifying the cooking content belonging to the first information swimming lane and the cooking content belonging to the second information swimming lane in the initial cooking content in the standard language;

[0061] According to the cooking contents belonging to the first information swimming lane and the cooking contents belonging to the second information swimming lane, an electronic recipe is generated to display the corresponding cooking contents in each type of information swimming lane.

[0062] In a possible implementation manner, the apparatus further includes a device capability identification module, which is used to:

[0063] After the conversion module converts the key content in the colloquial language into the initial cooking content in the standard language, the cooking device capability is identified and the cooking content in the standard language adapted to the cooking device capability is output.

[0064] In a possible implementation, the acquisition module is further used to:

[0065] Before obtaining the initial recipe information, obtain the capability information of the cooking equipment;

[0066] The device capability identification module is also used for:

[0067] The capability information of the cooking device is read, and the cooking content executable by the cooking device is outputted through comparison with the initial cooking content by the capability information of the cooking device, and the cooking content that cannot be executed by the cooking device is adjusted.

[0068] In a possible implementation manner, the device further includes a storage module, which is used to:

[0069] In response to a save operation on the electronic recipe, detecting whether the initial cooking content in the standard language of the electronic recipe meets a preset recipe running condition;

[0070] If it is detected that the initial cooking content in the standard language of the electronic recipe does not meet the preset recipe running conditions, a prompt message indicating that the preset recipe running conditions are not met is generated;

[0071] If it is detected that the initial cooking content in the standard language of the electronic recipe meets the preset recipe running conditions, the electronic recipe is saved.

[0072] According to a third aspect, an electronic device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of the recipe creation methods described above.

[0073] In a fourth aspect, a storage medium is provided, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above-mentioned recipe creation methods when run.

[0074] By means of the above technical scheme, the recipe creation method and device, electronic device and storage medium provided in the embodiment of the present application can obtain the initial recipe information, process the cooking information described in colloquial language in the initial recipe information, and extract the key content in the cooking information described in colloquial language; according to a pre-constructed database containing conversion rules between colloquial language and standard language, convert the key content in colloquial language into the initial cooking content in standard language; and generate an electronic recipe based on the initial cooking content in standard language. It can be seen that the embodiment of the present application processes the cooking information described in colloquial language in the initial recipe information, obtains the initial cooking content in standard language, and generates an electronic recipe, which solves the problem in the prior art that electronic recipes cannot be edited using colloquial language or spoken language, and makes recipe creation more efficient and convenient, improving the user's experience in creating recipes. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0076] Figure 1 A flowchart of a recipe creation method provided in an embodiment of the present application is shown;

[0077] Figure 2 The cooking information described in plain language provided by an embodiment of the present application is shown;

[0078] Figure 3The initial cooking content described in standard language provided by an embodiment of the present application is shown;

[0079] Figure 4 Shown for Figure 2 Prompt information for unrecognized text;

[0080] Figure 5 An electronic recipe showing initial cooking content in a standard language in the form of information swim lanes provided by an embodiment of the present application is shown;

[0081] Figure 6 A structural diagram of a recipe creation device provided in an embodiment of the present application is shown;

[0082] Figure 7 A structural diagram of a recipe creation device provided by another embodiment of the present application is shown;

[0083] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0084] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0085] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such use is interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants are to be interpreted as open-ended terms meaning "including but not limited to".

[0086] In order to solve the above technical problems, the present application embodiment provides a recipe creation method, such as Figure 1 As shown, the recipe creation method may include the following steps S101 to S104:

[0087] Step S101, obtaining initial recipe information, wherein the initial recipe information includes cooking information described in colloquial language.

[0088] In this step, the initial recipe information can be one or more paragraphs of words about cooking, or a recipe file, etc., which is not limited in this embodiment. The colloquial language here refers to colloquial, vernacular or non-standardized language.

[0089] The cooking information included in the initial recipe information refers to the cooking information included in the initial recipe information, but not limited to, described in colloquial language. In addition, the cooking information may also be described in non-colloquial language, such as standard language.

[0090] Step S102, processing the cooking information described in colloquial language in the initial recipe information, and extracting key contents in the cooking information described in colloquial language.

[0091] Step S103, converting the key content in the colloquial language into the initial cooking content in the standard language according to a pre-built database containing conversion rules between the colloquial language and the standard language.

[0092] Step S104: Generate an electronic recipe based on the initial cooking content in the standard language.

[0093] The embodiment of the present application processes the cooking information described in colloquial language in the initial recipe information, obtains the initial cooking content in standard language, and generates an electronic recipe, thereby solving the problem in the prior art that electronic recipes cannot be edited using colloquial language or spoken language. Recipe creation is more efficient and convenient, and the user experience of creating recipes is improved.

[0094] The present application provides a possible implementation method. The above step S101 obtains the initial recipe information, which may specifically include the following steps A1 or A2:

[0095] Step A1, receiving initial recipe information including colloquial language input by the user through interaction.

[0096] In this step, the initial recipe information including colloquial language input by the user through interaction may be text input, voice input or video input, etc., which is not limited in this embodiment.

[0097] Step A2, obtaining initial recipe information from a preset storage path.

[0098] In this step, the preset storage path may be local or on a network, etc., which is not limited in this embodiment.

[0099] This embodiment can obtain initial recipe information in a variety of ways, which is more flexible and efficient and meets the recipe creation needs of various scenarios.

[0100] The present application provides a possible implementation method. The above step S102 processes the cooking information described in colloquial language in the initial recipe information to extract key content from the cooking information described in colloquial language, which may specifically include the following steps B1:

[0101] Step B1, according to preset word segmentation rules, the cooking information described in colloquial language in the initial recipe is segmented, and key contents satisfying the preset word segmentation rules are extracted from the cooking information described in colloquial language.

[0102] In this step, the preset word segmentation rules may include action; action and temperature; action and time; action, temperature and time; action, ingredients and weight; action, seasoning and weight; one or more of action, ingredients and weight, seasoning and weight, and this embodiment does not limit this.

[0103] For example, the cooking information described in colloquial language in the initial recipe includes "heat the oil temperature to 150 degrees, add 10 grams of peanut oil and 5 grams of garlic, add 500 grams of beef after sautéing, stir-fry until half-cooked, and pour out for later use". Based on the above preset word segmentation rules, key content that meets the preset word segmentation rules can be extracted, such as "heat to 150 degrees", "add 10 grams of peanut oil and 5 grams of garlic", "add 500 grams of beef", "fry", and "pour out". It should be noted that the examples listed here are only illustrative and do not limit this embodiment.

[0104] This embodiment can perform word segmentation processing on the cooking information described in colloquial language in the initial recipe according to preset word segmentation rules, and extract key content that meets the preset word segmentation rules from the cooking information described in colloquial language, so as to perform language conversion efficiently and accurately later.

[0105] In the embodiment of the present application, a possible implementation method is provided. The database containing the conversion rules between the colloquial language and the standard language mentioned in step S103 above can be constructed by the following steps C1 to C3:

[0106] Step C1, constructing a plurality of colloquial language clusters, wherein each colloquial language cluster includes one or more colloquial language texts, and the semantics of each colloquial language text in each colloquial language cluster are the same or the semantic similarity is greater than a preset threshold.

[0107] In this step, the preset threshold can be set according to actual needs, such as the preset threshold is 0.9 or 0.85, etc., which is not limited in this embodiment.

[0108] Step C2, determining the standard language text corresponding to each colloquial language cluster according to the semantics of each colloquial language text in each colloquial language cluster.

[0109] Step C3, constructing a mapping relationship between each colloquial language text in each colloquial language cluster and the corresponding standard language text to obtain a constructed database.

[0110] This embodiment constructs a database containing conversion rules between colloquial language and standard language. The colloquial language and standard language in the database may be in a one-to-one or many-to-one relationship, which can satisfy the subsequent conversion between colloquial language and standard language.

[0111] In the embodiment of the present application, a possible implementation method is provided. Step S103 converts the key content in the colloquial language into the initial cooking content in the standard language according to a pre-built database containing conversion rules between the colloquial language and the standard language. Specifically, the following steps D1 and D2 may be included:

[0112] Step D1, searching the database for a text in the standard language that matches the key content of the colloquial language according to a pre-built database containing conversion rules between the colloquial language and the standard language;

[0113] Step D2: if a text in the standard language matching the key content in the colloquial language is found, then initial cooking content in the standard language is generated based on the found text in the standard language.

[0114] This embodiment can combine a pre-built database containing conversion rules between colloquial language and standard language to efficiently and accurately convert colloquial language into standard language.

[0115] A possible implementation method is provided in an embodiment of the present application. When the above step D1 searches the database for text in the standard language that matches the key content of the colloquial language, if no text in the standard language that matches the key content of the colloquial language is found, a prompt message indicating unrecognized text is generated and displayed.

[0116] In this embodiment, if no text in the standard language matching the key content of the colloquial language is found, prompt information indicating unrecognized text is generated and displayed, thereby improving the efficiency of recipe creation.

[0117] In an embodiment of the present application, a possible implementation method is provided. In the above step S104, an electronic recipe is generated based on the initial cooking content in the standard language, which may specifically include the following steps E1 or E2:

[0118] Step E1, based on the initial cooking content in the standard language, generating an electronic recipe that displays the initial cooking content in the standard language in text form;

[0119] Step E2, based on the initial cooking content in the standard language, generating an electronic recipe that displays the initial cooking content in the standard language in the form of information swim lanes;

[0120] The electronic recipe that displays the initial cooking content in the standard language in the form of text and the electronic recipe that displays the initial cooking content in the standard language in the form of information swim lanes can be switched.

[0121] This embodiment can generate an electronic recipe that displays the initial cooking content in a standard language in text form, and can also generate an electronic recipe that displays the initial cooking content in a standard language in the form of information lanes. The electronic recipe that displays the initial cooking content in a standard language in text form and the electronic recipe that displays the initial cooking content in a standard language in the form of information lanes can be switched. Through different display forms, the user's diverse needs for recipe creation or use are met.

[0122] In an embodiment of the present application, a possible implementation method is provided. The type of information lanes mentioned in step E2 may include a first information lane and a second information lane. Step E2 generates an electronic recipe that displays the initial cooking content in the standard language in the form of information lanes based on the initial cooking content in the standard language. Specifically, the following steps E21 and E22 may be included:

[0123] Step E21, based on the initial cooking content in the standard language, identifying the cooking content belonging to the first information swimming lane and the cooking content belonging to the second information swimming lane in the initial cooking content in the standard language;

[0124] Step E22, based on the cooking content belonging to the first information swimming lane and the cooking content belonging to the second information swimming lane, an electronic recipe is generated to display the corresponding cooking content in each type of information swimming lane.

[0125] In this step, the type of information lane can be set according to the actual scene requirements, for example, it can be a material feeding information lane, a cooking equipment information lane, or a prompt information lane, etc. This embodiment does not limit this.

[0126] For example, the first information lane can be a material feeding information lane, and the second information lane can be a cooking equipment information lane or a prompt information lane; or, the first information lane can be a cooking equipment information lane, and the second information lane can be a material feeding information lane or a prompt information lane; or the first information lane can be a prompt information lane, and the second information lane can be a material feeding information lane or a cooking equipment information lane, and so on.

[0127] For example, the initial cooking content in the standard language includes 500 grams of beef, 5 grams of salt, and the pot is heated to 500 degrees. It is recognized that "500 grams of beef" and "5 grams of salt" are both feeding types, and "heating the pot to 500 degrees" belongs to the equipment information type. Therefore, when the text-based electronic recipe is switched to the information lane-based electronic recipe, "500 grams of beef" and "5 grams of salt" will enter the corresponding feeding information lane, and "heating the pot to 500 degrees" will enter the corresponding cooking equipment information lane. It should be noted that the examples here are only illustrative and do not limit this embodiment.

[0128] Existing electronic recipes can only be created for specific models of equipment. When the equipment is updated, the parameters of the equipment change. Electronic recipes often need to be repeatedly entered, which leads to low efficiency. The same recipe cannot be applied to different equipment at the same time. It is necessary to manually create recipes that adapt to different capabilities based on the same recipe for different equipment. The versatility of electronic recipes is poor. In order to solve this technical problem, this embodiment can detect the capabilities of the equipment, such as automatic dish delivery function, feeding function, active stirring function, etc., and then compare the capabilities of the equipment according to the formed standard language. Specifically, after converting the key content of the colloquial language into the initial cooking content of the standard language in step S103, the following steps F1 can also be included to identify the cooking equipment capabilities and output the cooking content of the standard language adapted to the cooking equipment capabilities. For example, if the cooking equipment does not have the dish delivery function, but the initial cooking content of the standard language has an automatic dish delivery step, the automatic dish delivery step can be deleted by adjustment or changed to manual dish delivery.

[0129] The embodiment of the present application provides a possible implementation method. Before obtaining the initial recipe information in step S101, the capability information of the cooking device may also be obtained. Then, the above step F1 identifies the capability of the cooking device and outputs the cooking content in a standard language adapted to the capability of the cooking device. Specifically, the following steps F11 may be included:

[0130] Step F11, reading the capability information of the cooking device, comparing the capability information of the cooking device with the initial cooking content, outputting the cooking content executable by the cooking device, and adjusting the cooking content that cannot be executed by the cooking device.

[0131] For example, the cooking information converted by the colloquial language input includes the action of the equipment automatically feeding, and it is known through identification that the cooking equipment does not have the function of automatic feeding, so the automatic feeding information can be adjusted to manual feeding. It should be noted that the examples here are only illustrative and do not limit this embodiment.

[0132] The present application provides a possible implementation method. After the electronic recipe is generated based on the initial cooking content in the standard language in step S104, the following steps G1 to G3 may also be included:

[0133] Step G1, in response to the saving operation of the electronic recipe, detecting whether the initial cooking content in the standard language of the electronic recipe meets the preset recipe running conditions.

[0134] In this step, the preset recipe running conditions can be set according to actual needs, such as the logical order of cooking steps, cooking equipment capabilities, etc., which are not limited in this embodiment.

[0135] Step G2: if it is detected that the initial cooking content in the standard language of the electronic recipe does not meet the preset recipe running conditions, a prompt message indicating that the preset recipe running conditions are not met is generated.

[0136] Step G3: If it is detected that the initial cooking content in the standard language of the electronic recipe meets the preset recipe running conditions, the electronic recipe is saved.

[0137] In this embodiment, the reliability of the electronic recipe is ensured by detecting whether the initial cooking content in the standard language of the electronic recipe meets the preset recipe running conditions.

[0138] The above introduces Figure 1 There are multiple implementation methods for each link of the illustrated embodiment. The recipe creation method of the embodiment of the present application will be further explained below through specific embodiments.

[0139] Step 1: Preset the conversion rules between colloquial language and standard language in the database. The conversion rules are mainly to input a large number of colloquial languages ​​with the same or similar meanings to make them correspond to the standard language with the same meaning, which is similar to a many-to-one relationship. Among them, colloquial language refers to spoken, vernacular or non-standardized language, and standard language is the specific specification language of electronic recipes. By running electronic recipes, cooking equipment can achieve automated and intelligent cooking.

[0140] Here, the database containing the conversion rules between the colloquial language and the standard language can be constructed through steps C1 to C3 introduced above, which will not be repeated here.

[0141] Step 2: Start creating an electronic recipe. The specific process can be found in the previous steps S101 to S104, which will not be repeated here.

[0142] like Figure 2 As shown, in the "Text Writing" column, the initial recipe information containing colloquial language input by the user through interaction is "1. Heat the oil temperature to 150 degrees, add 10 grams of peanut oil and 5 grams of garlic, add 500 grams of beef after sautéing, stir-fry until half-cooked, pour out and set aside. 2. Leave some oil in the pan, heat it to 70% hot, add bitter melon, stir-fry until cooked, automatically add the fried beef, continue to stir-fry for 2 minutes, and pour out".

[0143] Through the conversion rules between colloquial language and standard language, the key content in colloquial language is extracted and converted into standard recipe language, such as Figure 3 As shown, in the "Generation Steps" column, the initial cooking content described in standard language is "Step 1: Heat the pan to 150 degrees; Step 2: Add 10 grams of peanut oil, 5 grams of garlic, 500 grams of beef, high heat, add 0 grams of oil, heat the pan to 170 degrees; Step 3: Add 0 grams of bitter melon, high heat, and stir-fry."

[0144] like Figure 4 As shown, the prompt information of the unrecognized text is displayed in the "Unrecognized Text" box, which is "After the oil temperature is heated to sauté until fragrant and half-cooked, set aside. Leave it in the pan until it is cooked through, automatically add the cooked beef, continue to stir-fry for 2 minutes, and pour it out."

[0145] When triggered Figure 2 , Figure 3 or Figure 4 In the "Information Swim Lane" column, the initial cooking content of the standard language can be displayed in the form of information swim lanes, as shown in the following example: Figure 5 As shown, "heat the pan to 150 degrees" enters the cooking equipment information lane, and "add 10 grams of peanut oil, 5 grams of garlic, and 500 grams of beef" enters the material information lane.

[0146] Step 3: Detect the capabilities of the device, specifically obtaining the capability information of the device, comparing the capability information of the device with the cooking information in the input conversion standard language, and determining whether the cooking capability of the device meets the execution capability of the electronic recipe. If it does, generate the corresponding electronic recipe file; if the cooking capability of the device does not meet the execution capability of the electronic recipe, switch the electronic recipe function module that does not meet the requirements to voice remind the user to operate manually, match the standard language electronic recipe with the device cooking information capability, and generate an electronic recipe that adapts to the recipe language of the cooking device. For example, when creating an electronic recipe, enter the cooking steps of automatic dish delivery, but the target device only has the two functions of active stirring and feeding, but does not have the automatic dish delivery function, then the cooking steps of automatic dish delivery will be modified to manual dish delivery in the final generated electronic recipe file.

[0147] The embodiments of the present application solve the problem in the prior art that electronic recipes cannot be edited using colloquial or spoken language, making recipe creation more efficient and convenient, and improving the user experience of creating recipes; moreover, the obtained electronic recipes are capable of adapting to cooking equipment, and the electronic recipes are highly versatile.

[0148] It should be noted that the size of the sequence number of each step in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In practical applications, all the above possible implementation methods can be combined in any way to form possible embodiments of the present application, which will not be described one by one here.

[0149] Based on the recipe creation methods provided in the above embodiments and based on the same inventive concept, an embodiment of the present application also provides a recipe creation device.

[0150] Figure 6 is a structural diagram of a recipe creation device provided in an embodiment of the present application. Figure 6As shown, the recipe creation device may specifically include an acquisition module 610 , an extraction module 620 , a conversion module 630 and a generation module 640 .

[0151] An acquisition module 610 is used to acquire initial recipe information, wherein the initial recipe information includes cooking information described in colloquial language;

[0152] An extraction module 620 is used to process the cooking information described in colloquial language in the initial recipe information, and extract key contents in the cooking information described in colloquial language;

[0153] A conversion module 630, for converting the key content in the colloquial language into the initial cooking content in the standard language according to a pre-built database containing conversion rules between the colloquial language and the standard language;

[0154] The generating module 640 is used to generate an electronic recipe based on the initial cooking content in the standard language.

[0155] A possible implementation method is provided in an embodiment of the present application, wherein the acquisition module 610 is further configured to:

[0156] Receiving initial recipe information including colloquial language inputted by a user through interaction; or

[0157] Get the initial recipe information from the preset storage path.

[0158] A possible implementation is provided in an embodiment of the present application, wherein the extraction module 620 is further configured to:

[0159] According to the preset word segmentation rules, the cooking information described in colloquial language in the initial recipe is subjected to word segmentation processing, and key contents satisfying the preset word segmentation rules in the cooking information described in colloquial language are extracted.

[0160] A possible implementation method is provided in the embodiment of the present application, such as Figure 7 As shown above Figure 6 The illustrated apparatus may also include a building block 710 for:

[0161] Constructing a plurality of colloquial language clusters, wherein each colloquial language cluster includes one or more colloquial language texts, and each colloquial language text in each colloquial language cluster has the same semantics or a semantic similarity greater than a preset threshold;

[0162] Determining the text of the standard language corresponding to each popular language cluster according to the semantics of each popular language text in each popular language cluster;

[0163] A mapping relationship between each colloquial language text in each colloquial language cluster and the corresponding standard language text is constructed to obtain a constructed database.

[0164] A possible implementation is provided in an embodiment of the present application, wherein the conversion module 630 is further configured to:

[0165] According to a pre-built database containing conversion rules between colloquial language and standard language, searching the database for text in the standard language that matches key content in the colloquial language;

[0166] If a text in the standard language matching the key content in the colloquial language is found, initial cooking content in the standard language is generated based on the found text in the standard language.

[0167] A possible implementation method is provided in an embodiment of the present application, wherein the generating module 640 is further configured to:

[0168] Based on the initial cooking content in the standard language, generate an electronic recipe that displays the initial cooking content in the standard language in text form; or

[0169] Based on the initial cooking content in the standard language, an electronic recipe is generated which displays the initial cooking content in the standard language in the form of information swim lanes;

[0170] The electronic recipe that displays the initial cooking content in the standard language in text form and the electronic recipe that displays the initial cooking content in the standard language in the form of information swim lanes can be switched.

[0171] A possible implementation manner is provided in an embodiment of the present application, wherein the types of the information lanes include a first information lane and a second information lane; the generating module 640 is further configured to:

[0172] Based on the initial cooking content in the standard language, identifying the cooking content belonging to the first information swimming lane and the cooking content belonging to the second information swimming lane in the initial cooking content in the standard language;

[0173] According to the cooking contents belonging to the first information swimming lane and the cooking contents belonging to the second information swimming lane, an electronic recipe is generated to display the corresponding cooking contents in each type of information swimming lane.

[0174] A possible implementation method is provided in the embodiment of the present application, such as Figure 7 As shown above Figure 6 The illustrated apparatus may also include a device capability identification module 720 for:

[0175] After the conversion module 630 converts the key content in the colloquial language into the initial cooking content in the standard language, the cooking device capability is identified and the cooking content in the standard language adapted to the cooking device capability is output.

[0176] A possible implementation method is provided in an embodiment of the present application, wherein the acquisition module 610 is further configured to:

[0177] Before obtaining the initial recipe information, obtain the capability information of the cooking equipment;

[0178] The device capability identification module 720 is also used for:

[0179] The capability information of the cooking device is read, and the cooking content executable by the cooking device is outputted through comparison with the initial cooking content by the capability information of the cooking device, and the cooking content that cannot be executed by the cooking device is adjusted.

[0180] A possible implementation method is provided in the embodiment of the present application, such as Figure 7 As shown above Figure 6 The device shown may also include a storage module 730 for:

[0181] In response to a save operation on the electronic recipe, detecting whether the initial cooking content in the standard language of the electronic recipe meets a preset recipe running condition;

[0182] If it is detected that the initial cooking content in the standard language of the electronic recipe does not meet the preset recipe running conditions, a prompt message indicating that the preset recipe running conditions are not met is generated;

[0183] If it is detected that the initial cooking content in the standard language of the electronic recipe meets the preset recipe running conditions, the electronic recipe is saved.

[0184] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the recipe creation method of any one of the above embodiments.

[0185] In an exemplary embodiment, an electronic device is provided, such as Figure 8 As shown, Figure 8 The electronic device 800 shown includes: a processor 801 and a memory 803. The processor 801 and the memory 803 are connected, such as through a bus 802. Optionally, the electronic device 800 may also include a transceiver 804. It should be noted that in actual applications, the transceiver 804 is not limited to one, and the structure of the electronic device 800 does not constitute a limitation on the embodiments of the present application.

[0186] The processor 801 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 801 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0187] The bus 802 may include a path to transmit information between the above components. The bus 802 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 802 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0188] The memory 803 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0189] The memory 803 is used to store the computer program code for executing the solution of the present application, and the execution is controlled by the processor 801. The processor 801 is used to execute the computer program code stored in the memory 803 to implement the contents shown in the above method embodiment.

[0190] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0191] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the recipe creation method of any one of the above embodiments when running.

[0192] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, and modules described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.

[0193] Those skilled in the art can understand that the technical solution of the present application can be essentially or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, which includes a number of program instructions, so that an electronic device (such as a personal computer, a server, or a network device, etc.) executes all or part of the steps of the method described in each embodiment of the present application when running the program instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0194] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as electronic devices such as personal computers, servers, or network devices), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of an electronic device, the electronic device executes all or part of the steps of the methods described in the embodiments of the present application.

[0195] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present application, they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not deviate from the protection scope of the present application.

Claims

1. A method for creating a recipe, characterized in that: include: Acquiring initial recipe information, wherein the initial recipe information includes cooking information described in colloquial language; Processing the cooking information described in colloquial language in the initial recipe information to extract key contents from the cooking information described in colloquial language; Converting the key contents in the colloquial language into the initial cooking contents in the standard language according to a pre-built database containing conversion rules between the colloquial language and the standard language; Generate electronic recipes based on initial cooking content in a standard language.

2. The method according to claim 1, characterized in that The obtaining of initial recipe information includes: Receiving initial recipe information including colloquial language inputted by a user through interaction; or Get the initial recipe information from the preset storage path.

3. The method according to claim 1 or 2, characterized in that: The cooking information described in colloquial language in the initial recipe information is processed to extract key contents in the cooking information described in colloquial language, including: According to the preset word segmentation rules, the cooking information described in colloquial language in the initial recipe is subjected to word segmentation processing, and key contents satisfying the preset word segmentation rules in the cooking information described in colloquial language are extracted.

4. The method according to any one of claims 1 to 3, characterized in that The database containing the conversion rules between colloquial language and standard language is constructed by the following steps: Constructing a plurality of colloquial language clusters, wherein each colloquial language cluster includes one or more colloquial language texts, and each colloquial language text in each colloquial language cluster has the same semantics or a semantic similarity greater than a preset threshold; Determining the text of the standard language corresponding to each popular language cluster according to the semantics of each popular language text in each popular language cluster; A mapping relationship between each colloquial language text in each colloquial language cluster and the corresponding standard language text is constructed to obtain a constructed database.

5. The method according to any one of claims 1 to 4, characterized in that The method of converting the key contents of the colloquial language into the initial cooking contents of the standard language according to the pre-built database containing the conversion rules of the colloquial language and the standard language includes: According to a pre-built database containing conversion rules between colloquial language and standard language, searching the database for text in the standard language that matches key content in the colloquial language; If a text in the standard language matching the key content in the colloquial language is found, initial cooking content in the standard language is generated based on the found text in the standard language.

6. The method according to any one of claims 1 to 5, characterized in that The electronic recipe is generated based on the initial cooking content in the standard language, including: Based on the initial cooking content in the standard language, generate an electronic recipe that displays the initial cooking content in the standard language in text form; or Based on the initial cooking content in the standard language, an electronic recipe is generated which displays the initial cooking content in the standard language in the form of information swim lanes; The electronic recipe that displays the initial cooking content in the standard language in text form and the electronic recipe that displays the initial cooking content in the standard language in the form of information swim lanes can be switched.

7. The method according to claim 6, characterized in that The types of the information swimming lanes include a first information swimming lane and a second information swimming lane; the initial cooking content in the standard language is generated based on the initial cooking content in the standard language, and the electronic recipe is displayed in the form of information swimming lanes, including: Based on the initial cooking content in the standard language, identifying the cooking content belonging to the first information swimming lane and the cooking content belonging to the second information swimming lane in the initial cooking content in the standard language; According to the cooking contents belonging to the first information swimming lane and the cooking contents belonging to the second information swimming lane, an electronic recipe is generated to display the corresponding cooking contents in each type of information swimming lane.

8. The method according to any one of claims 1 to 7, characterized in that After the initial cooking content of converting the key content of the colloquial language into the standard language, it also includes: The cooking device capability is identified, and cooking content in a standard language adapted to the cooking device capability is output.

9. The method according to claim 8, characterized in that Before obtaining the initial recipe information, the method further includes: obtaining the capability information of the cooking equipment; The step of identifying the cooking device capability and outputting the cooking content in a standard language adapted to the cooking device capability includes: The capability information of the cooking device is read, and the cooking content executable by the cooking device is outputted through comparison with the initial cooking content by the capability information of the cooking device, and the cooking content that cannot be executed by the cooking device is adjusted.

10. The method according to any one of claims 1 to 7, characterized in that After generating the electronic recipe, the method further includes: In response to a save operation on the electronic recipe, detecting whether the initial cooking content in the standard language of the electronic recipe meets a preset recipe running condition; If it is detected that the initial cooking content in the standard language of the electronic recipe does not meet the preset recipe running conditions, a prompt message indicating that the preset recipe running conditions are not met is generated; If it is detected that the initial cooking content in the standard language of the electronic recipe meets the preset recipe running conditions, the electronic recipe is saved.

11. A recipe creation device, characterized in that: include: An acquisition module, configured to acquire initial recipe information, wherein the initial recipe information includes cooking information described in colloquial language; An extraction module, used to process the cooking information described in colloquial language in the initial recipe information, and extract key contents in the cooking information described in colloquial language; a conversion module for converting the key content in colloquial language into initial cooking content in standard language according to a pre-built database containing conversion rules between colloquial language and standard language; A generation module is used to generate electronic recipes based on initial cooking content in a standard language.

12. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the recipe creation method according to any one of claims 1 to 10.

13. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the recipe creation method according to any one of claims 1 to 10 when running.