YSKRecognition class

#import <YSKRecognition.h>

The complete recognition result returned by YSKRecognizer.

The recognition result contains the list of the best recognition hypotheses (with their confidence scores), in descending order (the N-best list). In other words, the most probable recognition result is first.

The most probable result might not be reliable enough to use it as the only confident recognition result. There is a special internal flag for indicating that the best result is sufficiently confident, available as the resultConfident property. If this flag is set, you can get a reliable result using the result property.

In any case, the N-best list of hypotheses is available using the allResults property.

Instance methods

- initWithResultHypothesis:resultConfident:
- stringValue

A string representation of the recognition result.

Properties

allResults
result
Note.

The value of this property is valid only if the resultConfident flag is set.

resultConfident

If the flag is set, the recognition result is available via the result property.

Method descriptions

- initWithResultHypothesis:resultConfident:

- (instancetype) initWithResultHypothesis:(NSArray *) allResults
resultConfident:(BOOL) resultConfident

- stringValue

- (NSString *) stringValue

A string representation of the recognition result.

Property descriptions

allResults

(copy, readonly) NSArray * allResults

Vector containing the N-best list of recognition hypotheses (YSKRecognitionHypothesis).

result

(retain, readonly) YSKRecognitionHypothesis * result

Confident recognition result.

Note.

The value of this property is valid only if the resultConfident flag is set.

resultConfident

(assign, readonly, getter=isResultConfident) BOOL resultConfident

Flag for the availability of a confident recognition result.

If the flag is set, the recognition result is available via the result property.