public class JoshuaTranslator extends Object implements Translator
Translator that uses Apache Joshua
to perform translation of natural language text.| Constructor and Description |
|---|
JoshuaTranslator(String joshuaLanguagePackPath)
Creates a new translator.
|
| Modifier and Type | Method and Description |
|---|---|
LanguageTranslationResponse |
translate(LanguageTranslationRequest request) |
public JoshuaTranslator(String joshuaLanguagePackPath) throws IOException
joshuaLanguagePackPath - The full path to the Apache Joshua language pack.
The joshua.config file is expected to be located in this path.IOException - Thrown if the language pack cannot be loaded.public LanguageTranslationResponse translate(LanguageTranslationRequest request)
translate in interface TranslatorCopyright © 2018. All rights reserved.