From 732349f7c16e43ff84380d28e021d671f2c56492 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Fleuret?= Date: Sun, 18 Feb 2024 22:40:29 +0100 Subject: [PATCH] Update. --- tasks.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tasks.py b/tasks.py index 00b7a49..181ac44 100755 --- a/tasks.py +++ b/tasks.py @@ -136,12 +136,9 @@ class TaskFromFile(Task): pairs.append((sequence, pred_mask)) symbols = ["#"] + list(set("".join([x[0] for x in pairs])) - set(["#"])) - print("SANITY", symbols) self.char2id = dict([(c, n) for n, c in enumerate(symbols)]) self.id2char = dict([(n, c) for c, n in self.char2id.items()]) - print(self.char2id) - self.train_input, self.train_pred_masks = self.tensorize( pairs[:nb_train_samples] ) @@ -163,7 +160,6 @@ class TaskFromFile(Task): return len(self.char2id) def tensor2str(self, t): - print(f"{type(t)=}") return ["".join([self.id2char[x.item()] for x in s]) for s in t] def produce_results( -- 2.39.5