Fix string interpolation in times

This commit is contained in:
ines 2017-05-08 16:38:16 +02:00
parent b9ba58ba5c
commit 6025cdb992
2 changed files with 8 additions and 10 deletions

View File

@ -279,14 +279,13 @@ for exc_data in [
# Times
for h in range(1, 12 + 1):
hour = str(h)
for period in ["a.m.", "am"]:
_exc[hour+period] = [
{ORTH: hour},
_exc["%d%s" % (h, period)] = [
{ORTH: "%d" % h},
{ORTH: period, LEMMA: "a.m."}]
for period in ["p.m.", "pm"]:
_exc[hour+period] = [
{ORTH: hour},
_exc["%d%s" % (h, period)] = [
{ORTH: "%d" % h},
{ORTH: period, LEMMA: "p.m."}]

View File

@ -61,14 +61,13 @@ _exc["12m."] = [
for h in range(1, 12 + 1):
hour = str(h)
for period in ["a.m.", "am"]:
_exc[hour+period] = [
{ORTH: hour},
_exc["%d%s" % (h, period)] = [
{ORTH: "%d" % h},
{ORTH: period, LEMMA: "a.m."}]
for period in ["p.m.", "pm"]:
_exc[hour+period] = [
{ORTH: hour},
_exc["%d%s" % (h, period)] = [
{ORTH: "%d" % h},
{ORTH: period, LEMMA: "p.m."}]