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
i encountered the same problem when trying the example from the website:
List<Date> dates = new PrettyTimeParser().parse("I'm going to the beach in three days!");
it actually parses the date wrong (giving me current day at 3 o'clock instead) when there is another symbol attached to the "days". Without any punctuation it works fine.
The underlying parser library com.joestelmach/natty seems to be outdated since the latest version of natty can parse words connected to punctuation whereas the natty code that comes with prettytime-nlp:4.1.0 doesn't parse this correctly.
Issue cleanup Thanks for filing this issue. We are cleaning old issues from the repository. If the issue is still reproducible, please re-open with a test case to reproduce the behavior.
Sometimes ago is not interpreted correctly, and the date is calculated into the future instead of the past.
The text was updated successfully, but these errors were encountered: