Does anyone know of a library – ideally Python, that can have a stab at pulling dates out of text?
“Shall we go to the library today” -> 21 Jan 10
“Starting on the 1st of January” -> 1 Jan 10
“Anytime between 3nd and 5th of Feb 2009” -> 3 Feb 09, 5 Feb 09
It’s a tough problem and probably why I havn’t found anything!
Already using NLTK by the way if that helps.
The PyParsing site has a little bonus script for parsing time expressions. I would say that is worth a look for you!
Edit: I see you already ended up there as I was typing my suggestion. Good luck to you!