示例#1
0
def helpbot():
    print(
        "(Please use lowercase english only)\n(type quit to exit)\nHello, What might your problem be?"
    )
    chat = Chat(pairs, reflections)
    chat.converse()
示例#2
0
def chatbot():
    chat = Chat(paires, reflections)
    chat.converse()
示例#3
0
def chatty():
    print(
        "Hi, I'm jas and I chat alot ;)\nPlease type lowercase English language to start a conversation. Type quit to leave "
    )  #default message at the start
    chat = Chat(pairs, reflections)
    chat.converse()
示例#4
0
def pledgeBot():
    print("Hi, I'm pledge bot! \nI was an old project brought back to life in memory of my original creator. \nPlease type in lowercase English. say hello to begin!")
    chat = Chat(pairs, reflections)
    chat.converse()
示例#5
0
def Carl():
    print("Hi, Please ask your questions here. Type quit to leave "
          )  #default message at the start
    chat = Chat(pairs, reflections)
    chat.converse()
示例#6
0
def chatbot():
    print("Hey, I'm LOVELY PROFESSIONAL UNIVERSITY ENQUIRY CHATBOT!")
    print("what's your name?")
    chat = Chat(conversations, reflections)
    chat.converse()
示例#7
0
def chatty():
    print("Hi, I'm Chatty and I chat alot ;)\nPlease type lowercase English language to start a conversation. Type quit to leave ") #default message at the start
    chat = Chat(pairs, reflections)
    chat.converse()
示例#8
0
def chatbot():
    print("Hi, I'm LOVELY Professionl University CHATBOT ")
    chat = Chat(conversations, reflections)
    chat.converse()
示例#9
0
def main():
    print("OK, let's play a game of resistance!")
    chatbot = Chat(pairs, reflections)
    chatbot.converse()
def chatty():
    print(
        "Azul, nek dhe Chatty,fachou thevghidhe ankessar ? ;)\n nekini hedraghe kane thakvaylithe. arouyide quit ma thevghoudhe atsrohedh "
    )  #default message at the start
    chat = Chat(pairs, reflections)
    chat.converse()
示例#11
0
def hugot_bot():
    print("Hi how can I help you today?")
    chat = Chat(pairs, reflections)
    chat.converse()
示例#12
0
def main():
    print(
        "This is John. How can i Help You ? You can anytime press quit to finish the Chat"
    )
    chatBot = Chat(conversation, reflections)
    chatBot.converse()
示例#13
0
def chatty():
    print(
        "Hi, I'm J.A.R.V.I.S and I want to help and chat with you ! \nPlease type lowercase English language to start a conversation. Type quit to leave "
    )  #default message at the start
    chat = Chat(pairs, reflections)
    chat.converse()
def nikhat_chat():
    print("Hi, i am your personalized appointment agent.")
    chat = Chat(pairs, reflections)
    chat.converse()
示例#15
0
def firstChatBot():
    print("Hola soy tu  assistente virtual")
    chatbot = Chat(pairs, reflections)
    chatbot.converse()
示例#16
0
文件: main.py 项目: dakshpokar/LP1
def chatty():
    print("Welcome to Investo, will be your guide in the investments")

    chat = Chat(pairs, reflections)
    chat.converse()
示例#17
0
#!/usr/bin/env python
# coding: utf-8

# # Basic bot

# In[ ]:

from nltk.chat.util import Chat, reflections
reflections

pairs = [['hello', ["what's good?"]], ['what is life', ['42']]]

chat = Chat(pairs, reflections)
chat.converse()

# # Jiujitsu Bot

# In[ ]:

import nltk
import numpy as np
import random
import string  # to process standard python strings

# In[ ]:

# Read text file and convert sentences into list of words for pre-processing

f = open('bjj.txt', 'r', errors='ignore')

raw = f.read()
示例#18
0
def hugot_bot():
    print("Hi what's your name?")
    chat = Chat(pairs, reflections)
    chat.converse()
示例#19
0
def main():
	print("OK, let's play a game of resistance!")
	chatbot = Chat(pairs, reflections)
	chatbot.converse()
示例#20
0
def chatbot_functionality():
    print(
        "Hey there, have any queries regarding the college, Ask Me !\nPlease write each sentence in lower-case alphabets.\nType 'quit' to leave.\nAnd type 'hindi' or 'telugu' to converse in the concerned language."
    )
    interact = Chat(pairs, reflections)
    interact.converse()
示例#21
0
    "Very interesting.",
    "%1.",
    "I see.  And what does that tell you?",
    "How does that make you feel?",
    "How do you feel when you say that?"))
)

aino_chatbot = Chat(pairs, reflections)


location_id = "INXX0096"
location_name = "New Delhi"
weather_com_result = pywapi.get_weather_from_weather_com(location_id)
date = time.strftime("%A %B %d %Y")
t = time.strftime("%I %M %p")

speak = "Hi. Today's " + time.strftime("%A %d") + " of " + time.strftime("%B %Y") + \
		". The time is " + time.strftime("%I %M %p") + ". It is " + \
		string.lower(weather_com_result['current_conditions']['text']) + " and " + \
		weather_com_result['current_conditions']['temperature'] + " degree celsius now in " + \
		location_name + ". My name is AINO. How do you do? What is your name?"

print speak

aino_chatbot.converse()

##def live_location() :
	##this function would be in future hope to gather live geocoded locations via google's api
	##use code here when this is possible
##print tagged_words
示例#22
0
def chatty():
    print("Hi I am Chatty,You can chat with me.Say quit to exit")
    chat = Chat(pairs, reflections)
    chat.converse()