| Trees | Indices | Help |
|
|---|
|
|
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Class Variables | |
bce =
|
|
calendar_to_int =
|
|
french_to_int =
|
|
hebrew_to_int =
|
|
islamic_to_int =
|
|
modifier_after_to_int =
|
|
modifier_to_int =
|
|
month_to_int =
|
|
persian_to_int =
|
|
quality_to_int =
|
|
| Method Details |
This method compiles regular expression strings for matching dates. Most of the re's in most languages can stay as is. span and range most likely will need to change. Whatever change is done, this method may be called first as DateParser.init_strings(self) so that the invariant expresions don't need to be repeteadly coded. All differences can be coded after DateParser.init_strings(self) call, that way they override stuff from this method. See DateParserRU() as an example. |
Try matching BCE qualifier. Return BCE (True/False) and the text with matched part removed. |
Try parsing calendar. Return calendar index and the text with calendar removed. |
Try matching date with modifier. On success, set the date and return 1. On failure return 0. |
Try matching quality. Return quality index and the text with quality removed. |
Try matching range date. On success, set the date and return 1. On failure return 0. |
Try matching span date. On success, set the date and return 1. On failure return 0. |
|
| Class Variable Details |
calendar_to_int
|
french_to_int
|
hebrew_to_int
|
islamic_to_int
|
modifier_to_int
|
month_to_int
|
persian_to_int
|
quality_to_int
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Jun 7 21:46:10 2007 | http://epydoc.sourceforge.net |