Code Monkey home page Code Monkey logo

chatbotbackendsupport's Introduction

How to represent Time traditionally?

  1. Minutes/Quarter/Half (To/Past) Hour Example: five past three (3.05)

  2. Hour : Minute a) Hour Minute (am or pm) Example: Three ten 3:10 4:05 pm

  3. Hour a) Hour am or pm b) Hour o’clock Example: 6 am 6 o’clock

  4. Key word a) Midnight (0:00) b) Noon / Midday (12:00)

The idea behind calculating relative time Like Water (H2O) is made up of 2 H, and 1 O. We get relative time by firstly getting/recognize fixed Time Unit and then based on keyword(after/from),we calculate relative time.

  1. Define Time Unit. Possible Time Unit.(See Time Class)
  • number (Possible Time)
  • specific time (Ambiguity/ without Ambiguity)
  • duration of time
  • ampm (ampm and ampm intention) Intuitively,The program has 3 basic steps.To easily program, we have four rounds.
  • Round 1 and 2, Extract Time Units,including Number(Possible Time), specific time,duration of time, and ampm
  • Round 3, Based on keyword such as prior to, Calculate relative Time
  • Round 4, Based on ampm Intention resolve possible ambiguity

chatbotbackendsupport's People

Contributors

icelemon-czy avatar

Watchers

 avatar

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.