nltk.corpus.stopwords.words('english')导致编译错误。我将在下面将相关的代码路径发布到根本问题所在的位置。
我的代码:
_stopwords_en = set(nltk.corpus.stopwords.words('english')) \
- set(['it', 's', 't', 'can', 'do', 'm', 'd', 'after', 'a'])
util.py:
else:
try:
root = nltk.data.find('{}/{}'.format(self.subdir, self.__name))
data.py:
elif not path_ or os.path.isdir(path_):
if zipfile is None:
p = os.path.join(path_, url2pathname(resource_name))
ntpath.py:
def join(path, *paths):
path = os.fspath(path)
我得到的错误是:
TypeError: expected str, bytes or os.PathLike object, not NoneType