public class WTranslationRu extends Object
Constructor and Description |
---|
WTranslationRu() |
Modifier and Type | Method and Description |
---|---|
static boolean |
allTranslationsHaveHeader(List<WTranslation> wt_list)
Checks, wheather all the translation boxes have headers.
|
static boolean |
atLeastOneTranslationExists(List<WTranslation> wt_list)
Returens true, if there is at least one translation entry
in any of the translation boxes.
|
static WTranslation[] |
parse(LanguageType wikt_lang,
LanguageType lang_section,
String page_title,
POSText pt)
Parses text (related to the POS), creates and fill array of translations (WTranslation).
|
static WTranslation |
parseOneTranslationBox(LanguageType wikt_lang,
String page_title,
String text)
Parses one translation box, i.e.
|
public static WTranslation[] parse(LanguageType wikt_lang, LanguageType lang_section, String page_title, 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.textpublic static boolean allTranslationsHaveHeader(List<WTranslation> wt_list)
public static boolean atLeastOneTranslationExists(List<WTranslation> wt_list)
public static WTranslation parseOneTranslationBox(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.