Updated method name in MPPTextClassifier
This commit is contained in:
parent
ad7fd76fb1
commit
1edfe3737a
|
@ -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;
|
||||
|
||||
|
|
|
@ -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}};
|
||||
|
|
Loading…
Reference in New Issue
Block a user