Updated incorrect usage of timestamp
This commit is contained in:
parent
8570136f80
commit
bc15882cdc
|
@ -54,13 +54,13 @@ using ClassificationResultProto =
|
||||||
}
|
}
|
||||||
|
|
||||||
MPPClassificationResult *classificationResult;
|
MPPClassificationResult *classificationResult;
|
||||||
NSInteger timeStampMs;
|
NSInteger timestampMs;
|
||||||
|
|
||||||
if (classificationResultProto.has_timestamp_ms()) {
|
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
|
@end
|
||||||
|
|
|
@ -31,7 +31,7 @@ NS_SWIFT_NAME(TextClassifierResult)
|
||||||
*
|
*
|
||||||
* @param classificationResult The `MPPClassificationResult` instance containing one set of results
|
* @param classificationResult The `MPPClassificationResult` instance containing one set of results
|
||||||
* per classifier head.
|
* 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
|
* @return An instance of `MPPTextClassifierResult` initialized with the given
|
||||||
* `MPPClassificationResult` and timestamp (in milliseconds).
|
* `MPPClassificationResult` and timestamp (in milliseconds).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user