Skip to content

Commit 9eb9e23

Browse files
authored
Update day03.md (#730)
111行if语句写错了
1 parent fe021a9 commit 9eb9e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

education/day03.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def parse_decodes(ds, decodes, lens, label_vocab):
108108
tags_out = []
109109
words = ""
110110
for s, t in zip(sent, tags):
111-
if t.endswith('B-') or t == 'O':
111+
if t.startswith('B-') or t == 'O':
112112
if len(words):
113113
sent_out.append(words)
114114
if t.startswith('B-'):

0 commit comments

Comments
 (0)