Open KalakondaKrish opened 1 year ago
I am using seach_dates in dateparser.search to extract dates and times. I am using this script to get the datetime.
PARSED_DATES_SETTINGS = {'DEFAULT_LANGUAGES': ["en"], "TO_TIMEZONE": "UTC", "PREFER_DATES_FROM": "future", "SKIP_TOKENS": ['time', 'per', 'sam', 'or', 'any', 'no', 'at', 'set', 'sec', 'man', 'to', 'did', 'her', 'api', 'be', 'are', 'see', 'more', 'can', 'out', 'a', 'now', 'do', 'so', 'on', '1:1', 'second','seconds', 'minute','minutes', 'me', 'an', 'am'], } text="call me next tuesday" dt=search_dates(text=text,settings=PARSED_DATES_SETTINGS)[0][1] dt
When the time information is not present in the text, it is giving the UTC time as 18:30. But, I would expect it to give time as 00:00 since time is not present.
I am using seach_dates in dateparser.search to extract dates and times. I am using this script to get the datetime.
When the time information is not present in the text, it is giving the UTC time as 18:30. But, I would expect it to give time as 00:00 since time is not present.