Class YSKRecognitionWord

A word or phrase that is an element of the YSKRecognitionHypothesis.

The minimal object that a confidence score is shown for. This score can be used to determine poorly recognized fragments.

Instance Methods

-initWithText:confidence:

Initializes an object of the YSKRecognitionWord class.

Properties

confidence

Recognition confidence score.

text

A word or phrase.

Method Detail

-initWithText:confidence:

- (instancetype)initWithText:(NSString *)text
                  confidence:(CGFloat)confidence 

Initializes an object of the YSKRecognitionWord class.

This method is a designated initializer for the YSKRecognitionWord class.
Parameters:
text

A word or phrase.

confidence

Recognition confidence score.

Returns:

An object of the YSKRecognitionWord class.

Property Detail

confidence

(assign, readonly) CGFloat confidence

Recognition confidence score.

The confidence score is a fractional number between 0 and 1 estimating the measure of confidence in the recognition result (1 indicates the highest level of confidence).

text

(copy, readonly) NSString * text

A word or phrase.