|
||||||||||
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.ru.WRelationRu
public class WRelationRu
Semantic relations of Russian Wiktionary word.
оформления статей#Оформление семантических отношений
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 |
---|
public WRelationRu()
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 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
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |