Git Product home page Git Product logo

chat-bot's Introduction

Sonny

Sonny is a simple artificial intelligence chatbot made using the Brainjs library.

Installation

First, you need to clone this repositorie.

git clone https://github.com/pedroMattos/chat-bot.git

Use the package manage npm to install the dependencies

npm install

And Run:

Advanced Usage (Beta)

node testSonny.js

Advanced Usage (Beta)

node bootSonny.js

Please, read the comments (documentation) in the code to use testSonny.js correctly. Bug report as issues are welcome.

Basic Usage (Deprecrated)

node Sonny.js

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

chat-bot's People

Contributors

pedromattos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lcsouzamenezes

chat-bot's Issues

Erro em arquivos pré-criados porém em branco

Sonny possui uma função que verifica se a tag passada por parametro é igual ao nome de um arquivo já aprendido por ele, levando a entender que seria uma atualização e não um ensino novo. Com isso existe uma verificação para checar se o arquivo com mesmo nome está vazio, se estiver, ele começa a ensinar a Sonny o que precisa, se não, ele retorna um erro pedindo para executar a função 'reTeach()' (não pronta ainda), porém acontece que ao verificar estar vazio Sonny não inicia o novo aprendizado.

Palavras chave

Atualmente ao pesquisar em uma intent qual a melhor resposta Sonny procura pela frase inteira, caso haja um erro de digitação ele retornará um erro. Possível solução criar um array com palavras chave das intents, para quando não encontrar pela frase inteira, Sonny procurar por palavra chave.

Falta de verificação de tags existentes

Atualmente ao filtrar as tags das intents Sonny não distingue se a tag realmente existe no arquivo intents.json, resultando em um erro no qual impede de continuar a execução da classe

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.