CN112507708B - Information input method and device, storage medium and electronic device - Google Patents

Information input method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112507708B
CN112507708B CN202011488957.7A CN202011488957A CN112507708B CN 112507708 B CN112507708 B CN 112507708B CN 202011488957 A CN202011488957 A CN 202011488957A CN 112507708 B CN112507708 B CN 112507708B
Authority
CN
China
Prior art keywords
keyword
category
keywords
information
attribute information
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
CN202011488957.7A
Other languages
Chinese (zh)
Other versions
CN112507708A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011488957.7A priority Critical patent/CN112507708B/en
Publication of CN112507708A publication Critical patent/CN112507708A/en
Application granted granted Critical
Publication of CN112507708B publication Critical patent/CN112507708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue

Abstract

The embodiment of the invention provides an information input method, an information input device, a storage medium and an electronic device, wherein the method comprises the following steps: under the trigger of receiving a start instruction for indicating to start inputting information, acquiring first voice information sent by a target object; analyzing the first voice information to obtain a first keyword; and sending out an inquiry command corresponding to the attribute information based on the attribute information of the first keyword so as to prompt the target object to send out the second voice information. The invention solves the problems of low efficiency of only inputting a group of information each time, repeatedly triggering input orders and the like in the related technology, and further achieves the effects of improving the high efficiency of information input and the convenience of user use.

Description

Information input method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of artificial intelligence, in particular to an information input method, an information input device, a storage medium and an electronic device.
Background
Along with the continuous development of artificial intelligence, voice recognition and somatosensory interaction technologies and the continuous improvement of living standards of people, the requirements of people on living quality are also higher and higher, and especially the intelligent demands on household life are increasing day by day, as an important part of household life, the household appliances are gradually developed from traditional household appliances to intelligent and safer directions, so that the life of people is more convenient, safe and efficient, and artificial intelligent equipment is gradually integrated into the life of people, thereby bringing great convenience to the life and work of people. The rapid application and development of artificial intelligence such as intelligent voice input and the like also make the social treatment process more scientific, intelligent and optimized.
At present, a plurality of intelligent voice devices in the market can acquire and store keyword information in the voice of a user through a voice recognition technology, for example, a plurality of refrigerator devices can input food materials and quality guarantee period information thereof in a voice input mode and remind the food materials and quality guarantee period information, so that the food safety and the physical health of the user can be prevented from being possibly damaged due to expiration of the food; however, related intelligent devices on the market at present are mostly manually input on an APP (Application) interface or each food material is input by waking up again, for example, the technology mainly adopted by an intelligent refrigerator is that the intelligent refrigerator can accurately input only by simultaneously speaking two keywords of a food material name and a quality guarantee period through recording and triggering functions at each point, and if only one keyword of the food material name and the quality guarantee period is said, the intelligent refrigerator can not be stored and can report errors to a user; moreover, the existing related intelligent equipment can only record one food material each time, which also results in low equipment recording efficiency, low fault tolerance and reduced user satisfaction.
Aiming at the problems of low information input efficiency and low fault tolerance in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides an information input method, an information input device, a storage medium and an electronic device, which are used for at least solving the problems of low information input efficiency and low fault tolerance in the related technology.
According to an embodiment of the present invention, there is provided an information input method including: under the trigger of receiving a start instruction for indicating to start inputting information, acquiring first voice information sent by a target object; analyzing the first voice information to obtain a first keyword; and sending out an inquiry instruction corresponding to the attribute information based on the attribute information of the first keyword so as to prompt the target object to send out second voice information.
In an exemplary embodiment, based on the attribute information of the first keyword, issuing the query instruction corresponding to the attribute information includes: determining that the first keywords comprise second keywords based on the attribute information, wherein the second keywords are keywords of the first category which do not correspond to the keywords of the second category, and sending an inquiry instruction for inquiring the keywords of the second category which correspond to the second keywords; determining that a third keyword is included in the first keyword based on the attribute information, wherein the third keyword is a keyword of a second category which does not correspond to the keyword of the first category, and sending an inquiry instruction for inquiring the keyword of the first category which corresponds to the third keyword; and based on the attribute information, determining that the first keywords comprise a plurality of keywords of a second category corresponding to the keywords of the first category, and sending an inquiry instruction for inquiring the keywords of the second category corresponding to the keywords of the first category.
In an exemplary embodiment, determining that the first keyword includes a second keyword based on the attribute information, issuing an inquiry instruction for inquiring about a keyword of a second category corresponding to the second keyword includes: determining that the first keyword only comprises the second keyword of the first category based on the attribute information, and sending a first query instruction, wherein the first query instruction is used for querying information of the second category corresponding to the second keyword; and determining that the first keyword comprises a first category keyword and a second category keyword based on the attribute information, wherein the first category keyword comprises the second keyword which does not correspond to the second category keyword, and sending a second query instruction, wherein the second query instruction is used for querying the second category information corresponding to the second keyword.
In an exemplary embodiment, determining that a third keyword is included in the first keyword based on the attribute information, and issuing an inquiry instruction for inquiring about a keyword of a first category corresponding to the third keyword includes: determining that the first keywords only comprise the third keywords of the second category based on the attribute information, and sending out a third query instruction, wherein the third query instruction is used for querying the information of the first category corresponding to the third keywords; and determining that the first keyword comprises a first category keyword and a second category keyword based on the attribute information, wherein the second category keyword comprises the third keyword which does not correspond to the first category keyword, and sending out a fourth query instruction, wherein the fourth query instruction is used for querying the first category information corresponding to the third keyword.
In an exemplary embodiment, after determining that only the third keyword of the second category is included in the first keyword based on the attribute information, the method further includes: and feeding back prompt information under the condition that the number of the third keywords exceeds a preset threshold value, wherein the prompt information is used for prompting that the third keywords cannot be identified and inquiring the keywords of the first category.
In an exemplary embodiment, after the first keyword is obtained, the method further includes: under the condition that the first keywords comprise one-to-one first category keywords and one-to-one second category keywords based on the attribute information of the first keywords, storing the one-to-one first category keywords and the one-to-one second category keywords correspondingly, and generating storage information; and displaying the stored information.
In an exemplary embodiment, the keywords of the first category include names of objects, and the keywords of the second category include expiration dates of the objects.
According to another embodiment of the present invention, there is also provided an information input apparatus including: the first acquisition module is used for acquiring first voice information sent by the target object under the trigger of receiving a start instruction for indicating to start inputting information; the second acquisition module is used for analyzing the first voice information to acquire a first keyword; and the sending module is used for sending out an inquiry instruction corresponding to the attribute information based on the attribute information of the first keyword so as to prompt the target object to send out second voice information.
According to a further embodiment of the invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, the first keyword attribute acquired from the first voice information can be intelligently queried for multiple rounds until complete information is acquired, so that the purpose of inputting more groups of information at one time can be realized, repeated clicking of an input start function key is not needed, error reporting frequently caused by incomplete input information in the related technology is avoided, the problem of low information input efficiency caused by modes of manual input, only one group of information can be input each time, input instructions need to be repeatedly triggered and the like in the related technology is effectively solved, and the effects of improving the information input efficiency and improving the convenience of users are further achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of an information input method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an information entry method according to an embodiment of the invention;
FIG. 3 is a flow chart of multi-poll interaction mode 1 according to an embodiment of the present invention;
FIG. 4 is a flow chart of multi-poll interaction mode 2 according to an embodiment of the present invention;
FIG. 5 is a flow chart of multi-poll interaction mode 3 according to an embodiment of the present invention;
FIG. 6 is a flow chart of multi-poll interaction mode 4 according to an embodiment of the present invention;
FIG. 7 is a flow chart of a multi-poll interaction mode 5 according to an embodiment of the present invention;
FIG. 8 is a flow chart of multi-poll interaction mode 6 according to an embodiment of the present invention;
FIG. 9 is a flow chart of multi-poll interaction mode 7 according to an embodiment of the present invention;
FIG. 10 is a flow chart of a multi-poll interaction mode 8 according to an embodiment of the present invention;
FIG. 11 is a flow chart of multi-poll interaction mode 9 according to an embodiment of the present invention;
FIG. 12 is a flow chart of the multi-poll interaction mode 10 according to an embodiment of the present invention;
fig. 13 is a block diagram of the structure of an information entry device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of an information input method according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to an information entry method in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, an information input method is provided, fig. 2 is a flowchart of the information input method according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, under the trigger of receiving a start instruction for indicating to start inputting information, acquiring first voice information sent by a target object;
step S204, analyzing the first voice information to obtain a first keyword;
step S206, based on the attribute information of the first keyword, sending out an inquiry command corresponding to the attribute information so as to prompt the target object to send out second voice information.
Through the steps, the first keyword attribute acquired from the first voice information can be intelligently queried for multiple rounds until complete information is acquired, so that the purpose of inputting more groups of information at one time can be realized, the input start function key is not required to be clicked repeatedly, error reporting frequently caused by incomplete input information in the related technology is avoided, the problem that the information input efficiency is low because modes of manual input, only one group of information can be input each time, input instructions are required to be triggered repeatedly in the related technology is effectively solved, and the effects of improving the information input efficiency and improving the convenience of user use are achieved.
The main execution body of the steps may be an intelligent home device, for example, a refrigerator, a freezer, an intelligent storage cabinet, or other storage devices, or a processor with man-machine interaction capability configured on the storage device, or other processing devices or processing units with similar processing capability, but is not limited thereto. The following describes the smart home performing the above operations (only one exemplary description, and other devices or modules may be used to perform the above operations in actual operations):
in the foregoing embodiment, the smart home may acquire the first keyword included in the first voice information, where the first keyword may include a keyword of the same category or be a keyword of a different category, or may be a combination of keywords of a plurality of categories, after acquiring the first keyword, the smart home may arrange and pair the first keyword information according to a certain logic rule to determine an attribute of the first keyword information, and determine, based on the attribute, a type of an query instruction that should be sent in the next step, where the logic rule may determine whether to send a corresponding type of query instruction according to whether two types of keywords included in the first keyword information can be in one-to-one correspondence, so as to prompt the target object to send the second voice information. In addition, the steps included in fig. 2 can be circularly executed until an end recording command is received or the time when no voice information is received exceeds a certain threshold, so that the problems that only one group of information can be recorded each time and the recording command needs to be triggered repeatedly and the like in the related technology are effectively solved, and the efficiency of information recording and the convenience of user use are improved.
In an alternative embodiment, based on the attribute information of the first keyword, issuing the query instruction corresponding to the attribute information includes: determining that the first keywords comprise second keywords based on the attribute information, wherein the second keywords are keywords of the first category which do not correspond to the keywords of the second category, and sending an inquiry instruction for inquiring the keywords of the second category which correspond to the second keywords; determining that a third keyword is included in the first keyword based on the attribute information, wherein the third keyword is a keyword of a second category which does not correspond to the keyword of the first category, and sending an inquiry instruction for inquiring the keyword of the first category which corresponds to the third keyword; and determining that the first keywords comprise a plurality of keywords of a second category corresponding to the keywords of the first category based on the attribute information, and sending out an inquiry instruction for inquiring the keywords of the second category corresponding to the keywords of the first category. The first category and the second category are different. In this embodiment, the obtained first keyword information may be classified based on the attribute information of the first keyword, and keywords of different categories may be corresponding based on semantic information, and then an inquiry instruction to be issued may be determined based on the corresponding result, for example, after the obtained first keyword is corresponding, it is determined that the time 1 corresponding to the name a and the time B corresponding to the name B are not available, and at this time, an instruction (such as the time of the name B) for inquiring the keyword corresponding to the name B needs to be issued; for example, after the obtained first keyword is corresponding to the first keyword, determining that the name a corresponds to time 1 and time 2, and no name information corresponding to time 2 exists, and at this time, an instruction (such as a name corresponding to time 2) for querying the keyword corresponding to time 2 needs to be issued; for example, after the obtained first keyword is corresponding, determining time 1 and time 2 corresponding to the name a, that is, 1 name corresponds to 2 times, where the case will not be approved, and then the instruction for querying the keyword corresponding to the name a (such as the time of the name a) needs to be reissued; through multiple queries, multiple groups of corresponding keywords of a first category and keywords of a second category can be obtained, and the targeted query can enable a voice information sender to clearly and definitely need to send what voice information, so that the effectiveness of interaction is ensured, and unnecessary interaction is avoided.
In an alternative embodiment, determining that the first keyword includes a second keyword based on the attribute information, and sending an inquiry instruction for inquiring a keyword of a second category corresponding to the second keyword includes: determining that the first keyword only comprises the second keyword of the first category based on the attribute information, and sending a first query instruction, wherein the first query instruction is used for querying information of the second category corresponding to the second keyword; and determining that the first keyword comprises a first category keyword and a second category keyword based on the attribute information, wherein the first category keyword comprises the second keyword which does not correspond to the second category keyword, and sending a second query instruction, wherein the second query instruction is used for querying the second category information corresponding to the second keyword. In this embodiment, the category of the first keyword may be determined according to the attribute information of the first keyword, where an instruction for querying a second category keyword corresponding to the second keyword (e.g., querying the shelf life of beef) is required when only the second keyword of the first category is included in the first keyword information (e.g., only beef is included in the obtained first keyword, and shelf life information corresponding to beef is not included); similarly, the first keyword information includes a first category of keywords and a second category of keywords, and the first category of keywords includes the second keywords that do not correspond to the second category of keywords (for example, the obtained first keyword information is beef, shelf life is to 16 days of 6 months, mutton), at this time, an instruction for querying the second category of keywords corresponding to the second keywords needs to be sent (for example, the shelf life of mutton is queried), optionally, in practical application, the corresponding first category of keywords and the corresponding second category of keywords may be correspondingly stored, and the stored information may be sent by voice, so that the user further confirms whether the stored information is correct (for example, sending a confirmation message of "beef, shelf life is to 16 days of 6 months").
In an alternative embodiment, determining that the first keyword includes a third keyword based on the attribute information, and issuing an inquiry instruction for inquiring about a keyword of a first category corresponding to the third keyword includes: determining that the first keywords only comprise the third keywords of the second category based on the attribute information, and sending out a third query instruction, wherein the third query instruction is used for querying the information of the first category corresponding to the third keywords; and determining that the first keyword comprises a first category keyword and a second category keyword based on the attribute information, wherein the second category keyword comprises the third keyword which does not correspond to the first category keyword, and sending out a fourth query instruction, wherein the fourth query instruction is used for querying the first category information corresponding to the third keyword. In this embodiment, the category of the first keyword may be determined according to the attribute information of the first keyword, and in the case where only the third keyword of the second category is included in the first keyword information (for example, only the shelf life is 6 months and 10 days in the obtained first keyword, and no food name information corresponding to the shelf life is present), an instruction for querying the first category keyword corresponding to the third keyword (for example, querying food to be added) needs to be issued at this time; similarly, the first keyword information includes a first category keyword and a second category keyword, and the second category keyword includes the third keyword that does not correspond to the first category keyword (for example, the obtained first keyword information is beef shelf life to 16 days of 6 months, shelf life to 7 months and 13 days, and the second shelf life does not have a corresponding food name), where an instruction for querying the first category keyword that corresponds to the third keyword (for example, querying food to be added) needs to be issued, optionally, in practical application, the corresponding first category keyword and the second category keyword may be correspondingly stored, and the stored information may be issued by voice, so that the user may further confirm whether the stored information is correct (for example, issue a confirmation message of "beef shelf life to 16 days of 6 months").
In an alternative embodiment, after determining that only the third keyword of the second category is included in the first keyword based on the attribute information, the method further includes: and feeding back prompt information under the condition that the number of the third keywords exceeds a preset threshold value, wherein the prompt information is used for prompting that the third keywords cannot be identified and inquiring the keywords of the first category. In this embodiment, the category of the first keyword may be determined according to the attribute information of the first keyword, where only the third keyword of the second category is included in the first keyword information and the number of the third keywords exceeds a predetermined threshold (for example, the obtained first keyword information is that the quality guarantee period is 6 months 10 days, 6 months 20 days, that is, there are 2 quality guarantee periods and no food material names), an instruction for querying the first category keyword (for example, querying food materials to be added) needs to be sent out, and optionally, in practical application, prompt information may also be fed back and an unrecognizable voice prompt may be sent out to guide the user to send out the voice information correctly.
In an alternative embodiment, after the first keyword is obtained, the method further includes: under the condition that the first keywords comprise one-to-one first category keywords and one-to-one second category keywords based on the attribute information of the first keywords, storing the one-to-one first category keywords and the one-to-one second category keywords correspondingly, and generating storage information; and displaying the stored information. In this embodiment, the category of the first keyword may be determined according to the attribute information of the first keyword, where the first keyword information includes a first category keyword and a second category keyword in a one-to-one correspondence (for example, the acquired first keyword information is 2-to-2-out of beef, the mutton is 16-to-6-month-out of date, or the tofu and the dried bean curd are 7-month-10-to-10-month-out date), an instruction for storage needs to be sent at this time, and the user needs to send the storage information in a voice to further confirm whether the storage information is correct (for example, the beef shelf life is 6-month-16-day, the mutton shelf life is 7-month-13-day, the yogurt shelf life is 6-month-16-day, and the tofu and the dried bean curd shelf life is 7-month-10-day).
In an alternative embodiment, the keywords of the first category include the name of the object, and the keywords of the second category include the expiration date of the object, which is to be interpreted as an example, and is only an alternative embodiment, and in practical application, the keywords of the first category and the keywords of the second category may also represent other information, for example, the keywords of the first category represent the name of the food, the keywords of the second category represent the date of production of the food, the place of production of the food, the price of the food, the storage condition of the food, and so on.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the invention.
The invention is illustrated below with reference to examples:
in the multi-round query interaction according to the present invention, the following interaction flows (only a few exemplary descriptions, where Q represents the received voice information and a represents the query instruction issued) may be included:
scheme 1: only 1 food material name is added with a multi-round inquiry of the shelf life.
Examples: q is beef;
a: shelf life of beef is?
Q1 is 6 months and 20 days;
a1, beef, shelf life of which is up to 6 months and 20 days, and food materials to be added are?
Q2 is mutton;
a2 is the shelf life of mutton?
Q1 is 6 months and 30 days;
a2, mutton, shelf life is up to 6 months and 20 days, and food materials to be added are?
The interaction diagram of the process 1 can be seen in fig. 3, and as shown in fig. 3, the process includes the following steps:
s302, receiving a food material name, such as beef;
s304, inquiring the shelf life of the food material;
s306, judging whether the information sender answers the expiration date information;
s308, the information sender gives quality guarantee period information (such as 6 months and 20 days);
s310, firstly storing and displaying the complete information (such as beef, shelf life to 6 months and 20 days), and continuing to inquire about the complete information (such as food to be added is also no;
s312, the information sender does not answer the shelf life and speaks the next food material name, such as mutton;
s314, discard the last food material name (e.g. beef), and ask for the shelf life of the next food material name (e.g. shelf life of mutton is.
After S314 is executed, the corresponding operation is performed in a loop from S306; after S310 is performed, the loop continues from S302 to perform other operations.
Scheme 2: only 2/3 food material names are used for inquiring the quality guarantee period one by one.
Examples: q is beef and mutton;
a: shelf life of beef is?
Q1 is 6 months and 20 days;
beef shelf life to 6 months 20 days, mutton shelf life is?
Q1 is 6 months and 30 days;
is the mutton with a shelf life of 6 months and 20 days, and food materials to be added are?
The interaction diagram of the process 2 can be seen in fig. 4, and as shown in fig. 4, the process includes the following steps:
s402, receiving 2/3 food material names, such as beef and mutton;
s404, inquiring about the shelf life of the first food material (e.g. shelf life of beef is;
s406, judging whether the information sender answers the expiration date information for the first time;
s408, the information sender gives the quality guarantee period information for the first time (such as 6 months and 20 days);
s410, firstly storing and displaying the complete information (such as beef, shelf life to 6 months and 20 days), and continuously inquiring about the shelf life of another food material (shelf life of mutton is;
s412, judging whether the information sender answers the expiration date information for the second time;
s414, the information sender gives the quality guarantee period information for the second time (such as 30 days of 6 months);
s416, firstly storing and displaying the complete information (such as mutton, shelf life to 6 months and 30 days), and continuing the next round of inquiry (also to be added with food material;
s418, the information sender does not answer the inquiry of the first expiration date and speaks the name of the next food material, such as dog meat;
S420, discard the first food material name (e.g., beef), and ask for the shelf life of the next food material name (e.g., shelf life of dog meat is.
After S420 is executed, the corresponding operation is performed in a loop from S406; after S416 is performed, the loop continues from S402 to perform other operations.
Scheme 3: only 1 shelf life was used for multiple interrogation of food materials.
Examples: q, shelf life is 6 months and 10 days;
asking what food material should be added?
Q is beef;
is beef, shelf life reaches 6 months and 10 days, and food materials to be added are?
The interaction diagram of the process 3 can be seen in fig. 5, and as shown in fig. 5, the process includes the following steps:
s502, only one shelf life is received, such as 6 months and 20 days;
s504, inquiring which food material to add;
s506, judging whether the information sender answers the food material information;
s508, the information sender gives food material information (such as beef);
s510, firstly storing and displaying the complete information (e.g. beef, shelf life to 6 months and 20 days), and continuing the next round of inquiry (also to add food material;
s512, the information sender does not answer the expiration date, and repeats the other case cycle.
After S506 is executed, the information sender does not give the shelf life information and directly feeds back a complete food material and shelf life information (e.g. eggs, which are out of date for 7 months and 10 days), and the corresponding operation of S510 is directly executed.
Scheme 4: only a plurality of shelf lives cannot be identified and directly discarded, and other queries are performed.
Examples: q, the quality guarantee period is Zhou, and Zhou;
a, the assistant cannot understand and ask what food material should be added?
The interaction diagram of the process 4 can be seen in fig. 6, and as shown in fig. 6, the process includes the following steps:
s602, only a plurality of quality guarantee periods are received, such as Wednesday, thursday and Friday;
s604, feeding back an unidentifiable prompt, directly discarding the plurality of shelf life information, and performing a new query (e.g. do there are food materials to be added.
Scheme 5: said 1 food material name +1 shelf life. The method belongs to direct storage of full data.
Examples: q, beef, expiration of 6 months and 20 days;
is beef, shelf life reaches 6 months and 20 days, and food materials to be added are?
Q2, mutton, eating in the next week;
is the mutton with a shelf life of 6 months and 20 days, and food materials to be added are?
The interaction diagram of the process 5 can be seen in fig. 7, and as shown in fig. 7, the process includes the following steps:
s702, receiving a food material name and a shelf life, such as beef, which is expired for 6 months and 20 days;
s704, directly store and display the complete information (e.g. beef, shelf life to 6 months and 20 days), and continue with the next round of inquiry (also to add food material.
Flow 6:2/3 food material names +1 shelf life. And classifying the two food materials into one shelf life for storage.
Examples: q, the beef and mutton are all expired in the next week;
beef, mutton, shelf life is up to 6 months and 20 days, and food materials to be added are?
The interaction diagram of the process 6 can be seen in fig. 8, and as shown in fig. 8, the process includes the following steps:
s802, receiving 2/3 food material names and a shelf life, wherein the shelf life of beef, mutton and the like is 6 months and 20 days out of date;
s804, directly store and display the complete information (e.g. beef, mutton shelf life to 6 months 20 days), and continue with the next round of interrogation as (also do food to be added.
Scheme 7: the 1 food material name+2 shelf lives, two shelf lives are not approved, and the shelf lives of the food materials are re-inquired.
Examples: q, the quality guarantee period of the beef is 6 months, 10 days and 6 months, 20 days;
asking about the shelf life of beef is?
Q is 6 months and 10 days;
is beef, shelf life reaches 6 months and 10 days, and food materials to be added are?
The interaction diagram of the process 7 can be seen in fig. 9, and as shown in fig. 9, the process includes the following steps:
s902, receiving 1 food material name and 2 shelf lives, wherein the shelf lives of the beef are 6 months, 10 days and 6 months, 20 days;
s904, re-querying the shelf life of the food material (e.g. shelf life of beef;
S906, judging whether the information sender answers the expiration date information for the first time;
s908, the information sender gives the shelf life information for the first time (e.g. 20 days of 6 months);
s910, firstly store and display the complete information (e.g. beef, shelf life to 6 months and 20 days), and continue the next round of inquiry (e.g. do there are food materials to be added;
s912, the information sender does not answer the query for the first expiration date and speaks the next food material name, such as mutton;
s914, discarding the first food material name (such as beef), and inquiring about the shelf life of the next food material name (such as mutton shelf life).
After S914 is executed, the loop continues from S906 to execute the corresponding operation.
Scheme 8:1 food material name+1 shelf life; 1 food material name +1 shelf life.
Examples: q, expiration of beef in the next week 2, expiration of mutton in the next month, and expiration of yogurt in the period of 6 months and 16 days;
beef, mutton, yogurt, beef shelf life up to 16 days of 6 months, mutton shelf life up to 13 days of 7 months, yogurt shelf life up to 16 days of 6 months, and food materials to be added?
The interaction chart of the process 8 can be seen in fig. 10, and as shown in fig. 10, the process includes the following steps:
s1002, receiving N groups (food material names and quality guarantee period), such as expiration of the next week of beef, expiration of the next month of mutton, and expiration of the yogurt to 16 days of 6 months;
S1004, directly storing and displaying the complete information (e.g. beef, shelf life to 16 days of 6 months, mutton, shelf life to 13 days of 7 months, yogurt, shelf life to 16 days of 6 months), and continuing the next round of inquiry (also food material to be added is no.
Flow 9: n groups (1 food material name +1 shelf life); 1 food material name + no shelf life, after the complete data is stored first, the shelf life of the remaining food materials is queried.
Examples: q, expiration of beef in week 2 and mutton in month 2, and yoghourt;
beef, mutton, beef shelf life up to 16 days of 6 months, mutton shelf life up to 13 days of 7 months, please ask about the yogurt shelf life is?
Q, the yoghurt expires after 16 days from 6 months;
yogurt, shelf life of up to 16 days of 6 months, and food material to be added?
The interaction chart of the process 9 can be seen in fig. 11, and as shown in fig. 11, the process includes the following steps:
s1102, receiving N groups (food material names and quality guarantee period), 1 food material name and no quality guarantee period, such as expiration of beef in the next Tuesday and mutton in the next month, and yoghurt;
s1104, firstly storing and displaying N groups of complete information (such as beef, shelf life to 16 days of 6 months, mutton, shelf life to 13 days of 7 months), and then inquiring about the shelf life of the last food material (the shelf life of yogurt is;
S1106, judging whether the information sender answers the expiration date information for the first time;
s1108, the information sender gives the quality guarantee period information for the first time (such as 6 months and 20 days);
s1110, firstly, storing and displaying the complete information (such as yogurt, shelf life to 6 months and 20 days), and continuing the next round of inquiry (such as do food to be added;
s1112, the information sender does not answer the inquiry of the first expiration date and speaks the next food material name, such as dog meat;
s1114, discard the last food material name (e.g. yogurt), and inquire about the shelf life of the next food material name (e.g. shelf life of dog meat).
After S1114 is performed, the loop continues from S1106 to perform the corresponding operation.
Flow 10: n groups (1 food material name +1 shelf life); 1 shelf life, the complete data is stored first, and then the food materials with the shelf life are only reported.
Examples: q, expiration of beef in next week 2 and mutton in next month, and expiration date of beef in next month 16;
beef, shelf life is up to 16 days of 6 months, mutton, shelf life is up to 13 days of 7 months, please what food material you want to add?
Q is yoghurt;
yogurt, shelf life of up to 16 days of 6 months, and food material to be added?
The interaction chart of the process 10 can be seen in fig. 12, and as shown in fig. 12, the process includes the following steps:
S1202, receiving N groups (food material names and quality guarantee period), and 1 quality guarantee period, wherein the quality guarantee period is up to 6 months and 20 days when beef is out of date in the next Tuesday and mutton is out of date in the next month;
s1204, firstly storing and displaying N groups of complete information (e.g. beef, shelf life to 16 days of 6 months, mutton, shelf life to 13 days of 7 months), and then inquiring what food material the last shelf life corresponds to (please ask what food material to be added;
s1206, judging whether the information sender answers the food material information for the first time;
s1208, the information sender gives food material information (such as dog meat) for the first time;
s1210, storing and displaying the complete information (e.g. dog meat, shelf life to 6 months and 20 days), and continuing the next query (e.g. do food to be added;
s1212, the information sender does not answer the expiration date, and repeats the other case cycle.
After S1206 is executed, the information sender directly feeds back a complete food material and shelf life information (e.g. an egg, which expires for 7 months and 10 days) without giving shelf life information, and the corresponding operation of S1210 is directly executed.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Also provided in this embodiment is an information input device, fig. 13 is a block diagram of the structure of the information input device according to the embodiment of the present invention, as shown in fig. 13, the device includes:
a first obtaining module 1302, configured to obtain first voice information sent by the target object under the trigger of receiving a start instruction for indicating to start inputting information;
a second obtaining module 1304, configured to analyze the first voice information to obtain a first keyword;
and a sending module 1306, configured to send out an inquiry command corresponding to the attribute information based on the attribute information of the first keyword, so as to prompt the target object to send out second voice information.
In an alternative embodiment, the sending module 1306 includes: a first sending unit, configured to determine, based on the attribute information, that a second keyword is included in the first keyword, where the second keyword is a keyword of a first category that does not correspond to a keyword of a second category, and send an inquiry instruction for inquiring the keyword of the second category that corresponds to the second keyword; a second sending unit, configured to determine that a third keyword is included in the first keyword based on the attribute information, where the third keyword is a keyword of a second category that does not correspond to the keyword of the first category, and send an inquiry instruction for inquiring the keyword of the first category that corresponds to the third keyword; and the third sending unit is used for determining that the first keywords comprise a plurality of keywords of a second category corresponding to the keywords of the first category based on the attribute information, and sending out an inquiry instruction for inquiring the keywords of the second category corresponding to the keywords of the first category.
In an alternative embodiment, the first transmitting unit is configured to: determining that the first keyword only comprises the second keyword of the first category based on the attribute information, and sending a first query instruction, wherein the first query instruction is used for querying information of the second category corresponding to the second keyword; and determining that the first keyword comprises a first category keyword and a second category keyword based on the attribute information, wherein the first category keyword comprises the second keyword which does not correspond to the second category keyword, and sending a second query instruction, wherein the second query instruction is used for querying the second category information corresponding to the second keyword.
In an alternative embodiment, the second transmitting unit is configured to: determining that the first keywords only comprise the third keywords of the second category based on the attribute information, and sending out a third query instruction, wherein the third query instruction is used for querying the information of the first category corresponding to the third keywords; and sending a fourth query instruction under the condition that the first keyword comprises a first category keyword and a second category keyword and the second category keyword comprises the third keyword which does not correspond to the first category keyword, wherein the fourth query instruction is used for querying the first category information corresponding to the third keyword.
In an alternative embodiment, the apparatus further comprises: and the feedback module is used for feeding back prompt information when the number of the third keywords exceeds a preset threshold value after the fact that the first keywords only comprise the third keywords of the second category is determined based on the attribute information, wherein the prompt information is used for prompting that the third keywords cannot be identified and inquiring the keywords of the first category.
In an alternative embodiment, the apparatus further comprises: the storage module is used for correspondingly storing the keywords of the first category and the keywords of the second category which are in one-to-one correspondence after the first keywords are acquired and under the condition that the keywords of the first category and the keywords of the second category which are in one-to-one correspondence are determined based on the attribute information of the first keywords, and generating storage information; and the display module is used for displaying the stored information.
In an alternative embodiment, the keywords of the first category include names of objects, and the keywords of the second category include expiration dates of objects.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
The method for continuously inputting a plurality of groups of information at one time in the multi-round inquiry mode provided by the invention avoids that only one group of information can be input at one time and the input function command is required to be triggered again every time, and intelligent inquiry can be performed without error reporting under the condition that the input information is incomplete, thereby improving the information input efficiency and realizing the effect of convenient use of users.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. An information entry method, comprising:
under the trigger of receiving a start instruction for indicating to start inputting information, acquiring first voice information sent by a target object;
analyzing the first voice information to obtain a first keyword;
based on the attribute information of the first keyword, sending out an inquiry command corresponding to the attribute information so as to prompt the target object to send out second voice information;
wherein, based on the attribute information of the first keyword, issuing a query instruction corresponding to the attribute information includes:
determining that the first keywords comprise second keywords based on the attribute information, wherein the second keywords are keywords of the first category which do not correspond to the keywords of the second category; issuing an inquiry instruction for inquiring the keywords of the second category corresponding to the second keywords;
Determining that a third keyword is included in the first keyword based on the attribute information, wherein the third keyword is a keyword of a second category which does not correspond to the keyword of the first category; issuing an inquiry instruction for inquiring the keywords of the first category corresponding to the third keywords;
determining that the first keywords comprise a plurality of keywords of a second category corresponding to the keywords of the first category based on the attribute information; and sending out an inquiry instruction for inquiring the keywords of the second category corresponding to the keywords of the first category.
2. The method of claim 1, wherein determining that a second keyword is included in the first keyword based on the attribute information, and issuing an inquiry instruction for inquiring about a keyword of a second category corresponding to the second keyword comprises:
determining that the first keyword only comprises the second keyword of the first category based on the attribute information, and sending a first query instruction, wherein the first query instruction is used for querying information of the second category corresponding to the second keyword;
and determining that the first keyword comprises a first category keyword and a second category keyword based on the attribute information, wherein the first category keyword comprises the second keyword which does not correspond to the second category keyword, and sending a second query instruction, wherein the second query instruction is used for querying the second category information corresponding to the second keyword.
3. The method of claim 1, wherein determining that a third keyword is included in the first keyword based on the attribute information, and issuing an inquiry instruction for inquiring about a keyword of a first category corresponding to the third keyword comprises:
determining that the first keywords only comprise the third keywords of the second category based on the attribute information, and sending out a third query instruction, wherein the third query instruction is used for querying the information of the first category corresponding to the third keywords;
and determining that the first keyword comprises a first category keyword and a second category keyword based on the attribute information, wherein the second category keyword comprises the third keyword which does not correspond to the first category keyword, and sending out a fourth query instruction, wherein the fourth query instruction is used for querying the first category information corresponding to the third keyword.
4. The method according to claim 3, wherein after determining that only the third keyword of the second category is included in the first keyword based on the attribute information, the method further comprises:
And feeding back prompt information under the condition that the number of the third keywords exceeds a preset threshold value, wherein the prompt information is used for prompting that the third keywords cannot be identified and inquiring the keywords of the first category.
5. The method of claim 1, wherein after the first keyword is obtained, the method further comprises:
under the condition that the first keywords comprise one-to-one first category keywords and one-to-one second category keywords based on the attribute information of the first keywords, storing the one-to-one first category keywords and the one-to-one second category keywords correspondingly, and generating storage information;
and displaying the stored information.
6. The method of any of claims 2 to 5, wherein the keywords of the first category comprise names of objects and the keywords of the second category comprise expiration dates of objects.
7. An information entry device, comprising:
the first acquisition module is used for acquiring first voice information sent by the target object under the trigger of receiving a start instruction for indicating to start inputting information;
The second acquisition module is used for analyzing the first voice information to acquire a first keyword;
the sending module is used for sending out an inquiry instruction corresponding to the attribute information based on the attribute information of the first keyword so as to prompt the target object to send out second voice information;
the sending module is further configured to determine that a second keyword is included in the first keyword based on the attribute information, where the second keyword is a keyword of a first category that does not correspond to the keyword of the second category; issuing an inquiry instruction for inquiring the keywords of the second category corresponding to the second keywords;
determining that a third keyword is included in the first keyword based on the attribute information, wherein the third keyword is a keyword of a second category which does not correspond to the keyword of the first category; issuing an inquiry instruction for inquiring the keywords of the first category corresponding to the third keywords;
determining that the first keywords comprise a plurality of keywords of a second category corresponding to the keywords of the first category based on the attribute information; and sending out an inquiry instruction for inquiring the keywords of the second category corresponding to the keywords of the first category.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 6 when run.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 6.
CN202011488957.7A 2020-12-16 2020-12-16 Information input method and device, storage medium and electronic device Active CN112507708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011488957.7A CN112507708B (en) 2020-12-16 2020-12-16 Information input method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011488957.7A CN112507708B (en) 2020-12-16 2020-12-16 Information input method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112507708A CN112507708A (en) 2021-03-16
CN112507708B true CN112507708B (en) 2023-09-15

Family

ID=74972839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011488957.7A Active CN112507708B (en) 2020-12-16 2020-12-16 Information input method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112507708B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654270A (en) * 2014-11-18 2016-06-08 博西华家用电器有限公司 Refrigerator, terminal, and management system and management method for food materials in refrigerator
CN106403492A (en) * 2016-11-14 2017-02-15 珠海格力电器股份有限公司 Intelligent refrigerator control device and method and refrigerator
CN107084591A (en) * 2017-05-08 2017-08-22 广州视源电子科技股份有限公司 A kind of control method of intelligent refrigerator, device, equipment and storage medium
US10466962B2 (en) * 2017-09-29 2019-11-05 Sonos, Inc. Media playback system with voice assistance
CN110136831A (en) * 2018-02-09 2019-08-16 江苏怡通数码科技有限公司 A kind of sign monitoring method by voice input
CN109147792A (en) * 2018-08-10 2019-01-04 安徽网才信息技术股份有限公司 A kind of voice resume system
CN111692829B (en) * 2019-03-13 2022-02-01 青岛海尔电冰箱有限公司 Data interaction method and interaction system for refrigerator

Also Published As

Publication number Publication date
CN112507708A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN104469707B (en) A kind of mobile terminal and integrate the means of communication and the device of social account
JP2011234198A (en) Information providing method, content display terminal, mobile terminal, server device, information providing system, and program
US7330716B2 (en) Wireless communication system
CN107924711A (en) Health care servers, health care servers control method and health care procedures
CN110807085B (en) Fault information query method and device, storage medium and electronic device
CN105096105A (en) Reminding method and device for project progress monitoring
CN104539678B (en) A kind of push of information, method of reseptance and device
CN107528766A (en) Information-pushing method, apparatus and system
CN112235179B (en) Method and device for processing topics in instant messaging and instant messaging tool
CN109936637A (en) Frequency control method, apparatus, server and the medium of message push
CN106533914A (en) Message notification method and apparatus
CN112507708B (en) Information input method and device, storage medium and electronic device
CN105530244A (en) Method for controlling intelligent device by main control device and server
CN105306348A (en) Solving method for delayed and leaked messages in group chat and instant messaging tool
CN110879740A (en) Electronic measuring instrument use help system and method based on two-dimensional code
CN105551206A (en) Emotion-based prompting method and related device and prompting system
CN106156270A (en) Multi-medium data method for pushing and device
CN105827506A (en) Method and device of processing score information based on instant communication software
CN103324754A (en) Self-service real-time health condition response system
US20150324066A1 (en) Remote Response System With Multiple Responses
CN113124631A (en) Prompting method and device for refrigerator and refrigerator
CN106155617B (en) Information display method, apparatus and system
CN105354699A (en) Schedule setting method and apparatus and schedule management system
CN108255903B (en) Insurance subject data processing method and device, computer equipment and storage medium
EP1750412B1 (en) Signalling of status information using RFID technology

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
CB03 Change of inventor or designer information

Inventor after: Guo Shengqiang

Inventor after: Niu Li

Inventor before: Guo Shengqiang

CB03 Change of inventor or designer information