Reverted removal of a line in MPPLanguageDetectorTests.mm
This commit is contained in:
parent
a7f3321dbb
commit
ba8316abd3
|
@ -113,6 +113,10 @@ static NSString *const kExpectedErrorDomain = @"com.google.mediapipe.tasks";
|
||||||
NSArray<MPPLanguagePrediction *> *expectedRuLanguagePredictions =
|
NSArray<MPPLanguagePrediction *> *expectedRuLanguagePredictions =
|
||||||
@[ [[MPPLanguagePrediction alloc] initWithLanguageCode:@"ru" probability:0.9933616f] ];
|
@[ [[MPPLanguagePrediction alloc] initWithLanguageCode:@"ru" probability:0.9933616f] ];
|
||||||
|
|
||||||
|
[self assertResultsOfDetectLanguageOfText:ruText
|
||||||
|
usingLanguageDetector:languageDetector
|
||||||
|
approximatelyEqualsExpectedLanguagePredictions:expectedRuLanguagePredictions];
|
||||||
|
|
||||||
NSString *zhText = @"分久必合合久必分";
|
NSString *zhText = @"分久必合合久必分";
|
||||||
NSArray<MPPLanguagePrediction *> *expectedZhLanguagePredictions = @[
|
NSArray<MPPLanguagePrediction *> *expectedZhLanguagePredictions = @[
|
||||||
[[MPPLanguagePrediction alloc] initWithLanguageCode:@"zh" probability:0.505424f],
|
[[MPPLanguagePrediction alloc] initWithLanguageCode:@"zh" probability:0.505424f],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user