de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.ru
Class WMeaningRu
java.lang.Object
de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.ru.WMeaningRu
public class WMeaningRu
- extends Object
Meaning consists of
# Definition (preceded by "#", which causes automatic numbering).
and Quotations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WMeaningRu
public WMeaningRu()
parse
public static WMeaning[] parse(String page_title,
LanguageType lang_section,
POSText pt)
- Parses text (related to the POS), creates and fill array of meanings (WMeaning).
- Parameters:
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'lang_section
- language of this section of an articlept
- POSText defines POS stored in pt.text
- Returns:
parseOneDefinition
public static WMeaning parseOneDefinition(String page_title,
LanguageType lang_section,
String line)
- Parses one definition line, i.e. extracts {{label}}, definition,
{{example|Quotation sentence.}}, creates and fills a meaning (WMeaning).
- Parameters:
page_title
- word which is described in this article 'text'lang_section
- language of this section of an articleline
- definition line
- Returns:
- WMeaning or null if the line is not started from "#" or = "# "
Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.