public class JTextCatPlugin extends Object implements LanguageIdPlugin
LANG_UNKNOWN| Constructor and Description |
|---|
JTextCatPlugin()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
detectLanguage(String document)
Detects the language in the document
|
void |
init(String configFile)
Method that initialises the implementation of the language id.
|
public void init(String configFile) throws IndexException
init in interface LanguageIdPluginconfigFile - The config file needed by the identify languageIndexException - when the language_identifier can not be createdpublic String detectLanguage(String document) throws IndexException
detectLanguage in interface LanguageIdPlugindocument - The documentIndexException - in case of a failure.
or in case the an unknown language, or if the
input document is too short to classify the language.Copyright © 2014. All Rights Reserved.