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

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

public class WQuoteRu
extends Object

Phrase or sentence that illustrates a meaning of a word in Russian Wiktionary.


Constructor Summary
WQuoteRu()
           
 
Method Summary
static String getDefinitionBeforeFirstQuote(String page_title, String text)
          Gets, extracts from 'text' a definition till first example sentence starting from {{пример|.
static WQuote[] getQuotes(String page_title, String text)
          Extracts quotations from 'text' after the definition, each quotation starts from "{{пример|".
static String removeHighlightedMarksFromSentence(String str, String start_replacement, String end_replacement)
          Removes highlighted marks from a sentence. 1) Sentence with '''words'''. -> Sentence with words. 2) Sentence with {{выдел|words}}. -> Sentence with words.
static String transformSentenceText(boolean is_sqlite, String str)
          Additional treatment of the sentence text: 1)  ,   -> " " 2) {{-}} -> " - " 3) poetry: "//" -> "\n"
static String transformSentenceTextToHTML(boolean is_sqlite, String str)
          Additional treatment of the sentence text: 1)  ,   -> " " 2) {{-}} -> " — " @see ru.wiktionary.org/wiki/template:- 3) poetry: "//" -> "
"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WQuoteRu

public WQuoteRu()
Method Detail

getDefinitionBeforeFirstQuote

public static String getDefinitionBeforeFirstQuote(String page_title,
                                                   String text)
Gets, extracts from 'text' a definition till first example sentence starting from {{пример|.


removeHighlightedMarksFromSentence

public static String removeHighlightedMarksFromSentence(String str,
                                                        String start_replacement,
                                                        String end_replacement)
Removes highlighted marks from a sentence. 1) Sentence with '''words'''. -> Sentence with words. 2) Sentence with {{выдел|words}}. -> Sentence with words.


transformSentenceText

public static String transformSentenceText(boolean is_sqlite,
                                           String str)
Additional treatment of the sentence text: 1)  ,   -> " " 2) {{-}} -> " - " 3) poetry: "//" -> "\n"


transformSentenceTextToHTML

public static String transformSentenceTextToHTML(boolean is_sqlite,
                                                 String str)
Additional treatment of the sentence text: 1)  ,   -> " " 2) {{-}} -> " — " @see ru.wiktionary.org/wiki/template:- 3) poetry: "//" -> "
"


getQuotes

public static WQuote[] getQuotes(String page_title,
                                 String text)
Extracts quotations from 'text' after the definition, each quotation starts from "{{пример|".



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