News for hackers. Stuff that matters.
Re:Rasa NLU: Open-source bot tool for natural language under... by IshKebab on Sunday December 18, 2016 @09:44AM (#13205944)
A while ago I looked for information on how Alexa, Wit.ai, Nuance Mix etc. do this intent classification and didn't find anything.

These guys have posted a nice blog post about their approach:

https://conversations.golastmile.com/do-it-yourself-nlp-for-...

They suggest that they add the word vectors in the sentence. But it seems to me that that would make the result independent of the order of words (i.e. "when does Tesco open?" and "Open Tesco when does" are the same). I thought I had tested that and it didn't work but actually I just tried saying "Tesco open does when?" to Alexa and it said "Sorry, I don't have the business hours for Tesco". Inconclusive I'd say but interesting anyway!

Re:Rasa NLU: Open-source bot tool for natural language under... by bendyBus on Sunday December 18, 2016 @10:32AM (#13206123)
yeah you're quite right, intents are built with a bag of words model & doesn't take order into account. Entity extraction does though. If you find a case where word order is really important for getting intents right I'd love to know about it! We could find a way to make that work.
Re:Rasa NLU: Open-source bot tool for natural language under... by espadrine on Sunday December 18, 2016 @01:08PM (#13206811)
> If you find a case where word order is really important for getting intents right

This may be facetious of me, since it's still fairly uncommon, but here it is.

Set up the go game, go up game the set.

State the ban law, ban the state law.

Drive the car by the park, park the car by the drive.

Re:Rasa NLU: Open-source bot tool for natural language under... by Rabidgremlin on Sunday December 18, 2016 @12:48PM (#13206705)
The bot I have been working on uses bag of words and n-grams to identify intents. Useful for when someone says something that may have multiple entities of the same type. For instance a journey start and end point. Can use the "from" and "to" words match better. Also very useful when training on phrases that are very similar such as FAQ questions which often have the same words but the order and one or two keys words is super important to get the right match.