Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
920232796 committed Sep 18, 2021
1 parent 8c28a81 commit 698994a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/THUCNews自动摘要.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def __init__(self) :
super(BertDataset, self).__init__()
## 拿到所有文件名字
self.txts = glob.glob('./state_dict/THUCNews/*/*.txt')

self.idx2word = {k: v for v, k in word2idx.items()}
self.tokenizer = Tokenizer(word2idx)

Expand All @@ -49,7 +48,7 @@ def __getitem__(self, i):
}
return output

self.__getitem__(i + 1)
return self.__getitem__(i + 1)

def __len__(self):

Expand Down

0 comments on commit 698994a

Please sign in to comment.