public class WRelationEn extends Object
Constructor and Description |
---|
WRelationEn() |
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 String |
substrTillFirstMatch(String text,
Pattern ptrn1,
Pattern ptrn2)
Gets text till the first match defined by patterns ptrn1 and ptr2.
|
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 String substrTillFirstMatch(String text, Pattern ptrn1, Pattern ptrn2)
public 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. synonymyCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.