Skip to content

Commit

Permalink
Apparently MDT is too ambiguous to expect SUTime to get a canonical t…
Browse files Browse the repository at this point in the history
…ime zone, unless we add our own locale-aware time zone disambiguator. https://stackoverflow.com/questions/79116972
  • Loading branch information
AngledLuffa committed Oct 23, 2024
1 parent c55691c commit cfa4349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions itest/src/edu/stanford/nlp/time/SUTimeITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public void testSUIsoWithTimezone() throws IOException {
"ISO datetime is 2004-03-04T18:32:56 Eastern Standard Time.\n" +
"Time is 4:30pm Mountain Time.\n" + // not recognized ?
"Time is 9:30 am Pacific Time.\n" +
"ISO time is T13:23:42 MDT.\n" +
"ISO time is T13:23:42 America/Denver.\n" +
"It is 8:43 PST on 6/12/2008.\n" +
"It is 6:53:32 PDT on 7-16-2010.\n" +
"ISO partial datetime 2008-05-16T09 Beijing Time.\n" +
Expand All @@ -362,7 +362,7 @@ public void testSUIsoWithTimezone() throws IOException {
Timex.fromXml("<TIMEX3 tid=\"t2\" value=\"2004-03-04T18:32:56-0500\" type=\"TIME\">2004-03-04T18:32:56 Eastern Standard Time</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t3\" value=\"T16:30\" type=\"TIME\">4:30pm</TIMEX3>"), // TODO: Mountain Time
Timex.fromXml("<TIMEX3 tid=\"t4\" value=\"T09:30\" type=\"TIME\">9:30 am</TIMEX3>"),// TODO: Pacific Time
Timex.fromXml("<TIMEX3 tid=\"t5\" value=\"T13:23:42-0700\" type=\"TIME\">T13:23:42 MDT</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t5\" value=\"T13:23:42-0700\" type=\"TIME\">T13:23:42 America/Denver</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t6\" value=\"2008-06-12T08:43-0800\" type=\"TIME\">8:43 PST on 6/12/2008</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t7\" value=\"2010-07-16T06:53:32-0800\" type=\"TIME\">6:53:32 PDT on 7-16-2010</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t8\" value=\"2008-05-16T09\" type=\"TIME\">2008-05-16T09</TIMEX3>"), // TODO: Beijing Time
Expand All @@ -382,7 +382,7 @@ public void testSUIsoWithTimezone() throws IOException {
Timex.fromXml("<TIMEX3 tid=\"t2\" value=\"2004-03-04T18:32:56-0500\" type=\"TIME\">2004-03-04T18:32:56 Eastern Standard Time</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t3\" value=\"2010-02-17T16:30\" type=\"TIME\">4:30pm</TIMEX3>"), // TODO: Mountain Time
Timex.fromXml("<TIMEX3 tid=\"t4\" value=\"2010-02-17T09:30\" type=\"TIME\">9:30 am</TIMEX3>"),// TODO: Pacific Time
Timex.fromXml("<TIMEX3 tid=\"t5\" value=\"2010-02-17T13:23:42-0700\" type=\"TIME\">T13:23:42 MDT</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t5\" value=\"2010-02-17T13:23:42-0700\" type=\"TIME\">T13:23:42 America/Denver</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t6\" value=\"2008-06-12T08:43-0800\" type=\"TIME\">8:43 PST on 6/12/2008</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t7\" value=\"2010-07-16T06:53:32-0800\" type=\"TIME\">6:53:32 PDT on 7-16-2010</TIMEX3>"),
Timex.fromXml("<TIMEX3 tid=\"t8\" value=\"2008-05-16T09\" type=\"TIME\">2008-05-16T09</TIMEX3>"), // TODO: Beijing Time
Expand Down

0 comments on commit cfa4349

Please sign in to comment.