3 ms·
A known issue.. have faced this personally long back (had to let it go back then since the use-cases was no more valid) ... but, will this help? https://github
by freakynit 7mo ago
A known issue.. have faced this personally long back (had to let it go back then since the use-cases was no more valid) ... but, will this help?
https://github.com/freakynit/smart-date-parser https://github.com/freakynit/smart-date-parser
This does maintain context based on past successful parses.
Disclaimer: This is fully opus generated, but do have test cases (in usage.js ... i know.. it's not what it's for.. but it is what it is).
- Gyanangshu 7mo agoThanks for sharing this! The context-based approach is interesting. Maintaining state from past successful parses to resolve ambiguity is essentially what we do too, though we batch it (scan first 50 values) rather than doing it incrementally. The incremental approach has the advantage of adapting mid-column if formats shift, which we've seen in datasets that were manually concatenated from different sources. Will take a look at the repo.
- freakynit 7mo agoAll thanks to Opus :)