(self, beam_width, datatype, test_time, topk=4, topp=0.0, batch_size=-1,
decoder_bleu_score_threshold=None, decoding_bleu_score_threshold=None)
| 48 | } |
| 49 | |
| 50 | def check_result(self, beam_width, datatype, test_time, topk=4, topp=0.0, batch_size=-1, |
| 51 | decoder_bleu_score_threshold=None, decoding_bleu_score_threshold=None): |
| 52 | p = Process(target=self.run_translate, args=(beam_width, datatype, test_time, topk, topp, |
| 53 | batch_size, decoder_bleu_score_threshold, decoding_bleu_score_threshold)) |
| 54 | p.start() |
| 55 | p.join() |
| 56 | |
| 57 | def run_translate(self, beam_width, datatype, test_time, topk=4, topp=0.0, batch_size=-1, |
| 58 | decoder_bleu_score_threshold=None, decoding_bleu_score_threshold=None): |
no test coverage detected