From 1edfe3737a29600f0ce42bdf228df5898a034ec9 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Fri, 6 Jan 2023 15:21:49 +0530 Subject: [PATCH] Updated method name in MPPTextClassifier --- .../tasks/ios/text/text_classifier/sources/MPPTextClassifier.h | 2 +- .../tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.h b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.h index fe1264655..73ed5ff7a 100644 --- a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.h +++ b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.h @@ -92,7 +92,7 @@ NS_SWIFT_NAME(TextClassifier) * * @return A `MPPTextClassifierResult` object that contains a list of text classifications. **/ -- (nullable MPPTextClassifierResult *)classifyWithText:(NSString *)text error:(NSError **)error; +- (nullable MPPTextClassifierResult *)classifyText:(NSString *)text error:(NSError **)error; - (instancetype)init NS_UNAVAILABLE; diff --git a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm index afe9b9a40..aed05ec37 100644 --- a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm +++ b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm @@ -80,7 +80,7 @@ static NSString *const kTaskGraphName = @"mediapipe.tasks.text.text_classifier.T return [self initWithOptions:options error:error]; } -- (nullable MPPTextClassifierResult *)classifyWithText:(NSString *)text error:(NSError **)error { +- (nullable MPPTextClassifierResult *)classifyText:(NSString *)text error:(NSError **)error { Packet packet = [MPPTextPacketCreator createWithText:text]; std::map packetMap = {{kTextInStreamName.cppString, packet}};