Language Detection
- Example request
//You are advised to construct and use the client in a singleton pattern to avoid frequent object creation. MtClient client = new MtClient(AuthMode.AKSK,authInfo); LanguageDetectionReq req = new LanguageDetectionReq(); //Content to be detected req.setText("Play the Qinghuaci of Jay Chou"); try { LanguageDetectionResp resp = client.detectLanguage(req); } catch (NlpException e) { //A failure is thrown as an exception. For details about exceptions, see section "Exceptions". The client automatically processes exceptions. }
Last Article: Text Translation
Next Article: Accessing the Client via HTTP Proxies
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.