public class WTranslationEntry extends Object
Constructor and Description |
---|
WTranslationEntry(LanguageType _lang,
WikiText[] _phrases) |
Modifier and Type | Method and Description |
---|---|
void |
free()
Frees memory recursively.
|
LanguageType |
getLanguage()
Gets a destination language of the translation.
|
WikiText[] |
getWikiPhrases()
Gets array of internal links (wiki words, i.e.
|
static WTranslationEntry |
parse(LanguageType wikt_lang,
String page_title,
String text)
Parses one entry (one line) of a translation box,
extracts a language and a list of translations (wikified words) for this language,
creates and fills WTranslationEntry.
|
public WTranslationEntry(LanguageType _lang, WikiText[] _phrases)
public LanguageType getLanguage()
public WikiText[] getWikiPhrases()
public void free()
public static WTranslationEntry parse(LanguageType wikt_lang, String page_title, String text)
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'text
- translaton box textCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.