Skip to content

There are a variety of out-of-the-box chat bot codes here.

Notifications You must be signed in to change notification settings

yuanxiaosc/Hands-on-chat-robots

Repository files navigation

Chatbot

Here are some sample code I am learning to chat with, and I have tested each chat bot.

RUN Simple chat robot based on python NLTK library.ipynb

Main method

This chat robot mainly uses NLTK library to calculate the TF-IDF values of user input sentence and sentences in the corpus chatbot.txt, and then chooses the sentences in the corpus that are closest to the cosine angle of user input statements as the answers (if they exist).

Chat robot effect display

Simple chat robot based on python NLTK library effect display

RUN snips-nlu-tutorial for Slot Filling and Intent Prediction.ipynb

Main method

Snips NLU Processing Pipeline Pattern Matching + Logistic Regression + CRFs