# Identify the package (i.e. the .zip file) to download.
--> resource_zipname = resource_name.split('/')[1]
if resource_zipname.endswith('.zip'):
resource_zipname = resource_zipname.rpartition('.')[0]
print(os.listdir(nltk.data.find("corpora"))) giving error IndexError: list index out of range
Comments
Post a Comment