コード例 #1
0
 def cleanup_before_run(self, cmd, retry, *args):
     if cmd == self.merge_exe:
         super().cleanup_before_run(cmd, retry, *args)
     else:
         task_id = args[0]
         util.backup_if_exists("accumulate.log.%d" % task_id)
         if self.save_alignment:
             util.delete_if_zero("alignment.cache.%d" % task_id)
コード例 #2
0
 def cleanup_before_run(self, cmd, retry, *args):
     if cmd == "./accumulate.sh":
         task_id = args[0]
         util.backup_if_exists("accumulate.log.%d" % task_id)
     elif cmd == self.exe:
         log_file = args[2][12:]
         util.backup_if_exists(log_file)
     elif cmd == "./estimate.sh":
         util.backup_if_exists("estimate.log")
コード例 #3
0
 def cleanup_before_run(self, *args):
     util.backup_if_exists("cart.log")
コード例 #4
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     for idx in range(len(self.alphas)):
         util.backup_if_exists("score_%d.log.%d" % (idx, task_id))
コード例 #5
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("alignment.log.%d" % task_id)
     util.delete_if_exists("alignment.cache.%d" % task_id)
コード例 #6
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("create-accuracy.log.%d" % task_id)
     util.delete_if_exists("accuracy.%d" % task_id)
     util.delete_if_exists("segmentwise-alignment.%d" % task_id)
コード例 #7
0
 def cleanup_before_run(self, cmd, retry, *args):
     util.backup_if_exists("compute_ppl.log")
コード例 #8
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("pruning.log.%d" % task_id)
     util.delete_if_exists("pruned_lattice.cache.%d" % task_id)
コード例 #9
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("lattice_to_ctm.log")
コード例 #10
0
 def cleanup_before_run(self, cmd, retry, *args):
     util.backup_if_exists("lm_image.log")
コード例 #11
0
 def cleanup_before_run(self, cmd, retry, *args):
     log = args[2][12:]
     util.backup_if_exists(log)
コード例 #12
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("costa.log")
コード例 #13
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     if cmd == "./estimate.sh":
         util.backup_if_exists("estimate.log")
     if cmd == "./normalization.sh":
         util.backup_if_exists("normalization.log")
コード例 #14
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("recognition.log.%d" % task_id)
     util.delete_if_exists("lattice.cache.%d" % task_id)
コード例 #15
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     if cmd == "./accumulate.sh":
         util.backup_if_exists("accumulate.log.%d" % task_id)
     elif cmd == "./merge.sh":
         util.backup_if_exists("merge.log")
コード例 #16
0
 def cleanup_before_run(self, cmd, retry, *args):
     util.backup_if_exists("dump-state-tying.log")
コード例 #17
0
ファイル: tone.py プロジェクト: christophmluscher/i6_core
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     if cmd == "./dump.sh":
         util.backup_if_exists("dump.log.%d" % task_id)
     elif cmd == "./convert.sh":
         util.backup_if_exists("convert.log.%d" % task_id)
         util.delete_if_zero("tone.cache.%d" % task_id)
コード例 #18
0
 def cleanup_before_run(self, cmd, retry, *args):
     util.backup_if_exists("store-allophones.log")
コード例 #19
0
ファイル: alignment.py プロジェクト: rwth-i6/i6_experiments
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists('alignment.log.%d' % task_id)
     util.delete_if_exists('alignment.cache.%d' % task_id)
     if self.word_boundaries:
         util.delete_if_zero('word_boundary.cache.%d' % task_id)
コード例 #20
0
 def cleanup_before_run(self, cmd, retry, *args):
     util.backup_if_exists("lm_and_state_tree.log")
コード例 #21
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("create-denominator.log.%d" % task_id)
     util.delete_if_exists("denominator.%d" % task_id)
コード例 #22
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("cn_decoding.log.%d" % task_id)
     util.delete_if_exists("confusion_lattice.cache.%d" % task_id)
コード例 #23
0
ファイル: ubm.py プロジェクト: christophmluscher/i6_core
 def cleanup_before_run(self, cmd, retry, *args):
     if cmd == self.merge_exe:
         super().cleanup_before_run(cmd, retry, *args)
     else:
         task_id = args[0]
         util.backup_if_exists("accumulate.log.%d" % task_id)
コード例 #24
0
 def cleanup_before_run(self, cmd, retry, task_id, *args):
     util.backup_if_exists("score_features.log.%d" % task_id)