How do I use Snips NLU to automatically learn location of a user just like snips/datetime

#1

Hey I was wondering if there is a way to find out location of a user just like snips/datetime can find out the date and time for today?
Thank you

#2

Date and time comes from the OS running. If you want to discover the location the only solution, very unreliable, is through the IP. You’re better off having a setting for this

2 Likes
#3

Thank you @Psycho . Is there a way to find out a date from a previous date.
Like for eg we have a date lets say departure_date=26/03/2019.
Now the user inputs something like for a duration of 6 days.
So the arrival_date is automatically calculated as 01/04/2019.

is there a way to do this?

#4

Sure, python can do anything. Check datetime

#5

Also, Snips has a “duration” slot btw

#6

Yeah I know about the python datetime module. I was wondering if there was a way to do it in snips automatically such that the new date is automatically calculated by taking into account the date in the departure date slot.

#7

Thanks @Psycho. I understood what you meant by the duration slot.
I was also curious about knowing if we use cleaned data for training of nlu engine or should we use data with punctuation and upper case etc for better training?

#8

punctuation and or capital letters aren’t needed, they are not returned by the asr usually. Check the asr output and try to stay as close as what it spits out