2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword...

19
Snips NLU An Open Source, Private by Design alternative to NLU cloud services @adrien_ball, Senior Machine Learning Engineer

Transcript of 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword...

Page 1: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

Snips NLU An Open Source, Private by Design alternative to NLU cloud services

@adrien_ball, Senior Machine Learning Engineer

Page 2: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding
Page 3: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

Wakeword Speech to text Natural Language Understanding

Page 4: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

Speech to text Natural Language Understanding

Page 5: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

“What will be the weather in Paris

tomorrow evening?”

{ "intent": { "intentName": "searchWeatherForecast", "probability": 0.95 }, "slots": [ { "value": “Paris", "entity": "locality", "slotName": "forecastLocality" }, { "value": { "kind": "InstantTime", "value": "2018-04-19 19:00:00 +00:00" }, "entity": "snips/datetime", "slotName": "forecastDatetime" } ] }

Natural Language Understanding

Page 6: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

Why Snips NLU?

Page 7: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

Data Privacy

Q. Are voice and text inputs processed by Amazon Lex stored, and how are they used by AWS?

Amazon Lex may store and use voice and text inputs processed by the service solely to provide and maintain the service and to improve and develop the quality of Amazon Lex and other Amazon machine-learning/artificial-intelligence technologies. Use of your content is necessary for continuous improvement of your Amazon Lex customer experience, including the development and training of related technologies.(…)

https://aws.amazon.com/lex/faqs/#data-privacy

Page 8: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

AI logic developper code

NLU cloud

NLU cloud

AI logic developper code

NLU cloud as backendNLU cloud as frontend

NLU CLOUD SOLUTIONS + ALTERNATIVES

AI logic developper code

On premises NLU

Page 9: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

AI logic developper code

NLU cloud

NLU cloud

AI logic developper code

NLU cloud as backendNLU cloud as frontend

NLU CLOUD SOLUTIONS + ALTERNATIVES

AI logic developper code

On premises NLU Embedded NLU

Page 10: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

snips-nluPython library

Training + Inference

Apache 2

snips-nlu-rs Snips consoleRust library

Inference

Apache 2 / MIT

https://console.snips.ai

Training

Self service / Professional services

Snips NLU ecosystem

Page 11: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

• deterministic behavior

• great generalization power

Objectives & Constraints

• rapid prototyping

• fast & lightweight

• portability

• extensibility

Page 12: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding
Page 13: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

snips-nlu• Rapid prototyping

• Rapid debugging

• ML ecosystem

snips-nlu-rs

• Speed

• Portability

Python / Rust complementarity

Page 14: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

snips-nlu• Rapid prototyping

• Rapid debugging

• ML ecosystem

snips-nlu-rs

• Speed

• Portability

Python / Rust complementarity

JSON serialization

Page 15: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

🤔 Speed?

Accuracy?

Page 16: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

Snips NLU inference time

🤔 Speed?

Page 17: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

🤔 Accuracy?

Extension of Evaluating Natural Language Understanding Services for Conversational Question Answering Systems

Page 18: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

NLU cloud frontend

NLU cloud backend

On premises NLU

Embedded NLU

Privacy

Speed 2 roundtrips 2 roundtrips 1 roundtrip Few milliseconds

Accuracy State of the art State of the art State of the art State of the art

Page 19: 2018 04 19 NLP meetup - WordPress.com · @adrien_ball, Senior Machine Learning Engineer. Wakeword Speech to text Natural Language Understanding. Speech to text Natural Language Understanding

https://github.com/snipsco/snips-nlu

Willing to integrate Snips NLU?

Want to join the Snips team?

Questions?

[email protected]@adrien_ball

https://medium.com/snips-ai