Created
April 15, 2019 16:19
-
-
Save kajornsakp/e6a5e02a196d8b7667a5e141bf8668e1 to your computer and use it in GitHub Desktop.
Identify language (obj-c)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Identifies the main language for the given text. | |
* | |
* @param text The input text to use for identifying the language. Inputs longer than 200 characters | |
* are truncated to 200 characters, as longer input does not improve the detection accuracy. | |
* @param completion Handler to call back on the main queue with the identified language code or | |
* error. | |
*/ | |
- (void)identifyLanguageForText:(NSString *)text | |
completion:(FIRIdentifyLanguageCallback)completion | |
NS_SWIFT_NAME(identifyLanguage(for:completion:)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment