|
||||||||||
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.WTranslation
public class WTranslation
Translations of Wiktionary word. Quote from http://en.wiktionary.org/wiki/Wiktionary:Entry_layout_explained: The translation section is separated into a number of divisions that are keyed to the various meanings of the English word. Each division is separated into a distinct collapsible navigation box by use of the translation section templates. The boxes are each headed by a summary of the translated meaning.
Constructor Summary | |
---|---|
WTranslation(String _meaning_summary,
WTranslationEntry[] _entry)
|
Method Summary | |
---|---|
void |
free()
Frees memory recursively. |
String |
getHeader()
Gets a summary of the translated meaning, i.e. a header of the box. |
WikiText[] |
getTranslationIntoLanguage(LanguageType lang)
Gets translation entries into the languages 'lang'. |
WTranslationEntry[] |
getTranslations()
Gets translation entries into all languages. |
int |
getTranslationsNumber()
Gets number of translation entries. |
static WTranslation[] |
parse(LanguageType wikt_lang,
String page_title,
LanguageType lang_section,
POSText pt)
Parses text (related to the Translation), creates and fills array of translations (WTranslation) for each meaning of a word. |
static WTranslation |
parseOneTranslationBox(LanguageType wikt_lang,
String page_title,
String line)
Parses one translation box, i.e. extracts languages and a list of translations (wikified words) for each language, creates and fills WTranslation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WTranslation(String _meaning_summary, WTranslationEntry[] _entry)
Method Detail |
---|
public String getHeader()
public WTranslationEntry[] getTranslations()
public int getTranslationsNumber()
public WikiText[] getTranslationIntoLanguage(LanguageType lang)
public void free()
public static WTranslation[] parse(LanguageType wikt_lang, String page_title, LanguageType lang_section, POSText pt)
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'lang_section
- language of this section of an articlept
- POSText defines POS stored in pt.text
public static WTranslation parseOneTranslationBox(LanguageType wikt_lang, String page_title, String line)
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'line
- definition line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |