Tuesday, December 24, 2019

BeautifulSoup quick notes

While preparing the driving test, have though to use BeautifulSoup to get all questions for my notes












Tuesday, December 3, 2019

Amazing AI deployment journey

We have shifted our Voice assistant AI modules on Openshift.
Nice experience building modules using Jenkins and deploying on Openshift

Sunday, November 10, 2019

Voice bot with Splunk

I got the opportunity to work with Splunk and Elastic Search for NLP projects.
Requirement:
We have to track the user utterance and responses by Splunk. In my Flask API , have used RASA for a portion of NLU tasks.



Tuesday, September 10, 2019

Rasa RESTful API calls

One of my requirement is Parse a message with the trained RASA nlu model.
1) Train a Rasa model using rasa train
2) Start a Rasa server with rasa run --enable-api
3) Parse a message by running
curl -X POST http://52d9691d.ngrok.io/model/parse -H 'Content-Type: application/json' -d '{"text":"Your text"}'






















Used ngrok and Postman

Friday, August 30, 2019

error failed building wheel for httptools

While installing latest version of RASA have faced the following issue













Solution: conda install -c conda-forge httptools

Wednesday, August 21, 2019

Generate Text using OpenAIGPT2 in Python

!git clone https://github.com/graykode/gpt-2-Pytorch
import os
os.chdir('gpt-2-Pytorch')
!curl --output gpt2-pytorch_model.bin https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-pytorch_model.bin
!pip install -r requirements.txt
!python main.py --text "Chandrayaan-2 is India's second lunar exploration mission after Chandrayaan-1. Developed by the Indian Space Research Organisation, the mission was launched from the second launch pad at Satish Dhawan Space Centre on 22 July 2019 at 2.43 PM IST to the Moon by a Geosynchronous Satellite Launch Vehicle Mark III."