Skip to content

Commit 5eb31ca

Browse files
committed
update
1 parent aef261b commit 5eb31ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nlp_class3/attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def softmax_over_time(x):
6565
continue
6666

6767
# split up the input and translation
68-
input_text, translation = line.rstrip().split('\t')
68+
input_text, translation, *rest = line.rstrip().split('\t')
6969

7070
# make the target input and output
7171
# recall we'll be using teacher forcing

nlp_class3/wseq2seq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
continue
5050

5151
# split up the input and translation
52-
input_text, translation = line.rstrip().split('\t')
52+
input_text, translation, *rest = line.rstrip().split('\t')
5353

5454
# make the target input and output
5555
# recall we'll be using teacher forcing

0 commit comments

Comments
 (0)