Updated comments in MPPCategory
This commit is contained in:
parent
17ddb624fd
commit
2121cc89a4
|
@ -16,25 +16,31 @@
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
/** Category is a util class, contains a label, its display name, a float value as score, and the
|
/**
|
||||||
|
* Category is a util class that contains a label, its display name, a float value as score, and the
|
||||||
* index of the label in the corresponding label file. Typically it's used as the result of
|
* index of the label in the corresponding label file. Typically it's used as the result of
|
||||||
* classification tasks. */
|
* classification tasks.
|
||||||
|
**/
|
||||||
NS_SWIFT_NAME(ClassificationCategory)
|
NS_SWIFT_NAME(ClassificationCategory)
|
||||||
@interface MPPCategory : NSObject
|
@interface MPPCategory : NSObject
|
||||||
|
|
||||||
/** The index of the label in the corresponding label file. It takes the value -1 if the index is
|
/**
|
||||||
* not set. */
|
* The index of the label in the corresponding label file. It takes the value -1 if the index is
|
||||||
|
* not set.
|
||||||
|
**/
|
||||||
@property(nonatomic, readonly) NSInteger index;
|
@property(nonatomic, readonly) NSInteger index;
|
||||||
|
|
||||||
/** Confidence score for this class . */
|
/** Confidence score for this class . **/
|
||||||
@property(nonatomic, readonly) float score;
|
@property(nonatomic, readonly) float score;
|
||||||
|
|
||||||
/** The label of this category object. */
|
/** The label of this category object. **/
|
||||||
@property(nonatomic, readonly, nullable) NSString *categoryName;
|
@property(nonatomic, readonly, nullable) NSString *categoryName;
|
||||||
|
|
||||||
/** The display name of the label, which may be translated for different locales. For example, a
|
/**
|
||||||
|
* The display name of the label, which may be translated for different locales. For example, a
|
||||||
* label, "apple", may be translated into Spanish for display purpose, so that the display name is
|
* label, "apple", may be translated into Spanish for display purpose, so that the display name is
|
||||||
* "manzana". */
|
* "manzana".
|
||||||
|
**/
|
||||||
@property(nonatomic, readonly, nullable) NSString *displayName;
|
@property(nonatomic, readonly, nullable) NSString *displayName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,13 +50,13 @@ NS_SWIFT_NAME(ClassificationCategory)
|
||||||
*
|
*
|
||||||
* @param score The probability score of this label category.
|
* @param score The probability score of this label category.
|
||||||
*
|
*
|
||||||
* @param categoryName The label of this category object..
|
* @param categoryName The label of this category object.
|
||||||
*
|
*
|
||||||
* @param displayName The display name of the label.
|
* @param displayName The display name of the label.
|
||||||
*
|
*
|
||||||
* @return An instance of `MPPCategory` initialized with the given index, score, category name and
|
* @return An instance of `MPPCategory` initialized with the given index, score, category name and
|
||||||
* display name.
|
* display name.
|
||||||
*/
|
**/
|
||||||
- (instancetype)initWithIndex:(NSInteger)index
|
- (instancetype)initWithIndex:(NSInteger)index
|
||||||
score:(float)score
|
score:(float)score
|
||||||
categoryName:(nullable NSString *)categoryName
|
categoryName:(nullable NSString *)categoryName
|
||||||
|
|
Loading…
Reference in New Issue
Block a user