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

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

public class YearsRange
extends Object

Years period in the quotation phrase / sentence.


Field Summary
 int year_from
          Start date of a writing book with the quote, if there is no information about date then -1.
 int year_to
          Finish date of a writing book with the quote, if there is no information about date then -1.
 
Constructor Summary
YearsRange()
           
 
Method Summary
 void parseYearsRange(String page_title, String text)
          Parses source text (e.g. "1882-1883"), stores years to year_from and year_to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

year_from

public int year_from
Start date of a writing book with the quote, if there is no information about date then -1.


year_to

public int year_to
Finish date of a writing book with the quote, if there is no information about date then -1.

Constructor Detail

YearsRange

public YearsRange()
Method Detail

parseYearsRange

public void parseYearsRange(String page_title,
                            String text)
Parses source text (e.g. "1882-1883"), stores years to year_from and year_to. Store results to year_from and year_to. If there is only one year, e.g. "1972", then year_from=year_to. If text was not parsed successfully, then year_from=year_to=-1.



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