【发布时间】:2020-03-18 13:03:09
【问题描述】:
我想在 textacy 中创建一个空的语料库,然后通过
用数据填充它corpus.add(doc)
但每次我尝试创建一个空的语料库时,我都无法保存它,而是出现此错误:
IndexError: list index out of range
我尝试在创建语料库时不提供任何数据或不提供任何数据:
corpus = textacy.Corpus(lang=locale)
corpus = textacy.Corpus(lang=locale, data=None)
corpus.save(path) # this line results in the index error
如果有人可以帮助我,那就太好了:)
【问题讨论】: