Repository navigation
[WIP] Parse natural language time - #477
christianfm10 wants to merge 11 commits into
Conversation
55a3322 to
c7239d5
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #477 +/- ##
==========================================
- Coverage 95.21% 92.81% -2.40%
==========================================
Files 302 302
Lines 2506 2506
==========================================
- Hits 2386 2326 -60
- Misses 120 180 +60 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@christianfm10 please be sure to support also days and exactly what was expected by Pawel here: #239 (comment) |
|
@christianfm10 also please check the recommendation of Eugene here: #46 I would actually love to follow that one, as I also agree that having the numbers just thrown there as simplifications shouldn't be the way to go, but every language should be able to define their "numbers" and use them to parse the dates better. Please let me know what do you think and if you think that is the right approach or if we should improve it somehow. Thanks |
|
Regarding #46, it was planned for, and we already have quite a lot of data to cover that (see https://github.com/scrapinghub/dateparser/tree/master/dateparser_data/cldr_language_data/numeral_translation_data). |
Gallaecio
left a comment
There was a problem hiding this comment.
I think we should, after solving conflicts, merge this as is.
This solves the three linked issues (for numbers up to 12). Even if it is not a complete solution for #46, it does not aim to be, and it is an improvement over the current state of things nonetheless.
Regarding @pawelmhm‘s #239 (comment) I think that deserves a separate ticket (if no existing one fits).
|
I think we could proceed with merging this, but shouldn't this: return: ? cc: @Gallaecio |
|
(of course, my last comment assumes that you are trying it before 3 PM) |
|
I agree, although I would not mind opening a separate issue to handle that. |
Fixes #239, fixes #291, fixes #383