在进行词频统计时,停用词出现报错:
stopwords = pandas.read_csv("D:\demo\stopwords.txt",encoding='utf-8',index_col=False,quoting=3,sep="\t")
报错:
Traceback (most recent call last):
File "D:\demo\程序\wbfx\4.6.2.py", line 63, in
fSegStat = segStat[~segStat.segment.isin(stopwords.stopword)]
File "D:\demo\venv\lib\site-packages\pandas\core\generic.py", line 5575, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'stopword'
Process finished with exit code 1
希望能够各位帮忙解决!