|
||||||||||
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.multi.en.WMeaningEn
public class WMeaningEn
Meaning consists of
# Definition (preceded by "#", which causes automatic numbering). and Quotations.
Constructor Summary | |
---|---|
WMeaningEn()
|
Method Summary | |
---|---|
static boolean |
containsFormOf(String line)
Checks: whether the definition ("# $line") contains one of "form of" (i.e. templates or explicit description of the word form), e.g. |
static boolean |
containsFormOfTemplate(String line)
Checks: whether the definition ("# $line") contains one of "form of" (i.e. templates or explicit description of the word form), e.g. |
static boolean |
isFormOfTemplate(String line)
Checks: whether the definition "text" is one of "form of" templates, e.g. |
static WMeaning[] |
parse(String page_title,
LanguageType lang_section,
POSText pt)
Parses text (related to the POS), creates and fill array of meanings (WMeaning). |
static WMeaning |
parseOneDefinition(String page_title,
LanguageType lang_section,
String text)
Parses (usually) two lines: definition line and quotation line, i.e. extracts {{label}}, # definition, and #: Quotation sentence. with #:: Translation sentence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WMeaningEn()
Method Detail |
---|
public static WMeaning[] parse(String page_title, LanguageType lang_section, POSText pt)
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
public static boolean isFormOfTemplate(String line)
line
- one line definition (without \n newline symbols)
http://en.wiktionary.org/wiki/Category:Form_of_templates
public static boolean containsFormOfTemplate(String line)
line
- one line definition (without \n newline symbols)http://en.wiktionary.org/wiki/Category:Form_of_templates
public static boolean containsFormOf(String line)
line
- one line definition (without \n newline symbols)public static WMeaning parseOneDefinition(String page_title, LanguageType lang_section, String text)
wikt_lang
- language of Wiktionarypage_title
- word which are described in the definition 'text'lang_section
- language of this section of an articletext
- text with one definition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |