wit-ai / wit

Natural Language Interface for apps and devices
https://wit.ai/
942 stars 91 forks source link

Not detecting raw numbers as wit/datetime #2665

Closed jandieg closed 1 year ago

jandieg commented 1 year ago

Enhancement

What is the current behavior? Sometimes a time response is needed, and saying "12" is not recognized as a time.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior?

If applicable, what is the App ID where you are experiencing this issue? If you do not provide this, we cannot help. 582793603989068

nishsinghal20 commented 1 year ago

Hi @jandieg! Unfortunately, responding with just numbers is hard to capture as datetime unless there's more context, such as "9 pm" or "9 tomorrow", etc. You might be able to capture the numbers using the wit/number built-in entity type and then add some custom handling logic in your app/project to treat it as datetime.