Updated incorrect usage of timestamp
This commit is contained in:
parent
8570136f80
commit
bc15882cdc
|
@ -54,13 +54,13 @@ using ClassificationResultProto =
|
|||
}
|
||||
|
||||
MPPClassificationResult *classificationResult;
|
||||
NSInteger timeStampMs;
|
||||
NSInteger timestampMs;
|
||||
|
||||
if (classificationResultProto.has_timestamp_ms()) {
|
||||
timeStampMs = (NSInteger)classificationResultProto.timestamp_ms();
|
||||
timestampMs = (NSInteger)classificationResultProto.timestamp_ms();
|
||||
}
|
||||
|
||||
return [[MPPClassificationResult alloc] initWithClassifications:classifications timestampMs:timeStampMs];;
|
||||
return [[MPPClassificationResult alloc] initWithClassifications:classifications timestampMs:timestampMs];;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -31,10 +31,10 @@ NS_SWIFT_NAME(TextClassifierResult)
|
|||
*
|
||||
* @param classificationResult The `MPPClassificationResult` instance containing one set of results
|
||||
* per classifier head.
|
||||
* @param timeStampMs The time stamp for this result.
|
||||
* @param timestampMs The timestamp for this result.
|
||||
*
|
||||
* @return An instance of `MPPTextClassifierResult` initialized with the given
|
||||
* `MPPClassificationResult` and time stamp (in milliseconds).
|
||||
* `MPPClassificationResult` and timestamp (in milliseconds).
|
||||
*/
|
||||
- (instancetype)initWithClassificationResult:(MPPClassificationResult *)classificationResult
|
||||
timestampMs:(NSInteger)timestampMs;
|
||||
|
|
Loading…
Reference in New Issue
Block a user