swirec_default_optimization

Default optimization level for grammars.

Value

Integer: 0–12 (but not 10, which is reserved for internal use).

Default

6

How to set

In Management Station set on the Nuance recognition service. If not using Management Station, set in a Recognizer configuration file (User-nrsxx.xml).

Usage

Occasionally changed for experimentation purposes. Each level has advantages or disadvantages regarding compilation time, recognition time, and recognition accuracy.

This parameter specifies a default optimization level for the initial compilation of a grammar. It is only used when the grammar specifies no optimization level (via swirec_optimization).

In general, higher values mean more optimization, and lower values mean less. (However, in some instances, a value of 9 might optimize better than 11.) See swirec_optimization for a more detailed explanation.

Regardless of the setting of this parameter and the initial optimization level that it defines, the Recognizer automatically recompile the grammar with a higher optimization level (swirec_full_optimization) if it is frequently used (swirec_hits_before_full_optimize).