top | item 13205039

Rasa NLU: Open-source bot tool for natural language understanding

136 points| geospeck | 9 years ago |rasa.ai | reply

21 comments

order
[+] IshKebab|9 years ago|reply
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!

[+] bendyBus|9 years ago|reply
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.
[+] Rabidgremlin|9 years ago|reply
It's the "conversation" part that is really tricky... I have been working on a bot for a large Corp for the last few months and we have been using Inkle's Ink narration/dialog engine for this. Works very well. They let me open source the framework: https://github.com/rabidgremlin/Mutters it uses OpenNLP for intent identification and NER, Ink for conversation state and "scripting"
[+] Maarten88|9 years ago|reply
This is interesting, I've been using LUIS for some time now and an open source alternative - especially one that is drop-in API compatible - is very welcome.

However I can't find any information in the docs on how comparable the results are (i.e. does it have built-in date and time entity recognition like LUIS?). Most importantly: what languages does this support? All examples are in english-only. Is it even language aware, or do you train a model in any language? I'd be very interested if this were to support languages that LUIS does not have (like my language: Dutch)

[+] tmbo|9 years ago|reply
Currently it supports english and german. In general we need a word embedding for each language. If that has been created by someone else, it's rather easy to integrate new languages.
[+] bendyBus|9 years ago|reply
currently there are no built-in entities like dates, times, locations etc. But really keen to set up a way for users to share models, and that would definitely include these things as well
[+] ragebol|9 years ago|reply
Nice, I've been looking for an offline solution to do this sort of thing to run on a robot for RoboCup@Home.

Perhaps http://sag.art.uniroma2.it/demo-software/huric/ might also provide some training data. It's annoying though I can't just download that corpus but have to email some guy first.

[+] mark_l_watson|9 years ago|reply
Looks like an interesting project, based on skilearn and spaCy. The project provides some simple training files for the domain of asking about restaurants.

It would be useful to also have very large training data sets available.

[+] nrp12|9 years ago|reply
Cool stuff - was looking for Open source NLU alternatives for luis.ai. Thanks to the emulators, this fits right in.

Does anyone know why rasa chose mitie/spacy and not stanfordnlp?

[+] bendyBus|9 years ago|reply
we could integrate with other backends, including NLTK & coreNLP. The stanford stuff is under GPL though, prefer to promote startup-friendly licenses.
[+] qhoc|9 years ago|reply
How well does this scale? Let's say I have 500MB of JSON files from restaurant info and user reviews.
[+] samcodes|9 years ago|reply
I think you would have to do some processing on those, I'm pretty sure the input format has sentences classified by intent.
[+] very_goord|9 years ago|reply
Great stuff, Is there a Docker support already ?
[+] bendyBus|9 years ago|reply
yes! Docker Cloud isn't quite working yet but the Dockerfile should work :)