Method and device for processing speech instruction
First Claim
1. A method for processing a speech instruction, comprising:
- recognizing a speech instruction, so as to generate text information corresponding to the speech instruction;
performing semantic analysis on the text information, so as to obtain a semantic analysis result of the text information;
determining whether a corresponding operation is executable based on the semantic analysis result of the text information;
if it is determined that the corresponding operation is not executable based on the semantic analysis result of the text information, determining whether the text information belongs to instruction text data;
if it is determined that the text information belongs to the instruction text data, correcting the text information, so as to obtain corrected text information;
performing semantic analysis on the corrected text information, and executing the corresponding operation according to a semantic analysis result of the corrected text information;
wherein correcting the text information so as to obtain corrected text information comprises;
correcting the text information based on an instruction text correcting rule, so as to obtain the corrected text information;
wherein correcting the text information based on an instruction text correcting rule so as to obtain the corrected text information comprises;
locating an erroneous instruction keyword in the text information according to an instruction text matching rule;
rewriting the erroneous instruction keyword according to high frequency error information, so as to obtain the corrected text information.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and a device for processing a speech instruction are provided. With the method, a speech instruction is recognized so as to generate text information corresponding to the speech instruction. Semantic analysis is performed on the text information so as to obtain a semantic analysis result of the text information. Whether a corresponding operation is executable based on the semantic analysis result of the text information is determined. If it is determined that the corresponding operation is not executable based on the semantic analysis result of the text information, whether the text information belongs to instruction text data is determined. If yes, the text information is corrected so as to obtain corrected text information. Semantic analysis is performed on the corrected text information, and the corresponding operation is executed according to a semantic analysis result of the corrected text information.
7 Citations
5 Claims
-
1. A method for processing a speech instruction, comprising:
-
recognizing a speech instruction, so as to generate text information corresponding to the speech instruction; performing semantic analysis on the text information, so as to obtain a semantic analysis result of the text information; determining whether a corresponding operation is executable based on the semantic analysis result of the text information; if it is determined that the corresponding operation is not executable based on the semantic analysis result of the text information, determining whether the text information belongs to instruction text data; if it is determined that the text information belongs to the instruction text data, correcting the text information, so as to obtain corrected text information; performing semantic analysis on the corrected text information, and executing the corresponding operation according to a semantic analysis result of the corrected text information; wherein correcting the text information so as to obtain corrected text information comprises; correcting the text information based on an instruction text correcting rule, so as to obtain the corrected text information; wherein correcting the text information based on an instruction text correcting rule so as to obtain the corrected text information comprises; locating an erroneous instruction keyword in the text information according to an instruction text matching rule; rewriting the erroneous instruction keyword according to high frequency error information, so as to obtain the corrected text information. - View Dependent Claims (2)
-
-
3. A device for processing a speech instruction, comprising:
-
a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to perform the acts of; recognizing a speech instruction, so as to generate text information corresponding to the speech instruction; performing semantic analysis on the text information, so as to obtain a semantic analysis result of the text information; determining whether a corresponding operation is executable based on the semantic analysis result of the text information; if it is determined that the corresponding operation is not executable based on the semantic analysis result of the text information, determining whether the text information belongs to instruction text data; if it is determined that the text information belongs to the instruction text data, correcting the text information, so as to obtain corrected text information; performing semantic analysis on the corrected text information, and executing the corresponding operation according to a semantic analysis result of the corrected text information; wherein the processor corrects the text information so as to obtain corrected text information by; correcting the text information based on an instruction text correcting rule, so as to obtain the corrected text information; wherein correcting the text information based on an instruction text correcting rule so as to obtain the corrected text information comprises; locating an erroneous instruction keyword in the text information according to an instruction text matching rule; rewriting the erroneous instruction keyword according to high frequency error information, so as to obtain the corrected text information. - View Dependent Claims (4)
-
-
5. A non-transitory computer-readable storage medium, stored with one or more programs that, when executed by a device, cause the device to perform a method for processing a speech instruction, the method comprising:
-
recognizing a speech instruction, so as to generate text information corresponding to the speech instruction; performing semantic analysis on the text information, so as to obtain a semantic analysis result of the text information; determining whether a corresponding operation is executable based on the semantic analysis result of the text information; if it is determined that the corresponding operation is not executable based on the semantic analysis result of the text information, determining whether the text information belongs to instruction text data; if it is determined that the text information belongs to the instruction text data, correcting the text information, so as to obtain corrected text information; performing semantic analysis on the corrected text information, and executing the corresponding operation according to a semantic analysis result of the corrected text information; wherein correcting the text information so as to obtain corrected text information comprises; correcting the text information based on an instruction text correcting rule, so as to obtain the corrected text information; wherein correcting the text information based on an instruction text correcting rule so as to obtain the corrected text information comprises; locating an erroneous instruction keyword in the text information according to an instruction text matching rule; rewriting the erroneous instruction keyword according to high frequency error information, so as to obtain the corrected text information.
-
Specification