|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.multi.en.WRelationEn
public class WRelationEn
Semantic relations of English Wiktionary word.
http://en.wiktionary.org/wiki/Wiktionary:Semantic_relations
,
http://en.wiktionary.org/wiki/Template_talk:sense
Constructor Summary | |
---|---|
WRelationEn()
|
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 String |
substrTillFirstMatch(String text,
Pattern ptrn1,
Pattern ptrn2)
Gets text till the first match defined by patterns ptrn1 and ptr2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WRelationEn()
Method Detail |
---|
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'lang_section
- language of this section of an articlept
- POSText defines POS stored in pt.textrelation_type
- type of parsing relation, e.g. synonymy
public 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'lang_section
- language of this section of an articletext
- 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. synonymy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |