我试过了但是没用
from nltk.corpus import stopwords stopwords_list = stopwords.words('arabic') print(stopwords_list)
更新[2018年1月]:自2017年10月以来,nltk数据存储库已包含阿拉伯语停用词,因此不再出现此问题。上面的代码将按预期工作。
arabic nltk
arabic ×1
nltk ×1