Giter Club home page Giter Club logo

Comments (1)

ArulVendhan avatar ArulVendhan commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.