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

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

public class WLanguage
extends Object

Language lets you know the language of the word in question. It is almost always in a level two heading. E.g. ==English== or {{-ru-}} Exception: ==Translingual==

See Also:
and http://ru.wiktionary.org/wiki/Викисловарь:Правила оформления статей

Constructor Summary
WLanguage()
           
 
Method Summary
 void free()
          Frees memory recursively.
 WPOS[] getAllPOS()
          Gets all parts of speech for this word.
 LanguageType getLanguage()
          Gets language.
static boolean hasOnlyTemplatesWithoutDefinitions(LanguageType wikt_lang, WLanguage[] lang)
          True if the meaning section contains only templates (e.g.
static WLanguage[] parse(LanguageType wikt_lang, String page_title, StringBuffer text)
          Parses text, creates and fills array of homonym (WLanguage) for each language
static LangText[] splitToLanguageSections(LanguageType wikt_lang, String page_title, StringBuffer text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WLanguage

public WLanguage()
Method Detail

getLanguage

public LanguageType getLanguage()
Gets language.


getAllPOS

public WPOS[] getAllPOS()
Gets all parts of speech for this word.


free

public void free()
Frees memory recursively.


parse

public static WLanguage[] parse(LanguageType wikt_lang,
                                String page_title,
                                StringBuffer text)
Parses text, creates and fills array of homonym (WLanguage) for each language

Parameters:
wikt_lang - language of Wiktionary
page_title - word which are described in this article 'text'
text -
Returns:

splitToLanguageSections

public static LangText[] splitToLanguageSections(LanguageType wikt_lang,
                                                 String page_title,
                                                 StringBuffer text)
Parameters:
page_title - word which are described in this article text
wikt_lang - language of Wiktionary

hasOnlyTemplatesWithoutDefinitions

public static boolean hasOnlyTemplatesWithoutDefinitions(LanguageType wikt_lang,
                                                         WLanguage[] lang)
True if the meaning section contains only templates (e.g. {{form of|}} or {{plural of|}}), i.e. there are no any real definitions, there are only references to main (normal) forms of the word.

Parameters:
lang - parsed entry stored into the array of objects WLanguage
wikt_lang - language of Wiktionary


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