NLP-with-Python icon indicating copy to clipboard operation
NLP-with-Python copied to clipboard

IndexError: index 0 is out of bounds for axis 0 with size 0

Open chetanshekhu opened this issue 4 years ago • 0 comments

doc_sample = documents[documents['index'] == 4310].values[0][0]

print('original document: ') words = [] for word in doc_sample.split(' '): words.append(word) print(words) print('\n\n tokenized and lemmatized document: ') print(preprocess(doc_sample))

when I am running these lines in my document its showing indexerror please help IndexError: index 0 is out of bounds for axis 0 with size 0

chetanshekhu avatar Jan 02 '21 06:01 chetanshekhu