public class WRelationRu extends Object
Constructor and Description |
---|
WRelationRu() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
public static Map<Relation,WRelation[]> parse(LanguageType wikt_lang, String page_title, POSText pt)
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'pt
- POSText defines POS stored in pt.textpublic static WRelation[] parseOneKindOfRelation(LanguageType wikt_lang, String page_title, String text, Pattern relation_header_pattern, Relation relation)
wikt_lang
- language of Wiktionarypage_title
- word which are described in this article 'text'text
- text of wiki article related to one POSrelation_header_pattern
- regular expression to find the header of semantic relationrelation
- type of parsing relation, e.g. synonymypublic static WRelation parseOneLine(String page_title, String text)
page_title
- word which are described in this article 'text'text
- semantic relation text line (e.g. list of synonyms)Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.