public class WPOS extends Object
# Meaning (Definition (preceded by "#", which causes automatic numbering) + Quotations). # Semantic relations (synonyms, antonyms, etc.) only for this (first, second...) meaning # TranslationSee http://en.wiktionary.org/wiki/Wiktionary:Entry_layout_explained see wikt.sql.TLangPOS
Constructor and Description |
---|
WPOS() |
Modifier and Type | Method and Description |
---|---|
void |
free()
Frees memory recursively.
|
WMeaning[] |
getAllMeanings()
Gets all senses.
|
Map<Relation,WRelation[]> |
getAllRelations()
Gets all relations.
|
WTranslation[] |
getAllTranslation()
Gets all translations.
|
POS |
getPOS()
Gets part of speech.
|
static WPOS[] |
parse(LanguageType wikt_lang,
String page_title,
LangText lang_section)
Parses text, creates and fills array of meanings (WLanguage),
semantic relations, translations.
|
static POSText[] |
splitToPOSSections(LanguageType wikt_lang,
String page_title,
LangText source_langtext)
Splits text to fragments related to different parts of speech (POS).
|
public POS getPOS()
public WMeaning[] getAllMeanings()
public WTranslation[] getAllTranslation()
public void free()
public static WPOS[] parse(LanguageType wikt_lang, String page_title, LangText lang_section)
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'lang_section
- LangText defines language of this POS stored in "text"public static POSText[] splitToPOSSections(LanguageType wikt_lang, String page_title, LangText source_langtext)
page_title
- word which are described in this article textCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.