Chatbot API onLine

  1. Install in your PC

Take care with the command in my mac I am usign pip3 and python3

pip3 install flask
pip3 install nltk
pip3 install pandas
pip3 install scikit-learn

To close port : Identify port and kill it

lsof -i :5000
kill 38223

Go to repo and download the files, in the data folder you can change your context and your answers.

2. Follow this link to set up your server — is just work to basic code

Install the same that your local machine

pip3 install flask
pip3 install nltk
pip3 install pandas
pip3 install xlrd
pip3 install -U scikit-learn

sudo apt-get install python3-pandas
sudo apt-get install python3-nltk
sudo apt-get install python3-sklearn
sudo apt-get install python3-xlrd

>>> import nltk
>>> nltk.download(‘wordnet’)
>>> nltk.download(‘averaged_perceptron_tagger’)
>>> nltk.download(‘punkt’)

3. To npl use this :

upload your files, install dependcies

pip3 install flask
pip3 install nltk
pip3 install pandas
pip3 install xlrd
pip3 install ska learn

and the app.py change the code for :

if __name__ == “__main__”:
app.run(host=’0.0.0.0', port=8080)

Create a service tu run this project

Sign up to discover human stories that deepen your understanding of the world.

--

--

No responses yet

Write a response