Comments (1)
Hi @madukan ,
For the given text "Good morning, Have a nice day. Shall we meet on December 20 between 8 and 9 am ?",
Hawking extracted 2 date texts
1) " on December 20 between 8", 2) "and 9 am"
The response was expected as you mentioned, except for the time.
2024-12-20T08:00:00.000+11:00
2024-12-20T09:00:00.000+11:00
In the current hawking version, "am" mentioned in the 2nd date text could not be mapped to the 1st date text, so the entire day is given as output.
so try with "am" mentioned for both time texts like this
Shall we meet on December 20 between 8 am and 9 am ?
For this input response would be (Note: My machine is running in IST and no Daylight saving time here)
id : 0
text: " on December 20 between 8"
Start: 2024-12-20T08:00:00.000+05:30
End: 2024-12-20T08:00:00.000+05:30
Id: 1
Text: and 9 am
Start: 2024-12-20T09:00:00.000+05:30
End: 2024-12-20T09:00:00.000+05:30
Sequence: MULTIPLE
Expression :(0)between(1)
So here the key "Sequence" is used to understand whether the date/time is a single or multiple date/time. Using this key and the next key "Expression" user can relate both dates using ID and arrive at the date as needed from the response.
Kindly reach us for any further clarifications needed.
from hawking.
Related Issues (12)
- Some observations that failed: HOT 7
- from until parsing HOT 5
- Is there a python wrapper for this ? HOT 1
- A couple of edge cases don't appear to be coming through correctly HOT 4
- Cannot parse: "10/28/2021" or "10-28-2021" HOT 2
- Is there a non-GPL3 option HOT 1
- Relative input truncates the less specific details of start to 0 HOT 1
- Increase In Heap Memory due to "wordToSubstrings" HOT 1
- CVE-2020-15250 vulnerability HOT 1
- Timing issue with parsing strings HOT 7
- A couple of things don't seem quite right HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hawking.