swirec_max_sentences_tried

Maximum number of candidates for filling the n-best list.

Value

Integer: 1–999999.

Default

999999 (sentences)

How to set

Shown in precedence order (see Rules of parameter precedence):

Set in the browser, using the Vendor-Specific-Parameters header in a RECOGNIZE or SET-PARAMS method.

In a parameter grammar.

In a grammar using a <meta> tag (see the text on recognition-time parameters in Parameters set in grammar files).

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

Usage

For the infrequent occasion that an utterance is confusable with an excessive number of sentences.

This is an advanced feature for developers who are familiar with Recognizer and its underlying models.

Performance

Changing the default value can seriously impair accuracy and confidence. After changing the value, you must thoroughly test recognition accuracy before applying the change to a production system.

This parameter sets the maximum number of candidates for Recognizer to consider when filling the n-best list.

This parameter is not the preferred way to control n-best processing. The default value is set high such that the parameter is essentially un-used. Set to a smaller value when there is a specific reason why each sentence is expensive in terms of resources (for example, for sentences associated with computationally intensive ECMAscripts). A typical setting, when the parameter is needed, would be 10 to 100.

Browsers usually set this parameter in a RECOGNIZE request, and the parameter automatically reverts to the previous value after the recognition event. (Alternatively, browsers can use the SET-PARAMS method. See Configuring Recognizer with the browser.)

Vendor-Specific-Parameters: swirec_max_sentences_tried=100

Sample definition in a grammar file:

<meta name="swirec_max_sentences_tried" content="100"/>

Related parameters