AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

RiveScript Bot not recognizing questions
 
 

I am facing issues with Python RiveScript, When I test with the example3.py it gives answer that are in the brain. However, I extended the script by writing a TcpSocket server in c++ and TcpSocket client in Python and integrated Rivescript in the client socket. I am able to send a question in C++ script and receive in Python script, Hovewer this way RiveScript only gives answers such as:

“::ffff:127.0.0.1” reading from data “Please go on.”
“::ffff:127.0.0.1” reading from data “Please go on.”
“::ffff:127.0.0.1” reading from data “I’m not sure I understand you fully.”
“::ffff:127.0.0.1” reading from data “Please go on.”
“::ffff:127.0.0.1” reading from data “Please go on.”
“::ffff:127.0.0.1” reading from data “Tell me more about that.”
“::ffff:127.0.0.1” reading from data “I’m not sure I understand you fully.”
“::ffff:127.0.0.1” reading from data “Tell me more about that.”
“::ffff:127.0.0.1” reading from data “I’m not sure I understand you fully.”
“::ffff:127.0.0.1” reading from data “Please go on.”
“::ffff:127.0.0.1” reading from data “I’m not sure I understand you fully.”
“::ffff:127.0.0.1” reading from data “Tell me more about that.”
“::ffff:127.0.0.1” reading from data “That is interesting. Please continue.”
“::ffff:127.0.0.1” reading from data “That is interesting. Please continue.”
“::ffff:127.0.0.1” reading from data “Does talking about this bother you?”
“::ffff:127.0.0.1” reading from data “Tell me more about that.”
“::ffff:127.0.0.1” reading from data “I’m not sure I understand you fully.”
“::ffff:127.0.0.1” reading from data “That is interesting. Please continue.”
“::ffff:127.0.0.1” reading from data “Tell me more about that.”
“::ffff:127.0.0.1” reading from data “I’m not sure I understand you fully.”

On questions like:

hello
How are you?
How are you doing?
What do you do?
How old are you?
My name is Xms?

With the example it gives answers.

I don’t understand why it can’t find the answers when used with TcpSocket, I send and receive like this in Python:

  def sendAndReceiveData(self):
      msg = self.tcpSocket.readAll().data().decode(‘utf8’)
      if msg == ‘/quit’:
        quit()
      reply = rs.reply(“localuser”, msg)
      messages = reply
      messages = bytes(messages, encoding=‘ascii’)
      self.tcpSocket.write(messages)

Any help? Thanks

 

 
  [ # 1 ]

Solved.

 

 
  [ # 2 ]

Would you be able to post how you solved it in case anyone in the future has a similar issue?

 

 
  login or register to react