GithubHelp home page GithubHelp logo

nlu-testing-example's Introduction

Testing your NLU

VoiceflowML

In this repo you'll find a template for testing your NLU! This repository is based on It uses a common pattern that can be adapted to other NLU providers by leveraging the interface provided under src/interface.py.

Usage

Tutorial video provided here

  1. Run pip install -r requirements.txt
  2. Create a voiceflow account at https://creator.voiceflow.com/
  3. Upload the examples/NLU_test_v1.vf
  4. Navigate to the "play" button and hit "Train Assistant". Wait until training completes to use a trained NLU.
  5. Create your project dialogue manager key under the integrations tab.
  6. Copy your dialogue manager key into the examples/voiceflow.py file.
  7. Run the examples/voiceflow.py
  8. The vf_test.compare_results() function will fail
  9. Update your order_fries and help_me intent in the exisiting file. Or you can upload examples/NLU_test_v2.vf (and create a new DM key)

Outputs

The example will generate two test result files and two plots, one for utterance tests and the other for entity tests under the examples folder.

Resources for troubleshooting

How to Create Your NLU testing Strategy

Coming soon

  • [] Flow testing
  • [] End to End Voiceflow integration
  • [] Code walkthrough article
  • [] Tests

nlu-testing-example's People

Contributors

diophontine avatar voiceflow-gallagan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.