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

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

public class WRelation
extends Object

Semantic relations of Wiktionary word. See http://en.wiktionary.org/wiki/Wiktionary:Semantic_relations


Constructor Summary
WRelation(String _meaning_summary, WikiText[] _phrases)
           
 
Method Summary
 void free()
          Frees memory recursively.
 WikiText[] get()
          Gets array of relations (word or phrases).
 String getMeaningSummary()
          Gets a summary of the semantic relation meaning (e.g. title of list of synonyms).
static Map<Relation,WRelation[]> parse(LanguageType wikt_lang, String page_title, LanguageType lang_section, POSText pt)
          Parses text (related to the semantic relations, e.g. synonymy), creates and fills array of related words (WRelation) for each meaning of a word.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WRelation

public WRelation(String _meaning_summary,
                 WikiText[] _phrases)
Method Detail

get

public WikiText[] get()
Gets array of relations (word or phrases).


getMeaningSummary

public String getMeaningSummary()
Gets a summary of the semantic relation meaning (e.g. title of list of synonyms).


free

public void free()
Frees memory recursively.


parse

public static Map<Relation,WRelation[]> parse(LanguageType wikt_lang,
                                              String page_title,
                                              LanguageType lang_section,
                                              POSText pt)
Parses text (related to the semantic relations, e.g. synonymy), creates and fills array of related words (WRelation) for each meaning of a word.

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:


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