Skip to content

Commit 6065b4c

Browse files
committed
Fix bug on pair
1 parent 0d82fb3 commit 6065b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def main():
1919

2020
if opt.graph:
2121
lang, pairs = prepare_data(num_samples=opt.n_samples)
22-
pairs = [pair for pair in pairs if len(pair[0][1]) > 0]
22+
pairs = [pair for pair in pairs if len(pair[0][1][0]) > 0]
2323
else:
2424
lang, pairs = prepare_tokens(num_samples=opt.n_samples)
2525

0 commit comments

Comments
 (0)