Skip to content

Commit

Permalink
修改错误注释
Browse files Browse the repository at this point in the history
  • Loading branch information
moon-hotel committed Jul 2, 2022
1 parent 2f87151 commit 6ddf5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def build_vocab(tokenizer, filepath, min_freq, specials=None):
counter = Counter()
with open(filepath, encoding='utf8') as f:
for string_ in tqdm(f):
string_ = string_.strip().split('","')[-1][:-1] # 取标签和新闻描述
string_ = string_.strip().split('","')[-1][:-1] # 新闻描述
counter.update(tokenizer(clean_str(string_)))
return Vocab(counter, min_freq=min_freq, specials=specials)

Expand Down

0 comments on commit 6ddf5ae

Please sign in to comment.