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

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

public class WTranslationEntryEn
extends Object

One line in the Translation section, i.e. a translation to one language, e.g. "* Latvian: {{t|lt|oranžs}}".


Constructor Summary
WTranslationEntryEn()
           
 
Method Summary
static WTranslationEntry parse(String page_title, String text)
          Parses one entry (one line) of a translation box, extracts a language and a list of translations from template (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

WTranslationEntryEn

public WTranslationEntryEn()
Method Detail

parse

public static WTranslationEntry parse(String page_title,
                                      String text)
Parses one entry (one line) of a translation box, extracts a language and a list of translations from template (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:
WTranslationEntry or null if the translation language or translation text are absent.
See Also:
http://en.wiktionary.org/wiki/Template_talk:t#Documentation


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