You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Name | Info | Demo | Notes | Examples |
---|
chrono | https://github.com/wanasit/chrono | http://jsfiddle.net/TXX3Z | Supports additional parsers and refiners - Parsers:
var christmasParser = new chrono.Parser();
christmasParser.pattern = function () { return /Christmas/i } - Refiners:
var custom = new chrono.Chrono();
custom.refiners.push(guessPMRefiner);
// This will be parsed as PM.
// > Tue Dec 16 2014 14:30:00 GMT-0600 (CST)
custom.parseDate("This is at 2.30"); - Doesn't support recurring temporal or events extraction
- JSON response
| chrono.parseDate('Today'); // Mon Jul 18 2016 12:00:00 ...
chrono.casual.parseDate('Friday'); // Fri Jul 22 2016 12:00:00 ...
chrono.casual.parseDate('Jul 18 2016'); // Mon Jul 18 2016 12:00:00 ... With custom parsers and refiners: custom.parsers.push(christmasParser); custom.parseDate("I'll arrive at 2.30AM on Christmas night") // Sun Dec 25 2016 02:30:00 GMT-0400 (EDT) custom.refiners.push(guessPMRefiner); custom.parseDate("This is at 2.30"); // Mon Jul 18 2016 14:30:00 GMT-0400 (EDT) |
SUTime (Stanford Temporal Tagger) | http://nlp.stanford.edu/software/sutime.shtml | | - Parses 'Today', 'this/next Friday', pattern parsing ('yyyy-dd-mm...')
- Also supports recurring temporal
- Doesn't support events extraction. (i.e. it dumps your trash every Thursday but can't do the same during the World War II or the Great Depression)
- XML response (Timex3 Tag)
| |