|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.common.linguistics.languageidplugin.DummyLangidPlugin
public class DummyLangidPlugin
The dummy class for lanugae identification. This class does not recognize any language.
| Field Summary |
|---|
| Fields inherited from interface org.gcube.indexmanagement.common.linguistics.languageidplugin.LanguageIdPlugin |
|---|
LANG_UNKNOWN |
| Constructor Summary | |
|---|---|
DummyLangidPlugin()
Empty constructor. |
|
| Method Summary | |
|---|---|
String |
detectLanguage(String document)
Detects the language in the document |
String |
detectLanguageFull(String document)
Detects the language in the document and returns the full string of from detection algorithm. |
void |
init(String configFile)
Method that initialises the implementation of the language id |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyLangidPlugin()
| Method Detail |
|---|
public void init(String configFile)
throws IndexException
init in interface LanguageIdPluginconfigFile - The config file needed by the identify language
IndexException - when the language_identifier can not be created
public String detectLanguage(String document)
throws IndexException
detectLanguage in interface LanguageIdPlugindocument - The document
IndexException - in case of a failure.
public String detectLanguageFull(String document)
throws IndexException
document - The document
IndexException - in case of a failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||