Пример #1
0
 def clear(self):
     os.makedirs(self.cache_dir, exist_ok=True)
     self.must_train = False
     self.intents = IntentManager(self.cache_dir)
     self.entities = EntityManager(self.cache_dir)
     self.padaos = padaos.IntentContainer()
     self.train_thread = None
     self.serialized_args = []
Пример #2
0
 def __init__(self, cache_dir):
     os.makedirs(cache_dir, exist_ok=True)
     self.cache_dir = cache_dir
     self.must_train = False
     self.intents = IntentManager(cache_dir)
     self.entities = EntityManager(cache_dir)
     self.padaos = padaos.IntentContainer()
     self.train_thread = None  # type: Thread
     self.serialized_args = [
     ]  # Arguments of all calls to register intents/entities
Пример #3
0
 def __init__(self, cache_dir):
     self.must_train = False
     self.intents = IntentManager(cache_dir)
     self.entities = EntityManager(cache_dir)
     self.padaos = padaos.IntentContainer()