wit icon indicating copy to clipboard operation
wit copied to clipboard

My story keep being failed because wit/duration entity doesn't recognize March... ?!

Open misysdclabs opened this issue 9 years ago • 3 comments

Hi Guys,

I have a story where I recognise date duration with built-in wit/duration. During the learning phase it works well, recognise everything, like last month, July, 2017, from 5th till 13th of June, etc. When I build a story with it I get stuck in failed status :(

image

I tried to push on the red arrow, reteach the whole sentence at least ten times, but still no luck. Even though, I see that it learned well well my "March" sentence (in the understanding section, at the wit/duration entity):

image

What am I doing wrong?

Best, Krisztián

misysdclabs avatar Jul 18 '17 08:07 misysdclabs

You may want to use wit/datetime @misysdclabs instead of wit/duration (duration is for periods of time such as "1 month", not for specific times (such as "march").

yegeniy avatar Jul 19 '17 18:07 yegeniy

Search for wit/datetime in https://wit.ai/docs/http/20170307 for more documentation

yegeniy avatar Jul 19 '17 18:07 yegeniy

@yegeniy thanks, that's my fault - I mixed with api.ai, there you can use sys.date-period like this.

misysdclabs avatar Jul 20 '17 13:07 misysdclabs