Skip to content

Commit

Permalink
添加数据集处理进度
Browse files Browse the repository at this point in the history
  • Loading branch information
moon-hotel committed Nov 21, 2021
1 parent 1c718f7 commit a976086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def data_process(self, filepath):
:return:
"""

raw_iter = iter(open(filepath, encoding="utf8"))
raw_iter = open(filepath,encoding='utf8').readlines()
data = []
max_len = 0
for raw in tqdm(raw_iter):
for raw in tqdm(raw_iter, ncols=80):
line = raw.rstrip("\n").split('","')
s, l = line[-1][:-1], line[0][1:]
s = clean_str(s)
Expand Down

0 comments on commit a976086

Please sign in to comment.