TMEContraction
@interface TMEContraction : NSObject
Stores the result of the Concept Contraction inference service.
“Keep” represents the part of the request that is compatible with the supplied resource, while “give up” is the part that must be given up in order to make it compatible with it. The more must be given up in the request, the higher the associated penalty.
See
TMEReasoner
-
“Keep” part of the contraction result.
Declaration
Objective-C
@property (nonatomic, strong, readonly) TMESemanticDescription *_Nonnull keep;
Swift
var keep: TMESemanticDescription { get }
-
“Give up” part of the contraction result.
Declaration
Objective-C
@property (nonatomic, strong, readonly) TMESemanticDescription *_Nonnull giveUp;
Swift
var giveUp: TMESemanticDescription { get }
-
Penalty associated with the contraction result.
Declaration
Objective-C
@property (nonatomic, readonly) double penalty;
Swift
var penalty: Double { get }