def restart(self):
     '''
     Restarts all semantic belief trackers of all domains and resets internal variables.
     '''
     for dstring in self.domainSemiBelieftrackers.keys():
         if self.domainSemiBelieftrackers[dstring] is not None:
             self.domainSemiBelieftrackers[dstring].restart()
     self.constraints = None
     self.state = DialogueState()
     return
Exemple #2
0
 def __init__(self):
     self.domainSemiBelieftrackers = dict.fromkeys(OntologyUtils.available_domains, None)
     self.constraints = None
     self.SPECIAL_DOMAINS = ['topicmanager','wikipedia','ood']
     
     self.state = DialogueState()
     
     for dstring in self.domainSemiBelieftrackers:
         if Settings.config.has_option("semibelief_" + dstring, "preload"):
             preload = Settings.config.getboolean("semibelief_" + dstring, "preload")
             if preload:
                 self.bootup(dstring)