Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/TharinduDR/TransQuest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTharinduDR <rhtdranasinghe@gmail.com>2021-04-22 18:34:16 +0300
committerTharinduDR <rhtdranasinghe@gmail.com>2021-04-22 18:34:16 +0300
commit43c091c48a45bb5a2364dd0a92cb57d0e8e3bd03 (patch)
tree2c491efaf7b48fad0716b9ea13e221a42003e8d5
parentcc6b60648ac4bf59e181446a0e95d5acb4ff72c6 (diff)
057: Code Refactoring - Siamese Architectures
-rw-r--r--examples/sentence_level/wmt_2020/common/util/postprocess.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/sentence_level/wmt_2020/common/util/postprocess.py b/examples/sentence_level/wmt_2020/common/util/postprocess.py
index a0782ae..5697909 100644
--- a/examples/sentence_level/wmt_2020/common/util/postprocess.py
+++ b/examples/sentence_level/wmt_2020/common/util/postprocess.py
@@ -8,6 +8,9 @@ def format_submission(df, language_pair, method, index, path, index_type=None):
predictions = df['predictions'].tolist()
+ print(index)
+ print(predictions)
+
with open(path, 'w') as f:
for number, prediction in zip(index, predictions):
text = language_pair + "\t" + method + "\t" + str(number) + "\t" + str(prediction)