Showing posts with label rasa. Show all posts
Showing posts with label rasa. Show all posts

Monday, July 2, 2018

Installing Rasa NLU in docker

It's been a while I wrote up an article and I find today is the best to start again.

I have been using Rasa Chatbot for a while and still didn't get much knowledge of it because of the busy at work. I will start to install Rasa again using docker and let's see how it goes. So buckle up and start your engine.


Step-by-step
1. docker run -p 5000:5000 rasa/rasa_nlu:latest-full
2. curl 'http://localhost:5000/parse?q=hello'
Voila!

Monday, April 16, 2018

Troubleshooting with nodejs and npm


I got error when I tried to install rasa-nlu-trainer
$npm i -g rasa-nlu-trainer

error:
npm http GET https://registry.npmjs.org/express
npm ERR! Error: SSL Error: CERT_UNTRUSTED
npm ERR!     at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\main.js:409:26)
npm ERR!     at ClientRequest.g (events.js:185:14)
npm ERR!     at ClientRequest.EventEmitter.emit (events.js:88:17)

solution:
You can bypass https using below commands:
npm config set strict-ssl false

reference:
https://stackoverflow.com/questions/21855035/ssl-error-cert-untrusted-while-using-npm-command


-----------------------------------------------------

To update nodejs and npm:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs



-----------------------------------------------------

"/usr/bin/env: node: No such file or directory"


solution:
ln -s /usr/bin/nodejs /usr/bin/node

free online comma separating tool

https://delim.co/#