chatterbot - Himeyama/himeyama GitHub Wiki
https://spacy.io/usage
pip install -U pip setuptools wheel spacy
python -m spacy download en_core_web_sm
python -m spacy download ja_core_news_sm
class ENGSM:
ISO_639_1 = 'en_core_web_sm'
from chatterbot import ChatBot
chatbot = ChatBot("Ron Obvious", tagger_language=ENGSM)
from chatterbot.trainers import ListTrainer
conversation = [
"Hello",
"Hi there!",
"How are you doing?",
"I'm doing great.",
"That is good to hear",
"Thank you.",
"You're welcome."
]
trainer = ListTrainer(chatbot)
trainer.train(conversation)
response = chatbot.get_response("Good morning!")
print(response)