Python TypeError:loadCorpus()接受1个位置参数,但提供了2个 您将两个参数传递给一个函数,该函数接受一个参数您正在使用的NLP库是什么?阅读其loadCorpus函数的文档以找到正确的使用方法。我使用的是NLTK。@说我知道,先生,但无法解决

Python TypeError:loadCorpus()接受1个位置参数,但提供了2个 您将两个参数传递给一个函数,该函数接受一个参数您正在使用的NLP库是什么?阅读其loadCorpus函数的文档以找到正确的使用方法。我使用的是NLTK。@说我知道,先生,但无法解决,python,nlp,nltk,Python,Nlp,Nltk,TypeError:loadCorpus()接受1个位置参数,但提供了2个 您将两个参数传递给一个函数,该函数接受一个参数您正在使用的NLP库是什么?阅读其loadCorpus函数的文档以找到正确的使用方法。我使用的是NLTK。@说我知道,先生,但无法解决这个问题您最好查看loadCorpus和NLTK的文档,找出它接受的参数。 #done reading all word types #read all the training sentences sent= loadCorpus('ban

TypeError:loadCorpus()接受1个位置参数,但提供了2个
您将两个参数传递给一个函数,该函数接受一个参数您正在使用的NLP库是什么?阅读其
loadCorpus
函数的文档以找到正确的使用方法。我使用的是NLTK。@说我知道,先生,但无法解决这个问题您最好查看
loadCorpus
和NLTK的文档,找出它接受的参数。
#done reading all word types
#read all the training sentences

sent= loadCorpus('bangla-corpuscleaned.txt','UTF-8')
print (sent[0][0])
print ('done reading corpus')
print (len(types))
types = []