def continueOrQuit(self,i): """checks if user is ready to start match""" if nlp.isReady(i): #reset prior flat = nltk.probability.UniformProbDist(self.semanticKnowledge.entities()) self.semanticKnowledge.setPriors(flat) self.episodicBuffer.newMatch() return self.toAskingState() elif nlp.classifyYN(i) == -1: self.current_thread().exit() #sys.exit() else: return "let me know when you are ready"
def continueOrQuit(self, i): """checks if user is ready to start match""" if nlp.isReady(i): #reset prior flat = nltk.probability.UniformProbDist( self.semanticKnowledge.entities()) self.semanticKnowledge.setPriors(flat) self.episodicBuffer.newMatch() return self.toAskingState() elif nlp.classifyYN(i) == -1: self.current_thread().exit() #sys.exit() else: return "let me know when you are ready"
def startIfReady(self,i): """checks if user is ready to start match""" if nlp.isReady(i): return self.toAskingState() else: return "let me know when you are ready"
def readyToStart(self, msg): if nlp.isReady(msg): return self.toBrainlessState() else: return "let me know when you are ready...."
def startIfReady(self, i): """checks if user is ready to start match""" if nlp.isReady(i): return self.toAskingState() else: return "let me know when you are ready"