3 ms·
Interesting. However it doesn't solve what I would argue is the harder problem of how to identify a time in the document. For example as I write this HN url sa
by boyter 12y ago
Interesting. However it doesn't solve what I would argue is the harder problem of how to identify a time in the document.
For example as I write this HN url says that it is 8 hours old. Without knowing the exact format how can I extract these sort of dates out of random text/html documents?
- jnazario 12y agocheck out the NLP support in parsedatetime. https://github.com/bear/parsedatetime/blob/master/parsedatetime/tests/TestNlp.py may be what you're after.
- brendano 12y agoThis is a hard problem -- there's a bunch of research in NLP on it, where it's sometimes called temporal tagging. HeidelTime is a system that does this; some examples on their webpage, https://code.google.com/p/heideltime/ https://code.google.com/p/heideltime/