From 05a9b40fa7dc30fbf83e2cb706957e690baeafd2 Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Fri, 6 Jan 2023 13:54:27 +0530 Subject: [PATCH] Updated C++ variables in MPPTextClassifier to camel case --- .../ios/text/text_classifier/sources/MPPTextClassifier.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm index f87d0681a..8a1116285 100644 --- a/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm +++ b/mediapipe/tasks/ios/text/text_classifier/sources/MPPTextClassifier.mm @@ -83,15 +83,15 @@ static NSString *const kTaskGraphName = @"mediapipe.tasks.text.text_classifier.T - (nullable MPPTextClassifierResult *)classifyWithText:(NSString *)text error:(NSError **)error { Packet packet = [MPPTextPacketCreator createWithText:text]; - std::map packet_map = {{kTextInStreamName.cppString, packet}}; - absl::StatusOr status_or_output_packet_map = [_textTaskRunner process:packet_map]; + std::map packetMap = {{kTextInStreamName.cppString, packet}}; + absl::StatusOr statusOrOutputPacketMap = [_textTaskRunner process:packetMap]; - if (![MPPCommonUtils checkCppError:status_or_output_packet_map.status() toError:error]) { + if (![MPPCommonUtils checkCppError:statusOrOutputPacketMap.status() toError:error]) { return nil; } return [MPPTextClassifierResult - textClassifierResultWithClassificationsPacket:status_or_output_packet_map.value() + textClassifierResultWithClassificationsPacket:statusOrOutputPacketMap.value() [kClassificationsStreamName.cppString]]; }