NTHypothesis Class Reference

Inherits from NSObject
Declared in NTHypothesis.h
NTHypothesis.m

  value

The recognized text

@property (nonatomic, strong, readonly) NSString *value

Discussion

The recognized text

Declared In

NTHypothesis.h

  pathScore

The path score (def 0.0)

@property (nonatomic, readonly) double pathScore

Discussion

The path score (def 0.0)

Declared In

NTHypothesis.h

  posteriorProbability

The posterior probability (def 0.0)

@property (nonatomic, readonly) double posteriorProbability

Discussion

The posterior probability (def 0.0)

Declared In

NTHypothesis.h

– initWithValue:

- (instancetype)initWithValue:(NSString *)value

– initWithValue:score:

- (instancetype)initWithValue:(NSString *)value score:(double)score

– initWithValue:score:probability:

- (instancetype)initWithValue:(NSString *)value score:(double)score probability:(double)probability

– isNull

Whether this is a null hypothesis

- (BOOL)isNull

Return Value

YES if null, NO otherwise

Discussion

Whether this is a null hypothesis

Declared In

NTHypothesis.h

+ hypothesis:

+ (NTHypothesis *)hypothesis:(NSString *)value

+ hypothesis:score:

+ (NTHypothesis *)hypothesis:(NSString *)value score:(double)score

+ hypothesis:score:probability:

+ (NTHypothesis *)hypothesis:(NSString *)value score:(double)score probability:(double)probability