HeidelTime / heideltime

A multilingual, cross-domain temporal tagger developed at the Database Systems Research Group at Heidelberg University.
GNU General Public License v3.0
343 stars 67 forks source link

Name "May" recognized as month in german #69

Open kno10 opened 6 years ago

kno10 commented 6 years ago

Example texts:

Mrs May praised the "uniquely close relationship" between the two nations.

May entgegnete, sie akzeptiere, dass ihr Land nach dem Brexit "kein vollständiges Mitglied" des EU-Binnenmarkts mehr sein werde. Aber es sei in beiderseitigem Interesse, "weiterhin gute Wirtschaftsbeziehungen zu haben".

Another famous May:

Ab 1856 studierte May als Proseminarist am Lehrerseminar in Waldenburg. Dort wurde er im Januar 1860 wegen Unterschlagung von sechs Kerzen ausgeschlossen.

We should add some rule to prevent this kind of matches; in particular since the month is written "Mai" in German. But above is also an English example.

JannikStroetgen commented 6 years ago

You are right. We added "May" in the context of processing historic German literature - but it's probably not a good idea. I planned to have a rule forbidding matches of ambiguous terms on their own, i.e., to allow "May 2000" but not just "May" - the same my also hold for "August" if there is no temporal signal before or any other time-related patterns with which it can be combined.

I hope to find some time in February to integrate a couple of things in a new HeidelTime release...