japerk / nltk-extras

Extra modules for using nltk.

Clone this repository (size: 22.8 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/japerk/nltk-extras/
commit 9: cdc1468c8f6f
parent 8: 5b147bd79685
branch: default
tags: tip
parse a.m./p.m.
Jacob Perkins / japerk
8 months ago

Changed (Δ18 bytes):

raw changeset »

recurrenceparser.py (1 lines added, 1 lines removed)

Up to file-list recurrenceparser.py:

@@ -19,7 +19,7 @@ twodays := ts, singleday, ts, an
19
19
dayrange       :=  ts, singleday, ts, throughOP, ts, singleday, ts
20
20
21
21
timerange      :=  ts, time, ts, throughOP, ts, time
22
time           :=  ts, number, (ts, ':', ts, number)?, ts, ('am' / 'pm')?
22
time           :=  ts, number, (ts, ':', ts, number)?, ts, ('am' / 'pm' / 'a.m.' / 'p.m.')?
23
23
24
24
throughOP      :=  'through' / '-'
25
25
andOP          :=  'and'