Updated method name in MPPTextClassifier

This commit is contained in:
Prianka Liz Kariat 2023-01-06 15:21:49 +05:30
parent ad7fd76fb1
commit 1edfe3737a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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<std::string, Packet> packetMap = {{kTextInStreamName.cppString, packet}};