def __init__(self, wiki, vocab, n_consec):
self.wiki = wiki
self.vocab = vocab
self.n_consec = n_consec # number of consecutive sections that are used to form a query
nltk.download('punkt')
self.tokenizer = nltk.data.load('tokenizers/punkt/english.pickle')
评论列表
文章目录