Skip to content

yanxx422/Chat_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat_Bot

This is a chatbot project that utilizes iexfinance api to check for stock price.

Installation

There are some necessary modules to install.

spaCy is an open-source software library for advanced natural language processing. To install spaCy,

pip install spacy

To download the English package,

python -m spacy download en

Rasa NLU is a library for intent recognition and entity extraction. It is based on spaCy, scikit-learn and other libraries. To install Rasa LNU,

pip install rasa
pip install rasa_nlu

iexfinance is an API for providing stock market information. To install,

pip install iexfinance

The python version is 3.6 for this project.

Usage

python3 stock_chat.py

Features

The program uses regular expressions to recognize intents and exercises. Specifically, it uses regex to search to create a pattern if the keywords occur.

In order to train word vectors, it uses the spaCy libraries. It provides a training dataset stock_training.json to train the data. Rasa pipeline is provided by config_spacy.yml.

A state machine is implemented, which contains six states.

Sample Dialogue

User: Hi

Bot: Hey there, Can I have your name?

User: Jessie

Bot: Hi, Jessie, I can tell you about stock market, such as price, volume and market cap!

User: I'm looking for stock information of companies.

Bot: Which company do you want to know about?

User: apple company

Bot: What information do you want to know from apple company?

User: show me current price

Bot: Current Stock Price is ..., Anything else?

User: how about volume

Bot: The latest Volume is ..., Anything else?

User: No

Bot: goodbye

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages