de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word
Class WPOS

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word.WPOS

public class WPOS
extends Object

Part of Speech may be a misnomer... It is the key descriptor for the lexical function of the term in question (such as 'noun', 'verb', etc). The definitions themselves come within its scope. In addition to the traditional “parts of speech” it has come to include entities that are less than words, such as initialisms and suffixes, and items that are more than words, such as idiomatic expressions, phrases and proverbs. This heading is nestable. It is most frequently in a level three heading, but may have a lower level for terms that have multiple etymologies or pronunciations. WPOS consists of

 # Meaning (Definition (preceded by "#", which causes automatic numbering) + Quotations).
 # Semantic relations (synonyms, antonyms, etc.) only for this (first, second...) meaning
 # Translation        
See http://en.wiktionary.org/wiki/Wiktionary:Entry_layout_explained

See Also:
wikt.sql.TLangPOS

Constructor Summary
WPOS()
           
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WPOS

public WPOS()
Method Detail

getPOS

public POS getPOS()
Gets part of speech.


getAllMeanings

public WMeaning[] getAllMeanings()
Gets all senses.


getAllRelations

public Map<Relation,WRelation[]> getAllRelations()
Gets all relations.


getAllTranslation

public WTranslation[] getAllTranslation()
Gets all translations.


free

public void free()
Frees memory recursively.


parse

public static WPOS[] parse(LanguageType wikt_lang,
                           String page_title,
                           LangText lang_section)
Parses text, creates and fills array of meanings (WLanguage), semantic relations, translations.

Parameters:
wikt_lang - language of Wiktionary
page_title - word which are described in this article 'text'
text - LangText defines language of this POS stored in "text"
Returns:

splitToPOSSections

public static POSText[] splitToPOSSections(LanguageType wikt_lang,
                                           String page_title,
                                           LangText source_langtext)
Splits text to fragments related to different parts of speech (POS).

Parameters:
page_title - word which are described in this article text


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