|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word.WLanguage
public class WLanguage
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==
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 |
---|
public WLanguage()
Method Detail |
---|
public LanguageType getLanguage()
public WPOS[] getAllPOS()
public void free()
public static WLanguage[] parse(LanguageType wikt_lang, String page_title, StringBuffer text)
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'text
-
public static LangText[] splitToLanguageSections(LanguageType wikt_lang, String page_title, StringBuffer text)
page_title
- word which are described in this article textwikt_lang
- language of Wiktionarypublic static boolean hasOnlyTemplatesWithoutDefinitions(LanguageType wikt_lang, WLanguage[] lang)
lang
- parsed entry stored into the array of objects WLanguagewikt_lang
- language of Wiktionary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |