public class OpenNLPLanguageDetector extends Object implements LanguageDetector
LanguageDetector that
uses Apache OpenNLP's language detector.| Constructor and Description |
|---|
OpenNLPLanguageDetector() |
OpenNLPLanguageDetector(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
LanguageDetectionResponse |
detectLanguage(String text,
int limit) |
public OpenNLPLanguageDetector()
throws IOException
IOExceptionpublic OpenNLPLanguageDetector(InputStream in) throws IOException
IOExceptionpublic LanguageDetectionResponse detectLanguage(String text, int limit) throws LanguageDetectionException
detectLanguage in interface LanguageDetectorLanguageDetectionExceptionCopyright © 2018. All rights reserved.