📅  最后修改于: 2022-03-11 14:46:15.341000             🧑  作者: Mango
you are using stopwords as a function instead of stopwords.words
replace stopwords('english') with stopwords.words('english')
for i in range(len(sentence) - 1):
if ( sentence[i][1] == "JJ" and sentence[i+1][0] in stopwords.words('english') ):
return concept