public class WQuoteRu extends Object
Constructor and Description |
---|
WQuoteRu() |
Modifier and Type | Method and Description |
---|---|
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.
|
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: "//" -> "
" |
public static String getDefinitionBeforeFirstQuote(String page_title, String text)
public static String removeHighlightedMarksFromSentence(String str, String start_replacement, String end_replacement)
public static String transformSentenceText(boolean is_sqlite, String str)
public static String transformSentenceTextToHTML(boolean is_sqlite, String str)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.