de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.en
Class WMeaningEn

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.en.WMeaningEn

public class WMeaningEn
extends Object

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

WMeaningEn

public WMeaningEn()
Method Detail

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 Wiktionary
page_title - word which are described in this article 'text'
lang_section - language of this section of an article
pt - POSText defines POS stored in pt.text
Returns:

isFormOfTemplate

public static boolean isFormOfTemplate(String line)
Checks: whether the definition "text" is one of "form of" templates, e.g.

"{{comparative of|}}

Parameters:
line - one line definition (without \n newline symbols)
Returns:
true, if the "line" is a "form of" template
See Also:
http://en.wiktionary.org/wiki/Category:Form_of_templates

containsFormOfTemplate

public 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.

"Plural form of xilologico" or "{{comparative of|" or

"# {{plural past participle of|}}"

Parameters:
line - one line definition (without \n newline symbols)
See Also:
http://en.wiktionary.org/wiki/Category:Form_of_templates

containsFormOf

public 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.

"Plural form of xilologico" or "{{comparative of|" or

"# {{plural past participle of|}}"

Parameters:
line - one line definition (without \n newline symbols)

parseOneDefinition

public 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. , creates and fills a meaning (WMeaning).

Parameters:
wikt_lang - language of Wiktionary
page_title - word which are described in the definition 'text'
lang_section - language of this section of an article
text - text with one definition
Returns:
WMeaning or null if the line is not started from "#" or = "# "


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.