Git Product home page Git Product logo

mygit1's Introduction

Weather query Chatbot

Demo

Demo

Configuration Instructions

Installation Instructions

There are few online packages need to be installed for this project

Rasa-NLU

Prerequisites

Make sure your other packages on your computer are compatible with rasa-NLU. Setting up Rasa NLU

Stable (Recommended)
The recommended way to install Rasa NLU is using pip which will install the latest stable version of Rasa NLU:

$ pip install rasa_nlu

Latest (Most recent github)
If you want to use the bleeding edge version you can get it from github:

$ git clone https://github.com/RasaHQ/rasa_nlu.git
$ cd rasa_nlu
$ pip install -r requirements.txt
$ pip install -e .

Rasa NLU has different components for recognizing intents and entities, most of these will have some additional dependencies.
When you train your model, Rasa NLU will check if all required dependencies are installed and tell you if any are missing.

For more installation information
Go to https://rasa.com/docs/nlu/installation/

Telgram bot

requirement
you just need to download telegram on its official website:https://telegram.org/apps and register and log in. After that, search Bot_Father to achieve your own bot!

pyTelegramBotAPI

Setting up pyTelegramBotAPI
From PyPI with pip (latest stable release):

$ pip install pyTelegramBotAPI

From development repository (dev version):
Installation from source (requires git):

$ git clone https://github.com/eternnoir/pyTelegramBotAPI.git
$ cd pyTelegramBotAPI
$ python setup.py install

For more information
Go to https://github.com/eternnoir/pyTelegramBotAPI

The api I used

Go to https://rapidapi.com/community/api/open-weather-map?endpoint=53aa6041e4b00287471a2b62 and https://rapidapi.com/community/api/open-weather-map?endpoint=53aa6043e4b00287471a2b66 for more details

operating instructions

  1. Download all files in a same folder.
  2. config_spacy.yml is the configuration file for rasa_NLU. demo-rasa.json is the file for rasa trainning.
  3. Open weather_bot.py file in any IDE, the IDE I used to run is Pycharm.
  4. Change the statement below to chat with your own robot, you only need a token for telegram bot
    TOKEN = YOUR_TOKEN
    bot = telebot.TeleBot(TOKEN)
    
  5. Run it, and just send message to your telegram bot. Then it will return information about weather or just chatting with you happliy.
  6. Start to chat!

contact information for the distributor or programmer

Email: [email protected]
Website: https://github.com/qiujw23/mygit1

a changelog

  • 2019.9.11 uploade file
  • 2019.9.11 upload report, README.md

mygit1's People

Contributors

qiujw23 avatar

Watchers

 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.