Fixed a masking problem

This commit is contained in:
Christian Risi 2025-10-14 10:34:14 +02:00
parent 80fd7fd600
commit 4968d79403

View File

@ -157,7 +157,7 @@ class Batcher:
X = [] X = []
Y = [] Y = []
for rdf in batch["RDFs"]: for rdf in batch["RDFs"]:
x, y = self._masker.mask_sequence(rdf) x, y = self._masker.mask_sequence(rdf[:self.__max_length])
X.append(x) X.append(x)
Y.append(y) Y.append(y)
return self.__normalization(X, Y) return self.__normalization(X, Y)