Static analysis to identify defects in grammars
First Claim
Patent Images
1. A method of analyzing a context free grammar for a speech system during authoring of the context free grammar, comprising:
- authoring at least a portion of the context free grammar;
loading the authored context free grammar into a grammar analyzer having a plurality of static analysis components each capable of identifying a different class of grammar defects, wherein at least one of the classes is related to identifying defects related to speech recognition and at least one of the classes is related to identifying defects related to something other than speech recognition;
intermittently, while authoring the context free grammar, selecting one of the plurality of accessible static analysis components;
running the selected static analysis component on the context free grammar to identify specific defects in the context free grammar of the class associated with the selected static analysis component wherein the selected static analysis component identifies over-generation defects in the context free grammar by selecting each text fragment allowed by the context free grammar, calculating a language model score for the selected text fragment with a language model to determine whether the selected text fragment is likely to be used by a user based on the language model score; and
if not, generating an output indicative of a possibility that an unusual text fragment, allowed by the context free grammar, has been identified; and
repeating the steps of selecting and running for each desired static analysis component.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides static analysis of speech grammars prior to the speech grammars being deployed in a speech system.
21 Citations
16 Claims
-
1. A method of analyzing a context free grammar for a speech system during authoring of the context free grammar, comprising:
-
authoring at least a portion of the context free grammar; loading the authored context free grammar into a grammar analyzer having a plurality of static analysis components each capable of identifying a different class of grammar defects, wherein at least one of the classes is related to identifying defects related to speech recognition and at least one of the classes is related to identifying defects related to something other than speech recognition; intermittently, while authoring the context free grammar, selecting one of the plurality of accessible static analysis components; running the selected static analysis component on the context free grammar to identify specific defects in the context free grammar of the class associated with the selected static analysis component wherein the selected static analysis component identifies over-generation defects in the context free grammar by selecting each text fragment allowed by the context free grammar, calculating a language model score for the selected text fragment with a language model to determine whether the selected text fragment is likely to be used by a user based on the language model score; and if not, generating an output indicative of a possibility that an unusual text fragment, allowed by the context free grammar, has been identified; and repeating the steps of selecting and running for each desired static analysis component. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A static analyzer that includes a processor capable of executing instructions for analyzing a speech context free grammar, comprising:
-
an authoring component used to author the context free grammar, including an analysis component performing static analysis on the context free grammar by executing instructions in the processor for selecting one or more defect identifying components, with at least one of the defect identifying components being related to speech recognition defects and at least one of the defect identifying components being related to something other than speech recognition components and running the selected defect identifying components on the context free grammar to identify specific defects in the context free grammar, wherein the defect identifying components include a syntax error identifying component that identifies syntax errors in the context free grammar, the syntax errors including an external grammar defect identified when the syntax error identifying component determines that references, in the context free grammar, to external rules cannot be resolved or that the external rules cannot be loaded into the analysis component; and wherein the defect identifying components comprise a specific engine defect identifier identifying whether the context free grammar violates engine specific limits for a plurality of different speech recognition engines, each of the engine specific limits corresponding to one of the plurality of different speech recognition engines. - View Dependent Claims (14, 15, 16)
-
Specification