de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word
Class WTranslationEntry

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word.WTranslationEntry

public class WTranslationEntry
extends Object

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

WTranslationEntry

public WTranslationEntry(LanguageType _lang,
                         WikiText[] _phrases)
Method Detail

getLanguage

public LanguageType getLanguage()
Gets a destination language of the translation.


getWikiPhrases

public WikiText[] getWikiPhrases()
Gets array of internal links (wiki words, i.e. words with hyperlinks).


free

public void free()
Frees memory recursively.


parse

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

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 language or translation text are absent.


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