Code Monkey home page Code Monkey logo

conversation-starter's Introduction

conversation-starter

Bits and pieces that might be useful for training a Watson Conversation service. This is just an experiment to see if there are any reusable chunks that would speed up development of projects that use the Conversation service.

Training data

Intents

It seems likely that Conversation based chat bots will want some common elements. Since the easiest subset of a workspace to share are intents, due to the CSV import, those seemed like an obvious place to start. Plus there are already some overlaps in the sample projects out there to borrow from!

The following rough and ready jq command will reverse the CSV import process and extract intents from an exported workspace JSON file.

jq --raw-output '.intents[] | { "intent": (.intent), "example": .examples[].text} | [.example, .intent] | @csv' < exported-workspace.json > intents.csv

Template workspaces

For now there is just a basic starter workspace that just contains a common set of intents and an example conversation start dialog node to provide a simple starting point.

Possible additional workspaces:

  • small hello world example
  • chit chat example

I used the following jq command to remove some of the unnecessary content from exported workspaces ready for sharing:

jq 'recurse(.intents[]?, .examples[]?, .entities[]?, .dialog_nodes[]?, .values[]?) |= del(.created, .created_by, .metadata, .updated, .modified_by, .workspace_id)' < exported-workspace.json > workspace.json

conversation-starter's People

Contributors

doconnor78 avatar jt-nti avatar michal-bida avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

conversation-starter's Issues

Add descriptions of workspaces etc. to github pages

Add explanations of workspaces to github pages. Maybe use an 'example' collection?

For example, this description from @doconnor78 for the flight_tracker_workspace.json file...

The flight predictor workspace allows users to choose departure and arrival airports from a list of the 40 busiest airports in the US. The user can ask for the weather at their destination or departure location, can ask for airline/airplane information. This workspace is intended to be used in an application where the app has the ability to lookup flight and airport data.

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.