-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Reimplementing search_dates
#945
base: master
Are you sure you want to change the base?
Conversation
Hi, I need a suggestion should I use translated chunks or the original chunks to further parse the data objects. I have currently used translated chunks instead of original chunks as this increased accuracy in some basic tests. Thanks, and please suggest. |
search_dates
& fixing search translation
Hi @gavishpoddar, using |
Codecov ReportBase: 98.23% // Head: 98.10% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #945 +/- ##
==========================================
- Coverage 98.23% 98.10% -0.13%
==========================================
Files 232 235 +3
Lines 2604 2692 +88
==========================================
+ Hits 2558 2641 +83
- Misses 46 51 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Hi @noviluni, I have made the changes for tests to work. Can you please approve the workflow approval? |
@gavishpoddar workflows approved 👍 |
I need help with one test
|
Hi after some changes the codes are very much compatible with the old Currently, this PR is left with some docs changes (just replacing the current with new docs and |
search_dates
& fixing search translationsearch_dates
& fixing search translation
Replaced previous |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gavishpoddar , I left some comments regarding tests. Please tell if you need advice with how to implement xfail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gavishpoddar a few docs suggestions
Co-authored-by: Konstantin Lopuhin <[email protected]>
Hey, this PR is updated with the #932 |
Hi @gavishpoddar, I found your PR to improve the behavior of Is there anything I can do to help get this PR merged? |
def __init__(self): | ||
self.loader = LocaleDataLoader() | ||
self.available_language_map = self.loader.get_locale_map() | ||
self.search = _ExactLanguageSearch(self.loader) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of DateSearchWithDetection.search
is backward-incompatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can create a shortcut the make DateSearchWithDetection.search
and add a deprecation warning or simply rename.
Please suggest a preferred action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think keeping the old objects around with their old names, logging a warning when used (i.e. by exposing them through a property whose getter logs a warning), would be ideal.
search_dates
search_dates
Reimplementing and simplifying
search_dates
A reimplemented and simplified
search_dates
which more directly usesdateparser.parse
, improves accuracy and fixes many bugsNew Feature:
search_first_date
- searches and returns the first date from the given text.NOTE: This PR is inspired by the previous implementation of search_dates and #931.
TODO
DATE_ORDER