de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.ru
Class WTranslationRu

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.ru.WTranslationRu

public class WTranslationRu
extends Object

Translations of Russian Wiktionary word.

See Also:
оформления статей#Перевод

Constructor Summary
WTranslationRu()
           
 
Method Summary
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. 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

WTranslationRu

public WTranslationRu()
Method Detail

parse

public 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).

Parameters:
wikt_lang - language of Wiktionary
page_title - word which are described in this article 'text'
lang_section - language of this section of an article
pt - POSText defines POS stored in pt.text
Returns:

allTranslationsHaveHeader

public static boolean allTranslationsHaveHeader(List<WTranslation> wt_list)
Checks, wheather all the translation boxes have headers.


atLeastOneTranslationExists

public static boolean atLeastOneTranslationExists(List<WTranslation> wt_list)
Returens true, if there is at least one translation entry in any of the translation boxes.


parseOneTranslationBox

public static WTranslation parseOneTranslationBox(LanguageType wikt_lang,
                                                  String page_title,
                                                  String text)
Parses one translation box, i.e. extracts languages and a list of translations (wikified words) for each language, creates and fills WTranslation.

Parameters:
wikt_lang - language of Wiktionary
page_title - word which are described in this article 'text'
text - translaton box text
Returns:
WTranslation or null if the translation text block was not found.


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.