public class WLanguage extends Object
Constructor and Description |
---|
WLanguage() |
Modifier and Type | Method and Description |
---|---|
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) |
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 WiktionaryCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.