1
At first I had made a chatbot that connected to Telegram, but as the message goes through a server I believe that it does not characterize as a p2p system (client, client).
Then I made a chatbot simple that, from a training, responds my messages through the terminal. I don’t know much about networks so I don’t know if this communication is characterized as (client, client) communicating with each other.
Follows the code of chatbot local:
# -*- codding: utf-8 -*-
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
import os
chatbot = ChatBot("Futaba")
trainer = ListTrainer(chatbot)
for arquivos in os.listdir('arquivos'):
chats = open('arquivos/' + arquivos, 'r').readlines()
trainer.train(chats)
print("Hey, meu nome é Futaba")
response = chatbot.get_response("Hey!")
print(response)
while True:
resq = input('Você: ')
resp = chatbot.get_response(resq)
if float(response.confidence) > 0.9:
print('Futaba: ' + str(resp))
else:
print('Como você tem se sentido?')
Is it characterized as a par-par system? If not, it is possible to modify this so that it becomes or is preferable to make another using one framework like the Pyro?
Why do you need to do this kind of grading? It’s some college job?
– Woss
Does this explain p2p https://answall.com/a/71039/3635 I don’t understand the subject to talk about.
– Guilherme Nascimento
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site
– Maniero