我想在 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
如果有人可以帮助我,那就太好了:)