public class WMeaningEn extends Object
# Definition (preceded by "#", which causes automatic numbering). and Quotations.
Constructor and Description |
---|
WMeaningEn() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsFormOf(String line)
Checks: whether the definition ("# $line") contains one of "form of"
(i.e.
|
static boolean |
containsFormOfTemplate(String line)
Checks: whether the definition ("# $line") contains one of "form of"
(i.e.
|
static boolean |
isFormOfTemplate(String line)
Checks: whether the definition "text" is one of "form of" templates,
e.g.
"{{comparative of|}} |
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.
|
public static WMeaning[] parse(String page_title, LanguageType lang_section, POSText pt)
page_title
- word which are described in this article 'text'lang_section
- language of this section of an articlept
- POSText defines POS stored in pt.textpublic static boolean isFormOfTemplate(String line)
line
- one line definition (without \n newline symbols)public static boolean containsFormOfTemplate(String line)
line
- one line definition (without \n newline symbols)
see http://en.wiktionary.org/wiki/Category:Form_of_templatespublic 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)
page_title
- word which are described in the definition 'text'lang_section
- language of this section of an articletext
- text with one definitionCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.