项目作者: raminshahab

项目描述 :
AI Weather ChatBot created using Rasa Framework
高级语言: HTML
项目地址: git://github.com/raminshahab/weatherbot.git
创建时间: 2020-03-10T03:50:11Z
项目社区:https://github.com/raminshahab/weatherbot

开源协议:

下载


AI Weather Bot using RASA Framework

Weather Client

  1. You will need an API Key from https://weatherstack.com/
  2. You may sign up for a free account to access this weather api
  3. afterwards just add your API key to the actions.py file
  4. http://api.weatherstack.com/current
  5. ? access_key = YOUR_ACCESS_KEY
  6. & query = New York

Environment

To get started add a virtual python environment

  1. $ python3 -m venv --system-site-packages ./venv

Activate your venv environment

  1. $ source ./venv/bin/activate

Dependencies

  1. $ pip3 install rasa[spacy]
  2. $ python3 -m spacy download en_core_web_md
  3. $ python3 -m spacy link en_core_web_md en
  4. $ pip3 install -r requirements

Now you’ve installed the Rasa Framework and Spacy language
model library you can import the module directly in python scripts — import spacy(‘en’)

Start Actions Server

  1. $ rasa run actions

Install Interactive NLU Trainer & launch trainer

  1. $ npm i -g rasa-nlu-trainer
  2. $ rasa-nlu-trainer

Request Predictions from NLU Server

  1. $ curl localhost:5005/model/parse -d '{"text":"hello"}'

Install Rasa NLU

  1. $ pip3 install rasa_nlu

Install RASA X

  1. $ pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simpleras

Steps when creating and training your AI assistant

  1. 1. View Your NLU Training Data
  2. 2. Define Your Model Configuration
  3. 3. Write Your Stories
  4. 4. Define a Domain
  5. 5. Train a Model
  6. 6. Talk to Your Assistant