public class Cld2Wrapper extends Object
| Constructor and Description |
|---|
Cld2Wrapper()
Using JNA to load the libcld2 library and use the cld2Library object as an access point
|
| Modifier and Type | Method and Description |
|---|---|
Cld2Result |
detectLanguageSummaryWithHints(byte[] inputBytes,
LanguageDetectorSettings settings)
Using JNA, Calls into the cld2Library passing in the required fields to carry out the language detection.
|
public Cld2Wrapper()
public Cld2Result detectLanguageSummaryWithHints(byte[] inputBytes, LanguageDetectorSettings settings) throws LanguageDetectorException
inputBytes - - bytes of text data utf-8settings - - settings object with hintsLanguageDetectorException - - Attempt to detect the language has been unsuccessful, causes LanguageDetectorExceptionCopyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.