de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word
Class WQuote

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.ru.wikokit.base.wikt.word.WQuote

public class WQuote
extends Object

Phrase or sentence that illustrates a meaning of Wiktionary word.


Constructor Summary
WQuote(String _text, String _translation, String _transcription, String _author, String _author_wikilink, String _title, String _title_wikilink, String _publisher, String _source, int _year_from, int _year_to)
          Constructor.
 
Method Summary
 String getAuthor()
          Gets author's name.
 String getAuthorWikilink()
          Gets author's name in Wikipedia (format: [[w:name|]]).
 String getPublisher()
          Gets quote book publisher.
 String getSource()
          Gets quote source.
 String getText()
          Gets definition line of text.
 String getTitle()
          Gets title of the work.
 String getTitleWikilink()
          Gets link to a book in Wikipedia (format: [[w:title|]]),.
 String getTranscription()
          Gets transcription of the example sentence.
 String getTranslation()
          Gets translation of the example sentence into native language.
 int getYearFrom()
          Gets start date of a writing book with the quote.
 int getYearTo()
          Gets finish date of a writing book with the quote.
static String removeHighlightedMarksFromSentence(LanguageType wikt_lang, String text, String start_replacement, String end_replacement)
          Removes highlighted marks from a sentence.
static String transformSentenceText(boolean is_sqlite, LanguageType wikt_lang, String text)
          Additional treatment of the sentence text: English Wiktionary: ?..
static String transformSentenceTextToHTML(boolean is_sqlite, LanguageType wikt_lang, String text)
          Additional treatment of the sentence text: English Wiktionary: ?..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WQuote

public WQuote(String _text,
              String _translation,
              String _transcription,
              String _author,
              String _author_wikilink,
              String _title,
              String _title_wikilink,
              String _publisher,
              String _source,
              int _year_from,
              int _year_to)
Constructor.

Parameters:
_text - text of an example sentence
_translation - translation of the example sentence into native language
_transcription - transcription of the example sentence
_author - author's name,
_author_wikilink - link to author's name in Wikipedia (format: [[w:name|]]),
_title - title of the work
_title_wikilink - link to a book in Wikipedia (format: [[w:title|]]), it could be empty ("")
_publisher - quote book publisher
_source - quote source
_year_from - start date of a writing book with the quote
_year_to - finish date of a writing book with the quote
Method Detail

getText

public String getText()
Gets definition line of text.


getTranslation

public String getTranslation()
Gets translation of the example sentence into native language.


getTranscription

public String getTranscription()
Gets transcription of the example sentence.


getAuthor

public String getAuthor()
Gets author's name.


getAuthorWikilink

public String getAuthorWikilink()
Gets author's name in Wikipedia (format: [[w:name|]]).


getTitle

public String getTitle()
Gets title of the work.


getTitleWikilink

public String getTitleWikilink()
Gets link to a book in Wikipedia (format: [[w:title|]]),.


getPublisher

public String getPublisher()
Gets quote book publisher.


getSource

public String getSource()
Gets quote source.


getYearFrom

public int getYearFrom()
Gets start date of a writing book with the quote.


getYearTo

public int getYearTo()
Gets finish date of a writing book with the quote.


removeHighlightedMarksFromSentence

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


transformSentenceText

public static String transformSentenceText(boolean is_sqlite,
                                           LanguageType wikt_lang,
                                           String text)
Additional treatment of the sentence text: English Wiktionary: ?.. ... Russian Wiktionary: 1)  ,   -> " " 2) {{-}} -> " - "


transformSentenceTextToHTML

public static String transformSentenceTextToHTML(boolean is_sqlite,
                                                 LanguageType wikt_lang,
                                                 String text)
Additional treatment of the sentence text: English Wiktionary: ?.. ... Russian Wiktionary: 1)  ,   -> the same 2) {{-}} -> " — "



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