a7b27761c6f02686135d9af83a300f23cb8d71ab,open_seq2seq/models/speech2text.py,Speech2Text,evaluate,#Speech2Text#Any#Any#,169
Before Change
len_y = input_values["target_tensors"][1][sample_id]
true_text = "".join(map(self.get_data_layer().params["idx2char"].get,
y[:len_y]))
if self.get_data_layer().params["autoregressive"]:
true_text = true_text[:-4]
pred_text = "".join(decoded_texts[sample_id])
After Change
// len_y is the fourth returned input value
y = input_values["target_tensors"][0][sample_id]
len_y = input_values["target_tensors"][1][sample_id]
if self.is_bpe:
true_text = self.get_data_layer().sp.DecodeIds(y[:len_y].tolist())
pred_text = self.get_data_layer().sp.DecodeIds(decoded_texts[sample_id])
else:
true_text = "".join(map(self.get_data_layer().params["idx2char"].get,
y[:len_y]))
pred_text = "".join(decoded_texts[sample_id])
if self.get_data_layer().params.get("autoregressive", False):
true_text = true_text[:-4]
// print("TRUE_TEXT: "{}"".format(true_text))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: a7b27761c6f02686135d9af83a300f23cb8d71ab
Time: 2018-10-10
Author: vlavrukhin@nvidia.com
File Name: open_seq2seq/models/speech2text.py
Class Name: Speech2Text
Method Name: evaluate
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 0093fa5762122466087782c75b698429776ad49e
Time: 2018-09-23
Author: jasonli9@live.ca
File Name: open_seq2seq/models/text2speech.py
Class Name: Text2Speech
Method Name: finalize_inference
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: a7b27761c6f02686135d9af83a300f23cb8d71ab
Time: 2018-10-10
Author: vlavrukhin@nvidia.com
File Name: open_seq2seq/models/speech2text.py
Class Name: Speech2Text
Method Name: maybe_print_logs
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: a7b27761c6f02686135d9af83a300f23cb8d71ab
Time: 2018-10-10
Author: vlavrukhin@nvidia.com
File Name: open_seq2seq/models/speech2text.py
Class Name: Speech2Text
Method Name: evaluate