You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
ctparse - Parse natural language time expressions in pytho version:
Python version: 3.9
Operating System: Ubuntu 22.04 (WSL2)
Description
Setting latent_time=False still uses latent rules (e.g. "ruleLatentDOY"), and consequently delivers a DateTime relative to the current one. I would expect that none of the latent rules are considered.
I very much understand your confusion. latent_time=False suggests that this would not apply any latent resolutions.
However, I am afraid that is not how it is meant and implemented. From the docs:
:param latent_time: if True, resolve expressions that contain only a time
(e.g. 8:00 pm) to be the next matching time after
reference time *ts*
This parameter only applies to expressions that contain only a time - that is maybe why we called it latent_time. Our use case when building this was simply that we did not want "pure time" expressions to be grounded to some (in that case arbitrary) date.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Setting
latent_time=False
still uses latent rules (e.g. "ruleLatentDOY"), and consequently delivers a DateTime relative to the current one. I would expect that none of the latent rules are considered.What I Did
I run the following command:
which delivers the following output:
P.S. Thank you for your great work!
The text was updated successfully, but these errors were encountered: