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

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

public class WRelationRu
extends Object

Semantic relations of Russian Wiktionary word.

See Also:
оформления статей#Оформление семантических отношений

Constructor Summary
WRelationRu()
           
 
Method Summary
static Map<Relation,WRelation[]> parse(LanguageType wikt_lang, String page_title, POSText pt)
          Parses text (related to the POS), creates and fill array of semantic relations (WRelation).
static WRelation[] parseOneKindOfRelation(LanguageType wikt_lang, String page_title, String text, Pattern relation_header_pattern, Relation relation)
          Parses text (related to the POS), creates and fill array of semantic relations only for one kind of semantic relations (e.g. synonyms) defined by the variable 'relation'.
static WRelation parseOneLine(String page_title, String text)
          Parses one line of a semantic relations, extracts a list of words (wikified words), creates and fills WRelation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WRelationRu

public WRelationRu()
Method Detail

parse

public static Map<Relation,WRelation[]> parse(LanguageType wikt_lang,
                                              String page_title,
                                              POSText pt)
Parses text (related to the POS), creates and fill array of semantic relations (WRelation).

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
relation_type - type of parsing relation, e.g. synonymy
Returns:

parseOneKindOfRelation

public static WRelation[] parseOneKindOfRelation(LanguageType wikt_lang,
                                                 String page_title,
                                                 String text,
                                                 Pattern relation_header_pattern,
                                                 Relation relation)
Parses text (related to the POS), creates and fill array of semantic relations only for one kind of semantic relations (e.g. synonyms) defined by the variable 'relation'.

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
text - text of wiki article related to one POS
relation_header_pattern - regular expression to find the header of semantic relation
relation - type of parsing relation, e.g. synonymy
Returns:
an empty array if relations are absent

parseOneLine

public static WRelation parseOneLine(String page_title,
                                     String text)
Parses one line of a semantic relations, extracts a list of words (wikified words), creates and fills WRelation.

Parameters:
page_title - word which are described in this article 'text'
text - semantic relation text line (e.g. list of synonyms)
Returns:
WRelation or null if the list of semantic relations is empty or equal "-".


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