Skip to content

Commit 6343b20

Browse files
authored
fix bug when copying word
1 parent 02a0bd7 commit 6343b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw4/phrase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def phrases(self, source_sent):
9494
P.append(p)
9595
elif t-s == 0:
9696
# include word copying
97-
p = Phrase(s+1,t+1,source_sent[s],self.min_score + 2.0)
97+
p = Phrase(s+1,t+1,[source_sent[s]],self.min_score + 2.0)
9898
P.append(p)
9999
return P
100100

0 commit comments

Comments
 (0)