Beispiel #1
0
 def test_reload_exception(self):
     with self.assertRaises(ValueError) as context:
         run.main(["test/config/reload_exception.yaml"])
     self.assertEqual(
         str(context.exception),
         'VanillaLSTMGates: x_t has inconsistent dimension 20, expecting 40'
     )
Beispiel #2
0
 def test_reload_exception(self):
   if xnmt.backend_dynet:
     with self.assertRaises(ValueError) as context:
       run.main(["test/config/reload_exception.yaml"])
       self.assertEqual(str(context.exception), 'VanillaLSTMGates: x_t has inconsistent dimension 20, expecting 40')
   else:
     with self.assertRaises(RuntimeError) as context:
       run.main(["test/config/reload_exception.yaml"])
       self.assertIn("20", str(context.exception))
       self.assertIn("40", str(context.exception))
Beispiel #3
0
 def test_transformer(self):
   run.main(["test/config/transformer.yaml"])
Beispiel #4
0
 def test_speech_retrieval(self):
   run.main(["test/config/speech_retrieval.yaml"])
Beispiel #5
0
 def test_seq_labeler(self):
   run.main(["test/config/seq_labeler.yaml"])
Beispiel #6
0
 def test_score(self):
   run.main(["test/config/score.yaml"])
Beispiel #7
0
 def test_report(self):
   run.main(["test/config/report.yaml"])
Beispiel #8
0
 def test_reload(self):
   run.main(["test/config/reload.yaml"])
Beispiel #9
0
 def test_encoders(self):
   run.main(["test/config/encoders.yaml"])
Beispiel #10
0
 def test_component_sharing(self):
   run.main(["test/config/component_sharing.yaml"])
Beispiel #11
0
 def test_classifier(self):
   run.main(["test/config/classifier.yaml"])
Beispiel #12
0
 def test_assemble(self):
   run.main(["test/config/assemble.yaml"])
Beispiel #13
0
 def test_search_strategy_minrisk(self):
   run.main(["test/config/minrisk.yaml"])
Beispiel #14
0
 def test_translator_loss(self):
   run.main(["test/config/translator_loss.yaml"])
Beispiel #15
0
 def test_prior_segmenting(self):
   run.main(["test/config/prior_segmenting.yaml"])
Beispiel #16
0
 def test_pretrained_emb(self):
   run.main(["test/config/pretrained_embeddings.yaml"])
Beispiel #17
0
 def test_random_search_train_params(self):
   run.main(["test/config/random_search_train_params.yaml"])
Beispiel #18
0
 def test_ensembling(self):
   run.main(["test/config/ensembling.yaml"])
Beispiel #19
0
 def test_segmenting(self):
   run.main(["test/config/seg_report.yaml"])
Beispiel #20
0
 def test_forced(self):
   run.main(["test/config/forced.yaml"])
Beispiel #21
0
 def test_retrieval(self):
   run.main(["test/config/retrieval.yaml"])
Beispiel #22
0
 def test_lm(self):
   run.main(["test/config/lm.yaml"])
Beispiel #23
0
 def test_self_attentional_am(self):
   run.main(["test/config/self_attentional_am.yaml"])
Beispiel #24
0
 def test_load_model(self):
   run.main(["test/config/load_model.yaml"])
Beispiel #25
0
 def test_speech(self):
   run.main(["test/config/speech.yaml"])
Beispiel #26
0
 def test_multi_task(self):
   run.main(["test/config/multi_task.yaml"])
Beispiel #27
0
 def test_standard(self):
   run.main(["test/config/standard.yaml"])
Beispiel #28
0
 def test_multi_task_speech(self):
   run.main(["test/config/multi_task_speech.yaml"])
Beispiel #29
0
 def test_search_strategy_reinforce(self):
   run.main(["test/config/reinforce.yaml"])
Beispiel #30
0
 def test_preproc(self):
   run.main(["test/config/preproc.yaml"])