Posts

Showing posts with the label chatbot

Read from YAML File

Image
Clash Royale CLAN TAG #URR8PPP Read from YAML File i have a yaml file to my chatbot i want read answer from yaml file exemple Person see hello Chatbot see Hello person how to do with code java to read answer from yaml file By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

How to let a chatbot use a model already trained

Image
Clash Royale CLAN TAG #URR8PPP How to let a chatbot use a model already trained I am trying for the first time to build a chatbot. Following this tutorial, I already have a jupyter notebook solution that is working with a model already trained. import nltk from nltk.stem.lancaster import LancasterStemmer import numpy as np import tflearn import tensorflow as tf import random import json from ._conv import register_converters as _register_converters stemmer = LancasterStemmer() with open('intents.json') as json_data: intents = json.load(json_data) words = classes = documents = ignore_words = ['?'] # loop through each sentence in our intents patterns for intent in intents['intents']: for pattern in intent['patterns']: # tokenize each word in the sentence w = nltk.word_tokenize(pattern) # add to our words list words.extend(w) # add to documents in our corpus documents.append((w, intent['tag']...

Why does @sys.any sometimes take entire input successfully as action and other times doesn't in dialogflow?

Why does @sys.any sometimes take entire input successfully as action and other times doesn't in dialogflow? I need to capture the entire statement that user says into a variable and am using @sys.any for it. Why does it need to learn, can't it blindly just take everything into the variable specified for it in actions and parameters? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.