Skip to content

Commit 2ec01dc

Browse files
committed
update
1 parent e28c9c2 commit 2ec01dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
def word_cut(text):
99
text = regex.sub(' ', text)
10-
return ' '.join([word for word in jieba.cut(text) if word.strip()]).split()
10+
return [word for word in jieba.cut(text) if word.strip()]
1111

1212

1313
def get_dataset(path, text_field, label_field):

0 commit comments

Comments
 (0)