|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word.WTranslationEntry
public class WTranslationEntry
One line in the Translation section, i.e. a translation to one language.
Constructor Summary | |
---|---|
WTranslationEntry(LanguageType _lang,
WikiText[] _phrases)
|
Method Summary | |
---|---|
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. words with hyperlinks). |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WTranslationEntry(LanguageType _lang, WikiText[] _phrases)
Method Detail |
---|
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 text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |